Skip to content

Commit

Permalink
Bug 1178233 - [non-e10s] The update process doesn't work within about…
Browse files Browse the repository at this point in the history
…:serviceworkers in non-e10s mode. r=baku
  • Loading branch information
jaoo committed Jul 9, 2015
1 parent 2943032 commit 4351767
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dom/workers/ServiceWorkerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 4351767

Please sign in to comment.