New issue
Advanced search Search tips

Issue 637223 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

localStorage.length returns 0 when opening new tab

Reported by sabelonl...@gmail.com, Aug 12 2016

Issue description

UserAgent: 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
 
Components: -UI Blink>Storage

Comment 2 by jsb...@chromium.org, Aug 17 2016

Components: -Blink>Storage Blink>Storage>DOMStorage
Labels: Needs-Feedback
Tested with attached program (index.html), and works. How was Chrome stopped? Was it killed, or closed nicely (Quit menu, etc.)?
index.html
1010 bytes View Download
Status: WontFix (was: Unconfirmed)
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