Bug 260208 - WKUserContentController methods shouldn't show or remove user content scripts and stylesheets used by Web Extensions
Summary: WKUserContentController methods shouldn't show or remove user content scripts...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Extensions (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kiara Rose
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-08-15 11:03 PDT by Kiara Rose
Modified: 2023-09-01 08:57 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 Kiara Rose 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.
Comment 1 Radar WebKit Bug Importer 2023-09-01 08:57:53 PDT
<rdar://problem/114823215>