[Webkit-unassigned] [Bug 260208] New: WKUserContentController methods shouldn't show or remove user content scripts and stylesheets used by Web Extensions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 15 11:03:15 PDT 2023


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

            Bug ID: 260208
           Summary: WKUserContentController methods shouldn't show or
                    remove user content scripts and stylesheets used by
                    Web Extensions
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Extensions
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kiara_rose at apple.com
                CC: timothy at apple.com, webkit-bug-importer at group.apple.com

>From DDG: "We've noticed that removeAllUserScripts removes not only user scripts but also all web extensions, which was unexpected. It would be great to have a way to avoid this if possible."

Scripts and stylesheets added for Safari's internal use for Web Extensions should not be exposed on the public objects and methods clients use on the WKUserContentController. We should filter out user scripts and stylesheets owned by Web Extensions when we return the list of scripts and stylesheets. We should also not remove web extension scripts/stylesheets when client call removeAllUserScripts/removeAllUserStyleSheets.

-- 
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/20230815/a2c386cd/attachment.htm>


More information about the webkit-unassigned mailing list