зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 7811ebf7e321 (bug 1114882) for Android S4 orange on a CLOSED TREE
This commit is contained in:
Родитель
d374da2039
Коммит
2731390e4d
|
@ -157,7 +157,6 @@ bool EnsureNSSInitialized(EnsureNSSOperator op)
|
||||||
// call do_GetService for nss component to ensure it.
|
// call do_GetService for nss component to ensure it.
|
||||||
case nssEnsure:
|
case nssEnsure:
|
||||||
case nssEnsureOnChromeOnly:
|
case nssEnsureOnChromeOnly:
|
||||||
case nssEnsureChromeOrContent:
|
|
||||||
// We are reentered during nss component creation or nss component is already up
|
// We are reentered during nss component creation or nss component is already up
|
||||||
if (PR_AtomicAdd(&haveLoaded, 0) || loading)
|
if (PR_AtomicAdd(&haveLoaded, 0) || loading)
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -55,8 +55,7 @@ enum EnsureNSSOperator
|
||||||
nssInitFailed = 2,
|
nssInitFailed = 2,
|
||||||
nssShutdown = 3,
|
nssShutdown = 3,
|
||||||
nssEnsure = 100,
|
nssEnsure = 100,
|
||||||
nssEnsureOnChromeOnly = 101,
|
nssEnsureOnChromeOnly = 101
|
||||||
nssEnsureChromeOrContent = 102,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern bool EnsureNSSInitializedChromeOrContent();
|
extern bool EnsureNSSInitializedChromeOrContent();
|
||||||
|
|
|
@ -93,14 +93,8 @@ _InstanceClassChrome##Constructor(nsISupports *aOuter, REFNSIID aIID, \
|
||||||
return rv; \
|
return rv; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
if (!NS_IS_PROCESS_DEFAULT && \
|
if (!EnsureNSSInitialized(ensureOperator)) \
|
||||||
ensureOperator == nssEnsureChromeOrContent) { \
|
|
||||||
if (!EnsureNSSInitializedChromeOrContent()) { \
|
|
||||||
return NS_ERROR_FAILURE; \
|
|
||||||
} \
|
|
||||||
} else if (!EnsureNSSInitialized(ensureOperator)) { \
|
|
||||||
return NS_ERROR_FAILURE; \
|
return NS_ERROR_FAILURE; \
|
||||||
} \
|
|
||||||
\
|
\
|
||||||
if (NS_IS_PROCESS_DEFAULT) \
|
if (NS_IS_PROCESS_DEFAULT) \
|
||||||
NS_NSS_INSTANTIATE(ensureOperator, _InstanceClassChrome); \
|
NS_NSS_INSTANTIATE(ensureOperator, _InstanceClassChrome); \
|
||||||
|
@ -199,7 +193,7 @@ NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsCertTree)
|
||||||
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsPkcs11)
|
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsPkcs11)
|
||||||
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsCertPicker)
|
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsCertPicker)
|
||||||
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nssEnsure, nsNTLMAuthModule, InitTest)
|
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nssEnsure, nsNTLMAuthModule, InitTest)
|
||||||
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsureChromeOrContent, nsCryptoHash)
|
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsCryptoHash)
|
||||||
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsCryptoHMAC)
|
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsCryptoHMAC)
|
||||||
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsStreamCipher)
|
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsStreamCipher)
|
||||||
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsKeyObject)
|
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(nssEnsure, nsKeyObject)
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
function run_test() {
|
|
||||||
run_test_in_child("test_hash_algorithms.js");
|
|
||||||
}
|
|
|
@ -22,9 +22,6 @@ support-files =
|
||||||
|
|
||||||
[test_datasignatureverifier.js]
|
[test_datasignatureverifier.js]
|
||||||
[test_hash_algorithms.js]
|
[test_hash_algorithms.js]
|
||||||
[test_hash_algorithms_wrap.js]
|
|
||||||
# bug 1124289 - run_test_in_child violates the sandbox on b2g
|
|
||||||
skip-if = toolkit == 'gonk'
|
|
||||||
[test_hmac.js]
|
[test_hmac.js]
|
||||||
|
|
||||||
[test_sts_preloadlist_perwindowpb.js]
|
[test_sts_preloadlist_perwindowpb.js]
|
||||||
|
|
Загрузка…
Ссылка в новой задаче