From 241e54ce10990292d74194c6054840e2261fd70b Mon Sep 17 00:00:00 2001 From: Oleg Romashin Date: Tue, 10 Aug 2010 17:20:17 -0700 Subject: [PATCH] Bug 586116 - Crash in nsHTMLDNSPrefetch::Prefetch gNeckoChild == 0x0. r=jduell.mcbugs a=blocking-fennec2.0a1+ --- content/html/content/src/nsHTMLDNSPrefetch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/html/content/src/nsHTMLDNSPrefetch.cpp b/content/html/content/src/nsHTMLDNSPrefetch.cpp index dc7d98eb7c2c..914efe3b6090 100644 --- a/content/html/content/src/nsHTMLDNSPrefetch.cpp +++ b/content/html/content/src/nsHTMLDNSPrefetch.cpp @@ -106,6 +106,11 @@ nsHTMLDNSPrefetch::Initialize() rv = CallGetService(kDNSServiceCID, &sDNSService); if (NS_FAILED(rv)) return rv; +#ifdef MOZ_IPC + if (mozilla::net::IsNeckoChild()) + mozilla::net::NeckoChild::InitNeckoChild(); +#endif + sInitialized = PR_TRUE; return NS_OK; }