[IndexedDB] IndexedDB doesn't work in file:/// URLs if third party cookies are blocked |
|||
Issue descriptionChrome Version: 58.0.3029.19 unknown (64-bit) OS: Goobuntu (probably all) What steps will reproduce the problem? (1) Check out a W3C spec using ReSpec (e.g., https://github.com/w3c/presentation-api) (2) Go to Chrome settings and block third-party cookies by default. (3) Try to load the spec's index.html from a file:/// URL on local disk. What is the expected result? Spec is rendered normally. What happens instead? (4) Page is blank for ~30 seconds and eventually renders. (5) Cookie blocking icon appears in omnibox and tells me that an IndexedDB on file:/// was blocked for file://. (6) JS console prints: Uncaught (in promise) DOMException: The user denied permission to access the database. <then ReSpec errors about the biblio plugin taking too long> I can try to construct a narrower repro case if it would be helpful. I don't know if this is intentional in the behavior for file:/// URLs or not, thus I'm filing this bug. - With cookie blocking enabled, are file:/// pages allowed a usable storage partition at all? - Do users expect file:/// URLs to break with third party cookie blocking enabled?
,
Mar 23 2017
,
Mar 23 2017
Yes, this is intentional. Relevant check is: https://cs.chromium.org/chromium/src/chrome/browser/renderer_host/chrome_render_message_filter.cc?l=333 FWIW, Firefox blocks access to Indexed DB from any file:/// URL.
,
Mar 23 2017
Thanks. |
|||
►
Sign in to add a comment |
|||
Comment 1 by mfo...@chromium.org
, Mar 23 2017Owner: jsb...@chromium.org