Bug 1412275, ensure we have still the executor before trying to continue parsing, r=hsivonen

This commit is contained in:
Olli Pettay 2017-11-02 10:40:38 +02:00
parent 58e99f59ab
commit 23193d01cc

View File

@ -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()