mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
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:
parent
1fa25f597f
commit
8e30040533
@ -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 */ }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user