Bug 586116 - Crash in nsHTMLDNSPrefetch::Prefetch gNeckoChild == 0x0. r=jduell.mcbugs a=blocking-fennec2.0a1+
authorOleg Romashin <romaxa@gmail.com>
Tue, 10 Aug 2010 17:20:17 -0700
changeset 49364 c0a3851b14937e87307bc0c1c0fe6f416e7e0522
parent 49363 d0d46d0fc5d9d04e09c7cbf69d875e52e59e4727
child 49365 fe54d69820f8e9e3b802677ec9ee4d7d4027c7cc
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjduell.mcbugs, blocking-fennec2.0a1
bugs586116
milestone2.0b4pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 586116 - Crash in nsHTMLDNSPrefetch::Prefetch gNeckoChild == 0x0. r=jduell.mcbugs a=blocking-fennec2.0a1+
content/html/content/src/nsHTMLDNSPrefetch.cpp
--- a/content/html/content/src/nsHTMLDNSPrefetch.cpp
+++ b/content/html/content/src/nsHTMLDNSPrefetch.cpp
@@ -101,16 +101,21 @@ nsHTMLDNSPrefetch::Initialize()
   sDisablePrefetchHTTPSPref = 
     nsContentUtils::GetBoolPref("network.dns.disablePrefetchFromHTTPS", PR_TRUE);
   
   NS_IF_RELEASE(sDNSService);
   nsresult rv;
   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;
 }
 
 nsresult
 nsHTMLDNSPrefetch::Shutdown()
 {
   if (!sInitialized) {