I've been dealing with scripts being unable to create/open database with unknown error in firefox, namely smartsearch and mooglemail in hvutils, and I just found the cause. Maybe it's gonna be useful for someone else.
QUOTE
I've been dealing with this issue for a couple days now. In our case, we've found the issue is with users using Firefox ESR, it seems somehow when profiles get mangled from upgrades it makes indexedDB not work correctly. The fix we found is to use this command to create a new profile:
$ /Applications/Firefox.app/Contents/MacOS/firefox-bin -P
on Windows its Run > firefox.exe -p
For more info on that profile command see the docs: [
support.mozilla.org]
https://support.mozilla.org/en-US/kb/profil...irefox-profilesOur current solution to not just have the app blow up is to do a feature check which is basically like this:
var DBOpenRequest = window.indexedDB.open('someDb');
DBOpenRequest.onerror = function(event) {
window.location.href = '/unsupported_browser.html';
};
We're also asking users to fix their profiles as well to enable usage of our app (which relies on indexedDB to work).
Now I still need to find how to fix my profile, I think it went haywire when I installed dev version because I remember it breaking some script instantly.
This post has been edited by Nayas: Dec 24 2017, 21:08