зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1607194 - P2: Make SSLTokensCache available on socket process r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D58775 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ce95c08868
Коммит
e9191c0491
|
@ -5,6 +5,7 @@
|
|||
#include "SSLTokensCache.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/Logging.h"
|
||||
#include "nsIOService.h"
|
||||
#include "nsNSSIOLayer.h"
|
||||
#include "TransportSecurityInfo.h"
|
||||
#include "ssl.h"
|
||||
|
@ -66,7 +67,11 @@ NS_IMPL_ISUPPORTS(SSLTokensCache, nsIMemoryReporter)
|
|||
nsresult SSLTokensCache::Init() {
|
||||
StaticMutexAutoLock lock(sLock);
|
||||
|
||||
if (XRE_GetProcessType() != GeckoProcessType_Default) {
|
||||
if (gIOService->UseSocketProcess()) {
|
||||
if (!XRE_IsSocketProcess()) {
|
||||
return NS_OK;
|
||||
}
|
||||
} else if (!XRE_IsParentProcess()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -221,6 +221,7 @@ static const char* gCallbackPrefs[] = {
|
|||
static const char* gCallbackPrefsForSocketProcess[] = {
|
||||
WEBRTC_PREF_PREFIX,
|
||||
NETWORK_DNS_PREF,
|
||||
"network.ssl_tokens_cache_enabled",
|
||||
nullptr,
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче