Bug 1131825 - Fennec distribution code doesn't handle localized preferences correctly. r=rnewman, a=sledru
authorMike Connor <mconnor@mozilla.com>
Tue, 10 Feb 2015 20:59:46 -0500
changeset 243756 9295bf4a3442
parent 243755 ca56ab5d9989
child 243757 69a8d311ddd6
push id4464
push userryanvm@gmail.com
push date2015-02-11 16:02 +0000
treeherdermozilla-beta@69a8d311ddd6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman, sledru
bugs1131825
milestone36.0
Bug 1131825 - Fennec distribution code doesn't handle localized preferences correctly. r=rnewman, a=sledru
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -7547,17 +7547,17 @@ var Distribution = {
       return;
     }
 
     // Force the distribution preferences on the default branch
     let defaults = Services.prefs.getDefaultBranch(null);
     defaults.setCharPref("distribution.id", global["id"]);
     defaults.setCharPref("distribution.version", global["version"]);
 
-    let locale = Services.prefs.getCharPref("general.useragent.locale");
+    let locale = BrowserApp.getUALocalePref();
     let aboutString = Cc["@mozilla.org/supports-string;1"].createInstance(Ci.nsISupportsString);
     aboutString.data = global["about." + locale] || global["about"];
     defaults.setComplexValue("distribution.about", Ci.nsISupportsString, aboutString);
 
     let prefs = aData["Preferences"];
     for (let key in prefs) {
       try {
         let value = prefs[key];