Checking in fix for bug 243392. Prevent execution of external script that finishes loading after the page where they came from is unloaded. Patch by peterv@propagandism.org, r=bzbarsky@mit.edu, sr=jst@mozilla.jstenback.com

git-svn-id: svn://10.0.0.236/trunk@157379 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com 2004-06-03 19:45:03 +00:00
parent 1b003cd00b
commit 66440bd3e4

View File

@ -236,7 +236,7 @@ nsContentSink::ScriptAvailable(nsresult aResult,
} else {
mScriptElements.RemoveObjectAt(count - 1);
if (mParser && aWasPending) {
if (mParser && aWasPending && aResult != NS_BINDING_ABORTED) {
// Loading external script failed!. So, resume
// parsing since the parser got blocked when loading
// external script. - Ref. Bug: 94903