Bug 619045 - crash [@ nsHtml5TreeOpExecutor::RunScript(nsIContent*)]
r=hsivonen a=jst
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user