summaryrefslogtreecommitdiffstats
path: root/dom/indexedDB/IDBDatabase.cpp
diff options
context:
space:
mode:
authorSimon Giesecke <sgiesecke@mozilla.com>2019-10-23 12:19:15 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-10-23 13:25:21 +0200
commita5611d825dfb253230af232b4ff2fe0783257dc2 (patch)
tree9f6718c7b27729017d1b3f4298b0f0874ca0263c /dom/indexedDB/IDBDatabase.cpp
parent51b068dc653051baf3cf22feddd832f9f95ce12a (diff)
downloadUXP-a5611d825dfb253230af232b4ff2fe0783257dc2.tar
UXP-a5611d825dfb253230af232b4ff2fe0783257dc2.tar.gz
UXP-a5611d825dfb253230af232b4ff2fe0783257dc2.tar.lz
UXP-a5611d825dfb253230af232b4ff2fe0783257dc2.tar.xz
UXP-a5611d825dfb253230af232b4ff2fe0783257dc2.zip
Ensure that file actors created after the database was closed are expired.
Diffstat (limited to 'dom/indexedDB/IDBDatabase.cpp')
-rw-r--r--dom/indexedDB/IDBDatabase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/indexedDB/IDBDatabase.cpp b/dom/indexedDB/IDBDatabase.cpp
index 5592e7f93..6ef352801 100644
--- a/dom/indexedDB/IDBDatabase.cpp
+++ b/dom/indexedDB/IDBDatabase.cpp
@@ -1257,6 +1257,9 @@ IDBDatabase::LastRelease()
AssertIsOnOwningThread();
CloseInternal();
+
+ // Make sure that file actors created after the database was closed are expired.
+ ExpireFileActors(/* aExpireAll */ true);
if (mBackgroundActor) {
mBackgroundActor->SendDeleteMeInternal();