From f575b800727d326e2d776cb9197b49856123faf6 Mon Sep 17 00:00:00 2001 From: Sean Feng Date: Wed, 12 May 2021 03:13:11 +0000 Subject: [PATCH] Bug 1708488 - Initialize NSS earlier in preallocated processes for fisson r=jesup,keeler Differential Revision: https://phabricator.services.mozilla.com/D114907 --- dom/ipc/ContentChild.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index 5e659c8c5aec..fb9d6862219f 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -9,6 +9,7 @@ #endif #include "BrowserChild.h" +#include "nsNSSComponent.h" #include "ContentChild.h" #include "GeckoProfiler.h" #include "HandlerServiceChild.h" @@ -2588,7 +2589,7 @@ mozilla::ipc::IPCResult ContentChild::RecvRemoteType( } // A method to initialize anything we need during the preallocation phase -void ContentChild::PreallocInit() {} +void ContentChild::PreallocInit() { EnsureNSSInitializedChromeOrContent(); } // Call RemoteTypePrefix() on the result to remove URIs if you want to use this // for telemetry.