mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 14:44:26 +00:00
Don't bother checking if NSS is in a child process unless MOZ_IPC is defined. r+a+=bz
Followup to Bug 559711. e10s HTTP: turn off NSS in child process(es)
This commit is contained in:
parent
896637e0e2
commit
f3e725de22
@ -120,7 +120,9 @@
|
||||
#include "secerr.h"
|
||||
#include "sslerr.h"
|
||||
|
||||
#ifdef MOZ_IPC
|
||||
#include "nsXULAppAPI.h"
|
||||
#endif
|
||||
|
||||
#ifdef XP_WIN
|
||||
#include "nsILocalFileWin.h"
|
||||
@ -285,10 +287,12 @@ nsTokenEventRunnable::Run()
|
||||
// creating any other components.
|
||||
PRBool EnsureNSSInitialized(EnsureNSSOperator op)
|
||||
{
|
||||
#ifdef MOZ_IPC
|
||||
if (GeckoProcessType_Default != XRE_GetProcessType()) {
|
||||
NS_ERROR("Trying to initialize PSM/NSS in a non-chrome process!");
|
||||
return PR_FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
static PRBool loading = PR_FALSE;
|
||||
static PRInt32 haveLoaded = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user