An InvalidStateError appears in the browser console, unfortunately with no source filename or line number (only the word <unknown> for source). I tracked this error down to our setting the pref "dom.indexedDB.enabled" to false in 000-tor-browser.js. I haven't yet found where the error is being produced, but I presume it is a .jsm or .js file somewhere in the Firefox codebase, attempting to use an indexedDB.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
With this patch, an InvalidState error is no longer logged during browser startup. We still see one when we open the developer tools (Inspect Element). I don't know how difficult it would be to patch the underlying devtools/shared/async-storage.js code to avoid using IndexedDB when it has been disabled.
With this patch, an InvalidState error is no longer logged during browser startup. We still see one when we open the developer tools (Inspect Element). I don't know how difficult it would be to patch the underlying devtools/shared/async-storage.js code to avoid using IndexedDB when it has been disabled.
Thanks for the review. That's a good suggestion. I wrote an in-memory implementation that is supposed to match the indexeedDB-based version:
This seems to correctly the browser console input history during a browser session. It also appears to eliminate the InvalidStateErrors both as a result of browser startup, entering things in the browser console, or using Inspect Element.
This seems to correctly the browser console input history during a browser session. It also appears to eliminate the InvalidStateErrors both as a result of browser startup, entering things in the browser console, or using Inspect Element.
Also, I ran the test
./mach mochitest devtools/shared/tests/browser/browser_async_storage.js
with "dom.indexedDB.enabled" set to false, and all the tests pass.
r=brade, r=mcs
Kathy and I think your code is fine and this solution is good as well. It does mean that some developer tools state will not be persistent, but at least this way it is stored while the devtools are open (and we avoid strange errors on the console).
r=brade, r=mcs
Kathy and I think your code is fine and this solution is good as well. It does mean that some developer tools state will not be persistent, but at least this way it is stored while the devtools are open (and we avoid strange errors on the console).
Do we really need this non-clearable by NEWNYM database?
Does this patch pass https://people-mozilla.org/~spenades/test_cases/async_storage/ correctly?
Mozilla closed it as a duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=781982