RESOLVED FIXED 176944
Storage Access API: Make document.hasStorageAccess a function and always allow access for same-origin iframes
https://bugs.webkit.org/show_bug.cgi?id=176944
Summary Storage Access API: Make document.hasStorageAccess a function and always allo...
John Wilander
Reported 2017-09-14 13:05:43 PDT
When the network process is done changing its access to cookies, the UI process needs to notify all web processes and specifically the originating web process so that it can resolve the promise.
Attachments
Patch (72.19 KB, patch)
2017-12-05 18:02 PST, John Wilander
no flags
Archive of layout-test-results from ews101 for mac-elcapitan (2.71 MB, application/zip)
2017-12-05 18:58 PST, EWS Watchlist
no flags
Patch for landing (72.17 KB, patch)
2017-12-06 11:09 PST, John Wilander
no flags
Radar WebKit Bug Importer
Comment 1 2017-09-14 13:06:17 PDT
John Wilander
Comment 2 2017-12-05 16:55:33 PST
Re-titling to reflect how this was designed.
John Wilander
Comment 3 2017-12-05 18:02:14 PST
John Wilander
Comment 4 2017-12-05 18:03:16 PST
Style errors are all of the 'Extra space before ( in function call' variety in the callback parameters.
EWS Watchlist
Comment 5 2017-12-05 18:04:56 PST
Attachment 328541 [details] did not pass style-queue: ERROR: Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:1404: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:1414: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp:248: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp:271: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h:352: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h:353: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebPage/WebPage.cpp:5809: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebPage/WebPage.cpp:5820: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebCore/page/ChromeClient.h:470: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebCore/page/ChromeClient.h:471: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h:147: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h:148: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.h:84: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.h:85: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebPage/WebPage.h:1023: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebPage/WebPage.h:1024: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp:1259: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp:1264: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 18 in 46 files If any of these errors are false positives, please file a bug against check-webkit-style.
EWS Watchlist
Comment 6 2017-12-05 18:58:58 PST
Comment on attachment 328541 [details] Patch Attachment 328541 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/5509148 New failing tests: imported/w3c/web-platform-tests/fetch/api/basic/mode-same-origin.any.html
EWS Watchlist
Comment 7 2017-12-05 18:58:59 PST
Created attachment 328545 [details] Archive of layout-test-results from ews101 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-elcapitan Platform: Mac OS X 10.11.6
John Wilander
Comment 8 2017-12-06 09:34:42 PST
Ryan and I looked into the El Cap test crash. It's unrelated.
Brent Fulgham
Comment 9 2017-12-06 09:44:26 PST
Comment on attachment 328541 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328541&action=review r=me, but please correct the minor style issues I mentioned before landing. > Source/WebCore/dom/Document.cpp:7416 > + auto& topSecurityOrigin = this->topDocument().securityOrigin(); You don't need 'this->topDocument()' here, just "topDocument()" should work. > Source/WebCore/dom/Document.cpp:7423 > + if (page) { We prefer: "if (Page* page = this->page()) {" since page is not used outside the conditional.
Brent Fulgham
Comment 10 2017-12-06 09:44:48 PST
Comment on attachment 328545 [details] Archive of layout-test-results from ews101 for mac-elcapitan The test failure is not related to this patch.
John Wilander
Comment 11 2017-12-06 11:09:00 PST
Created attachment 328596 [details] Patch for landing
John Wilander
Comment 12 2017-12-06 11:09:45 PST
Thanks for the review, Brent! Fixed the two style issues.
WebKit Commit Bot
Comment 13 2017-12-06 11:41:06 PST
Comment on attachment 328596 [details] Patch for landing Clearing flags on attachment: 328596 Committed r225583: <https://trac.webkit.org/changeset/225583>
WebKit Commit Bot
Comment 14 2017-12-06 11:41:08 PST
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.