mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
Bug 1412275, ensure we have still the executor before trying to continue parsing, r=hsivonen
This commit is contained in:
parent
58e99f59ab
commit
23193d01cc
@ -153,7 +153,7 @@ nsHtml5Parser::UnblockParser()
|
||||
if (MOZ_LIKELY(mBlocked > 0)) {
|
||||
mBlocked--;
|
||||
}
|
||||
if (MOZ_LIKELY(mBlocked == 0)) {
|
||||
if (MOZ_LIKELY(mBlocked == 0) && mExecutor) {
|
||||
mExecutor->ContinueInterruptedParsingAsync();
|
||||
}
|
||||
}
|
||||
@ -161,8 +161,10 @@ nsHtml5Parser::UnblockParser()
|
||||
NS_IMETHODIMP_(void)
|
||||
nsHtml5Parser::ContinueInterruptedParsingAsync()
|
||||
{
|
||||
if (mExecutor) {
|
||||
mExecutor->ContinueInterruptedParsingAsync();
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(bool)
|
||||
nsHtml5Parser::IsParserEnabled()
|
||||
|
Loading…
x
Reference in New Issue
Block a user