Bug 270042 - Crash on startup [@ nsXULDocument::OnStreamComplete(nsIStreamLoader*, nsISupports*, unsigned int, unsigned int, unsigned char const*)], r=neil

This commit is contained in:
timeless@mozdev.org 2009-10-26 18:39:23 -07:00
parent 1986c2c297
commit 11b6d8a3b1

View File

@ -3517,6 +3517,10 @@ nsXULDocument::OnStreamComplete(nsIStreamLoader* aLoader,
NS_ASSERTION(mCurrentScriptProto && mCurrentScriptProto->mSrcLoading,
"script source not loading on unichar stream complete?");
if (!mCurrentScriptProto) {
// XXX Wallpaper for bug 270042
return NS_OK;
}
// Clear mCurrentScriptProto now, but save it first for use below in
// the compile/execute code, and in the while loop that resumes walks