зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1301407 - Ensure nss initialized during nsHttpHandler initialization. r=mcmanus, r=keeler
This commit is contained in:
Родитель
a3e4e0546b
Коммит
30904871cc
|
@ -304,7 +304,8 @@ FINAL_LIBRARY = 'xul'
|
||||||
LOCAL_INCLUDES += [
|
LOCAL_INCLUDES += [
|
||||||
'/docshell/base',
|
'/docshell/base',
|
||||||
'/dom/base',
|
'/dom/base',
|
||||||
'/netwerk/protocol/http'
|
'/netwerk/protocol/http',
|
||||||
|
'/security/pkix/include'
|
||||||
]
|
]
|
||||||
|
|
||||||
if 'rtsp' in CONFIG['NECKO_PROTOCOLS']:
|
if 'rtsp' in CONFIG['NECKO_PROTOCOLS']:
|
||||||
|
|
|
@ -69,6 +69,7 @@
|
||||||
#include "nsIScriptError.h"
|
#include "nsIScriptError.h"
|
||||||
#include "nsISiteSecurityService.h"
|
#include "nsISiteSecurityService.h"
|
||||||
#include "nsHttpHandler.h"
|
#include "nsHttpHandler.h"
|
||||||
|
#include "nsNSSComponent.h"
|
||||||
|
|
||||||
#ifdef MOZ_WIDGET_GONK
|
#ifdef MOZ_WIDGET_GONK
|
||||||
#include "nsINetworkManager.h"
|
#include "nsINetworkManager.h"
|
||||||
|
@ -2125,12 +2126,9 @@ NS_GetFilenameFromDisposition(nsAString &aFilename,
|
||||||
|
|
||||||
void net_EnsurePSMInit()
|
void net_EnsurePSMInit()
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsISocketProviderService> spserv =
|
nsresult rv;
|
||||||
do_GetService(NS_SOCKETPROVIDERSERVICE_CONTRACTID);
|
nsCOMPtr<nsISupports> psm = do_GetService(PSM_COMPONENT_CONTRACTID, &rv);
|
||||||
if (spserv) {
|
MOZ_RELEASE_ASSERT(NS_SUCCEEDED(rv));
|
||||||
nsCOMPtr<nsISocketProvider> provider;
|
|
||||||
spserv->GetSocketProvider("ssl", getter_AddRefs(provider));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NS_IsAboutBlank(nsIURI *uri)
|
bool NS_IsAboutBlank(nsIURI *uri)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче