mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1687118 - Bail early from DocumentL10n::TriggerInitialTranslation if mReady is not available. r=emilio,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D131253
This commit is contained in:
parent
cf8aa80ecf
commit
3881c4ca80
@ -117,6 +117,13 @@ void DocumentL10n::TriggerInitialTranslation() {
|
||||
if (mState >= DocumentL10nState::InitialTranslationTriggered) {
|
||||
return;
|
||||
}
|
||||
if (!mReady) {
|
||||
// If we don't have `mReady` it means that we are in shutdown mode.
|
||||
// See bug 1687118 for details.
|
||||
InitialTranslationCompleted(false);
|
||||
return;
|
||||
}
|
||||
|
||||
mInitialTranslationStart = mozilla::TimeStamp::Now();
|
||||
|
||||
AutoAllowLegacyScriptExecution exemption;
|
||||
|
Loading…
Reference in New Issue
Block a user