зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1178233 - [non-e10s] The update process doesn't work within about:serviceworkers in non-e10s mode. r=baku
This commit is contained in:
Родитель
29430328c7
Коммит
4351767879
|
@ -4710,6 +4710,12 @@ ServiceWorkerManager::PropagateSoftUpdate(const OriginAttributes& aOriginAttribu
|
|||
return;
|
||||
}
|
||||
|
||||
if (XRE_IsParentProcess()) {
|
||||
// When e10s mode is off we just do the update. This is a quick fix to make
|
||||
// updates via about:sw page work when e10s mode is off.
|
||||
SoftUpdate(aOriginAttributes, NS_ConvertUTF16toUTF8(aScope));
|
||||
return;
|
||||
}
|
||||
mActor->SendPropagateSoftUpdate(aOriginAttributes, nsString(aScope));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче