Bug 516186 - Make late charset switch in HTML5 not trigger assertions. r=bnewman.
This commit is contained in:
@@ -694,3 +694,11 @@ nsHtml5Parser::InitializeDocWriteParserState(nsAHtml5TreeBuilderState* aState)
|
||||
mLastWasCR = PR_FALSE;
|
||||
mReturnToStreamParserPermitted = PR_TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
nsHtml5Parser::ContinueAfterFailedCharsetSwitch()
|
||||
{
|
||||
NS_PRECONDITION(mStreamParser,
|
||||
"Tried to continue after failed charset switch without a stream parser");
|
||||
mStreamParser->ContinueAfterFailedCharsetSwitch();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user