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

api.Window.sessionStorage - Safari doesnt support sessionStorage on Duplicate tab #22948

Open
SebastianGalianoMolina opened this issue Apr 26, 2024 · 1 comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@SebastianGalianoMolina
Copy link

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

The page says that Safari has full support for sessionStorage. But sessionStorage defines that on tab duplicate the sessionStorage must be maintained. This is not the case in Safari.

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

When using sessionStorage on a safari browser tab, and duplicating that tab the sessionStorage should be maintained

Did you test this? If so, how?

I tested it by adding things in sessionStorage and then duplicate in safari, chrome and firefox and the behaviour of safari doesn't follow the indication of the documentation

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage

Duplicating a tab copies the tab's sessionStorage into the new tab.

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage

MDN metadata

MDN page report details
  • Query: api.Window.sessionStorage
  • Report started: 2024-04-26T09:38:41.290Z
@queengooborg queengooborg added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Apr 26, 2024
@skyclouds2001
Copy link
Contributor

see mdn/content#30598 (comment), this is not a bug, this is just the default behavior - sessionStorage does not shared between different tabs but on same-origin iframes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

3 participants