[Webkit-unassigned] [Bug 243606] New: Dispatch GlobalObjectAvailable to subframes when adding user scripts

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 5 13:39:05 PDT 2022


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

            Bug ID: 243606
           Summary: Dispatch GlobalObjectAvailable to subframes when
                    adding user scripts
           Product: WebKit
           Version: WebKit Local Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Frames
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: wenqing_luo at apple.com

Currently, when adding content script to only top frame, dispatchGlobalObjectAvailable won't be called for its subframes.
If user later calls runJavaScriptInFrameInScriptWorld directly in the subframe using the same world as the content script added to top frame, dispatchGlobalObjectAvailable won't be called for the subframe either.
In the end, objects that is registered in dispatchGlobalObjectAvailable callback won't be available for JavaScript that is executed by runJavaScriptInFrameInScriptWorld in subframe.

-- 
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/20220805/ab7ed5ea/attachment.htm>


More information about the webkit-unassigned mailing list