Bug 243224 - [WPE][GTK] webkit_web_view_run_async_javascript_in_world does not allow default world
Summary: [WPE][GTK] webkit_web_view_run_async_javascript_in_world does not allow defau...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-26 12:45 PDT by Daniel Kolesa
Modified: 2022-07-29 07:52 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kolesa 2022-07-26 12:45:16 PDT
Related: https://bugs.webkit.org/show_bug.cgi?id=241420

The new API does not have an equivalent that runs code in the default world, and there is no way to ensure the default world is used with the world-parameter API. The code seems to assume that an empty string will use the default world, but that is not the case - this will still use a completely separate world from the default.

I will create a patch for this.
Comment 1 Daniel Kolesa 2022-07-26 13:18:15 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2751
Comment 2 EWS 2022-07-29 07:52:42 PDT
Committed 252947@main (bd12d92e5f93): <https://commits.webkit.org/252947@main>

Reviewed commits have been landed. Closing PR #2751 and removing active labels.