Hans, David,
I am facing a bug with IndexedDB but I have a hard time writing a script that reproduces it.
Basically, it happens when I refresh the page while there is still a cursor reading values from a store. When doing this, IndexedDB seems to be "lost" in a state that blocks it all.
When trying to reload the page, the cursor shows this in the console :
IDBRequest
errorCode: [Exception: IDBDatabaseException]
onerror: null
onsuccess: function (e) {
readyState: 1
result: [Exception: IDBDatabaseException]
source: IDBIndex
transaction: IDBTransaction
webkitErrorMessage: [Exception: IDBDatabaseException]
__proto__: IDBRequest
Also, note that when the app is blocked, no other IndexedDB database can be accessed from any "window/host", so I think this is pretty serious, as it means a buggy implementation can block other services's implementations :(
Restarting Chrome (or reloading the extension) just fixes the issue.
I have tried to write a script that does just that, but I can't seem to recreate the issue in it.
then, in Google Chrome (any version), go to chrome://extensions/, click on "Developer Mode", then "Load Unpacked Extension" and select the director where you cloned the extension. Now, you will see screen that shows you boxes. The content of these boxes is loaded from IndexedDB. If you reload the window quickly, you will see that that stop loading : this is the issue I am describing. Feel free to checkout the file lib/backbone-indexeddb/backbone-indexeddb.js (line 234 is where the cursor is displayed).
I would really really appreciate some help. I know this is quite limited a s bug report, but I am stuck with it :(
Thanks
--
"Stay hungry, stay foolish"