If I go into my browser's console (I'm using Chrome) right now, on this very page, and type
indexedDB.open("MyDB").onsuccess = function(e) { console.log("success"); };
I immediately get a "success" message in my console. I can do this as many times as I like, and it works fine. But then if I type
indexedDB.deleteDatabase("MyDB").onsuccess = function(e) { console.log("success"); };
I get no "success" message back. Not only that, but if I then try and call .open
again, I also get no "success" message back. How can I cure this strange illness caused by .deleteDatabase
, and what exactly is happening?
(PS: Just as I finished typing this answer, I think the "success" message from the call to .deleteDatabase
finally did come through, about two minutes after I made the call - but the question stands).