jakearchibald / idb

IndexedDB, but with promises
https://www.npmjs.com/package/idb
ISC License
6.22k stars 348 forks source link

upgrade() not getting called in Edge Browser when database doesn't exist. #239

Closed hdusten closed 2 years ago

hdusten commented 2 years ago

I'm using this library in conjunction with a Chromium Extension I've developed. I appears that functionality works nearly flawlessly across all Chromium based browsers. Except for MS Edge.

No matter what I try the upgrade method does not get called from idb.openDB() method. Which means that no matter what I cannot get my object stores created to continue on with business code.

I haven't yet tried to roll back to any base indexedDB implementation but I wanted to bring it up here. I've got my bet on some random little thing MS just had to do with their version of Chromium that is causing an issue.

jakearchibald commented 2 years ago

Seems to be working in Edge 93.

  1. Visit https://static-misc-3.glitch.me/idb-upgrade-test/1.html to set up v1 of the database.
  2. Visit https://static-misc-3.glitch.me/idb-upgrade-test/2.html to upgrade it to v2.

Happy to reopen this and look at the issue further if you can create a reduced reproduction of the issue, eg simple like the demo above, but shows the issue you're seeing.