mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 619045 - crash [@ nsHtml5TreeOpExecutor::RunScript(nsIContent*)]
r=hsivonen a=jst
This commit is contained in:
parent
a7c28114a9
commit
f94aa928dd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user