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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user