Add missing same-site check in document.hasStorageAccess#244
Add missing same-site check in document.hasStorageAccess#244cfredric wants to merge 2 commits intoprivacycg:mainfrom
document.hasStorageAccess#244Conversation
annevk
left a comment
There was a problem hiding this comment.
I'm not sure I understand how this enforces that requestStorageAccess() has previously been invoked. And if this is the right place it seems we can get rid of the previous step as this is a less narrow check.
|
Step 10.3.5 (the "same authority" check) handles |
annevk
left a comment
There was a problem hiding this comment.
I think I understand now. This seems okay, but one thing we should fix is that we should add "abort these steps" when we resolve while in parallel because it makes no sense to run the subsequent steps as well.
|
Good point, done. |
This adds the missing check for an
A(B(A))embedding case indocument.hasStorageAccess(), to match the corresponding check indocument.requestStorageAccess()(see step 16.7). The effect is that for ABA embeds, afterdocument.requestStorageAccess()is called and resolves, invocations ofdocument.hasStorageAccess()resolve totrue.Fixes #234.
document.hasStorageAccess#171 (comment))document.hasStorageAccess#171 (comment))document.hasStorageAccess()should return false in the ABA embed (i.e. whendocument.requestStorageAccess()has not been called) is already tested at https://github.com/web-platform-tests/wpt/blob/af3b02cb13c11ad6299bdda16813bd8e5048aa60/storage-access-api/hasStorageAccess.sub.https.window.js#L26.(See WHATWG Working Mode: Changes for more details.)
Preview | Diff