storage event is not dispatched on file:// protocol even though storageArea is shared
Reported by
tristan....@gmail.com,
Nov 1 2017
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) Gecko/20100101 Firefox/57.0 Steps to reproduce the problem: 1. Open the attached html file in two separate tabs (Tab#1 & Tab#2) from the file:// protocol 2. Open the dev console in both tabs 3. click "set storage" on the Tab#1 4. click "get storage" on the Tab#2 What is the expected behavior? Either the there is a security measure avoiding both tabs to communicate, in which case Tab#2 should not share Tab#1's storageArea, either they there is no security measure and the storage event should fire on Tab#2. What went wrong? Tab#2 didn't receive the storage event, but is able to read localStorage.foo set by Tab#1. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 62 Channel: n/a OS Version: OS X 10.12 Flash Version: Not sure if it should have been marked as security or not... FF does just allow shared storageArea on file:// protocol.
,
Nov 3 2017
,
Nov 10 2017
,
Nov 12
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Nov 12
,
Nov 12
Actually, this seems to have been "fixed" by onion-souping domstorage. I do believe eventually we would want to just make all file:// URLs have opaque origins and thus no shared domstorage, but for now this bug seems to be fixed. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by krajshree@chromium.org
, Nov 1 2017Status: Untriaged (was: Unconfirmed)