RESOLVED FIXED Bug 203428
Storage Access API: Make the API work with the experimental 3rd-party cookie blocking
https://bugs.webkit.org/show_bug.cgi?id=203428
Summary Storage Access API: Make the API work with the experimental 3rd-party cookie ...
John Wilander
Reported 2019-10-25 12:15:59 PDT
The experimental 3rd-party cookie blocking that landed in <https://trac.webkit.org/changeset/251467> needs support in the Storage Access API.
Attachments
Patch (88.31 KB, patch)
2019-10-25 12:47 PDT, John Wilander
no flags
Radar WebKit Bug Importer
Comment 1 2019-10-25 12:16:33 PDT
John Wilander
Comment 2 2019-10-25 12:47:10 PDT
Kate Cheney
Comment 3 2019-10-26 07:28:37 PDT
Comment on attachment 381956 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=381956&action=review Looks good to me! I'd give it an r+ if I could :) > Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:1810 > + Since ensureResourceStatisticsForRegistrableDomain(subFrameDomain) is always called before this function, I don't think the hasNoEntry check is needed (I know you didn't write this code, it was probably me who did this). Removing it would simplify this function a bit and let it match the memory store almost exactly. That being said, it doesn't hurt anyone to keep it in.
Kate Cheney
Comment 4 2019-10-26 07:29:49 PDT
(In reply to Katherine_cheney from comment #3) > Comment on attachment 381956 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=381956&action=review > > Looks good to me! I'd give it an r+ if I could :) > > > Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:1810 > > + > > Since ensureResourceStatisticsForRegistrableDomain(subFrameDomain) is always > called before this function, I don't think the hasNoEntry check is needed (I > know you didn't write this code, it was probably me who did this). Removing > it would simplify this function a bit and let it match the memory store > almost exactly. That being said, it doesn't hurt anyone to keep it in. "this function" being cookieAccess
John Wilander
Comment 5 2019-10-26 07:49:36 PDT
(In reply to Katherine_cheney from comment #3) > Comment on attachment 381956 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=381956&action=review > > Looks good to me! I'd give it an r+ if I could :) Thanks for taking a look. You’re always a bit worried touching code someone else has been working a lot on. > > Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:1810 > > + > > Since ensureResourceStatisticsForRegistrableDomain(subFrameDomain) is always > called before this function, I don't think the hasNoEntry check is needed (I > know you didn't write this code, it was probably me who did this). Removing > it would simplify this function a bit and let it match the memory store > almost exactly. That being said, it doesn't hurt anyone to keep it in. I has that thought but figured there was a reason for the code to be there. I’ll try to remove before landing.
John Wilander
Comment 6 2019-10-28 12:02:11 PDT
Thank you, Alex! Let's see if I need to rebase or not. :)
WebKit Commit Bot
Comment 7 2019-10-28 12:45:11 PDT
Comment on attachment 381956 [details] Patch Clearing flags on attachment: 381956 Committed r251663: <https://trac.webkit.org/changeset/251663>
WebKit Commit Bot
Comment 8 2019-10-28 12:45:12 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.