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.

Mercurial (777e60ca8853)

VCS Links

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
<?xml version="1.0"?>

<!-- -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -->
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!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"
         xmlns:html="http://www.w3.org/1999/xhtml">

  <prefpane id="panePrivacy"
            onpaneload="gPrivacyPane.init();"
            helpTopic="prefs-privacy">

    <preferences id="privacyPreferences">
  
      <!-- Tracking -->
      <preference id="privacy.donottrackheader.enabled"
                  name="privacy.donottrackheader.enabled"
                  type="bool"/>
      <preference id="privacy.donottrackheader.value"
                  name="privacy.donottrackheader.value"
                  type="int"/>

      <!-- XXX button prefs -->
      <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"/>

      <!-- Location Bar -->
      <preference id="browser.urlbar.autocomplete.enabled"
                  name="browser.urlbar.autocomplete.enabled"
                  type="bool"/>
      <preference id="browser.urlbar.default.behavior"
                  name="browser.urlbar.default.behavior"
                  type="int"
                  onchange="document.getElementById('browser.urlbar.autocomplete.enabled').updateElements();"/>

      <!-- History -->
      <preference id="places.history.enabled"
                  name="places.history.enabled"
                  type="bool"/>
      <preference id="browser.formfill.enable"
                  name="browser.formfill.enable"
                  type="bool"/>

      <!-- Cookies -->
      <preference id="network.cookie.cookieBehavior"      name="network.cookie.cookieBehavior"      type="int"/>
      <preference id="network.cookie.lifetimePolicy"      name="network.cookie.lifetimePolicy"      type="int"/>
      <preference id="network.cookie.blockFutureCookies"  name="network.cookie.blockFutureCookies"  type="bool"/>

      <!-- Clear Private Data -->
      <preference id="privacy.sanitize.sanitizeOnShutdown"
                  name="privacy.sanitize.sanitizeOnShutdown"
                  onchange="gPrivacyPane._updateSanitizeSettingsButton();"
                  type="bool"/>
      <preference id="privacy.sanitize.timeSpan"
                  name="privacy.sanitize.timeSpan"
                  type="int"/>

      <!-- Private Browsing -->
      <preference id="browser.privatebrowsing.autostart"
                  name="browser.privatebrowsing.autostart"
                  onchange="gPrivacyPane.updatePrivacyMicroControls();"
                  type="bool"/>

    </preferences>
    
    <stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/>
    
    <script type="application/javascript" src="chrome://browser/content/preferences/privacy.js"/>

    <!-- Tracking -->
    <groupbox id="trackingGroup" align="start">
      <caption label="&tracking.label;"/>
      <radiogroup id="doNotTrackSelection" orient="vertical"
                  preference="privacy.donottrackheader.value"
                  onsynctopreference="return gPrivacyPane.setTrackingPrefs()"
                  onsyncfrompreference="return gPrivacyPane.getTrackingPrefs()">
        <radio id="dntnotrack" value="1" label="&dntTrackingNotOkay.label2;"
                accesskey="&dntTrackingNotOkay.accesskey;" />
        <radio id="dntdotrack" value="0" label="&dntTrackingOkay.label2;"
                accesskey="&dntTrackingOkay.accesskey;" />
        <radio id="dntnopref" value="-1" label="&dntTrackingNopref.label2;"
                accesskey="&dntTrackingNopref.accesskey;" />
      </radiogroup>
      <label class="text-link" id="doNotTrackInfo"
             href="https://www.mozilla.org/dnt"
             value="&doNotTrackInfo.label;"/>

    </groupbox>

    <!-- History -->
    <groupbox id="historyGroup">
      <caption label="&history.label;"/>

      <hbox align="center">
        <label id="historyModeLabel"
               control="historyMode"
               accesskey="&historyHeader.pre.accesskey;">&historyHeader.pre.label;</label>
        <menulist id="historyMode"
                  oncommand="gPrivacyPane.updateHistoryModePane();
                             gPrivacyPane.updateHistoryModePrefs();
                             gPrivacyPane.updatePrivacyMicroControls();
                             gPrivacyPane.updateAutostart();">
          <menupopup>
            <menuitem label="&historyHeader.remember.label;" value="remember"/>
            <menuitem label="&historyHeader.dontremember.label;" value="dontremember"/>
            <menuitem label="&historyHeader.custom.label;" value="custom"/>
          </menupopup>
        </menulist>
        <label>&historyHeader.post.label;</label>
      </hbox>

      <deck id="historyPane">
        <vbox align="center" id="historyRememberPane">
          <hbox align="center" flex="1">
            <spacer flex="1" class="indent"/>
            <vbox flex="2">
              <description>&rememberDescription.label;</description>
              <separator/>
              <description>&rememberActions.pre.label;<html:a
                class="inline-link" href="#"
                onclick="gPrivacyPane.clearPrivateDataNow(false); return false;"
              >&rememberActions.clearHistory.label;</html:a>&rememberActions.middle.label;<html:a
                class="inline-link" href="#"
                onclick="gPrivacyPane.showCookies(); return false;"
              >&rememberActions.removeCookies.label;</html:a>&rememberActions.post.label;</description>
            </vbox>
            <spacer flex="1" class="indent"/>
          </hbox>
        </vbox>
        <vbox align="center" id="historyDontRememberPane">
          <hbox align="center" flex="1">
            <spacer flex="1" class="indent"/>
            <vbox flex="2">
              <description>&dontrememberDescription.label;</description>
              <separator/>
              <description>&dontrememberActions.pre.label;<html:a
                class="inline-link" href="#"
                onclick="gPrivacyPane.clearPrivateDataNow(true); return false;"
              >&dontrememberActions.clearHistory.label;</html:a>&dontrememberActions.post.label;</description>
            </vbox>
            <spacer flex="1" class="indent"/>
          </hbox>
        </vbox>
        <vbox id="historyCustomPane">
          <separator class="thin"/>
          <checkbox id="privateBrowsingAutoStart" class="indent"
                    label="&privateBrowsingPermanent2.label;"
                    accesskey="&privateBrowsingPermanent2.accesskey;"
                    preference="browser.privatebrowsing.autostart"
                    oncommand="gPrivacyPane.updateAutostart()"/>

          <vbox class="indent">
            <vbox class="indent">
              <checkbox id="rememberHistory"
                        label="&rememberHistory2.label;"
                        accesskey="&rememberHistory2.accesskey;"
                        preference="places.history.enabled"/>
              <checkbox id="rememberForms"
                        label="&rememberSearchForm.label;"
                        accesskey="&rememberSearchForm.accesskey;"
                        preference="browser.formfill.enable"/>

              <hbox id="cookiesBox">
                <checkbox id="acceptCookies" label="&acceptCookies.label;" flex="1"
                          preference="network.cookie.cookieBehavior"
                          accesskey="&acceptCookies.accesskey;"
                          onsyncfrompreference="return gPrivacyPane.readAcceptCookies();"
                          onsynctopreference="return gPrivacyPane.writeAcceptCookies();"/>
                <button id="cookieExceptions" oncommand="gPrivacyPane.showCookieExceptions();"
                        label="&cookieExceptions.label;" accesskey="&cookieExceptions.accesskey;"
                        preference="pref.privacy.disable_button.cookie_exceptions"/>
              </hbox>

              <hbox id="acceptThirdPartyRow" class="indent">
                <hbox id="acceptThirdPartyBox" align="center">
                  <label id="acceptThirdPartyLabel" control="acceptThirdPartyMenu"
                         accesskey="&acceptThirdParty.pre.accesskey;">&acceptThirdParty.pre.label;</label>
                  <menulist id="acceptThirdPartyMenu" preference="network.cookie.cookieBehavior"
                  onsyncfrompreference="return gPrivacyPane.readAcceptThirdPartyCookies();"
                  onsynctopreference="return gPrivacyPane.writeAcceptThirdPartyCookies();">
                    <menupopup>
                      <menuitem label="&acceptThirdParty.always.label;" value="always"/>
                      <menuitem label="&acceptThirdParty.visited.label;" value="visited"/>
                      <menuitem label="&acceptThirdParty.never.label;" value="never"/>
                    </menupopup>
                  </menulist>
                </hbox>
              </hbox>
              
              <hbox id="keepRow" class="indent">
                <hbox id="keepBox" align="center">
                  <label id="keepUntil"
                         control="keepCookiesUntil"
                         accesskey="&keepUntil.accesskey;">&keepUntil.label;</label>
                  <menulist id="keepCookiesUntil"
                            preference="network.cookie.lifetimePolicy">
                    <menupopup>
                      <menuitem label="&expire.label;" value="0"/>
                      <menuitem label="&close.label;" value="2"/>
                      <menuitem label="&askEachTime.label;" value="1"/>
                    </menupopup>
                  </menulist>
                </hbox>
                <hbox flex="1"/>
                <button id="showCookiesButton"
                        label="&showCookies.label;" accesskey="&showCookies.accesskey;"
                        oncommand="gPrivacyPane.showCookies();"
                        preference="pref.privacy.disable_button.view_cookies"/>
              </hbox>

              <hbox id="clearDataBox" align="center">
                <checkbox id="alwaysClear" flex="1"
                          preference="privacy.sanitize.sanitizeOnShutdown"
                          label="&clearOnClose.label;"
                          accesskey="&clearOnClose.accesskey;"/>
                <button id="clearDataSettings" label="&clearOnCloseSettings.label;"
                        accesskey="&clearOnCloseSettings.accesskey;"
                        oncommand="gPrivacyPane.showClearPrivateDataSettings();"/>
              </hbox>
            </vbox>
          </vbox>
        </vbox>
      </deck>

    </groupbox>

    <!-- Location Bar -->
    <groupbox id="locationBarGroup">
      <caption label="&locationBar.label;"/>

      <hbox align="center">
        <label id="locationBarSuggestionLabel"
               control="locationBarSuggestion"
               accesskey="&locbar.pre.accessKey;">&locbar.pre.label;</label>
        <menulist id="locationBarSuggestion"
                  preference="browser.urlbar.autocomplete.enabled"
                  onsyncfrompreference="return gPrivacyPane.readSuggestionPref();"
                  onsynctopreference="return gPrivacyPane.writeSuggestionPref();">
          <menupopup>
            <menuitem label="&locbar.both.label;" value="0"/>
            <menuitem label="&locbar.history.label;" value="1"/>
            <menuitem label="&locbar.bookmarks.label;" value="2"/>
            <menuitem label="&locbar.nothing.label;" value="-1"/>
          </menupopup>
        </menulist>
        <label>&locbar.post.label;</label>
      </hbox>
    </groupbox>

  </prefpane>

</overlay>