[Webkit-unassigned] [Bug 213116] [IndexedDB] IDBTransaction.abort() fails to delete database on first connection open

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 15 13:03:20 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=213116

--- Comment #3 from charob at amazon.com ---
Yea there is an unexpected behavior on the next open call. 

This use case is if I call abort inside the onupgradeneeded callback for the very first time before creating a Datastore. 

I have separate calls to indexedDB.open, and the logic to create the Datastore happens after the initial open call where I abort inside the onupgradeneeded since that class is not responsible for the datastore creation. 

The expected behavior is that when calling abort inside onupgradeneeded during the very first call to open, the database should not be created, as observed in Chrome and Firefox. 

The problem with leaving the DB created is that on the next indexedDB.open call, onupgradeneeded is never called since the database was already created. 

There is no API to detect if an indexedDB database exists so I can't write a test for this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200615/785c3c45/attachment-0001.htm>


More information about the webkit-unassigned mailing list