From 74d4affc802b10adf70264cd7f98ba22d6a2d1ca Mon Sep 17 00:00:00 2001 From: "jst@mozilla.org" Date: Mon, 3 Mar 2008 17:44:16 -0800 Subject: [PATCH] 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 --- dom/src/base/nsJSEnvironment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/src/base/nsJSEnvironment.cpp b/dom/src/base/nsJSEnvironment.cpp index e250c022e04..3b96305db97 100644 --- a/dom/src/base/nsJSEnvironment.cpp +++ b/dom/src/base/nsJSEnvironment.cpp @@ -3316,7 +3316,7 @@ nsJSContext::SetGCOnDestruction(PRBool aGCOnDestruction) NS_IMETHODIMP nsJSContext::ScriptExecuted() { - ScriptEvaluated(PR_FALSE); + ScriptEvaluated(!::JS_IsRunning(mContext)); return NS_OK; }