If I go to my browser console (I use Chrome) right now, on this very page and type
indexedDB.open("MyDB").onsuccess = function(e) { console.log("success"); };
I immediately get the "success" error message in my console. I can do this as many times as I like, and it works great. But if I type
indexedDB.deleteDatabase("MyDB").onsuccess = function(e) { console.log("success"); };
I do not receive a success message. Not only that, but if I then try to call again .open, I also do not receive a success message. How can I cure this strange disease caused .deleteDatabase, and what exactly is happening?
(PS: As soon as I finished typing this answer, I think that the message about the successful completion of the call .deleteDatabasefinally passed two minutes after I made the call, but the question is).
source
share