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

Issue 704752 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

[IndexedDB] IndexedDB doesn't work in file:/// URLs if third party cookies are blocked

Project Member Reported by mfo...@chromium.org, Mar 23 2017

Issue description

Chrome 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?

 

Comment 1 by mfo...@chromium.org, Mar 23 2017

Cc: mkwst@chromium.org
Owner: jsb...@chromium.org
+CC a couple of folks as there don't seem to be component owners.

Comment 2 by mfo...@chromium.org, Mar 23 2017

Status: Assigned (was: Untriaged)

Comment 3 by jsb...@chromium.org, Mar 23 2017

Status: WontFix (was: Assigned)
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.

Comment 4 by mfo...@chromium.org, Mar 23 2017

Thanks.

Sign in to add a comment