Bug 1450270 - Special case general.useragent.locale in distributions. r=gandalf

MozReview-Commit-ID: Js9UxBCxht3

--HG--
extra : rebase_source : 538f96d9d3c07c95aa03062916bdc9098dcdb9c9
This commit is contained in:
Michael Kaply 2018-03-30 10:37:27 -05:00
parent 1fa25f597f
commit 8e30040533

View File

@ -372,7 +372,11 @@ DistributionCustomizer.prototype = {
if (value) {
value = value.replace(/%LOCALE%/g, this._locale);
value = value.replace(/%LANGUAGE%/g, this._language);
defaults.set(key, parseValue(value));
if (key == "general.useragent.locale") {
defaults.set("intl.locale.requested", parseValue(value));
} else {
defaults.set(key, parseValue(value));
}
}
} catch (e) { /* ignore bad prefs and move on */ }
}