commit 9f87b6497a7d6f27fea6214e1ee47ca153fe9464
parent f2dfa30d5990f9482e837da6357f2f6af7f77ffc
Author: Evan Stade <evanstade@microsoft.com>
Date: Tue, 21 Oct 2025 10:38:22 +0000
Bug 1995034 [wpt PR 55514] - IDB: SQLite store - delete database after aborted creation flow., a=testonly
Automatic update from web-platform-tests
IDB: SQLite store - delete database after aborted creation flow.
If a database is created but the versionchange operation is aborted, the
database should be deleted. This fixes
http/tests/devtools/indexeddb/upgrade-events.js
Bug: 419272072
Change-Id: I74cfa6ee6771f7a5d8d6964d60518ab4dd7d598b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7049924
Reviewed-by: Jonathan Lee <jonathanjlee@google.com>
Reviewed-by: Abhishek Shanthkumar <abhishek.shanthkumar@microsoft.com>
Commit-Queue: Evan Stade <evanstade@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1532424}
--
wpt-commits: af212dd6bf9c3b4932e5fcf5c041978deeabc740
wpt-pr: 55514
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/testing/web-platform/tests/IndexedDB/abort-in-initial-upgradeneeded.any.js b/testing/web-platform/tests/IndexedDB/abort-in-initial-upgradeneeded.any.js
@@ -27,6 +27,11 @@ async_test(t => {
assert_equals(e.target.error.name, 'AbortError');
assert_equals(db.version, 0);
assert_equals(open_rq.transaction, null);
- t.done();
+
+ indexedDB.databases().then(dbs => {
+ // The database should be deleted.
+ assert_equals(dbs.length, 0);
+ t.done();
+ });
};
}, 'An abort() in the initial onupgradeneeded sets version back to 0');