Bug 207544

Summary: Ability to Remove a Single WKUserScript
Product: WebKit Reporter: Joel <joelhreis>
Component: WebKit APIAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Enhancement CC: achristensen, beidson, ggaren, krzysztof.modras, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: All   
OS: All   

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>