Bug 1708488 - Initialize NSS earlier in preallocated processes for fisson r=jesup,keeler

Differential Revision: https://phabricator.services.mozilla.com/D114907
This commit is contained in:
Sean Feng 2021-05-12 03:13:11 +00:00
Родитель cd7cdb6548
Коммит f575b80072
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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.