Bug 1634665 - nullcheck mDocumentL10n in Document::InitialTranslationCompleted. r=zbraniecki,emilio

Differential Revision: https://phabricator.services.mozilla.com/D73449
This commit is contained in:
Magnus Melin 2020-05-01 17:22:37 +00:00
Родитель 2060006fba
Коммит 3175ad44ed
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -3931,7 +3931,7 @@ void Document::OnParsingCompleted() {
}
void Document::InitialTranslationCompleted() {
if (mDocumentL10n->mBlockingLayout) {
if (mDocumentL10n && mDocumentL10n->mBlockingLayout) {
// This means we blocked the load event in LocalizationLinkAdded. It's
// important that the load blocker removal here be async, because our caller
// will notify the content sink after us, and we want the content sync's