Bug 515338 - Make HTML5 parser internals not hold nsIContent or regular dynamic atoms. r=bnewman.
This commit is contained in:
@@ -581,7 +581,10 @@ nsHtml5StreamParser::ParseUntilSuspend()
|
||||
return; // no more data for now but expecting more
|
||||
case STREAM_ENDING:
|
||||
mDone = PR_TRUE;
|
||||
mExecutor->DidBuildModel(PR_FALSE);
|
||||
{
|
||||
nsRefPtr<nsHtml5StreamParser> kungFuDeathGrip(this);
|
||||
mExecutor->DidBuildModel(PR_FALSE);
|
||||
}
|
||||
return; // no more data and not expecting more
|
||||
default:
|
||||
NS_NOTREACHED("It should be impossible to reach this.");
|
||||
|
||||
Reference in New Issue
Block a user