localStorage.length returns 0 when opening new tab
Reported by
sabelonl...@gmail.com,
Aug 12 2016
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Steps to reproduce the problem: 1. Open a website that stores data to localStorage. E.g, preview.debijenkorf.nl. And open the same website with a different top-level domain. E.g, preview.debijenkorf.be. Then close Chrome. 2. Open Chrome. And open preview.debijenkorf.nl. localStorage.length returns the amount of keys it contains. 3. Open a new tab. And open preview.debijenkorf.be. localStorage.length returns 0. What is the expected behavior? When opening the second tab I expect localStorage.length is returning the amount of keys it contains. What went wrong? Instead of returning the amount of keys within window.localStorage, window.localStorage.length is returning 0. Did this work before? N/A Chrome version: 52.0.2743.116 Channel: stable OS Version: OS X 10.11.6 Flash Version: Shockwave Flash 22.0 r0
,
Aug 17 2016
,
Aug 17 2016
Tested with attached program (index.html), and works. How was Chrome stopped? Was it killed, or closed nicely (Quit menu, etc.)?
,
Sep 6 2016
The .nl and .be urls are different origins, their localStorage areas should be independent of one another despite being backed by the same service? closing for lack of feedback, please reopen with more info if needed |
||||
►
Sign in to add a comment |
||||
Comment 1 by erikc...@chromium.org
, Aug 15 2016