Bug 260208

Summary: WKUserContentController methods shouldn't show or remove user content scripts and stylesheets used by Web Extensions
Product: WebKit Reporter: Kiara Rose <kiara_rose>
Component: WebKit ExtensionsAssignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Kiara Rose
Reported 2023-08-15 11:03:15 PDT
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.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-09-01 08:57:53 PDT
Timothy Hatcher
Comment 2 2024-09-13 15:48:38 PDT
EWS
Comment 3 2024-09-14 08:53:42 PDT
Committed 283674@main (c985ecf2d3c0): <https://commits.webkit.org/283674@main> Reviewed commits have been landed. Closing PR #33647 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.