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 05:52:53 +0530
changeset 425609 fb1f8618bdcc43a7c361d5950f3fd1347b467f82
parent 425608 29be555a00c0895a45682b77b1e9597d6325f281
child 533953 8bb8dd162e4f06a460a085f0069dfb99c2a43d95
push id32461
push userbmo:souravgarg833@gmail.com
push dateSat, 15 Oct 2016 01:55:59 +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: ACeNyQkVWd9
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