Bug 237465 - [GTK][WPE] Documentation for webkit_web_context_set_spell_checking_languages() is incomplete
Summary: [GTK][WPE] Documentation for webkit_web_context_set_spell_checking_languages(...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adrian Perez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-04 02:16 PST by Adrian Perez
Modified: 2022-03-04 03:39 PST (History)
3 users (show)

See Also:


Attachments
Patch (2.00 KB, patch)
2022-03-04 02:19 PST, Adrian Perez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Perez 2022-03-04 02:16:23 PST
The API documentation for webkit_web_context_set_spell_checking_languages()
only mentions that it affects the Accept-Language header in requests, but
says nothing about navigator.language(s) and the Intl default locale, which
are also affected by it because in the end using the function results in a
call to WTF::overrideUserPreferredLanguages().
Comment 1 Adrian Perez 2022-03-04 02:17:32 PST
One could also argue that the function should not receive a
WebKitWebContext because it operates on a global setting, but
let's just document all the implications for now and leave that
for another bug ;-)
Comment 2 Adrian Perez 2022-03-04 02:19:28 PST
Created attachment 453824 [details]
Patch
Comment 3 EWS 2022-03-04 03:38:26 PST
Committed r290825 (248061@main): <https://commits.webkit.org/248061@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 453824 [details].
Comment 4 Radar WebKit Bug Importer 2022-03-04 03:39:15 PST
<rdar://problem/89806783>