Bug 207544 - Ability to Remove a Single WKUserScript
Summary: Ability to Remove a Single WKUserScript
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: Other
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-11 06:43 PST by Joel
Modified: 2020-02-19 00:16 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel 2020-02-11 06:43:51 PST
WKWebView currently only has an API to remove all user scripts (`WKUserContentController.removeAllUserScripts()`).

It would be useful if specific scripts could be specified for removal. At Brave, this would be helpful to remove user scripts based on specific pages, settings, or website behaviors.
This would potentially require `addUserScript` to return a reference for removal later.

Related Radar: https://openradar.appspot.com/FB7557869 (rdar://FB7557869)
Comment 1 Radar WebKit Bug Importer 2020-02-11 09:24:28 PST
<rdar://problem/59350824>