RESOLVED FIXED 184426
Add support for setting a background color on WKWebView and WKView
https://bugs.webkit.org/show_bug.cgi?id=184426
Summary Add support for setting a background color on WKWebView and WKView
Timothy Hatcher
Reported 2018-04-09 13:23:10 PDT
WebView has long had support for setting a background color. WKWebView and WKView should support the same too. <rdar://problem/39132633>
Attachments
Patch (15.15 KB, patch)
2018-04-09 14:32 PDT, Timothy Hatcher
no flags
Add missing availability (2.47 KB, patch)
2018-04-09 20:58 PDT, Wenson Hsieh
timothy: review+
ews-watchlist: commit-queue-
Archive of layout-test-results from ews103 for mac-sierra (2.21 MB, application/zip)
2018-04-09 22:03 PDT, EWS Watchlist
no flags
Timothy Hatcher
Comment 1 2018-04-09 14:32:23 PDT
Megan Gardner
Comment 2 2018-04-09 14:55:37 PDT
Comment on attachment 337543 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=337543&action=review R=Me, but you need a real review > Tools/TestWebKitAPI/Tests/mac/BackgroundColor.mm:110 > + How about a test that just sets the color to something specific, like Purple. I know the systemColor one basically does that, but it depends the on the control stuff being right.
Wenson Hsieh
Comment 3 2018-04-09 15:44:59 PDT
Comment on attachment 337543 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=337543&action=review LGTM! You might need a WK2 owner to review, though. > Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:263 > +@property (nonatomic, setter=_setBackgroundColor:) NSColor *_backgroundColor; Nit - we usually make copyable non-POD properties copy.
Beth Dakin
Comment 4 2018-04-09 16:09:16 PDT
(In reply to Wenson Hsieh from comment #3) > Comment on attachment 337543 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=337543&action=review > > LGTM! You might need a WK2 owner to review, though. > rs=me on top of Wenson's review for WK2 owner stamp. > > Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:263 > > +@property (nonatomic, setter=_setBackgroundColor:) NSColor *_backgroundColor; > > Nit - we usually make copyable non-POD properties copy.
WebKit Commit Bot
Comment 5 2018-04-09 18:36:35 PDT
Comment on attachment 337543 [details] Patch Clearing flags on attachment: 337543 Committed r230462: <https://trac.webkit.org/changeset/230462>
WebKit Commit Bot
Comment 6 2018-04-09 18:36:36 PDT
All reviewed patches have been landed. Closing bug.
mitz
Comment 7 2018-04-09 20:08:06 PDT
Comment on attachment 337543 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=337543&action=review >>> Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:263 >>> +@property (nonatomic, setter=_setBackgroundColor:) NSColor *_backgroundColor; >> >> Nit - we usually make copyable non-POD properties copy. > > This declaration is missing availability information.
Wenson Hsieh
Comment 8 2018-04-09 20:58:37 PDT
Reopening to attach new patch.
Wenson Hsieh
Comment 9 2018-04-09 20:58:37 PDT
Created attachment 337583 [details] Add missing availability
Timothy Hatcher
Comment 10 2018-04-09 21:40:02 PDT
Comment on attachment 337583 [details] Add missing availability Thanks! You beat me to it.
EWS Watchlist
Comment 11 2018-04-09 22:03:50 PDT
Comment on attachment 337583 [details] Add missing availability Attachment 337583 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/7263363 New failing tests: imported/w3c/web-platform-tests/workers/name-property.html
EWS Watchlist
Comment 12 2018-04-09 22:03:51 PDT
Created attachment 337588 [details] Archive of layout-test-results from ews103 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-sierra Platform: Mac OS X 10.12.6
Wenson Hsieh
Comment 13 2018-04-09 22:08:19 PDT
(In reply to Build Bot from comment #11) > Comment on attachment 337583 [details] > Add missing availability > > Attachment 337583 [details] did not pass mac-ews (mac): > Output: http://webkit-queues.webkit.org/results/7263363 > > New failing tests: > imported/w3c/web-platform-tests/workers/name-property.html ...pretty certain this is unrelated. Landed directly on trunk in r230470.
Note You need to log in before you can comment on or make changes to this bug.