WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
187665
Add _drawsBackground to WKWebViewConfiguration
https://bugs.webkit.org/show_bug.cgi?id=187665
Summary
Add _drawsBackground to WKWebViewConfiguration
Timothy Hatcher
Reported
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.
Attachments
Patch
(12.10 KB, patch)
2018-07-13 15:22 PDT
,
Timothy Hatcher
no flags
Details
Formatted Diff
Diff
Patch
(12.16 KB, patch)
2018-07-13 15:49 PDT
,
Timothy Hatcher
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews106 for mac-sierra-wk2
(3.70 MB, application/zip)
2018-07-13 16:42 PDT
,
EWS Watchlist
no flags
Details
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-07-13 14:57:03 PDT
<
rdar://problem/42182268
>
Tim Horton
Comment 2
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?
Timothy Hatcher
Comment 3
2018-07-13 15:22:29 PDT
Comment hidden (obsolete)
Created
attachment 344991
[details]
Patch
Anders Carlsson
Comment 4
2018-07-13 15:23:40 PDT
Comment hidden (obsolete)
Comment on
attachment 344991
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=344991&action=review
> Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:312 > + self._drawsBackground = [coder decodeBoolForKey:@"drawsBackground"];
Shouldn't this default to YES if the key is missing?
Timothy Hatcher
Comment 5
2018-07-13 15:49:16 PDT
Created
attachment 344996
[details]
Patch
Tim Horton
Comment 6
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.
EWS Watchlist
Comment 7
2018-07-13 16:42:36 PDT
Comment hidden (obsolete)
Comment on
attachment 344996
[details]
Patch
Attachment 344996
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
https://webkit-queues.webkit.org/results/8530702
New failing tests: accessibility/smart-invert-reference.html
EWS Watchlist
Comment 8
2018-07-13 16:42:38 PDT
Comment hidden (obsolete)
Created
attachment 345002
[details]
Archive of layout-test-results from ews106 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
WebKit Commit Bot
Comment 9
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
>
WebKit Commit Bot
Comment 10
2018-07-13 17:03:57 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug