Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sessionStorage copying into popups #5498

Closed
annevk opened this issue Apr 30, 2020 · 0 comments · Fixed by #5560
Closed

sessionStorage copying into popups #5498

annevk opened this issue Apr 30, 2020 · 0 comments · Fixed by #5560

Comments

@annevk
Copy link
Member

annevk commented Apr 30, 2020

While creating a new auxiliary browsing context, the session storage area is copied over.

and

If browsingContext's creator origin is same origin with browsingContext's active document's origin, then copy the sessionStorage storage area of opener into browsingContext's set of session storage areas. These areas must be considered separate, not affecting each other in any way.

suggest only a partial copying of all session storage areas takes place while in implementations the storage areas for all origins are copied over.

I.e., if A1 embeds B and popups A2 which also embeds B, B inside A2 sees a clone of the session storage area from B inside A1.

Another problem here is that this is supposedly tied to the top-level browsing context where it ought to be tied to the "browsing session" (to be defined) which would remain the same when a top-level browsing context "underneath it" gets replaced due to Cross-Origin-Opener-Policy.

I plan to fix this as part of whatwg/storage#18, but it seemed good to also document the issue for better mutual understanding.

cc @mkruisselbrink

@annevk annevk mentioned this issue May 18, 2020
3 tasks
annevk added a commit that referenced this issue Jul 8, 2020
Use the new primitives in the Storage Standard.

Closes #3209, closes #3210, closes #3283, closes #4650, closes #5463, and closes #5498.
annevk added a commit that referenced this issue Jul 10, 2020
Use the new primitives in the Storage Standard.

Closes #3209, closes #3210, closes #3283, closes #4650, closes #5463, and closes #5498.
mfreed7 pushed a commit to mfreed7/html that referenced this issue Sep 11, 2020
Use the new primitives in the Storage Standard.

Closes whatwg#3209, closes whatwg#3210, closes whatwg#3283, closes whatwg#4650, closes whatwg#5463, and closes whatwg#5498.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant