Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | |
michael@0 | 3 | <!-- -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- --> |
michael@0 | 4 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 5 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 6 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 7 | |
michael@0 | 8 | <!DOCTYPE overlay [ |
michael@0 | 9 | <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> |
michael@0 | 10 | <!ENTITY % privacyDTD SYSTEM "chrome://browser/locale/preferences/privacy.dtd"> |
michael@0 | 11 | %brandDTD; |
michael@0 | 12 | %privacyDTD; |
michael@0 | 13 | ]> |
michael@0 | 14 | |
michael@0 | 15 | <overlay id="PrivacyPaneOverlay" |
michael@0 | 16 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 17 | xmlns:html="http://www.w3.org/1999/xhtml"> |
michael@0 | 18 | |
michael@0 | 19 | <prefpane id="panePrivacy" |
michael@0 | 20 | onpaneload="gPrivacyPane.init();" |
michael@0 | 21 | helpTopic="prefs-privacy"> |
michael@0 | 22 | |
michael@0 | 23 | <preferences id="privacyPreferences"> |
michael@0 | 24 | |
michael@0 | 25 | <!-- Tracking --> |
michael@0 | 26 | <preference id="privacy.donottrackheader.enabled" |
michael@0 | 27 | name="privacy.donottrackheader.enabled" |
michael@0 | 28 | type="bool"/> |
michael@0 | 29 | <preference id="privacy.donottrackheader.value" |
michael@0 | 30 | name="privacy.donottrackheader.value" |
michael@0 | 31 | type="int"/> |
michael@0 | 32 | |
michael@0 | 33 | <!-- XXX button prefs --> |
michael@0 | 34 | <preference id="pref.privacy.disable_button.cookie_exceptions" |
michael@0 | 35 | name="pref.privacy.disable_button.cookie_exceptions" |
michael@0 | 36 | type="bool"/> |
michael@0 | 37 | <preference id="pref.privacy.disable_button.view_cookies" |
michael@0 | 38 | name="pref.privacy.disable_button.view_cookies" |
michael@0 | 39 | type="bool"/> |
michael@0 | 40 | |
michael@0 | 41 | <!-- Location Bar --> |
michael@0 | 42 | <preference id="browser.urlbar.autocomplete.enabled" |
michael@0 | 43 | name="browser.urlbar.autocomplete.enabled" |
michael@0 | 44 | type="bool"/> |
michael@0 | 45 | <preference id="browser.urlbar.default.behavior" |
michael@0 | 46 | name="browser.urlbar.default.behavior" |
michael@0 | 47 | type="int" |
michael@0 | 48 | onchange="document.getElementById('browser.urlbar.autocomplete.enabled').updateElements();"/> |
michael@0 | 49 | |
michael@0 | 50 | <!-- History --> |
michael@0 | 51 | <preference id="places.history.enabled" |
michael@0 | 52 | name="places.history.enabled" |
michael@0 | 53 | type="bool"/> |
michael@0 | 54 | <preference id="browser.formfill.enable" |
michael@0 | 55 | name="browser.formfill.enable" |
michael@0 | 56 | type="bool"/> |
michael@0 | 57 | |
michael@0 | 58 | <!-- Cookies --> |
michael@0 | 59 | <preference id="network.cookie.cookieBehavior" name="network.cookie.cookieBehavior" type="int"/> |
michael@0 | 60 | <preference id="network.cookie.lifetimePolicy" name="network.cookie.lifetimePolicy" type="int"/> |
michael@0 | 61 | <preference id="network.cookie.blockFutureCookies" name="network.cookie.blockFutureCookies" type="bool"/> |
michael@0 | 62 | |
michael@0 | 63 | <!-- Clear Private Data --> |
michael@0 | 64 | <preference id="privacy.sanitize.sanitizeOnShutdown" |
michael@0 | 65 | name="privacy.sanitize.sanitizeOnShutdown" |
michael@0 | 66 | onchange="gPrivacyPane._updateSanitizeSettingsButton();" |
michael@0 | 67 | type="bool"/> |
michael@0 | 68 | <preference id="privacy.sanitize.timeSpan" |
michael@0 | 69 | name="privacy.sanitize.timeSpan" |
michael@0 | 70 | type="int"/> |
michael@0 | 71 | |
michael@0 | 72 | <!-- Private Browsing --> |
michael@0 | 73 | <preference id="browser.privatebrowsing.autostart" |
michael@0 | 74 | name="browser.privatebrowsing.autostart" |
michael@0 | 75 | onchange="gPrivacyPane.updatePrivacyMicroControls();" |
michael@0 | 76 | type="bool"/> |
michael@0 | 77 | |
michael@0 | 78 | </preferences> |
michael@0 | 79 | |
michael@0 | 80 | <stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/> |
michael@0 | 81 | |
michael@0 | 82 | <script type="application/javascript" src="chrome://browser/content/preferences/privacy.js"/> |
michael@0 | 83 | |
michael@0 | 84 | <!-- Tracking --> |
michael@0 | 85 | <groupbox id="trackingGroup" align="start"> |
michael@0 | 86 | <caption label="&tracking.label;"/> |
michael@0 | 87 | <radiogroup id="doNotTrackSelection" orient="vertical" |
michael@0 | 88 | preference="privacy.donottrackheader.value" |
michael@0 | 89 | onsynctopreference="return gPrivacyPane.setTrackingPrefs()" |
michael@0 | 90 | onsyncfrompreference="return gPrivacyPane.getTrackingPrefs()"> |
michael@0 | 91 | <radio id="dntnotrack" value="1" label="&dntTrackingNotOkay.label2;" |
michael@0 | 92 | accesskey="&dntTrackingNotOkay.accesskey;" /> |
michael@0 | 93 | <radio id="dntdotrack" value="0" label="&dntTrackingOkay.label2;" |
michael@0 | 94 | accesskey="&dntTrackingOkay.accesskey;" /> |
michael@0 | 95 | <radio id="dntnopref" value="-1" label="&dntTrackingNopref.label2;" |
michael@0 | 96 | accesskey="&dntTrackingNopref.accesskey;" /> |
michael@0 | 97 | </radiogroup> |
michael@0 | 98 | <label class="text-link" id="doNotTrackInfo" |
michael@0 | 99 | href="https://www.mozilla.org/dnt" |
michael@0 | 100 | value="&doNotTrackInfo.label;"/> |
michael@0 | 101 | |
michael@0 | 102 | </groupbox> |
michael@0 | 103 | |
michael@0 | 104 | <!-- History --> |
michael@0 | 105 | <groupbox id="historyGroup"> |
michael@0 | 106 | <caption label="&history.label;"/> |
michael@0 | 107 | |
michael@0 | 108 | <hbox align="center"> |
michael@0 | 109 | <label id="historyModeLabel" |
michael@0 | 110 | control="historyMode" |
michael@0 | 111 | accesskey="&historyHeader.pre.accesskey;">&historyHeader.pre.label;</label> |
michael@0 | 112 | <menulist id="historyMode" |
michael@0 | 113 | oncommand="gPrivacyPane.updateHistoryModePane(); |
michael@0 | 114 | gPrivacyPane.updateHistoryModePrefs(); |
michael@0 | 115 | gPrivacyPane.updatePrivacyMicroControls(); |
michael@0 | 116 | gPrivacyPane.updateAutostart();"> |
michael@0 | 117 | <menupopup> |
michael@0 | 118 | <menuitem label="&historyHeader.remember.label;" value="remember"/> |
michael@0 | 119 | <menuitem label="&historyHeader.dontremember.label;" value="dontremember"/> |
michael@0 | 120 | <menuitem label="&historyHeader.custom.label;" value="custom"/> |
michael@0 | 121 | </menupopup> |
michael@0 | 122 | </menulist> |
michael@0 | 123 | <label>&historyHeader.post.label;</label> |
michael@0 | 124 | </hbox> |
michael@0 | 125 | |
michael@0 | 126 | <deck id="historyPane"> |
michael@0 | 127 | <vbox align="center" id="historyRememberPane"> |
michael@0 | 128 | <hbox align="center" flex="1"> |
michael@0 | 129 | <spacer flex="1" class="indent"/> |
michael@0 | 130 | <vbox flex="2"> |
michael@0 | 131 | <description>&rememberDescription.label;</description> |
michael@0 | 132 | <separator/> |
michael@0 | 133 | <description>&rememberActions.pre.label;<html:a |
michael@0 | 134 | class="inline-link" href="#" |
michael@0 | 135 | onclick="gPrivacyPane.clearPrivateDataNow(false); return false;" |
michael@0 | 136 | >&rememberActions.clearHistory.label;</html:a>&rememberActions.middle.label;<html:a |
michael@0 | 137 | class="inline-link" href="#" |
michael@0 | 138 | onclick="gPrivacyPane.showCookies(); return false;" |
michael@0 | 139 | >&rememberActions.removeCookies.label;</html:a>&rememberActions.post.label;</description> |
michael@0 | 140 | </vbox> |
michael@0 | 141 | <spacer flex="1" class="indent"/> |
michael@0 | 142 | </hbox> |
michael@0 | 143 | </vbox> |
michael@0 | 144 | <vbox align="center" id="historyDontRememberPane"> |
michael@0 | 145 | <hbox align="center" flex="1"> |
michael@0 | 146 | <spacer flex="1" class="indent"/> |
michael@0 | 147 | <vbox flex="2"> |
michael@0 | 148 | <description>&dontrememberDescription.label;</description> |
michael@0 | 149 | <separator/> |
michael@0 | 150 | <description>&dontrememberActions.pre.label;<html:a |
michael@0 | 151 | class="inline-link" href="#" |
michael@0 | 152 | onclick="gPrivacyPane.clearPrivateDataNow(true); return false;" |
michael@0 | 153 | >&dontrememberActions.clearHistory.label;</html:a>&dontrememberActions.post.label;</description> |
michael@0 | 154 | </vbox> |
michael@0 | 155 | <spacer flex="1" class="indent"/> |
michael@0 | 156 | </hbox> |
michael@0 | 157 | </vbox> |
michael@0 | 158 | <vbox id="historyCustomPane"> |
michael@0 | 159 | <separator class="thin"/> |
michael@0 | 160 | <checkbox id="privateBrowsingAutoStart" class="indent" |
michael@0 | 161 | label="&privateBrowsingPermanent2.label;" |
michael@0 | 162 | accesskey="&privateBrowsingPermanent2.accesskey;" |
michael@0 | 163 | preference="browser.privatebrowsing.autostart" |
michael@0 | 164 | oncommand="gPrivacyPane.updateAutostart()"/> |
michael@0 | 165 | |
michael@0 | 166 | <vbox class="indent"> |
michael@0 | 167 | <vbox class="indent"> |
michael@0 | 168 | <checkbox id="rememberHistory" |
michael@0 | 169 | label="&rememberHistory2.label;" |
michael@0 | 170 | accesskey="&rememberHistory2.accesskey;" |
michael@0 | 171 | preference="places.history.enabled"/> |
michael@0 | 172 | <checkbox id="rememberForms" |
michael@0 | 173 | label="&rememberSearchForm.label;" |
michael@0 | 174 | accesskey="&rememberSearchForm.accesskey;" |
michael@0 | 175 | preference="browser.formfill.enable"/> |
michael@0 | 176 | |
michael@0 | 177 | <hbox id="cookiesBox"> |
michael@0 | 178 | <checkbox id="acceptCookies" label="&acceptCookies.label;" flex="1" |
michael@0 | 179 | preference="network.cookie.cookieBehavior" |
michael@0 | 180 | accesskey="&acceptCookies.accesskey;" |
michael@0 | 181 | onsyncfrompreference="return gPrivacyPane.readAcceptCookies();" |
michael@0 | 182 | onsynctopreference="return gPrivacyPane.writeAcceptCookies();"/> |
michael@0 | 183 | <button id="cookieExceptions" oncommand="gPrivacyPane.showCookieExceptions();" |
michael@0 | 184 | label="&cookieExceptions.label;" accesskey="&cookieExceptions.accesskey;" |
michael@0 | 185 | preference="pref.privacy.disable_button.cookie_exceptions"/> |
michael@0 | 186 | </hbox> |
michael@0 | 187 | |
michael@0 | 188 | <hbox id="acceptThirdPartyRow" class="indent"> |
michael@0 | 189 | <hbox id="acceptThirdPartyBox" align="center"> |
michael@0 | 190 | <label id="acceptThirdPartyLabel" control="acceptThirdPartyMenu" |
michael@0 | 191 | accesskey="&acceptThirdParty.pre.accesskey;">&acceptThirdParty.pre.label;</label> |
michael@0 | 192 | <menulist id="acceptThirdPartyMenu" preference="network.cookie.cookieBehavior" |
michael@0 | 193 | onsyncfrompreference="return gPrivacyPane.readAcceptThirdPartyCookies();" |
michael@0 | 194 | onsynctopreference="return gPrivacyPane.writeAcceptThirdPartyCookies();"> |
michael@0 | 195 | <menupopup> |
michael@0 | 196 | <menuitem label="&acceptThirdParty.always.label;" value="always"/> |
michael@0 | 197 | <menuitem label="&acceptThirdParty.visited.label;" value="visited"/> |
michael@0 | 198 | <menuitem label="&acceptThirdParty.never.label;" value="never"/> |
michael@0 | 199 | </menupopup> |
michael@0 | 200 | </menulist> |
michael@0 | 201 | </hbox> |
michael@0 | 202 | </hbox> |
michael@0 | 203 | |
michael@0 | 204 | <hbox id="keepRow" class="indent"> |
michael@0 | 205 | <hbox id="keepBox" align="center"> |
michael@0 | 206 | <label id="keepUntil" |
michael@0 | 207 | control="keepCookiesUntil" |
michael@0 | 208 | accesskey="&keepUntil.accesskey;">&keepUntil.label;</label> |
michael@0 | 209 | <menulist id="keepCookiesUntil" |
michael@0 | 210 | preference="network.cookie.lifetimePolicy"> |
michael@0 | 211 | <menupopup> |
michael@0 | 212 | <menuitem label="&expire.label;" value="0"/> |
michael@0 | 213 | <menuitem label="&close.label;" value="2"/> |
michael@0 | 214 | <menuitem label="&askEachTime.label;" value="1"/> |
michael@0 | 215 | </menupopup> |
michael@0 | 216 | </menulist> |
michael@0 | 217 | </hbox> |
michael@0 | 218 | <hbox flex="1"/> |
michael@0 | 219 | <button id="showCookiesButton" |
michael@0 | 220 | label="&showCookies.label;" accesskey="&showCookies.accesskey;" |
michael@0 | 221 | oncommand="gPrivacyPane.showCookies();" |
michael@0 | 222 | preference="pref.privacy.disable_button.view_cookies"/> |
michael@0 | 223 | </hbox> |
michael@0 | 224 | |
michael@0 | 225 | <hbox id="clearDataBox" align="center"> |
michael@0 | 226 | <checkbox id="alwaysClear" flex="1" |
michael@0 | 227 | preference="privacy.sanitize.sanitizeOnShutdown" |
michael@0 | 228 | label="&clearOnClose.label;" |
michael@0 | 229 | accesskey="&clearOnClose.accesskey;"/> |
michael@0 | 230 | <button id="clearDataSettings" label="&clearOnCloseSettings.label;" |
michael@0 | 231 | accesskey="&clearOnCloseSettings.accesskey;" |
michael@0 | 232 | oncommand="gPrivacyPane.showClearPrivateDataSettings();"/> |
michael@0 | 233 | </hbox> |
michael@0 | 234 | </vbox> |
michael@0 | 235 | </vbox> |
michael@0 | 236 | </vbox> |
michael@0 | 237 | </deck> |
michael@0 | 238 | |
michael@0 | 239 | </groupbox> |
michael@0 | 240 | |
michael@0 | 241 | <!-- Location Bar --> |
michael@0 | 242 | <groupbox id="locationBarGroup"> |
michael@0 | 243 | <caption label="&locationBar.label;"/> |
michael@0 | 244 | |
michael@0 | 245 | <hbox align="center"> |
michael@0 | 246 | <label id="locationBarSuggestionLabel" |
michael@0 | 247 | control="locationBarSuggestion" |
michael@0 | 248 | accesskey="&locbar.pre.accessKey;">&locbar.pre.label;</label> |
michael@0 | 249 | <menulist id="locationBarSuggestion" |
michael@0 | 250 | preference="browser.urlbar.autocomplete.enabled" |
michael@0 | 251 | onsyncfrompreference="return gPrivacyPane.readSuggestionPref();" |
michael@0 | 252 | onsynctopreference="return gPrivacyPane.writeSuggestionPref();"> |
michael@0 | 253 | <menupopup> |
michael@0 | 254 | <menuitem label="&locbar.both.label;" value="0"/> |
michael@0 | 255 | <menuitem label="&locbar.history.label;" value="1"/> |
michael@0 | 256 | <menuitem label="&locbar.bookmarks.label;" value="2"/> |
michael@0 | 257 | <menuitem label="&locbar.nothing.label;" value="-1"/> |
michael@0 | 258 | </menupopup> |
michael@0 | 259 | </menulist> |
michael@0 | 260 | <label>&locbar.post.label;</label> |
michael@0 | 261 | </hbox> |
michael@0 | 262 | </groupbox> |
michael@0 | 263 | |
michael@0 | 264 | </prefpane> |
michael@0 | 265 | |
michael@0 | 266 | </overlay> |