diff --git a/netwerk/base/nsNetUtil.cpp b/netwerk/base/nsNetUtil.cpp index 4cfdca55b310..aa2e9b6eaf0f 100644 --- a/netwerk/base/nsNetUtil.cpp +++ b/netwerk/base/nsNetUtil.cpp @@ -75,8 +75,6 @@ #include "nsHttpHandler.h" #include "nsNSSComponent.h" #include "nsIRedirectHistoryEntry.h" -#include "nsICertBlocklist.h" -#include "nsICertOverrideService.h" #include @@ -2661,12 +2659,6 @@ void net_EnsurePSMInit() nsresult rv; nsCOMPtr psm = do_GetService(PSM_COMPONENT_CONTRACTID, &rv); MOZ_ASSERT(NS_SUCCEEDED(rv)); - nsCOMPtr sss = do_GetService(NS_SSSERVICE_CONTRACTID, &rv); - MOZ_ASSERT(NS_SUCCEEDED(rv)); - nsCOMPtr cbl = do_GetService(NS_CERTBLOCKLIST_CONTRACTID, &rv); - MOZ_ASSERT(NS_SUCCEEDED(rv)); - nsCOMPtr cos = do_GetService(NS_CERTOVERRIDE_CONTRACTID, &rv); - MOZ_ASSERT(NS_SUCCEEDED(rv)); } bool NS_IsAboutBlank(nsIURI *uri) diff --git a/security/manager/ssl/nsNSSModule.cpp b/security/manager/ssl/nsNSSModule.cpp index d5f7e3b5fd20..ab34f8b1398d 100644 --- a/security/manager/ssl/nsNSSModule.cpp +++ b/security/manager/ssl/nsNSSModule.cpp @@ -162,10 +162,6 @@ NS_DEFINE_NAMED_CID(NS_SECURE_BROWSER_UI_CID); NS_DEFINE_NAMED_CID(NS_SITE_SECURITY_SERVICE_CID); NS_DEFINE_NAMED_CID(NS_CERT_BLOCKLIST_CID); -// Components that require main thread initialization could cause a deadlock -// in necko code (bug 1418752). To prevent it we initialize all such components -// on main thread in advance in net_EnsurePSMInit(). Update that function when -// new component with ThreadRestriction::MainThreadOnly is added. static const mozilla::Module::CIDEntry kNSSCIDs[] = { { &kNS_NSSCOMPONENT_CID, false, nullptr, nsNSSComponentConstructor }, { &kNS_SSLSOCKETPROVIDER_CID, false, nullptr,