WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
260208
WKUserContentController methods shouldn't show or remove user content scripts and stylesheets used by Web Extensions
https://bugs.webkit.org/show_bug.cgi?id=260208
Summary
WKUserContentController methods shouldn't show or remove user content scripts...
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-09-01 08:57:53 PDT
<
rdar://problem/114823215
>
Timothy Hatcher
Comment 2
2024-09-13 15:48:38 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/33647
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.
Top of Page
Format For Printing
XML
Clone This Bug