Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
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/privacy.js"/> |
michael@0 | 7 | |
michael@0 | 8 | <preferences id="privacyPreferences"> |
michael@0 | 9 | |
michael@0 | 10 | <!-- Tracking --> |
michael@0 | 11 | <preference id="privacy.donottrackheader.enabled" |
michael@0 | 12 | name="privacy.donottrackheader.enabled" |
michael@0 | 13 | type="bool"/> |
michael@0 | 14 | <preference id="privacy.donottrackheader.value" |
michael@0 | 15 | name="privacy.donottrackheader.value" |
michael@0 | 16 | type="int"/> |
michael@0 | 17 | |
michael@0 | 18 | <!-- XXX button prefs --> |
michael@0 | 19 | <preference id="pref.privacy.disable_button.cookie_exceptions" |
michael@0 | 20 | name="pref.privacy.disable_button.cookie_exceptions" |
michael@0 | 21 | type="bool"/> |
michael@0 | 22 | <preference id="pref.privacy.disable_button.view_cookies" |
michael@0 | 23 | name="pref.privacy.disable_button.view_cookies" |
michael@0 | 24 | type="bool"/> |
michael@0 | 25 | |
michael@0 | 26 | <!-- Location Bar --> |
michael@0 | 27 | <preference id="browser.urlbar.autocomplete.enabled" |
michael@0 | 28 | name="browser.urlbar.autocomplete.enabled" |
michael@0 | 29 | type="bool"/> |
michael@0 | 30 | <preference id="browser.urlbar.default.behavior" |
michael@0 | 31 | name="browser.urlbar.default.behavior" |
michael@0 | 32 | type="int" |
michael@0 | 33 | onchange="document.getElementById('browser.urlbar.autocomplete.enabled').updateElements();"/> |
michael@0 | 34 | |
michael@0 | 35 | <!-- History --> |
michael@0 | 36 | <preference id="places.history.enabled" |
michael@0 | 37 | name="places.history.enabled" |
michael@0 | 38 | type="bool"/> |
michael@0 | 39 | <preference id="browser.formfill.enable" |
michael@0 | 40 | name="browser.formfill.enable" |
michael@0 | 41 | type="bool"/> |
michael@0 | 42 | <!-- Cookies --> |
michael@0 | 43 | <preference id="network.cookie.cookieBehavior" |
michael@0 | 44 | name="network.cookie.cookieBehavior" |
michael@0 | 45 | type="int"/> |
michael@0 | 46 | <preference id="network.cookie.lifetimePolicy" |
michael@0 | 47 | name="network.cookie.lifetimePolicy" |
michael@0 | 48 | type="int"/> |
michael@0 | 49 | <preference id="network.cookie.blockFutureCookies" |
michael@0 | 50 | name="network.cookie.blockFutureCookies" |
michael@0 | 51 | type="bool"/> |
michael@0 | 52 | <!-- Clear Private Data --> |
michael@0 | 53 | <preference id="privacy.sanitize.sanitizeOnShutdown" |
michael@0 | 54 | name="privacy.sanitize.sanitizeOnShutdown" |
michael@0 | 55 | onchange="gPrivacyPane._updateSanitizeSettingsButton();" |
michael@0 | 56 | type="bool"/> |
michael@0 | 57 | <preference id="privacy.sanitize.timeSpan" |
michael@0 | 58 | name="privacy.sanitize.timeSpan" |
michael@0 | 59 | type="int"/> |
michael@0 | 60 | <!-- Private Browsing --> |
michael@0 | 61 | <preference id="browser.privatebrowsing.autostart" |
michael@0 | 62 | name="browser.privatebrowsing.autostart" |
michael@0 | 63 | onchange="gPrivacyPane.updatePrivacyMicroControls();" |
michael@0 | 64 | type="bool"/> |
michael@0 | 65 | |
michael@0 | 66 | </preferences> |
michael@0 | 67 | |
michael@0 | 68 | <hbox id="header-privacy" |
michael@0 | 69 | class="header" |
michael@0 | 70 | hidden="true" |
michael@0 | 71 | data-category="panePrivacy"> |
michael@0 | 72 | <image class="header-icon"/> |
michael@0 | 73 | <label class="header-name" |
michael@0 | 74 | value="&panePrivacy.title;"/> |
michael@0 | 75 | </hbox> |
michael@0 | 76 | |
michael@0 | 77 | <!-- Tracking --> |
michael@0 | 78 | <groupbox id="trackingGroup" data-category="panePrivacy" hidden="true" align="start"> |
michael@0 | 79 | <caption label="&tracking.label;"/> |
michael@0 | 80 | <radiogroup id="doNotTrackSelection" orient="vertical" |
michael@0 | 81 | preference="privacy.donottrackheader.value" |
michael@0 | 82 | onsynctopreference="return gPrivacyPane.setTrackingPrefs()" |
michael@0 | 83 | onsyncfrompreference="return gPrivacyPane.getTrackingPrefs()"> |
michael@0 | 84 | <radio id="dntnotrack" value="1" label="&dntTrackingNotOkay.label2;" |
michael@0 | 85 | accesskey="&dntTrackingNotOkay.accesskey;" /> |
michael@0 | 86 | <radio id="dntdotrack" value="0" label="&dntTrackingOkay.label2;" |
michael@0 | 87 | accesskey="&dntTrackingOkay.accesskey;" /> |
michael@0 | 88 | <radio id="dntnopref" value="-1" label="&dntTrackingNopref.label2;" |
michael@0 | 89 | accesskey="&dntTrackingNopref.accesskey;" /> |
michael@0 | 90 | </radiogroup> |
michael@0 | 91 | <label class="text-link" id="doNotTrackInfo" |
michael@0 | 92 | href="https://www.mozilla.org/dnt" |
michael@0 | 93 | value="&doNotTrackInfo.label;"/> |
michael@0 | 94 | </groupbox> |
michael@0 | 95 | |
michael@0 | 96 | <!-- History --> |
michael@0 | 97 | <groupbox id="historyGroup" data-category="panePrivacy" hidden="true"> |
michael@0 | 98 | <caption label="&history.label;"/> |
michael@0 | 99 | <hbox align="center"> |
michael@0 | 100 | <label id="historyModeLabel" |
michael@0 | 101 | control="historyMode" |
michael@0 | 102 | accesskey="&historyHeader.pre.accesskey;">&historyHeader.pre.label; |
michael@0 | 103 | </label> |
michael@0 | 104 | <menulist id="historyMode" |
michael@0 | 105 | oncommand="gPrivacyPane.updateHistoryModePane(); |
michael@0 | 106 | gPrivacyPane.updateHistoryModePrefs(); |
michael@0 | 107 | gPrivacyPane.updatePrivacyMicroControls(); |
michael@0 | 108 | gPrivacyPane.updateAutostart();"> |
michael@0 | 109 | <menupopup> |
michael@0 | 110 | <menuitem label="&historyHeader.remember.label;" value="remember"/> |
michael@0 | 111 | <menuitem label="&historyHeader.dontremember.label;" value="dontremember"/> |
michael@0 | 112 | <menuitem label="&historyHeader.custom.label;" value="custom"/> |
michael@0 | 113 | </menupopup> |
michael@0 | 114 | </menulist> |
michael@0 | 115 | <label>&historyHeader.post.label;</label> |
michael@0 | 116 | </hbox> |
michael@0 | 117 | <deck id="historyPane"> |
michael@0 | 118 | <vbox align="center" id="historyRememberPane"> |
michael@0 | 119 | <hbox align="center" flex="1"> |
michael@0 | 120 | <spacer flex="1" class="indent"/> |
michael@0 | 121 | <vbox flex="2"> |
michael@0 | 122 | <description>&rememberDescription.label;</description> |
michael@0 | 123 | <separator/> |
michael@0 | 124 | <description>&rememberActions.pre.label;<html:a |
michael@0 | 125 | class="inline-link" href="#" |
michael@0 | 126 | onclick="gPrivacyPane.clearPrivateDataNow(false); return false;" |
michael@0 | 127 | >&rememberActions.clearHistory.label;</html:a>&rememberActions.middle.label;<html:a |
michael@0 | 128 | class="inline-link" href="#" |
michael@0 | 129 | onclick="gPrivacyPane.showCookies(); return false;" |
michael@0 | 130 | >&rememberActions.removeCookies.label;</html:a>&rememberActions.post.label;</description> |
michael@0 | 131 | </vbox> |
michael@0 | 132 | <spacer flex="1" class="indent"/> |
michael@0 | 133 | </hbox> |
michael@0 | 134 | </vbox> |
michael@0 | 135 | <vbox align="center" id="historyDontRememberPane"> |
michael@0 | 136 | <hbox align="center" flex="1"> |
michael@0 | 137 | <spacer flex="1" class="indent"/> |
michael@0 | 138 | <vbox flex="2"> |
michael@0 | 139 | <description>&dontrememberDescription.label;</description> |
michael@0 | 140 | <separator/> |
michael@0 | 141 | <description>&dontrememberActions.pre.label;<html:a |
michael@0 | 142 | class="inline-link" href="#" |
michael@0 | 143 | onclick="gPrivacyPane.clearPrivateDataNow(true); return false;" |
michael@0 | 144 | >&dontrememberActions.clearHistory.label;</html:a>&dontrememberActions.post.label;</description> |
michael@0 | 145 | </vbox> |
michael@0 | 146 | <spacer flex="1" class="indent"/> |
michael@0 | 147 | </hbox> |
michael@0 | 148 | </vbox> |
michael@0 | 149 | <vbox id="historyCustomPane"> |
michael@0 | 150 | <separator class="thin"/> |
michael@0 | 151 | <vbox class="indent"> |
michael@0 | 152 | <checkbox id="privateBrowsingAutoStart" |
michael@0 | 153 | label="&privateBrowsingPermanent2.label;" |
michael@0 | 154 | accesskey="&privateBrowsingPermanent2.accesskey;" |
michael@0 | 155 | preference="browser.privatebrowsing.autostart" |
michael@0 | 156 | oncommand="gPrivacyPane.updateAutostart()"/> |
michael@0 | 157 | |
michael@0 | 158 | <vbox class="indent"> |
michael@0 | 159 | <checkbox id="rememberHistory" |
michael@0 | 160 | label="&rememberHistory2.label;" |
michael@0 | 161 | accesskey="&rememberHistory2.accesskey;" |
michael@0 | 162 | preference="places.history.enabled"/> |
michael@0 | 163 | <checkbox id="rememberForms" |
michael@0 | 164 | label="&rememberSearchForm.label;" |
michael@0 | 165 | accesskey="&rememberSearchForm.accesskey;" |
michael@0 | 166 | preference="browser.formfill.enable"/> |
michael@0 | 167 | |
michael@0 | 168 | <hbox id="cookiesBox"> |
michael@0 | 169 | <checkbox id="acceptCookies" label="&acceptCookies.label;" flex="1" |
michael@0 | 170 | preference="network.cookie.cookieBehavior" |
michael@0 | 171 | accesskey="&acceptCookies.accesskey;" |
michael@0 | 172 | onsyncfrompreference="return gPrivacyPane.readAcceptCookies();" |
michael@0 | 173 | onsynctopreference="return gPrivacyPane.writeAcceptCookies();"/> |
michael@0 | 174 | <button id="cookieExceptions" oncommand="gPrivacyPane.showCookieExceptions();" |
michael@0 | 175 | label="&cookieExceptions.label;" accesskey="&cookieExceptions.accesskey;" |
michael@0 | 176 | preference="pref.privacy.disable_button.cookie_exceptions"/> |
michael@0 | 177 | </hbox> |
michael@0 | 178 | <hbox id="acceptThirdPartyRow" class="indent"> |
michael@0 | 179 | <label id="acceptThirdPartyLabel" control="acceptThirdPartyMenu" |
michael@0 | 180 | accesskey="&acceptThirdParty.pre.accesskey;">&acceptThirdParty.pre.label;</label> |
michael@0 | 181 | <menulist id="acceptThirdPartyMenu" preference="network.cookie.cookieBehavior" |
michael@0 | 182 | onsyncfrompreference="return gPrivacyPane.readAcceptThirdPartyCookies();" |
michael@0 | 183 | onsynctopreference="return gPrivacyPane.writeAcceptThirdPartyCookies();"> |
michael@0 | 184 | <menupopup> |
michael@0 | 185 | <menuitem label="&acceptThirdParty.always.label;" value="always"/> |
michael@0 | 186 | <menuitem label="&acceptThirdParty.visited.label;" value="visited"/> |
michael@0 | 187 | <menuitem label="&acceptThirdParty.never.label;" value="never"/> |
michael@0 | 188 | </menupopup> |
michael@0 | 189 | </menulist> |
michael@0 | 190 | </hbox> |
michael@0 | 191 | <hbox id="keepRow" class="indent"> |
michael@0 | 192 | <label id="keepUntil" |
michael@0 | 193 | control="keepCookiesUntil" |
michael@0 | 194 | accesskey="&keepUntil.accesskey;">&keepUntil.label;</label> |
michael@0 | 195 | <menulist id="keepCookiesUntil" |
michael@0 | 196 | preference="network.cookie.lifetimePolicy"> |
michael@0 | 197 | <menupopup> |
michael@0 | 198 | <menuitem label="&expire.label;" value="0"/> |
michael@0 | 199 | <menuitem label="&close.label;" value="2"/> |
michael@0 | 200 | <menuitem label="&askEachTime.label;" value="1"/> |
michael@0 | 201 | </menupopup> |
michael@0 | 202 | </menulist> |
michael@0 | 203 | </hbox> |
michael@0 | 204 | <hbox flex="1"> |
michael@0 | 205 | <button id="showCookiesButton" |
michael@0 | 206 | label="&showCookies.label;" accesskey="&showCookies.accesskey;" |
michael@0 | 207 | oncommand="gPrivacyPane.showCookies();" |
michael@0 | 208 | preference="pref.privacy.disable_button.view_cookies"/> |
michael@0 | 209 | </hbox> |
michael@0 | 210 | <hbox id="clearDataBox" align="center"> |
michael@0 | 211 | <checkbox id="alwaysClear" flex="1" |
michael@0 | 212 | preference="privacy.sanitize.sanitizeOnShutdown" |
michael@0 | 213 | label="&clearOnClose.label;" |
michael@0 | 214 | accesskey="&clearOnClose.accesskey;"/> |
michael@0 | 215 | <button id="clearDataSettings" label="&clearOnCloseSettings.label;" |
michael@0 | 216 | accesskey="&clearOnCloseSettings.accesskey;" |
michael@0 | 217 | oncommand="gPrivacyPane.showClearPrivateDataSettings();"/> |
michael@0 | 218 | </hbox> |
michael@0 | 219 | </vbox> |
michael@0 | 220 | </vbox> |
michael@0 | 221 | </vbox> |
michael@0 | 222 | </deck> |
michael@0 | 223 | </groupbox> |
michael@0 | 224 | |
michael@0 | 225 | <!-- Location Bar --> |
michael@0 | 226 | <groupbox id="locationBarGroup" data-category="panePrivacy" hidden="true"> |
michael@0 | 227 | <caption label="&locationBar.label;"/> |
michael@0 | 228 | <hbox align="center"> |
michael@0 | 229 | <label id="locationBarSuggestionLabel" |
michael@0 | 230 | control="locationBarSuggestion" |
michael@0 | 231 | accesskey="&locbar.pre.accessKey;">&locbar.pre.label;</label> |
michael@0 | 232 | <menulist id="locationBarSuggestion" |
michael@0 | 233 | preference="browser.urlbar.autocomplete.enabled" |
michael@0 | 234 | onsyncfrompreference="return gPrivacyPane.readSuggestionPref();" |
michael@0 | 235 | onsynctopreference="return gPrivacyPane.writeSuggestionPref();"> |
michael@0 | 236 | <menupopup> |
michael@0 | 237 | <menuitem label="&locbar.both.label;" value="0"/> |
michael@0 | 238 | <menuitem label="&locbar.history.label;" value="1"/> |
michael@0 | 239 | <menuitem label="&locbar.bookmarks.label;" value="2"/> |
michael@0 | 240 | <menuitem label="&locbar.nothing.label;" value="-1"/> |
michael@0 | 241 | </menupopup> |
michael@0 | 242 | </menulist> |
michael@0 | 243 | <label>&locbar.post.label;</label> |
michael@0 | 244 | </hbox> |
michael@0 | 245 | </groupbox> |