Bug 119310 preferences + open in new tab + clicking browser crashes @nsLoadGroup::RemoveRequest

assert instead of crashing if some load fails
r=darin sr=waterson
This commit is contained in:
timeless@mac.com
2002-01-16 00:16:51 +00:00
parent a02a8f6c18
commit 9dadb9719f
4 changed files with 16 additions and 13 deletions

View File

@@ -1380,9 +1380,9 @@ nsresult nsParser::DidBuildModel(nsresult anErrorCode) {
nsresult result=anErrorCode;
if (IsComplete()) {
if(mParserContext && !mParserContext->mPrevContext) {
if (mParserContext && !mParserContext->mPrevContext) {
if (mParserContext->mDTD) {
result = mParserContext->mDTD->DidBuildModel(anErrorCode,PRBool(0==mParserContext->mPrevContext),this,mSink);
result = mParserContext->mDTD->DidBuildModel(anErrorCode,PR_TRUE,this,mSink);
}
//Ref. to bug 61462.
mParserContext->mRequest = 0;