Bug 325697 window.open() causes "ASSERTION: still loading a script when starting another load?" in nsXULDocument::LoadScript

r=bz sr=biesi
This commit is contained in:
timeless%mozdev.org 2006-08-30 16:13:32 +00:00
parent 279fbbf5a4
commit c1d75471fd

View File

@ -3115,7 +3115,10 @@ nsXULDocument::LoadScript(nsXULPrototypeScript* aScriptProto, PRBool* aBlock)
nsCOMPtr<nsIStreamLoader> loader;
rv = NS_NewStreamLoader(getter_AddRefs(loader), aScriptProto->mSrcURI,
this, nsnull, group);
if (NS_FAILED(rv)) return rv;
if (NS_FAILED(rv)) {
mCurrentScriptProto = nsnull;
return rv;
}
aScriptProto->mSrcLoading = PR_TRUE;
}