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
--- 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