From 20e4f3372dfff1eb4dfcb3b23aa7028718d7dfa0 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" Date: Fri, 11 Aug 2006 17:43:24 +0000 Subject: [PATCH] add UI for the browser.startup.page preference, so there's a simple way to tell Firefox to start with a blank page (or, for that matter, with your windows and tabs from last time, i.e. session restore) bug=346044 r=mconnor r=jwalden --- browser/components/preferences/main.js | 11 +++++++++ browser/components/preferences/main.xul | 24 +++++++++++++++---- .../en-US/chrome/browser/preferences/main.dtd | 11 ++++++--- .../browser/preferences/preferences.css | 8 ------- .../browser/preferences/preferences.css | 2 +- 5 files changed, 40 insertions(+), 16 deletions(-) diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js index c93179f25f4..ef0ded86a70 100644 --- a/browser/components/preferences/main.js +++ b/browser/components/preferences/main.js @@ -60,6 +60,17 @@ var gMainPane = { * browser.startup.homepage * - the user's home page, as a string; if the home page is a set of tabs, * this will be those URLs separated by the pipe character "|" + * browser.startup.page + * - what page(s) to show when the user starts the application, as an integer: + * + * 0: a blank page + * 1: the home page (as set by the browser.startup.homepage pref) + * 2: the last page the user visited (DEPRECATED) + * 3: windows and tabs from the last session (a.k.a. session restore) + * + * The deprecated option is not exposed in UI; however, if the user has it + * selected and doesn't change the UI for this preference, the deprecated + * option is preserved. */ /** diff --git a/browser/components/preferences/main.xul b/browser/components/preferences/main.xul index 97b36d0fd03..00be3687e92 100644 --- a/browser/components/preferences/main.xul +++ b/browser/components/preferences/main.xul @@ -24,6 +24,7 @@ # Contributor(s): # Ben Goodger # Jeff Walden +# Myk Melez # # Alternatively, the contents of this file may be used under the terms of # either the GNU General Public License Version 2 or later (the "GPL"), or @@ -57,7 +58,10 @@ - + + @@ -104,10 +108,22 @@ #endif - - - + + + + + +