Title: [290825] trunk/Source/WebKit
Revision
290825
Author
[email protected]
Date
2022-03-04 03:37:12 -0800 (Fri, 04 Mar 2022)

Log Message

[GTK][WPE] Documentation for webkit_web_context_set_spell_checking_languages() is incomplete
https://bugs.webkit.org/show_bug.cgi?id=237465

Reviewed by Carlos Garcia Campos.

* UIProcess/API/glib/WebKitWebContext.cpp: Improve documentation.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (290824 => 290825)


--- trunk/Source/WebKit/ChangeLog	2022-03-04 09:15:08 UTC (rev 290824)
+++ trunk/Source/WebKit/ChangeLog	2022-03-04 11:37:12 UTC (rev 290825)
@@ -1,3 +1,12 @@
+2022-03-04  Adrian Perez de Castro  <[email protected]>
+
+        [GTK][WPE] Documentation for webkit_web_context_set_spell_checking_languages() is incomplete
+        https://bugs.webkit.org/show_bug.cgi?id=237465
+
+        Reviewed by Carlos Garcia Campos.
+
+        * UIProcess/API/glib/WebKitWebContext.cpp: Improve documentation.
+
 2022-03-04  Youenn Fablet  <[email protected]>
 
         Introduce routines to exchange SharedVideoFrame::Buffer directly

Modified: trunk/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp (290824 => 290825)


--- trunk/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp	2022-03-04 09:15:08 UTC (rev 290824)
+++ trunk/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp	2022-03-04 11:37:12 UTC (rev 290825)
@@ -1469,9 +1469,13 @@
  * @languages: (allow-none) (array zero-terminated=1) (element-type utf8) (transfer none): a %NULL-terminated list of language identifiers
  *
  * Set the list of preferred languages, sorted from most desirable
- * to least desirable. The list will be used to build the "Accept-Language"
- * header that will be included in the network requests started by
- * the #WebKitWebContext.
+ * to least desirable. The list will be used in the following ways:
+ *
+ * - Determining how to build the `Accept-Language` HTTP header that will be
+ *   included in the network requests started by the #WebKitWebContext.
+ * - Setting the values of `navigator.language` and `navigator.languages`.
+ * - The first item in the list sets the default locale for _javascript_
+ *   `Intl` functions.
  */
 void webkit_web_context_set_preferred_languages(WebKitWebContext* context, const gchar* const* languageList)
 {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to