diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp index e43b432a6453..9579a76ffbe3 100644 --- a/dom/indexedDB/ActorsParent.cpp +++ b/dom/indexedDB/ActorsParent.cpp @@ -15085,6 +15085,10 @@ void FactoryOp::DirectoryLockAcquired(DirectoryLock* aLock) { MOZ_ALWAYS_SUCCEEDS(self->Run()); }; + if (mDirectoryLock->Invalidated()) { + return cleanupAndReturn(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); + } + QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryOpen()), cleanupAndReturn); } diff --git a/dom/indexedDB/test/unit/xpcshell-parent-process.toml b/dom/indexedDB/test/unit/xpcshell-parent-process.toml index f6ecc729ab67..0061e1774340 100644 --- a/dom/indexedDB/test/unit/xpcshell-parent-process.toml +++ b/dom/indexedDB/test/unit/xpcshell-parent-process.toml @@ -94,7 +94,6 @@ skip-if = ["true"] ["test_schema23upgrade.js"] ["test_slowStorageInitialization.js"] -skip-if = ["true"] ["test_snappyUpgrade.js"]