Bug 966014 - Enable the Australis tour page upon update for Linux. r=gavin, a=gavin
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Sat, 08 Feb 2014 13:31:03 -0800
changeset 182720 7aa37827fa094e2be1ca8701b474466e5bffbada
parent 182719 23688ad1574c5b47e3195bcedaf0e283824d9406
child 182721 ed1d0b33ca0b196a021461c748711687bf442f66
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin, gavin
bugs966014
milestone29.0a2
Bug 966014 - Enable the Australis tour page upon update for Linux. r=gavin, a=gavin
browser/components/nsBrowserContentHandler.js
--- a/browser/components/nsBrowserContentHandler.js
+++ b/browser/components/nsBrowserContentHandler.js
@@ -587,26 +587,24 @@ nsBrowserContentHandler.prototype = {
             var ss = Components.classes["@mozilla.org/browser/sessionstartup;1"]
                                .getService(Components.interfaces.nsISessionStartup);
             willRestoreSession = ss.isAutomaticRestoreEnabled();
 
             overridePage = Services.urlFormatter.formatURLPref("startup.homepage_override_url");
 
 #if MOZ_UPDATE_CHANNEL == aurora
             // Temporary Australis whatsnew page for Aurora (bug 966014)
-            if (Services.appinfo.OS == "Darwin" || Services.appinfo.OS == "WINNT") {
-              let locale = "en-US";
-              try {
-                locale = Services.prefs.getCharPref("general.useragent.locale");
-              } catch (e) {}
+            let locale = "en-US";
+            try {
+              locale = Services.prefs.getCharPref("general.useragent.locale");
+            } catch (e) {}
 
-              if (locale == "en-US") {
-                let url = "https://www.mozilla.org/%LOCALE%/firefox/%VERSION%/whatsnew/?oldversion=%OLD_VERSION%";
-                overridePage = Services.urlFormatter.formatURL(url);
-              }
+            if (locale == "en-US") {
+              let url = "https://www.mozilla.org/%LOCALE%/firefox/%VERSION%/whatsnew/?oldversion=%OLD_VERSION%";
+              overridePage = Services.urlFormatter.formatURL(url);
             }
 #endif
 
             if (prefb.prefHasUserValue("app.update.postupdate"))
               overridePage = getPostUpdateOverridePage(overridePage);
 
             overridePage = overridePage.replace("%OLD_VERSION%", old_mstone);
             break;