From 23193d01ccfd04179b88da5165e404aee5d2e5be Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Thu, 2 Nov 2017 10:40:38 +0200 Subject: [PATCH] Bug 1412275, ensure we have still the executor before trying to continue parsing, r=hsivonen --- parser/html/nsHtml5Parser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parser/html/nsHtml5Parser.cpp b/parser/html/nsHtml5Parser.cpp index 2613eded3538..8210f1fd1f24 100644 --- a/parser/html/nsHtml5Parser.cpp +++ b/parser/html/nsHtml5Parser.cpp @@ -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)