Bug 1122101 - /whatsnew tour for Hello in 36 with an exception. r=MattN a=sylvestre
authorJared Wein <jwein@mozilla.com>
Sun, 01 Feb 2015 23:54:58 -0500
changeset 243615 24133abc4f8d
parent 243614 bbc98a8c8142
child 243616 58a64dbc82f1
push id4418
push userjwein@mozilla.com
push date2015-02-02 14:30 +0000
treeherdermozilla-beta@24133abc4f8d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN, sylvestre
bugs1122101
milestone36.0
Bug 1122101 - /whatsnew tour for Hello in 36 with an exception. r=MattN a=sylvestre
browser/components/nsBrowserContentHandler.js
--- a/browser/components/nsBrowserContentHandler.js
+++ b/browser/components/nsBrowserContentHandler.js
@@ -508,16 +508,20 @@ 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 (prefb.prefHasUserValue("app.update.postupdate"))
               overridePage = getPostUpdateOverridePage(overridePage);
 
+            // Temporary exclusion of the Loop tour page for users who have already used Loop.
+            if (Services.prefs.getBoolPref("loop.gettingStarted.seen"))
+              overridePage = "";
+
             overridePage = overridePage.replace("%OLD_VERSION%", old_mstone);
             break;
         }
       }
     } catch (ex) {}
 
     // formatURLPref might return "about:blank" if getting the pref fails
     if (overridePage == "about:blank")