Bug 176944 - Storage Access API: Make document.hasStorageAccess a function and always allow access for same-origin iframes
Summary: Storage Access API: Make document.hasStorageAccess a function and always allo...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: John Wilander
URL:
Keywords: InRadar
Depends on:
Blocks: 176862
  Show dependency treegraph
 
Reported: 2017-09-14 13:05 PDT by John Wilander
Modified: 2017-12-06 11:41 PST (History)
11 users (show)

See Also:


Attachments
Patch (72.19 KB, patch)
2017-12-05 18:02 PST, John Wilander
no flags Details | Formatted Diff | Diff
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 Details
Patch for landing (72.17 KB, patch)
2017-12-06 11:09 PST, John Wilander
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Wilander 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.
Comment 1 Radar WebKit Bug Importer 2017-09-14 13:06:17 PDT
<rdar://problem/34440658>
Comment 2 John Wilander 2017-12-05 16:55:33 PST
Re-titling to reflect how this was designed.
Comment 3 John Wilander 2017-12-05 18:02:14 PST
Created attachment 328541 [details]
Patch
Comment 4 John Wilander 2017-12-05 18:03:16 PST
Style errors are all of the 'Extra space before ( in function call' variety in the callback parameters.
Comment 5 EWS Watchlist 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.
Comment 6 EWS Watchlist 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
Comment 7 EWS Watchlist 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
Comment 8 John Wilander 2017-12-06 09:34:42 PST
Ryan and I looked into the El Cap test crash. It's unrelated.
Comment 9 Brent Fulgham 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.
Comment 10 Brent Fulgham 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.
Comment 11 John Wilander 2017-12-06 11:09:00 PST
Created attachment 328596 [details]
Patch for landing
Comment 12 John Wilander 2017-12-06 11:09:45 PST
Thanks for the review, Brent! Fixed the two style issues.
Comment 13 WebKit Commit Bot 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>
Comment 14 WebKit Commit Bot 2017-12-06 11:41:08 PST
All reviewed patches have been landed.  Closing bug.