[Webkit-unassigned] [Bug 213556] New: [iOS 14] JavaScript cannot be injected into iframes using isolated worlds

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 24 07:10:46 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=213556

            Bug ID: 213556
           Summary: [iOS 14] JavaScript cannot be injected into iframes
                    using isolated worlds
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ajuma at chromium.org
                CC: achristensen at apple.com, beidson at apple.com,
                    eugenebut at chromium.org, rohitrao at google.com

WKWebView now allows injecting JavaScript into isolated worlds using evaluateJavaScript, but doesn't expose a way to inject WKUserScripts into isolated worlds.

WKUserScripts have important functionality that is missing from evaluateJavaScript. In particular, WKUserScripts can be injected into *all frames* rather than just the main frame, and can be automatically injected when the frame is loaded.

We'd love to move most of our JS injection into isolated worlds, but we need to be able to inject into non-main frames.

One approach to fixing this would be to add a public WKUserScript constructor that takes a WKContentWorld argument (there's already such a constructor in WKUserScriptPrivate.h).

-- 
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/20200624/f56340e8/attachment.htm>


More information about the webkit-unassigned mailing list