Bug 1497581 - Avoid debug assertion with --disable-updater r=zbraniecki DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D104655
This commit is contained in:
Petr Sumbera 2021-02-11 08:57:19 +00:00
parent ae412ef826
commit 7d307fafee

View File

@ -378,8 +378,10 @@ LocaleService::GetDefaultLocale(nsACString& aRetVal) {
// just use our hard-coded default below.
GetGREFileContents("update.locale", &locale);
locale.Trim(" \t\n\r");
#ifdef MOZ_UPDATER
// This should never be empty.
MOZ_ASSERT(!locale.IsEmpty());
#endif
if (CanonicalizeLanguageId(locale)) {
mDefaultLocale.Assign(locale);
}