main.js only master draft
authorjordan9769 <souravgarg833@gmail.com>
Sat, 15 Oct 2016 05:30:09 +0530
changeset 425608 29be555a00c0895a45682b77b1e9597d6325f281
parent 425607 e34a51ddd48aa939bc5c09f4b8895bd7ee6c9299
child 425609 fb1f8618bdcc43a7c361d5950f3fd1347b467f82
push id32461
push userbmo:souravgarg833@gmail.com
push dateSat, 15 Oct 2016 01:55:59 +0000
milestone52.0a1
main.js only master MozReview-Commit-ID: 9pl5dHCUBGd
browser/components/preferences/in-content/main.js
--- 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:newtab, set the value to "" to show the
-    // placeholder text (about:newtab title).
-    if (homePref.value.toLowerCase() == "about:newtab")
+    // 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")
       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:newtab.
+    // If the value is "", use about:home.
     if (value == "")
-      return "about:newtab";
+      return "about:home";
 
     // 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