Bug 1032125: Part 2: Prevent DOM Storage from sending IPC after Nuwa ready. r=khuey

This commit is contained in:
Patrick Wang (Chih-Kai Wang) 2014-09-30 22:13:25 +08:00
parent a6fea7c09c
commit 6f5608b972

View File

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