Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB Open fails on Firefox >= 43.x and Dexie.org lib #240

Closed
ilDon opened this issue Mar 31, 2016 · 3 comments
Closed

DB Open fails on Firefox >= 43.x and Dexie.org lib #240

ilDon opened this issue Mar 31, 2016 · 3 comments

Comments

@ilDon
Copy link

ilDon commented Mar 31, 2016

I use DexieJS (dexie.org) to handle all Indexeddb activities (db open / queries / etc.) and I've noticed that there might be a bug when using IndexedDBDShim.

On Chorme, Safari, and Opera, everything works as expected on WebSQL, but then on Firefox I get the following error:

Error: Database not open. Following error in populate, ready or upgrade function made Dexie.open() fail: TypeError: window.openDatabase is not a function

As of now, I have solved it wrapping thew whole code of IndexedDBShim inside a condition:

if(navigator.userAgent.indexOf('irefox') < 0){
    // IndexedDBShim library
}

However this doesn't seem as the best solution ever. I believe that there must be some issue in the way the polyfill is triggered.

@brettz9
Copy link
Collaborator

brettz9 commented Jun 17, 2016

A number of changes are present now in master. I'm not sure how they will affect your issue, but if you wouldn't mind trying it and reporting back, it'd be appreciated.

@ilDon
Copy link
Author

ilDon commented Jul 4, 2016

Sorry for the late reply, I ended up not using IndexedDBShim with firefox, but I'll do some testing asap to give you a feedback on this :-)

@brettz9 brettz9 assigned brettz9 and ilDon and unassigned brettz9 Jan 20, 2017
@brettz9 brettz9 added this to the 3.0.0 milestone Jan 20, 2017
@brettz9 brettz9 added this to Chrome/Firefox in Browser bugs Feb 16, 2017
@brettz9
Copy link
Collaborator

brettz9 commented May 4, 2017

We have a new release candidate (currently no. 3) available for testing. Dexie also now gives new advice on use with our shim. This should be fixed, so closing, but feel free to reopen if you encounter issues.

@brettz9 brettz9 closed this as completed May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Browser bugs
Chrome/Firefox
Development

No branches or pull requests

2 participants