зеркало из https://github.com/mozilla/pjs.git
Fixed reentrancy into service manager getting the PSM component. Fixed some warnings too. r=dprice
This commit is contained in:
Родитель
3770d84000
Коммит
af8dd552b0
|
@ -25,7 +25,7 @@
|
||||||
#include "nsCRT.h"
|
#include "nsCRT.h"
|
||||||
#include "prprf.h"
|
#include "prprf.h"
|
||||||
#include "prmem.h"
|
#include "prmem.h"
|
||||||
#include "nsIPSMComponent.h"
|
#include "nsPSMComponent.h"
|
||||||
#include "nsDOMCID.h"
|
#include "nsDOMCID.h"
|
||||||
#include "nsIDOMScriptObjectFactory.h"
|
#include "nsIDOMScriptObjectFactory.h"
|
||||||
#include "nsIDOMWindow.h"
|
#include "nsIDOMWindow.h"
|
||||||
|
@ -160,8 +160,7 @@ getPSMComponent(nsIPSMComponent ** retPSM)
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
nsISupports *psm;
|
nsISupports *psm;
|
||||||
|
|
||||||
rv = nsServiceManager::GetService(nsCrypto::kPSMComponentProgID,
|
rv = nsPSMComponent::CreatePSMComponent(nsnull, NS_GET_IID(nsIPSMComponent), (void**)&psm);
|
||||||
NS_GET_IID(nsIPSMComponent), &psm);
|
|
||||||
if (rv == NS_OK)
|
if (rv == NS_OK)
|
||||||
*retPSM = (nsIPSMComponent *)psm;
|
*retPSM = (nsIPSMComponent *)psm;
|
||||||
|
|
||||||
|
@ -1257,14 +1256,14 @@ nsCryptoRunnable::~nsCryptoRunnable() {
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsCryptoRunnable::Run() {
|
nsCryptoRunnable::Run() {
|
||||||
char msg[512];
|
|
||||||
nsIScriptContext *scriptCx;
|
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
PRBool reportErrors = PR_FALSE;
|
PRBool reportErrors = PR_FALSE;
|
||||||
JSObject *obj;
|
|
||||||
JSStackFrame *fp=nsnull;
|
JSStackFrame *fp=nsnull;
|
||||||
nsCrypto *cryptoObject;
|
nsCrypto *cryptoObject;
|
||||||
#if 0
|
#if 0
|
||||||
|
char msg[512];
|
||||||
|
nsIScriptContext *scriptCx;
|
||||||
|
JSObject *obj;
|
||||||
PR_snprintf(msg, 512, "Javi's test of JS_ReportError from a separate thread.\n");
|
PR_snprintf(msg, 512, "Javi's test of JS_ReportError from a separate thread.\n");
|
||||||
if (mHandlerInfo->cx->fp == nsnull) {
|
if (mHandlerInfo->cx->fp == nsnull) {
|
||||||
rv = nsJSUtils::nsGetDynamicScriptContext(mHandlerInfo->cx, &scriptCx);
|
rv = nsJSUtils::nsGetDynamicScriptContext(mHandlerInfo->cx, &scriptCx);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче