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 Extensions | Assignee: | 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
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
<rdar://problem/114823215>
Timothy Hatcher
Pull request: https://github.com/WebKit/WebKit/pull/33647
EWS
Committed 283674@main (c985ecf2d3c0): <https://commits.webkit.org/283674@main>
Reviewed commits have been landed. Closing PR #33647 and removing active labels.