Skip to content

Commit

Permalink
Bug 1032125: Part 2: Prevent DOM Storage from sending IPC after Nuwa …
Browse files Browse the repository at this point in the history
…ready. r=khuey
  • Loading branch information
Patrick Wang (Chih-Kai Wang) committed Sep 30, 2014
1 parent 5303057 commit bb47432
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dom/storage/DOMStorageIPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,15 @@ DOMStorageDBParent::Observe(const char* aTopic,
const nsACString& aScopePrefix)
{
if (mIPCOpen) {
mozilla::unused << SendObserve(nsDependentCString(aTopic),
nsCString(aScopePrefix));
#ifdef MOZ_NUWA_PROCESS
if (!(static_cast<ContentParent*>(Manager())->IsNuwaProcess() &&
ContentParent::IsNuwaReady())) {
#endif
mozilla::unused << SendObserve(nsDependentCString(aTopic),
nsCString(aScopePrefix));
#ifdef MOZ_NUWA_PROCESS
}
#endif
}

return NS_OK;
Expand Down

0 comments on commit bb47432

Please sign in to comment.