DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434
<?xml version="1.0"?>

# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
# 
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
# 
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
# 
# The Original Code is the Firefox Preferences System.
# 
# The Initial Developer of the Original Code is Ben Goodger.
# Portions created by the Initial Developer are Copyright (C) 2005
# the Initial Developer. All Rights Reserved.
# 
# Contributor(s):
#   Ben Goodger <ben@mozilla.org>
# 
# 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
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
# 
# ***** END LICENSE BLOCK *****

<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
<!ENTITY % privacyDTD SYSTEM "chrome://browser/locale/preferences/privacy.dtd">
%brandDTD;
%privacyDTD;
]>

<overlay id="PrivacyPaneOverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <prefpane id="panePrivacy" onpaneload="gPrivacyPane.init();"
            helpURI="chrome://browser/locale/help/help.rdf">

    <preferences id="privacyPreferences">
      <preference id="browser.history_expire_days"        name="browser.history_expire_days"        type="int"/>
      <preference id="browser.formfill.enable"            name="browser.formfill.enable"            type="bool"/>
      <preference id="signon.rememberSignons"             name="signon.rememberSignons"             type="bool"/>
      <preference id="browser.download.manager.retention" name="browser.download.manager.retention" type="int"/>
      <preference id="network.cookie.cookieBehavior"      name="network.cookie.cookieBehavior"      type="int" onchange="gPrivacyPane.enableCookiesChanged();"/>
      <preference id="network.cookie.blockFutureCookies"  name="network.cookie.blockFutureCookies"  type="bool"/>
      <preference id="network.cookie.lifetimePolicy"      name="network.cookie.lifetimePolicy"      type="int"/>
      <preference id="browser.cache.disk.capacity"        name="browser.cache.disk.capacity"        type="int"/>
      <preference id="browser.preferences.privacy.selectedTabIndex"
                  name="browser.preferences.privacy.selectedTabIndex"
                  type="int"/>
      <preference id="pref.privacy.disable_button.clear_history"
                  name="pref.privacy.disable_button.clear_history"
                  type="bool"/>
      <preference id="pref.privacy.disable_button.clear_formdata"
                  name="pref.privacy.disable_button.clear_formdata"
                  type="bool"/>
      <preference id="pref.privacy.disable_button.cookie_exceptions"
                  name="pref.privacy.disable_button.cookie_exceptions"
                  type="bool"/>
      <preference id="pref.privacy.disable_button.view_cookies"
                  name="pref.privacy.disable_button.view_cookies"
                  type="bool"/>
      <preference id="pref.privacy.disable_button.clear_cookies"
                  name="pref.privacy.disable_button.clear_cookies"
                  type="bool"/>
      <preference id="pref.privacy.disable_button.clear_cache"
                  name="pref.privacy.disable_button.clear_cache"
                  type="bool"/>
      <preference id="pref.privacy.disable_button.view_passwords"
                  name="pref.privacy.disable_button.view_passwords"
                  type="bool"/>
      <preference id="pref.privacy.disable_button.set_master_password"
                  name="pref.privacy.disable_button.set_master_password"
                  type="bool"/>
      <preference id="pref.privacy.disable_button.remove_master_password"
                  name="pref.privacy.disable_button.remove_master_password"
                  type="bool"/>
    </preferences>
    
    <stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/>
    
    <script type="application/x-javascript" src="chrome://browser/content/sanitize.js"/>
    <script type="application/x-javascript" src="chrome://browser/content/preferences/privacy.js"/>

    <description control="panePrivacy">&privacy.intro;</description>
    <separator class="thin"/>
    <tabbox id="privacyPrefs" flex="1"
            onselect="gPrivacyPane.tabSelectionChanged(event);">
      <tabs>
        <tab label="&itemHistory.label;"   helpTopic="prefs-history"/>
        <tab label="&itemFormData.label;"  helpTopic="prefs-saved-forms"/>
        <tab label="&itemPasswords.label;" helpTopic="prefs-passwords"/>
        <tab label="&itemDownloads.label;" helpTopic="prefs-download-history"/>
        <tab label="&itemCookies.label;"   helpTopic="prefs-cookies"/>
        <tab label="&itemCache.label;"     helpTopic="prefs-cache"/>
      </tabs>
      <tabpanels flex="1" xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
                 xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
                 xmlns:aaa="http://www.w3.org/2005/07/aaa">
        <tabpanel orient="vertical">
          <hbox xhtml2:role="wairole:label" id="historyDaysContainer" align="center">
            <label control="historyDays" accesskey="&rememberPages.accesskey;">&rememberPages.label;</label>
            <textbox id="historyDays" size="2" preference="browser.history_expire_days"
                     xhtml2:role="wairole:textfield" aaa:labelledby="historyDaysContainer"/>
            <label>&rememberDays.label;</label>
          </hbox>
          <separator flex="1"/>
          <hbox pack="end">
            <button icon="clear" label="&clearHistory.label;"
                    accesskey="&clearHistory.accesskey;"
                    oncommand="gPrivacyPane.clear(this);" item="history"
                    preference="pref.privacy.disable_button.clear_history"/>
          </hbox>
        </tabpanel>
        <tabpanel orient="vertical">
          <description control="saveFormHistory">&savedFormData.intro;</description>
          <vbox align="start">
            <checkbox id="saveFormHistory" preference="browser.formfill.enable"
                      label="&enableFormFill.label;" accesskey="&enableFormFill.accesskey;"/>
          </vbox>
          <separator flex="1"/>
          <hbox pack="end">
            <button icon="clear" label="&clearFormData.label;"
                    accesskey="&clearFormData.accesskey;"
                    oncommand="gPrivacyPane.clear(this);" item="formdata"
                    preference="pref.privacy.disable_button.clear_formdata"/>
          </hbox>
        </tabpanel>
        <tabpanel orient="vertical">
          <description control="savePasswords">&savedPasswords.intro;</description>
          <hbox>
            <checkbox id="savePasswords" 
                      label="&enablePasswords.label;" accesskey="&enablePasswords.accesskey;"
                      preference="signon.rememberSignons"/>
          </hbox>
          <separator/>
          <hbox align="start">
            <description control="setMasterPassword" flex="1">&masterPassword.intro;</description>
            <!-- XXXben - check for keychain access use -->
            <vbox>
              <button id="setMasterPassword" 
                      label="&setMasterPassword.label;" accesskey="&setMasterPassword.accesskey;"
                      oncommand="gPrivacyPane.changeMasterPassword();"
                      preference="pref.privacy.disable_button.set_master_password"/>
              <button id="removeMasterPassword"
                      label="&removeMasterPassword.label;" accesskey="&removeMasterPassword.accesskey;"
                      oncommand="gPrivacyPane.removeMasterPassword();"
                      preference="pref.privacy.disable_button.remove_master_password"/>
            </vbox>
          </hbox>
          <separator flex="1"/>
          <hbox>
            <button label="&viewPasswords.label;" accesskey="&viewPasswords.accesskey;"
                    oncommand="gPrivacyPane.viewPasswords();"
                    preference="pref.privacy.disable_button.view_passwords"/>
          </hbox>
        </tabpanel>
        <tabpanel orient="vertical">
          <description control="viewDownloads" >&downloadManager.intro;</description>
          <separator class="thin"/>
          <hbox align="center">
            <label accesskey="&downloadsRetentionPolicy.accesskey;" 
                   control="downloadsRetentionPolicy">&downloadsRetentionPolicy.label;</label> 
            <menulist id="downloadsRetentionPolicy" 
                      preference="browser.download.manager.retention">
              <menupopup>
                <menuitem value="0" label="&downloadsRemoveImmediately.label;"/>
                <menuitem value="1" label="&downloadsRemoveExit.label;"/>
                <menuitem value="2" label="&downloadsRemoveManually.label;"/>
              </menupopup>
            </menulist>
          </hbox>
          <separator flex="1"/>
          <hbox>
            <button id="viewDownloads" label="&viewDownloads.label;"
                    accesskey="&viewDownloads.accesskey;"
                    oncommand="gPrivacyPane.viewDownloads();"/>
            <spring flex="1"/>
            <button icon="clear" label="&clearDownloads.label;"
                    accesskey="&clearDownloads.accesskey;"
                    oncommand="gPrivacyPane.clear(this);" item="downloads"/>
          </hbox>
        </tabpanel>
        <tabpanel orient="vertical">
          <!-- Cookies are considered a distinct "privacy" item because they are 
              created without user interaction, unlike Software Installation, 
              Popup and Image whitelists -->
          <vbox>
            <description control="enableCookies">&cookies.intro;</description>
            <hbox>
              <checkbox id="enableCookies" preference="network.cookie.cookieBehavior"
                        label="&enableCookies.label;" accesskey="&enableCookies.accesskey;"
                        onsyncfrompreference="return gPrivacyPane.readEnableCookiesPref();"
                        onsynctopreference="return gPrivacyPane.writeEnableCookiesPref();"/>
              <button id="cookieExceptions" oncommand="gPrivacyPane.viewCookieExceptions();"
                      label="&exceptions.label;" accesskey="&cookieExceptions.accesskey;"
                      preference="pref.privacy.disable_button.cookie_exceptions"/>
            </hbox>
            <vbox align="start">
              <checkbox id="enableCookiesForOriginating" class="indent"
                        label="&enableCookiesForOriginating.label;"
                        accesskey="&enableCookiesForOriginating.accesskey;"
                        preference="network.cookie.cookieBehavior"
                        onsyncfrompreference="return gPrivacyPane.readEnableRestrictedPref();"
                        onsynctopreference="return gPrivacyPane.writeEnableCookiesPref();"/>
              <checkbox id="enableCookiesNotRemoved" class="indent"
                        label="&enableCookiesNotRemoved.label;"
                        accesskey="&enableCookiesNotRemoved.accesskey;"
                        preference="network.cookie.blockFutureCookies"/>
              <separator class="thin"/>
              <hbox align="center" class="indent">
                <label control="networkCookieLifetime" 
                       accesskey="&keepCookies.accesskey;">&keepCookies.label;</label>
                <menulist id="networkCookieLifetime" 
                          preference="network.cookie.lifetimePolicy">
                  <menupopup>
                    <menuitem value="0" label="&acceptNormally.label;"/>
                    <menuitem value="2" label="&acceptForSession.label;"/>
                    <menuitem value="1" label="&askAboutCookies.label;"/>
                  </menupopup>
                </menulist>
              </hbox>
            </vbox>
          </vbox>
          <separator flex="1"/>
          <separator/>
          <hbox>
            <button label="&viewCookies.label;" accesskey="&viewCookies.accesskey;"
                    oncommand="gPrivacyPane.viewCookies();"
                    preference="pref.privacy.disable_button.view_cookies"/>
            <spring flex="1"/>
            <button icon="clear" label="&clearCookies.label;"
                    accesskey="&clearCookies.accesskey;"
                    oncommand="gPrivacyPane.clear(this);" item="cookies"
                    preference="pref.privacy.disable_button.clear_cookies"/>
          </hbox>
        </tabpanel>
        <tabpanel orient="vertical">
          <description control="cacheSize">&cache.intro;</description>
          <hbox xhtml2:role="wairole:label" id="cacheSizeContainer" align="center">
            <label accesskey="&cacheUseUpTo.accesskey;" control="cacheSize">&cacheUseUpTo.label;</label>
            <textbox id="cacheSize" size="2" preference="browser.cache.disk.capacity"
                     onsyncfrompreference="return gPrivacyPane.readCacheSizePref();"
                     onsynctopreference="return gPrivacyPane.writeCacheSizePref();"
                     xhtml2:role="wairole:textfield" aaa:labelledby="cacheSizeContainer"/>
            <label>&cacheSize.label;</label>
          </hbox>
          <separator flex="1"/>
          <hbox pack="end">
            <button icon="clear" label="&clearCache.label;"
                    accesskey="&clearCache.accesskey;"
                    oncommand="gPrivacyPane.clear(this);" item="cache"
                    preference="pref.privacy.disable_button.clear_cache"/>
          </hbox>
        </tabpanel>
      </tabpanels>
    </tabbox>    
