New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 640906 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 136356
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Storage event is not fired.

Reported by zan...@gmail.com, Aug 25 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

Steps to reproduce the problem:
1. Go to cnn.com. 
2. Right-click to "Inspect". 
3. In "Console", select "top" window. 
4. Input "window.addEventListener('storage', function() {console.log('fired')})" and press Enter. 
5. Go through Step 1, 2, 3 and 4 in another tab. 
6. In either tab, input "localStorage['a'] = 'b'" and press Enter. 

What is the expected behavior?
"fired" shows up in one of the two tabs. 

What went wrong?
"fired" does not show up anywhere. 

Did this work before? N/A 

Chrome version: 52.0.2743.116  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 22.0 r0

1. Other sites like foxnews.com work as expected, that is, "fired" shows up in one of the two tabs. 
2. Also tried Version 53.0.2748.0 canary with all extensions disabled but no luck. 
3. Firefox works as expected, even on cnn.com. 
4. Related bug: https://bugs.chromium.org/p/chromium/issues/detail?id=48159
 
Cc: msrchandra@chromium.org
Labels: Needs-Feedback
@zanetu -- Could you please attach a screencast of the issue which would help us in triaging the issue further.
Thanks in Advance.

Comment 2 by zan...@gmail.com, Aug 26 2016

@msrchandra 

Two screenshots (cnn.com vs foxnews.com) are attached. 
storage_bug_cnn.png
44.9 KB View Download
storage_bug_foxnews.png
59.7 KB View Download
Components: -Platform>DevTools Blink>Storage

Comment 4 by jsb...@chromium.org, Aug 30 2016

Components: -Blink>Storage Blink>Storage>DOMStorage
Does the origin modify document.domain ? If so that sounds like  issue 136356 

Comment 5 by jsb...@chromium.org, Aug 30 2016

Mergedinto: 136356
Status: Duplicate (was: Unconfirmed)
Yeah, looks like www.cnn.com does document.domain = 'cnn.com' 

Sign in to add a comment