summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Giesecke <sgiesecke@mozilla.com>2019-10-23 12:19:15 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-10-23 12:19:15 +0200
commit7aaec46911d28e91c05a218628eaae0a54eb51ec (patch)
tree547aff512665b23a3d99828340eaacc679043d59
parent2e22601d0059fddea55339363416290f4365afdd (diff)
downloadUXP-7aaec46911d28e91c05a218628eaae0a54eb51ec.tar
UXP-7aaec46911d28e91c05a218628eaae0a54eb51ec.tar.gz
UXP-7aaec46911d28e91c05a218628eaae0a54eb51ec.tar.lz
UXP-7aaec46911d28e91c05a218628eaae0a54eb51ec.tar.xz
UXP-7aaec46911d28e91c05a218628eaae0a54eb51ec.zip
Ensure that file actors created after the database was closed are expired.
-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();