checking in patch for dbragg for bug 78442 - Crash for scenario test case using execute (blk param not required). r=ssu. nsJSFile.cpp
git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_9_2_BRANCH@99240 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user