Bug 221657 - WKWebView needs to provide -[WebPreferences userStyleSheetLocation]
Summary: WKWebView needs to provide -[WebPreferences userStyleSheetLocation]
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: Safari 14
Hardware: Mac (Apple Silicon) macOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-02-09 23:23 PST by Jonathan Deutsch
Modified: 2021-02-16 23:24 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>