Bug 725579 - Changed default home tab of new window to newtab by changing about:home to about:newtab in main.js and config file of each browser draft
authorjordan9769 <souravgarg833@gmail.com>
Sat, 15 Oct 2016 21:37:51 +0530
changeset 425656 5114724b272aa0695dd1054ee1687d24f1b09c08
parent 424323 26f2e65163e9f3cfab071a9823293217b1e1de8d
child 426890 88b35a401cbeecd74b420dcab0f481461ef80a3e
child 426894 aab55951aaaebaa63b6b2e87654e45080c9bd882
push id32486
push userbmo:souravgarg833@gmail.com
push dateSat, 15 Oct 2016 16:16:52 +0000
bugs725579
milestone52.0a1
Bug 725579 - Changed default home tab of new window to newtab by changing about:home to about:newtab in main.js and config file of each browser MozReview-Commit-ID: 6UMIFFTDyJ3
browser/branding/aurora/locales/browserconfig.properties
browser/branding/nightly/locales/browserconfig.properties
browser/branding/official/locales/browserconfig.properties
browser/branding/unofficial/locales/browserconfig.properties
browser/components/preferences/in-content/main.js
--- a/browser/branding/aurora/locales/browserconfig.properties
+++ b/browser/branding/aurora/locales/browserconfig.properties
@@ -1,6 +1,6 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # Do NOT localize or otherwise change these values
-browser.startup.homepage=about:home
+browser.startup.homepage=about:newtab
--- a/browser/branding/nightly/locales/browserconfig.properties
+++ b/browser/branding/nightly/locales/browserconfig.properties
@@ -1,6 +1,6 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # Do NOT localize or otherwise change these values
-browser.startup.homepage=about:home
+browser.startup.homepage=about:newtab
--- a/browser/branding/official/locales/browserconfig.properties
+++ b/browser/branding/official/locales/browserconfig.properties
@@ -1,6 +1,6 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # Do NOT localize or otherwise change these values
-browser.startup.homepage=about:home
+browser.startup.homepage=about:newtab
--- a/browser/branding/unofficial/locales/browserconfig.properties
+++ b/browser/branding/unofficial/locales/browserconfig.properties
@@ -1,6 +1,6 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # Do NOT localize or otherwise change these values
-browser.startup.homepage=about:home
+browser.startup.homepage=about:newtab
--- a/browser/components/preferences/in-content/main.js
+++ b/browser/components/preferences/in-content/main.js
@@ -240,36 +240,36 @@ var gMainPane = {
    *   selected and doesn't change the UI for this preference, the deprecated
    *   option is preserved.
    */
 
   syncFromHomePref: function ()
   {
     let homePref = document.getElementById("browser.startup.homepage");
 
-    // If the pref is set to about:home, set the value to "" to show the
-    // placeholder text (about:home title).
-    if (homePref.value.toLowerCase() == "about:home")
+    // If the pref is set to about:newtab, set the value to "" to show the
+    // placeholder text (about:newtab title).
+    if (homePref.value.toLowerCase() == "about:newtab")
       return "";
 
     // If the pref is actually "", show about:blank.  The actual home page
     // loading code treats them the same, and we don't want the placeholder text
     // to be shown.
     if (homePref.value == "")
       return "about:blank";
 
     // Otherwise, show the actual pref value.
     return undefined;
   },
 
   syncToHomePref: function (value)
   {
-    // If the value is "", use about:home.
+    // If the value is "", use about:newtab.
     if (value == "")
-      return "about:home";
+      return "about:newtab";
 
     // Otherwise, use the actual textbox value.
     return undefined;
   },
 
   /**
    * Sets the home page to the current displayed page (or frontmost tab, if the
    * most recent browser window contains multiple tabs), updating preference