checking this in for dbragg for bug 78442 - Crash for scenario test case using execute (blk param not required). r=ssu,sr=mscott

git-svn-id: svn://10.0.0.236/trunk@99273 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ssu%netscape.com
2001-07-14 03:23:36 +00:00
parent f16efdc82a
commit 1af38d2f97

View File

@@ -521,10 +521,12 @@ InstallFileOpFileExecute(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
folder = (nsInstallFolder*)JS_GetPrivate(cx, jsObj);
if(NS_OK != nativeThis->FileOpFileExecute(*folder, b1, blocking, &nativeRet))
{
jsrefcount saveDepth;
saveDepth = JS_SuspendRequest(cx);//Need to suspend use of thread or deadlock occurs
nsresult rv = nativeThis->FileOpFileExecute(*folder, b1, blocking, &nativeRet);
JS_ResumeRequest(cx, saveDepth);
if(NS_FAILED(rv))
return JS_TRUE;
}
*rval = INT_TO_JSVAL(nativeRet);