Bug 221657

Summary: WKWebView needs to provide -[WebPreferences userStyleSheetLocation]
Product: WebKit Reporter: Jonathan Deutsch <jonathan>
Component: WebKit APIAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: achristensen, beidson, ggaren, jonathan, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Mac (Apple Silicon)   
OS: macOS 11   

Description Jonathan Deutsch 2021-02-09 23:23:27 PST
WKWebView is incomplete as a replacement for WebView. It is missing the ability to arbitrarily add style sheets to the web content.

One can use -evaluateJavaScript: to inject code to do the same thing, but this is potentially error prone. Safari still provided this feature when it migrated to WebKit2, so it is puzzling it does not exist as API.
Comment 1 Radar WebKit Bug Importer 2021-02-16 23:24:12 PST
<rdar://problem/74423302>