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-18 10:29:45 +08:00
parent 7eebb623c6
commit 9fa0ad74c2

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;