Skip to content

Commit

Permalink
Bug 1301407 - Ensure nss initialized during nsHttpHandler initializat…
Browse files Browse the repository at this point in the history
…ion. r=mcmanus, r=keeler
  • Loading branch information
Unknown authored and Unknown committed Oct 25, 2016
1 parent b7da4a3 commit 932a469
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion netwerk/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'/docshell/base',
'/dom/base',
'/netwerk/protocol/http'
'/netwerk/protocol/http',
'/security/pkix/include'
]

if 'rtsp' in CONFIG['NECKO_PROTOCOLS']:
Expand Down
10 changes: 4 additions & 6 deletions netwerk/base/nsNetUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
#include "nsIScriptError.h"
#include "nsISiteSecurityService.h"
#include "nsHttpHandler.h"
#include "nsNSSComponent.h"

#ifdef MOZ_WIDGET_GONK
#include "nsINetworkManager.h"
Expand Down Expand Up @@ -2125,12 +2126,9 @@ NS_GetFilenameFromDisposition(nsAString &aFilename,

void net_EnsurePSMInit()
{
nsCOMPtr<nsISocketProviderService> spserv =
do_GetService(NS_SOCKETPROVIDERSERVICE_CONTRACTID);
if (spserv) {
nsCOMPtr<nsISocketProvider> provider;
spserv->GetSocketProvider("ssl", getter_AddRefs(provider));
}
nsresult rv;
nsCOMPtr<nsISupports> psm = do_GetService(PSM_COMPONENT_CONTRACTID, &rv);
MOZ_RELEASE_ASSERT(NS_SUCCEEDED(rv));
}

bool NS_IsAboutBlank(nsIURI *uri)
Expand Down

0 comments on commit 932a469

Please sign in to comment.