зеркало из https://github.com/mozilla/gecko-dev.git
bug #54239 (r=dougt). PSM can be initialized on the wrong thread...
This commit is contained in:
Родитель
5f0d4a7e7a
Коммит
355a21abce
|
@ -24,12 +24,24 @@
|
|||
#include "nsHTTPSHandler.h"
|
||||
#include "nsISocketTransportService.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsIPSMComponent.h"
|
||||
|
||||
static NS_DEFINE_CID(kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID);
|
||||
|
||||
nsHTTPSHandler::nsHTTPSHandler()
|
||||
: nsHTTPHandler()
|
||||
{
|
||||
nsresult rv;
|
||||
nsISupports *psm = nsnull;
|
||||
//
|
||||
// Initialize the PSM component.
|
||||
// This is to ensure that PSM is initialized on the main UI thread.
|
||||
//
|
||||
rv = nsServiceManager::GetService( PSM_COMPONENT_CONTRACTID,
|
||||
NS_GET_IID(nsIPSMComponent),
|
||||
(nsISupports**)&psm);
|
||||
|
||||
NS_IF_RELEASE(psm);
|
||||
}
|
||||
|
||||
nsHTTPSHandler::~nsHTTPSHandler()
|
||||
|
|
Загрузка…
Ссылка в новой задаче