Bug 187665

Summary: Add _drawsBackground to WKWebViewConfiguration
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: WebKit APIAssignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, commit-queue, ews-watchlist, rniwa, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from ews106 for mac-sierra-wk2 none

Description Timothy Hatcher 2018-07-13 14:56:25 PDT
WebViews that need to be transparent often flash white before _drawsBackground can be set to NO on the WKWebView.

Add _drawsBackground to WKWebViewConfiguration so it can be passed in at instantiation.
Comment 1 Radar WebKit Bug Importer 2018-07-13 14:57:03 PDT
<rdar://problem/42182268>
Comment 2 Tim Horton 2018-07-13 15:19:34 PDT
Why do they flash? It’s in WebPageCreationParameters, so as long as it’s set *before* clients load (and thus launch a process) (and also as long as they do it in the same runloop as they create the view), shouldn’t that be sufficient?
Comment 3 Timothy Hatcher 2018-07-13 15:22:29 PDT Comment hidden (obsolete)
Comment 4 Anders Carlsson 2018-07-13 15:23:40 PDT Comment hidden (obsolete)
Comment 5 Timothy Hatcher 2018-07-13 15:49:16 PDT
Created attachment 344996 [details]
Patch
Comment 6 Tim Horton 2018-07-13 16:06:46 PDT
Comment on attachment 344996 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=344996&action=review

> Tools/TestWebKitAPI/Tests/WebKitCocoa/Configuration.mm:45
> +TEST(WebKit, ConfigurationDrawsBackground)

Tests! Crazy.
Comment 7 EWS Watchlist 2018-07-13 16:42:36 PDT Comment hidden (obsolete)
Comment 8 EWS Watchlist 2018-07-13 16:42:38 PDT Comment hidden (obsolete)
Comment 9 WebKit Commit Bot 2018-07-13 17:03:55 PDT
Comment on attachment 344996 [details]
Patch

Clearing flags on attachment: 344996

Committed r233828: <https://trac.webkit.org/changeset/233828>
Comment 10 WebKit Commit Bot 2018-07-13 17:03:57 PDT
All reviewed patches have been landed.  Closing bug.