Bug 1558522 - Ensure that file actors created after the database was closed are expired. r=asuth

Differential Revision: https://phabricator.services.mozilla.com/D48046

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Giesecke 2019-10-09 03:21:22 +00:00
Родитель 4d9930a53d
Коммит 7e3b8fe633
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1081,6 +1081,8 @@ void IDBDatabase::LastRelease() {
CloseInternal();
ExpireFileActors(/* aExpireAll */ true);
if (mBackgroundActor) {
mBackgroundActor->SendDeleteMeInternal();
MOZ_ASSERT(!mBackgroundActor, "SendDeleteMeInternal should have cleared!");