Bug 619045 - crash [@ nsHtml5TreeOpExecutor::RunScript(nsIContent*)]

r=hsivonen a=jst
This commit is contained in:
timeless@mozdev.org 2011-02-16 14:14:11 +01:00
parent a7c28114a9
commit f94aa928dd

View File

@ -733,7 +733,9 @@ nsHtml5TreeOpExecutor::RunScript(nsIContent* aScriptElement)
// Else, block the parser till the script has loaded.
if (rv == NS_ERROR_HTMLPARSER_BLOCK) {
mScriptElements.AppendObject(sele);
mParser->BlockParser();
if (mParser) {
mParser->BlockParser();
}
} else {
// This may have already happened if the script executed, but in case
// it didn't then remove the element so that it doesn't get stuck forever.