зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1188545 - ServiceWorkerRegistrationInfo::Clear() should terminated workers. r=nsm
This commit is contained in:
Родитель
c537f8c503
Коммит
47e2f6ee5c
|
@ -328,8 +328,8 @@ void
|
|||
ServiceWorkerRegistrationInfo::Clear()
|
||||
{
|
||||
if (mInstallingWorker) {
|
||||
// FIXME(nsm): Terminate installing worker.
|
||||
mInstallingWorker->UpdateState(ServiceWorkerState::Redundant);
|
||||
mInstallingWorker->WorkerPrivate()->NoteDeadServiceWorkerInfo();
|
||||
mInstallingWorker = nullptr;
|
||||
// FIXME(nsm): Abort any inflight requests from installing worker.
|
||||
}
|
||||
|
@ -343,6 +343,7 @@ ServiceWorkerRegistrationInfo::Clear()
|
|||
NS_WARNING("Failed to purge the waiting cache.");
|
||||
}
|
||||
|
||||
mWaitingWorker->WorkerPrivate()->NoteDeadServiceWorkerInfo();
|
||||
mWaitingWorker = nullptr;
|
||||
}
|
||||
|
||||
|
@ -355,6 +356,7 @@ ServiceWorkerRegistrationInfo::Clear()
|
|||
NS_WARNING("Failed to purge the active cache.");
|
||||
}
|
||||
|
||||
mActiveWorker->WorkerPrivate()->NoteDeadServiceWorkerInfo();
|
||||
mActiveWorker = nullptr;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче