Bug 586116 - Crash in nsHTMLDNSPrefetch::Prefetch gNeckoChild == 0x0. r=jduell.mcbugs a=blocking-fennec2.0a1+

This commit is contained in:
Oleg Romashin 2010-08-10 17:20:17 -07:00
parent 2abb47c1f1
commit d03e19a821

View File

@ -106,6 +106,11 @@ nsHTMLDNSPrefetch::Initialize()
rv = CallGetService(kDNSServiceCID, &sDNSService); rv = CallGetService(kDNSServiceCID, &sDNSService);
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
#ifdef MOZ_IPC
if (mozilla::net::IsNeckoChild())
mozilla::net::NeckoChild::InitNeckoChild();
#endif
sInitialized = PR_TRUE; sInitialized = PR_TRUE;
return NS_OK; return NS_OK;
} }