Bug 721313 - Do not run normal parse end code when parsing a full document from string. r=smaug.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user