I see different types of HTML5 sessionStorage behavior when using Weblinks. Sometimes the sessionStorage of the first page is copied to TargetPage, sometimes I get an empty SessionStorage on TargetPage.
Can someone explain to me why this is so?
Given the following link:
<a href="TargetPage.html" target="_blank">link</a>
When I open the link with the right mouse button → "open the link in a new tab", sessionStorage is empty in TargetPage. (Expected) But when I open the link with the usual left-click, sessionStorage is copied to TargetPage. (Unexpected)
Note. I have seen this behavior in Chrome and Firefox. In both cases, Internet Explorer 9 provides an empty sessionStorage. This is my expected behavior.
I created jsFiddle to demonstrate the behavior: http://jsfiddle.net/P9nUv/3/
Can anyone think of a cross-browser solution to provide an empty sessionStorage for new browser / Windows tabs, no matter how they were opened?
Any help is appreciated!
cross-browser html5 session-storage
it's me Jun 25 '13 at 12:24 2013-06-25 12:24
source share