#if 0
    <hbox>
      <listbox id="itemList" seltype="single"
               onselect="gPrivacyPane.onItemSelect();"
               style="width: 10em;">
        <listitem label="&itemHistory.label;"/>
        <listitem label="&itemFormData.label;"/>
        <listitem label="&itemPasswords.label;"/>
        <listitem label="&itemDownloads.label;"/>
        <listitem label="&itemCookies.label;"/>
        <listitem label="&itemCache.label;"/>
      </listbox>
      <deck id="itemPreferences" flex="1">
        <groupbox orient="vertical" flex="1">
          <caption label="&itemHistory.label;"/>
          <hbox align="center">
            <label control="historyDays" accesskey="&rememberPages.accesskey;">&rememberPages.label;</label>
            <textbox id="historyDays" size="2" preference="browser.history_expire_days"/>
            <label>&rememberDays.label;</label>
          </hbox>
          <separator flex="1"/>
          <hbox pack="end">
            <button label="&clearHistory.label;" accesskey="&clearHistory.accesskey;"
                    oncommand="gPrivacyPane.clear(this);" item="history"/>
          </hbox>
        </groupbox>
        <groupbox orient="vertical" flex="1">
          <caption label="&itemFormData.label;"/>
          <description>&savedFormData.intro;</description>
          <vbox align="start">
            <checkbox id="saveFormHistory" preference="browser.formfill.enable"
                      label="&enableFormFill.label;" accesskey="&enableFormFill.accesskey;"/>
          </vbox>
          <separator flex="1"/>
          <hbox pack="end">
            <button label="&clearFormData.label;" accesskey="&clearFormData.accesskey;"
                    oncommand="gPrivacyPane.clear(this);" item="formdata"/>
          </hbox>
        </groupbox>
        <groupbox orient="vertical" flex="1">
          <caption label="&itemPasswords.label;"/>
          <description control="savePasswords" >&savedPasswords.intro;</description>
          <hbox align="center">
            <checkbox id="savePasswords" 
                      label="&enablePasswords.label;" accesskey="&enablePasswords.accesskey;"
                      preference="signon.rememberSignons" flex="1"/>
            <!-- XXXben - check for keychain access use -->
            <button id="setMasterPassword" 
                    label="&setMasterPassword.label;" accesskey="&setMasterPassword.accesskey;"
                    oncommand="gPrivacyPane.changeMasterPassword();"/>
          </hbox>
          <separator flex="1"/>
          <hbox>
            <button label="&viewPasswords.label;" accesskey="&viewPasswords.accesskey;"
                    oncommand="gPrivacyPane.viewPasswords();"/>
          </hbox>
        </groupbox>
        <groupbox orient="vertical" flex="1">
          <caption label="&itemDownloads.label;"/>
          <description control="viewDownloads">&downloadManager.intro;</description>
          <label accesskey="&downloadsRetentionPolicy.accesskey;" 
                 control="downloadsRetentionPolicy">&downloadsRetentionPolicy.label;</label> 
          <hbox>
            <menulist id="downloadsRetentionPolicy" 
                      preference="browser.download.manager.retention">
              <menupopup>
                <menuitem value="0" label="&downloadsRemoveImmediately.label;"/>
                <menuitem value="1" label="&downloadsRemoveExit.label;"/>
                <menuitem value="2" label="&downloadsRemoveManually.label;"/>
              </menupopup>
            </menulist>
          </hbox>
          <separator flex="1"/>
          <hbox>
            <button id="viewDownloads" label="&viewDownloads.label;"
                    accesskey="&viewDownloads.accesskey;"
                    oncommand="gPrivacyPane.viewDownloads();"/>
            <spring flex="1"/>
            <button label="&clearDownloads.label;" accesskey="&clearDownloads.accesskey;"
                    oncommand="gPrivacyPane.clear(this);" item="downloads"/>
          </hbox>
        </groupbox>
        <groupbox orient="vertical" flex="1">
          <!-- Cookies are considered a distinct "privacy" item because they are 
              created without user interaction, unlike Software Installation, 
              Popup and Image whitelists -->
          <caption label="&itemCookies.label;"/>
          <vbox>
            <description control="enableCookies">&cookies.intro;</description>
            <hbox>
              <checkbox id="enableCookies" preference="network.cookie.cookieBehavior"
                        label="&enableCookies.label;" accesskey="&enableCookies.accesskey;"
                        onsyncfrompreference="return gPrivacyPane.readEnableCookiesPref();"
                        onsynctopreference="return gPrivacyPane.writeEnableCookiesPref();"/>
              <spring flex="1"/>
              <button id="cookieExceptions" oncommand="gPrivacyPane.viewCookieExceptions();"
                      label="&exceptions.label;" accesskey="&cookieExceptions.accesskey;"/>
            </hbox>
            <vbox align="start">
              <checkbox id="enableCookiesForOriginating" class="indent"
                        label="&enableCookiesForOriginating.label;"
                        accesskey="&enableCookiesForOriginating.accesskey;"
                        preference="network.cookie.cookieBehavior"
                        onsyncfrompreference="return gPrivacyPane.readEnableRestrictedPref();"
                        onsynctopreference="return gPrivacyPane.writeEnableCookiesPref();"/>
              <checkbox id="enableCookiesNotRemoved" class="indent"
                        label="&enableCookiesNotRemoved.label;"
                        accesskey="&enableCookiesNotRemoved.accesskey;"
                        preference="network.cookie.blockFutureCookies"/>
              <separator class="thin"/>
              <hbox align="center" class="indent">
                <label control="networkCookieLifetime" 
                       accesskey="&keepCookies.accesskey;">&keepCookies.label;</label>
                <menulist id="networkCookieLifetime" 
                          preference="network.cookie.lifetimePolicy">
                  <menupopup>
                    <menuitem value="0" label="&acceptNormally.label;"/>
                    <menuitem value="2" label="&acceptForSession.label;"/>
                    <menuitem value="1" label="&askAboutCookies.label;"/>
                  </menupopup>
                </menulist>
              </hbox>
            </vbox>
          </vbox>
          <separator flex="1"/>
          <separator/>
          <hbox>
            <button label="&viewCookies.label;" accesskey="&viewCookies.accesskey;"
                    oncommand="gPrivacyPane.viewCookies();"/>
            <spring flex="1"/>
            <button label="&clearCookies.label;" accesskey="&clearCookies.accesskey;"
                    oncommand="gPrivacyPane.clear(this);" item="cookies"/>
          </hbox>
        </groupbox>
        <groupbox orient="vertical" flex="1">
          <caption label="&itemCache.label;"/>
          <description id="cacheSize">&cache.intro;</description>
          <hbox align="center">
            <label accesskey="&cacheUseUpTo.accesskey;" control="cacheSize">&cacheUseUpTo.label;</label>
            <textbox id="cacheSize" size="2" preference="browser.cache.disk.capacity"
                     onsyncfrompreference="return gPrivacyPane.readCacheSizePref();"
                     onsynctopreference="return gPrivacyPane.writeCacheSizePref();"/>
            <label>&cacheSize.label;</label>
          </hbox>
          <separator flex="1"/>
          <hbox pack="end">
            <button label="&clearCache.label;" accesskey="&clearCache.accesskey;"
                    oncommand="gPrivacyPane.clear(this);" item="cache"/>
          </hbox>
        </groupbox>
      </deck>
    </hbox>
#endif
    <separator class="thin"/>
    <hbox align="center">
      <description flex="1" control="sanitizeSettings" >&sanitize.intro;</description>
      <button id="sanitizeSettings" label="&sanitizeSettings.label;"
              accesskey="&sanitizeSettings.accesskey;"
              oncommand="gPrivacyPane.showSanitizeSettings();"/>
    </hbox>
    <separator/>
  </prefpane>

</overlay>