mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 03:49:42 +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,7 +161,9 @@ nsHtml5Parser::UnblockParser()
|
||||
NS_IMETHODIMP_(void)
|
||||
nsHtml5Parser::ContinueInterruptedParsingAsync()
|
||||
{
|
||||
mExecutor->ContinueInterruptedParsingAsync();
|
||||
if (mExecutor) {
|
||||
mExecutor->ContinueInterruptedParsingAsync();
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(bool)
|
||||
|
Loading…
x
Reference in New Issue
Block a user