Bug 1178233 - [non-e10s] The update process doesn't work within about:serviceworkers in non-e10s mode. r=baku

This commit is contained in:
Jose Antonio Olivera Ortega 2015-07-09 09:25:55 +02:00
Родитель 29430328c7
Коммит 4351767879
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -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));
}