browser-compat-data icon indicating copy to clipboard operation
browser-compat-data copied to clipboard

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

Open SebastianGalianoMolina opened this issue 1 year ago • 1 comments

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

SebastianGalianoMolina avatar Apr 26 '24 09:04 SebastianGalianoMolina

see https://github.com/mdn/content/issues/30598#issuecomment-1832088200, this is not a bug, this is just the default behavior - sessionStorage does not shared between different tabs but on same-origin iframes

skyclouds2001 avatar Apr 26 '24 16:04 skyclouds2001

Duplicate of #21594.

queengooborg avatar Jun 21 '24 14:06 queengooborg