Comment #19 on issue 242115 by
williams...@gmail.com: Hanging indexedDB
Ok I might have something for you here. Basically, I have a main page and
a worker. In the worker, I start a long running transaction which inserts
a few thousand items into the database. In the middle of that tx, I reload
the page, and then I start getting all these pending-upgrades and opens and
delete requests according to chrome://indexeddb-internals which never clear
until you kill the tab.
This honestly might have nothing to do with the worker....I don't have time
to further isolate it. It does seem to have something to do with the
upgrade though, since there is a pending upgrade event in
indexeddb-internals.
Repro Steps:
1) Make sure you start Chrome using the --allow-file-access-from-files
flag so you can launch a local worker.
2) Download both attached files.
3) Open main-test.html in your browser.
4) Look at your console. You'll see a bunch of worker1- inserting item
messages.
5) Refresh the page in the middle of this; there's no rush, I insert a ton
of them.
6) After the refresh, my console never gets past Starting and Starting
reset delete.
7) Open chrome://indexeddb-internals/ and you'll see the pending items
increasing on each refresh.
8) Nothing clears out until I kill the tab, not just refreshing.
Attachments:
main-test.html 2.6 KB
worker.js 1.2 KB