зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1230164 P2 Only activate service workers in the activating state. r=ehsan
This commit is contained in:
Родитель
24e4271227
Коммит
47a437e6d5
|
@ -2652,7 +2652,8 @@ ServiceWorkerManager::HandleError(JSContext* aCx,
|
|||
void
|
||||
ServiceWorkerRegistrationInfo::FinishActivate(bool aSuccess)
|
||||
{
|
||||
if (mPendingUninstall || !mActiveWorker) {
|
||||
if (mPendingUninstall || !mActiveWorker ||
|
||||
mActiveWorker->State() != ServiceWorkerState::Activating) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче