[Webkit-unassigned] [Bug 261043] New: bug in documentation for webkit_web_view_evaluate_javascript
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 1 12:02:57 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=261043
Bug ID: 261043
Summary: bug in documentation for
webkit_web_view_evaluate_javascript
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: buggy at nonzens.de
CC: bugs-noreply at webkitgtk.org
The example in the documentation for webkit_web_view_evaluate_javascript at
https://webkitgtk.org/reference/webkit2gtk/stable/method.WebView.evaluate_javascript.html
is incorrect.
The statement "webkit_javascript_result_unref(js_result);" (see code fragment below) seems to be a holdover from the example for the deprecated Function webkit_web_view_run_javascript.
Therefore, it remains unclear how to correctly deal with the JSCValue "value" returned by the function webkit_web_view_evaluate_javascript_finish.
Code fragment from the documentation:
static void
web_view_javascript_finished (GObject *object,
GAsyncResult *result,
gpointer user_data)
{
JSCValue *value;
GError *error = NULL;
value = webkit_web_view_evaluate_javascript_finish (WEBKIT_WEB_VIEW (object), result, &error);
--- some lines of code removed ---
webkit_javascript_result_unref (js_result);
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230901/78873a1b/attachment.htm>
More information about the webkit-unassigned
mailing list