WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
180681
Storage Access API: Make document.hasStorageAccess() retrieve current status from the network process
https://bugs.webkit.org/show_bug.cgi?id=180681
Summary
Storage Access API: Make document.hasStorageAccess() retrieve current status ...
John Wilander
Reported
2017-12-11 16:37:04 PST
This is part 2 of making Storage Access API frame-specific.
Attachments
Patch
(42.21 KB, patch)
2017-12-15 14:56 PST
,
John Wilander
no flags
Details
Formatted Diff
Diff
Patch
(46.19 KB, patch)
2017-12-15 16:17 PST
,
John Wilander
no flags
Details
Formatted Diff
Diff
Patch for landing
(47.54 KB, patch)
2017-12-17 19:11 PST
,
John Wilander
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-12-11 16:37:37 PST
<
rdar://problem/35982161
>
John Wilander
Comment 2
2017-12-15 14:56:22 PST
Created
attachment 329522
[details]
Patch
John Wilander
Comment 3
2017-12-15 14:56:46 PST
Style errors are all of the "Extra space before ( in function call" variety.
EWS Watchlist
Comment 4
2017-12-15 14:59:07 PST
Attachment 329522
[details]
did not pass style-queue: ERROR: Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:1436: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp:257: 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/WebCore/page/ChromeClient.h:470: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebPage/WebPage.cpp:5780: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h:150: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.h:86: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebPage/WebPage.h:1027: 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] Total errors found: 9 in 27 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alex Christensen
Comment 5
2017-12-15 15:08:50 PST
Comment on
attachment 329522
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=329522&action=review
> Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp:268 > +});
indentation
> Source/WebKit/UIProcess/Network/NetworkProcessProxy.h:81 > + void hasStorageAccessForPrevalentDomains(PAL::SessionID, const String& resourceDomain, const String& firstPartyDomain, uint64_t frameID, uint64_t pageID, WTF::CompletionHandler<void(bool)>&& callback);
WTF:: prefix should be unnecessary
Alex Christensen
Comment 6
2017-12-15 15:12:10 PST
Comment on
attachment 329522
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=329522&action=review
> Source/WebCore/dom/Document.cpp:7430 > - RefPtr<DeferredPromise> promise(WTFMove(passedPromise)); > + RefPtr<DeferredPromise>&& promise(WTFMove(passedPromise));
We shouldn't need this at all. We should be able to just use a Ref and call the passedPromise promise.
John Wilander
Comment 7
2017-12-15 15:31:31 PST
(In reply to Alex Christensen from
comment #5
)
> Comment on
attachment 329522
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=329522&action=review
> > > Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp:268 > > +}); > > indentation
Fixed.
> > Source/WebKit/UIProcess/Network/NetworkProcessProxy.h:81 > > + void hasStorageAccessForPrevalentDomains(PAL::SessionID, const String& resourceDomain, const String& firstPartyDomain, uint64_t frameID, uint64_t pageID, WTF::CompletionHandler<void(bool)>&& callback); > > WTF:: prefix should be unnecessary
OK.
John Wilander
Comment 8
2017-12-15 15:32:08 PST
(In reply to Alex Christensen from
comment #6
)
> Comment on
attachment 329522
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=329522&action=review
> > > Source/WebCore/dom/Document.cpp:7430 > > - RefPtr<DeferredPromise> promise(WTFMove(passedPromise)); > > + RefPtr<DeferredPromise>&& promise(WTFMove(passedPromise)); > > We shouldn't need this at all. We should be able to just use a Ref and call > the passedPromise promise.
This was actually me trying to figure out weird promise behavior. Turned out to be something else. Fixed.
John Wilander
Comment 9
2017-12-15 16:11:37 PST
I know what the WK2 test timeouts are about. New patch coming.
John Wilander
Comment 10
2017-12-15 16:17:08 PST
Created
attachment 329536
[details]
Patch
EWS Watchlist
Comment 11
2017-12-15 16:19:50 PST
Attachment 329536
[details]
did not pass style-queue: ERROR: Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:1436: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp:257: 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/WebCore/page/ChromeClient.h:470: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebPage/WebPage.cpp:5780: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h:150: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.h:86: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebPage/WebPage.h:1027: 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] Total errors found: 9 in 27 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alex Christensen
Comment 12
2017-12-15 19:16:02 PST
Comment on
attachment 329536
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=329536&action=review
> Source/WebCore/dom/Document.cpp:7430 > + RefPtr<DeferredPromise>&& promise(WTFMove(passedPromise));
Delete this line, change the parameter name from passedPromise to promise, and change the lambda capture from promise to promise = WTFMove(promise)
John Wilander
Comment 13
2017-12-17 19:11:45 PST
Created
attachment 329630
[details]
Patch for landing
John Wilander
Comment 14
2017-12-17 19:12:08 PST
(In reply to Alex Christensen from
comment #12
)
> Comment on
attachment 329536
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=329536&action=review
> > > Source/WebCore/dom/Document.cpp:7430 > > + RefPtr<DeferredPromise>&& promise(WTFMove(passedPromise)); > > Delete this line, change the parameter name from passedPromise to promise, > and change the lambda capture from promise to promise = WTFMove(promise)
Fixed. Thanks for the review, Alex!
WebKit Commit Bot
Comment 15
2017-12-17 19:44:58 PST
Comment on
attachment 329630
[details]
Patch for landing Clearing flags on attachment: 329630 Committed
r226016
: <
https://trac.webkit.org/changeset/226016
>
WebKit Commit Bot
Comment 16
2017-12-17 19:44:59 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.
Top of Page
Format For Printing
XML
Clone This Bug