jakearchibald / idb

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

'Unhandled Promise Rejection' thrown by idb.open (again) #245

Closed shadow-light closed 2 years ago

shadow-light commented 2 years ago

Re #59 I think this is an issue again due to refactoring since the problem was initially fixed.

I get IDBFactory.open() called in an invalid security context error reports from Safari clients even though openDB has a catch() attached. So despite handling the error, the unhandledrejection event occurs.

Version: 6.1.3

jakearchibald commented 2 years ago

Any idea how to reproduce this?

shadow-light commented 2 years ago

Using idb in an iframe in Safari and attaching a catch to the open call should trigger this I believe

jakearchibald commented 2 years ago

Could you create a demo of the issue?

jakearchibald commented 2 years ago

Closing this since no reproducible demo given. Happy to reopen if an example is given.