[Webkit-unassigned] [Bug 221663] New: -[WKWebView setDrawsBackground:] should be API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 9 23:30:10 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=221663

            Bug ID: 221663
           Summary: -[WKWebView setDrawsBackground:] should be API
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Apple Silicon)
                OS: macOS 11
            Status: NEW
          Severity: Blocker
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jonathan at tumult.com

This was an API in the WebView Legacy.

Applications like Tumult Hype [https://tumult.com/hype/] allow users to author content, which may inherently want a transparent background.  While the editor itself will probably use an opaque window, an export flow may want to export via -takeSnapshotWithConfiguration and use a transparent WKWebView to render into.

Right now, the only way to get a transparent WKWebView is something like:

if(@available(macOS 10.13, *)) {
        [webView setValue:@NO forKey:@"drawsBackground"];
} else {
        [webView setValue:@YES forKey:@"drawsTransparentBackground"];
}

I am surprised WebView was deprecated without providing this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210210/e2c5a5ae/attachment.htm>


More information about the webkit-unassigned mailing list