Fixing bug 413200. Make sure script termination functions run when XPConnect is done executing script on a context and there's no other script running on that context. r+sr=mrbkap@gmail.com
This commit is contained in:
Родитель
eafc2adf8f
Коммит
74d4affc80
|
@ -3316,7 +3316,7 @@ nsJSContext::SetGCOnDestruction(PRBool aGCOnDestruction)
|
|||
NS_IMETHODIMP
|
||||
nsJSContext::ScriptExecuted()
|
||||
{
|
||||
ScriptEvaluated(PR_FALSE);
|
||||
ScriptEvaluated(!::JS_IsRunning(mContext));
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче