Bug 721313 - Do not run normal parse end code when parsing a full document from string. r=smaug.

This commit is contained in:
Henri Sivonen
2012-01-26 15:59:22 +02:00
parent 931fe1cfb9
commit e93bdc6f6c
3 changed files with 7 additions and 2 deletions

View File

@@ -136,10 +136,12 @@ nsHtml5TreeOpExecutor::DidBuildModel(bool aTerminated)
}
}
if (!mRunsToCompletion) {
GetParser()->DropStreamParser();
if (mRunsToCompletion) {
return NS_OK;
}
GetParser()->DropStreamParser();
// This comes from nsXMLContentSink and nsHTMLContentSink
DidBuildModelImpl(aTerminated);