diff -U8 browser/components/preferences/main.js browser/components/preferences/main.js
--- browser/components/preferences/main.js 3 Jul 2006 04:29:17 -0000
+++ browser/components/preferences/main.js 3 Jul 2006 07:03:03 -0000
@@ -79,17 +79,22 @@
useCurrent.disabled = otherURL.disabled = true;
bookmarkName.disabled = chooseBookmark.disabled = false;
return "bookmark";
} else {
useCurrent.disabled = otherURL.disabled = false;
bookmarkName.disabled = chooseBookmark.disabled = true;
- otherURL.value = homePage.value;
+ if (homePage.value == "about:blank") {
+ otherURL.value = document.getElementById("bundlePreferences")
+ .getString("blankpage");
+ } else {
+ otherURL.value = homePage.value;
+ }
return "other";
}
},
/**
* Returns the homepage preference value as reflected in the current UI.
*/
writeHomePage: function()
@@ -115,17 +120,22 @@
chooseBookmark.disabled = bookmarkName.disabled = false;
throw "Setting a bookmark as the home page is not yet implemented.";
break;
case "other":
useCurrent.disabled = otherURL.disabled = false;
chooseBookmark.disabled = bookmarkName.disabled = true;
- return otherURL.value;
+ if (otherURL.value == document.getElementById("bundlePreferences")
+ .getString("blankpage")) {
+ return "about:blank";
+ } else {
+ return otherURL.value;
+ }
break;
default:
throw "Unhandled browserStartPage value!";
}
},
/**
* Sets the home page to the current displayed page (or frontmost tab, if the
diff -U8 browser/components/preferences/main.xul browser/components/preferences/main.xul
--- browser/components/preferences/main.xul 3 Jul 2006 04:29:19 -0000
+++ browser/components/preferences/main.xul 3 Jul 2006 07:03:04 -0000
@@ -55,17 +55,17 @@
+ type="wstring"/>
@@ -148,17 +148,17 @@
+ onsyncfrompreference="return gMainPane.readShowDownloadsWhenStarting();"/>