Closed Bug 1414262 Opened 7 years ago Closed 7 years ago

InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.

Categories

(Core :: Storage: IndexedDB, defect, P2)

56 Branch
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: bursacdamjan, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36

Steps to reproduce:

1. Go to about:config
2. Disable dom.indexedDB.enabled
3. Refresh or open any web page
4. Open console in developer tool
5. Type window.indexedDB
6. Hit Enter


Actual results:

Display error - InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.


Expected results:

I doesn't expect error occurs. 

Same happens when I try to detect whether indexedDB available in my javascript code.
Component: Untriaged → DOM: IndexedDB
Product: Firefox → Core
Bevis, do you know what's going on here?
Flags: needinfo?(btseng)
Priority: -- → P2
This is intended since bug 1079355:
http://searchfox.org/mozilla-central/rev/7e090b227f7a0ec44d4ded604823d48823158c51/dom/indexedDB/IDBFactory.cpp#108
Disabling "dom.indexedDB.enabled" prevents accessing indexedDB from web content and it's web console.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(btseng)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.