Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | - License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | - You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 4 | |
michael@0 | 5 | <script type="application/javascript" |
michael@0 | 6 | src="chrome://browser/content/preferences/in-content/main.js"/> |
michael@0 | 7 | |
michael@0 | 8 | <preferences id="mainPreferences"> |
michael@0 | 9 | |
michael@0 | 10 | <!-- Startup --> |
michael@0 | 11 | <preference id="browser.startup.page" |
michael@0 | 12 | name="browser.startup.page" |
michael@0 | 13 | type="int"/> |
michael@0 | 14 | <preference id="browser.startup.homepage" |
michael@0 | 15 | name="browser.startup.homepage" |
michael@0 | 16 | type="wstring"/> |
michael@0 | 17 | |
michael@0 | 18 | <preference id="pref.browser.homepage.disable_button.current_page" |
michael@0 | 19 | name="pref.browser.homepage.disable_button.current_page" |
michael@0 | 20 | type="bool"/> |
michael@0 | 21 | <preference id="pref.browser.homepage.disable_button.bookmark_page" |
michael@0 | 22 | name="pref.browser.homepage.disable_button.bookmark_page" |
michael@0 | 23 | type="bool"/> |
michael@0 | 24 | <preference id="pref.browser.homepage.disable_button.restore_default" |
michael@0 | 25 | name="pref.browser.homepage.disable_button.restore_default" |
michael@0 | 26 | type="bool"/> |
michael@0 | 27 | |
michael@0 | 28 | <preference id="browser.privatebrowsing.autostart" |
michael@0 | 29 | name="browser.privatebrowsing.autostart" |
michael@0 | 30 | type="bool" |
michael@0 | 31 | onchange="gMainPane.updateBrowserStartupLastSession();"/> |
michael@0 | 32 | |
michael@0 | 33 | <!-- Downloads --> |
michael@0 | 34 | <preference id="browser.download.useDownloadDir" |
michael@0 | 35 | name="browser.download.useDownloadDir" |
michael@0 | 36 | type="bool"/> |
michael@0 | 37 | |
michael@0 | 38 | <preference id="browser.download.folderList" |
michael@0 | 39 | name="browser.download.folderList" |
michael@0 | 40 | type="int"/> |
michael@0 | 41 | <preference id="browser.download.dir" |
michael@0 | 42 | name="browser.download.dir" |
michael@0 | 43 | type="file" |
michael@0 | 44 | onchange="gMainPane.displayDownloadDirPref();"/> |
michael@0 | 45 | <!-- Tab preferences |
michael@0 | 46 | Preferences: |
michael@0 | 47 | |
michael@0 | 48 | browser.link.open_newwindow |
michael@0 | 49 | 1 opens such links in the most recent window or tab, |
michael@0 | 50 | 2 opens such links in a new window, |
michael@0 | 51 | 3 opens such links in a new tab |
michael@0 | 52 | browser.tabs.loadInBackground |
michael@0 | 53 | - true if display should switch to a new tab which has been opened from a |
michael@0 | 54 | link, false if display shouldn't switch |
michael@0 | 55 | browser.tabs.warnOnClose |
michael@0 | 56 | - true if when closing a window with multiple tabs the user is warned and |
michael@0 | 57 | allowed to cancel the action, false to just close the window |
michael@0 | 58 | browser.tabs.warnOnOpen |
michael@0 | 59 | - true if the user should be warned if he attempts to open a lot of tabs at |
michael@0 | 60 | once (e.g. a large folder of bookmarks), false otherwise |
michael@0 | 61 | browser.taskbar.previews.enable |
michael@0 | 62 | - true if tabs are to be shown in the Windows 7 taskbar |
michael@0 | 63 | --> |
michael@0 | 64 | |
michael@0 | 65 | <preference id="browser.link.open_newwindow" |
michael@0 | 66 | name="browser.link.open_newwindow" |
michael@0 | 67 | type="int"/> |
michael@0 | 68 | <preference id="browser.tabs.loadInBackground" |
michael@0 | 69 | name="browser.tabs.loadInBackground" |
michael@0 | 70 | type="bool" |
michael@0 | 71 | inverted="true"/> |
michael@0 | 72 | <preference id="browser.tabs.warnOnClose" |
michael@0 | 73 | name="browser.tabs.warnOnClose" |
michael@0 | 74 | type="bool"/> |
michael@0 | 75 | <preference id="browser.tabs.warnOnOpen" |
michael@0 | 76 | name="browser.tabs.warnOnOpen" |
michael@0 | 77 | type="bool"/> |
michael@0 | 78 | <preference id="browser.sessionstore.restore_on_demand" |
michael@0 | 79 | name="browser.sessionstore.restore_on_demand" |
michael@0 | 80 | type="bool"/> |
michael@0 | 81 | #ifdef XP_WIN |
michael@0 | 82 | <preference id="browser.taskbar.previews.enable" |
michael@0 | 83 | name="browser.taskbar.previews.enable" |
michael@0 | 84 | type="bool"/> |
michael@0 | 85 | #endif |
michael@0 | 86 | </preferences> |
michael@0 | 87 | |
michael@0 | 88 | <hbox id="header-general" |
michael@0 | 89 | class="header" |
michael@0 | 90 | data-category="paneGeneral"> |
michael@0 | 91 | <image class="header-icon"/> |
michael@0 | 92 | <label class="header-name" |
michael@0 | 93 | value="&paneGeneral.title;"/> |
michael@0 | 94 | </hbox> |
michael@0 | 95 | |
michael@0 | 96 | <!-- Startup --> |
michael@0 | 97 | <groupbox id="startupGroup" data-category="paneGeneral"> |
michael@0 | 98 | <caption label="&startup.label;"/> |
michael@0 | 99 | |
michael@0 | 100 | <hbox align="center"> |
michael@0 | 101 | <label value="&startupPage.label;" |
michael@0 | 102 | accesskey="&startupPage.accesskey;" |
michael@0 | 103 | control="browserStartupPage"/> |
michael@0 | 104 | <menulist id="browserStartupPage" |
michael@0 | 105 | preference="browser.startup.page"> |
michael@0 | 106 | <menupopup> |
michael@0 | 107 | <menuitem label="&startupHomePage.label;" |
michael@0 | 108 | value="1" |
michael@0 | 109 | id="browserStartupHomePage"/> |
michael@0 | 110 | <menuitem label="&startupBlankPage.label;" |
michael@0 | 111 | value="0" |
michael@0 | 112 | id="browserStartupBlank"/> |
michael@0 | 113 | <menuitem label="&startupLastSession.label;" |
michael@0 | 114 | value="3" |
michael@0 | 115 | id="browserStartupLastSession"/> |
michael@0 | 116 | </menupopup> |
michael@0 | 117 | </menulist> |
michael@0 | 118 | </hbox> |
michael@0 | 119 | <separator class="thin"/> |
michael@0 | 120 | <hbox align="center"> |
michael@0 | 121 | <label value="&homepage.label;" |
michael@0 | 122 | accesskey="&homepage.accesskey;" |
michael@0 | 123 | control="browserHomePage"/> |
michael@0 | 124 | <textbox id="browserHomePage" |
michael@0 | 125 | class="padded uri-element" |
michael@0 | 126 | flex="1" |
michael@0 | 127 | type="autocomplete" |
michael@0 | 128 | autocompletesearch="history" |
michael@0 | 129 | onsyncfrompreference="return gMainPane.syncFromHomePref();" |
michael@0 | 130 | onsynctopreference="return gMainPane.syncToHomePref(this.value);" |
michael@0 | 131 | placeholder="&abouthome.pageTitle;" |
michael@0 | 132 | preference="browser.startup.homepage"/> |
michael@0 | 133 | </hbox> |
michael@0 | 134 | <hbox align="center" pack="end"> |
michael@0 | 135 | <button label="" |
michael@0 | 136 | accesskey="&useCurrentPage.accesskey;" |
michael@0 | 137 | label1="&useCurrentPage.label;" |
michael@0 | 138 | label2="&useMultiple.label;" |
michael@0 | 139 | oncommand="gMainPane.setHomePageToCurrent();" |
michael@0 | 140 | id="useCurrent" |
michael@0 | 141 | preference="pref.browser.homepage.disable_button.current_page"/> |
michael@0 | 142 | <button label="&chooseBookmark.label;" |
michael@0 | 143 | accesskey="&chooseBookmark.accesskey;" |
michael@0 | 144 | oncommand="gMainPane.setHomePageToBookmark();" |
michael@0 | 145 | id="useBookmark" |
michael@0 | 146 | preference="pref.browser.homepage.disable_button.bookmark_page"/> |
michael@0 | 147 | <button label="&restoreDefault.label;" |
michael@0 | 148 | accesskey="&restoreDefault.accesskey;" |
michael@0 | 149 | oncommand="gMainPane.restoreDefaultHomePage();" |
michael@0 | 150 | id="restoreDefaultHomePage" |
michael@0 | 151 | preference="pref.browser.homepage.disable_button.restore_default"/> |
michael@0 | 152 | </hbox> |
michael@0 | 153 | </groupbox> |
michael@0 | 154 | |
michael@0 | 155 | <!-- Downloads --> |
michael@0 | 156 | <groupbox id="downloadsGroup" data-category="paneGeneral"> |
michael@0 | 157 | <caption label="&downloads.label;"/> |
michael@0 | 158 | |
michael@0 | 159 | <radiogroup id="saveWhere" |
michael@0 | 160 | preference="browser.download.useDownloadDir" |
michael@0 | 161 | onsyncfrompreference="return gMainPane.readUseDownloadDir();"> |
michael@0 | 162 | <hbox id="saveToRow"> |
michael@0 | 163 | <radio id="saveTo" |
michael@0 | 164 | value="true" |
michael@0 | 165 | label="&saveTo.label;" |
michael@0 | 166 | accesskey="&saveTo.accesskey;" |
michael@0 | 167 | aria-labelledby="saveTo downloadFolder"/> |
michael@0 | 168 | <filefield id="downloadFolder" |
michael@0 | 169 | flex="1" |
michael@0 | 170 | preference="browser.download.folderList" |
michael@0 | 171 | preference-editable="true" |
michael@0 | 172 | aria-labelledby="saveTo" |
michael@0 | 173 | onsyncfrompreference="return gMainPane.displayDownloadDirPref();" |
michael@0 | 174 | onsynctopreference="return gMainPane.getFolderListPref()"/> |
michael@0 | 175 | <button id="chooseFolder" |
michael@0 | 176 | oncommand="gMainPane.chooseFolder();" |
michael@0 | 177 | #ifdef XP_MACOSX |
michael@0 | 178 | accesskey="&chooseFolderMac.accesskey;" |
michael@0 | 179 | label="&chooseFolderMac.label;" |
michael@0 | 180 | #else |
michael@0 | 181 | accesskey="&chooseFolderWin.accesskey;" |
michael@0 | 182 | label="&chooseFolderWin.label;" |
michael@0 | 183 | #endif |
michael@0 | 184 | preference="browser.download.folderList" |
michael@0 | 185 | onsynctopreference="return gMainPane.getFolderListPref();"/> |
michael@0 | 186 | </hbox> |
michael@0 | 187 | <radio id="alwaysAsk" |
michael@0 | 188 | value="false" |
michael@0 | 189 | label="&alwaysAsk.label;" |
michael@0 | 190 | accesskey="&alwaysAsk.accesskey;"/> |
michael@0 | 191 | </radiogroup> |
michael@0 | 192 | </groupbox> |
michael@0 | 193 | |
michael@0 | 194 | <!-- Tab preferences --> |
michael@0 | 195 | <groupbox data-category="paneGeneral"> |
michael@0 | 196 | <caption label="&tabsGroup.label;"/> |
michael@0 | 197 | <checkbox id="linkTargeting" label="&newWindowsAsTabs.label;" |
michael@0 | 198 | accesskey="&newWindowsAsTabs.accesskey;" |
michael@0 | 199 | preference="browser.link.open_newwindow" |
michael@0 | 200 | onsyncfrompreference="return gMainPane.readLinkTarget();" |
michael@0 | 201 | onsynctopreference="return gMainPane.writeLinkTarget();"/> |
michael@0 | 202 | |
michael@0 | 203 | <checkbox id="warnCloseMultiple" label="&warnCloseMultipleTabs.label;" |
michael@0 | 204 | accesskey="&warnCloseMultipleTabs.accesskey;" |
michael@0 | 205 | preference="browser.tabs.warnOnClose"/> |
michael@0 | 206 | |
michael@0 | 207 | <checkbox id="warnOpenMany" label="&warnOpenManyTabs.label;" |
michael@0 | 208 | accesskey="&warnOpenManyTabs.accesskey;" |
michael@0 | 209 | preference="browser.tabs.warnOnOpen"/> |
michael@0 | 210 | |
michael@0 | 211 | <checkbox id="restoreOnDemand" label="&restoreTabsOnDemand.label;" |
michael@0 | 212 | accesskey="&restoreTabsOnDemand.accesskey;" |
michael@0 | 213 | preference="browser.sessionstore.restore_on_demand"/> |
michael@0 | 214 | |
michael@0 | 215 | <checkbox id="switchToNewTabs" label="&switchToNewTabs.label;" |
michael@0 | 216 | accesskey="&switchToNewTabs.accesskey;" |
michael@0 | 217 | preference="browser.tabs.loadInBackground"/> |
michael@0 | 218 | |
michael@0 | 219 | #ifdef XP_WIN |
michael@0 | 220 | <checkbox id="showTabsInTaskbar" label="&showTabsInTaskbar.label;" |
michael@0 | 221 | accesskey="&showTabsInTaskbar.accesskey;" |
michael@0 | 222 | preference="browser.taskbar.previews.enable"/> |
michael@0 | 223 | #endif |
michael@0 | 224 | </groupbox> |