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   

Joel
Reported 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)
Attachments
Radar WebKit Bug Importer
Comment 1 2020-02-11 09:24:28 PST
Note You need to log in before you can comment on or make changes to this bug.