[Webkit-unassigned] [Bug 213116] New: [IndexedDB] IDBTransaction.abort() fails to delete database on first connection open
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 12 02:06:14 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=213116
Bug ID: 213116
Summary: [IndexedDB] IDBTransaction.abort() fails to delete
database on first connection open
Product: WebKit
Version: Safari 13
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: charob at amazon.com
There is a use case where if I call abort from within IDBOpenDBRequest's upgradeneeded event, the abort operation does not rollback all changes and fails to delete the database.
An example to reproduce the issue:
```
const dBOpenRequest = window.indexedDB.open('myDatabase', 1);
dBOpenRequest.onupgradeneeded = event => {
const db = event.target.result;
console.log(`Upgrading to version ${db.version}`);
dBOpenRequest.transaction.abort();
};
```
After running this code there should be no database created since abort was called.
The behavior on Safari is not consistent with Chrome and Firefox.
Reference: https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/abort
--
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/20200612/1e553041/attachment-0001.htm>
More information about the webkit-unassigned
mailing list