tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

protectionsPanel.inc.xhtml (19595B)


      1 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      2   - License, v. 2.0. If a copy of the MPL was not distributed with this
      3   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      4 
      5 <html:template id="template-protections-popup">
      6 <panel id="protections-popup"
      7       class="panel-no-padding"
      8       type="arrow"
      9       role="alertdialog"
     10       noautofocus="true"
     11       aria-labelledby="protections-popup-main-header-label"
     12       orient="vertical">
     13 
     14  <panelmultiview id="protections-popup-multiView"
     15                  mainViewId="protections-popup-mainView">
     16    <panelview id="protections-popup-mainView"
     17               class="PanelUI-subView"
     18               role="document"
     19               mainview-with-header="true"
     20               has-custom-header="true">
     21      <vbox id="protections-popup-mainView-panel-header-section">
     22        <box id="protections-popup-mainView-panel-header"
     23             class="panel-header panel-header-with-additional-element panel-header-with-info-button">
     24          <html:h1 id="protections-popup-main-header-label">
     25            <html:span id="protections-popup-mainView-panel-header-span"/>
     26          </html:h1>
     27          <toolbarbutton id="protections-popup-info-button" class="panel-info-button"
     28                         data-l10n-id="protections-panel-etp-more-info">
     29            <image/>
     30          </toolbarbutton>
     31          <toolbarbutton id="protections-popup-toast-panel-tp-on-desc" data-l10n-id="protections-panel-etp-on-header"></toolbarbutton>
     32          <toolbarbutton id="protections-popup-toast-panel-tp-off-desc" data-l10n-id="protections-panel-etp-off-header"></toolbarbutton>
     33        </box>
     34        <toolbarseparator></toolbarseparator>
     35 
     36        <html:div id="info-message-container" disabled="true">
     37          <!-- Info message will render in this container -->
     38        </html:div>
     39      </vbox>
     40 
     41      <toolbarseparator></toolbarseparator>
     42      <vbox id="protections-popup-main-body" class="panel-subview-body">
     43        <vbox id="protections-popup-tp-switch-section" class="protections-popup-section protections-popup-switch-section">
     44          <hbox id="protections-popup-tp-switch-section-header" class="protections-popup-switch-section-header">
     45            <vbox class="protections-popup-tp-switch-box" flex="1" align="stretch">
     46              <html:moz-toggle id="protections-popup-tp-switch" data-l10n-attrs="label, description"></html:moz-toggle>
     47            </vbox>
     48          </hbox>
     49        </vbox>
     50 
     51        <toolbarseparator observes="cmd_reportBrokenSite"></toolbarseparator>
     52        <toolbarbutton id="protections-popup-report-broken-site-button"
     53                     command="cmd_reportBrokenSite"
     54                     class="subviewbutton subviewbutton-nav"
     55                     data-l10n-id="protections-panel-report-broken-site"
     56                     disabled="true"
     57                     closemenu="none"/>
     58 
     59        <!-- Tracking Protection Section -->
     60        <toolbarseparator></toolbarseparator>
     61        <vbox id="tracking-protection-container" class="protections-popup-section">
     62          <description id="protections-popup-no-trackers-found-description" data-l10n-id="protections-panel-no-trackers-found"></description>
     63          <tooltip id="protections-popup-not-blocking-why-etp-on-tooltip" data-l10n-id="protections-panel-not-blocking-why-etp-on-tooltip-label"></tooltip>
     64          <tooltip id="protections-popup-not-blocking-why-etp-off-tooltip" data-l10n-id="protections-panel-not-blocking-why-etp-off-tooltip-label"></tooltip>
     65          <vbox id="protections-popup-content" flex="1">
     66            <vbox id="protections-popup-category-list">
     67              <toolbarbutton id="protections-popup-category-trackers"
     68                             class="protections-popup-category subviewbutton subviewbutton-iconic" align="center">
     69                <image class="toolbarbutton-icon protections-popup-category-icon trackers-icon"/>
     70                <label flex="1" class="toolbarbutton-text protections-popup-category-label" data-l10n-id="protections-panel-content-blocking-tracking-protection"></label>
     71              </toolbarbutton>
     72              <toolbarbutton id="protections-popup-category-socialblock"
     73                             class="protections-popup-category subviewbutton subviewbutton-iconic" align="center">
     74                <image class="toolbarbutton-icon protections-popup-category-icon socialblock-icon"/>
     75                <label flex="1"
     76                       class="toolbarbutton-text protections-popup-category-label" data-l10n-id="protections-panel-content-blocking-socialblock"></label>
     77              </toolbarbutton>
     78              <toolbarbutton id="protections-popup-category-cookies"
     79                             class="protections-popup-category subviewbutton subviewbutton-iconic" align="center">
     80                <image class="toolbarbutton-icon protections-popup-category-icon thirdpartycookies-icon"/>
     81                <label flex="1" id="protections-popup-cookies-category-label"
     82                       class="toolbarbutton-text protections-popup-category-label"/>
     83              </toolbarbutton>
     84              <toolbarbutton id="protections-popup-category-cryptominers"
     85                             class="protections-popup-category subviewbutton subviewbutton-iconic" align="center">
     86                <image class="toolbarbutton-icon protections-popup-category-icon cryptominers-icon"/>
     87                <label flex="1" class="toolbarbutton-text protections-popup-category-label" data-l10n-id="protections-panel-content-blocking-cryptominers-label"></label>
     88              </toolbarbutton>
     89              <toolbarbutton id="protections-popup-category-fingerprinters"
     90                             class="protections-popup-category subviewbutton subviewbutton-iconic" align="center">
     91                <image class="toolbarbutton-icon protections-popup-category-icon fingerprinters-icon"/>
     92                <label flex="1" class="toolbarbutton-text protections-popup-category-label" data-l10n-id="protections-panel-content-blocking-fingerprinters-label"></label>
     93              </toolbarbutton>
     94              <description id="protections-popup-blocking-section-header"
     95                           class="protections-popup-section-header"
     96                           role="heading"
     97                           aria-level="2" data-l10n-id="protections-panel-blocking-label"></description>
     98              <vbox id="protections-popup-smartblock-highlight-container" class="protections-popup-smartblock-section">
     99                <description id="protections-popup-smartblock-description"
    100                             class="protections-popup-section-header"
    101                             data-l10n-id="protections-panel-smartblock-desc-label"></description>
    102                <vbox id="protections-popup-smartblock-toggle-container" class="protections-popup-smartblock-toggle-box"></vbox>
    103              </vbox>
    104              <hbox id="protections-popup-not-blocking-section-header" class="protections-popup-section-header" flex="1">
    105                <description id="protections-popup-not-blocking-section-description" flex="1" role="heading" aria-level="2" data-l10n-id="protections-panel-not-blocking-label"></description>
    106                <label id="protections-popup-not-blocking-section-why" data-l10n-id="protections-panel-not-blocking-why-label"></label>
    107              </hbox>
    108              <description id="protections-popup-not-found-section-header"
    109                           class="protections-popup-section-header"
    110                           role="heading"
    111                           aria-level="2" data-l10n-id="protections-panel-not-found-label"></description>
    112            </vbox>
    113          </vbox>
    114        </vbox>
    115      </vbox>
    116 
    117      <toolbarseparator></toolbarseparator>
    118      <vbox id="protections-popup-footer" class="panel-subview-footer-button">
    119        <toolbarbutton id="protections-popup-settings-button"
    120                       class="subviewbutton protections-popup-footer-button">
    121          <image class="protections-popup-footer-icon protections-popup-settings-icon"/>
    122          <label class="toolbarbutton-text protections-popup-footer-button-label" flex="1" data-l10n-id="protections-panel-settings-label"></label>
    123          <label id="protections-popup-footer-protection-type-label" class="toolbarbutton-text"></label>
    124        </toolbarbutton>
    125        <stack id="protections-popup-show-report-stack">
    126          <toolbarbutton id="protections-popup-show-report-button"
    127                         class="subviewbutton protections-popup-footer-button">
    128            <image class="protections-popup-footer-icon protections-popup-show-report-icon"/>
    129            <label class="toolbarbutton-text protections-popup-footer-button-label" flex="1" data-l10n-id="protections-panel-protectionsdashboard-label"></label>
    130          </toolbarbutton>
    131          <hbox id="protections-popup-trackers-blocked-counter-box"
    132                align="center">
    133            <description id="protections-popup-trackers-blocked-counter-description"/>
    134          </hbox>
    135        </stack>
    136 
    137        <toolbarseparator id="protections-popup-milestones-separator"/>
    138        <hbox id="protections-popup-milestones" class="protections-popup-section">
    139          <toolbarbutton id="protections-popup-milestones-content"
    140                         class="subviewbutton"
    141                         flex="1">
    142            <label id="protections-popup-milestones-text" flex="1"
    143                   role="heading" aria-level="2"/>
    144            <image id="protections-popup-milestones-illustration"/>
    145          </toolbarbutton>
    146        </hbox>
    147 
    148        <toolbarseparator id="protections-popup-cookie-banner-section-separator"></toolbarseparator>
    149        <hbox id="protections-popup-cookie-banner-section" class="protections-popup-section" uiDisabled="true" enabled="true" flex="1">
    150          <toolbarbutton id="protections-popup-cookie-banner-switch"
    151                         class="subviewbutton subviewbutton-nav"
    152                         flex="1">
    153            <vbox flex="1">
    154              <label role="heading" class="protections-popup-switch-header" aria-level="2" data-l10n-id="protections-panel-cookie-banner-blocker-header"></label>
    155              <description id="protections-popup-cookie-banner-undetected" data-l10n-id="protections-panel-cookie-banner-handling-undetected"></description>
    156              <description id="protections-popup-cookie-banner-site-disabled" data-l10n-id="protections-panel-cookie-banner-handling-disabled"></description>
    157              <description id="protections-popup-cookie-banner-detected" data-l10n-id="protections-panel-cookie-banner-handling-enabled"></description>
    158            </vbox>
    159          </toolbarbutton>
    160        </hbox>
    161      </vbox>
    162    </panelview>
    163 
    164    <!-- Trackers SubView -->
    165    <panelview id="protections-popup-trackersView"
    166               class="PanelUI-subView"
    167               role="document">
    168        <vbox id="protections-popup-trackersView-description" class="protections-popup-description">
    169          <description data-l10n-id="protections-panel-tracking-content"></description>
    170          <hbox id="protections-popup-trackersView-shim-allow-hint"
    171                class="protections-popup-shim-allow-hint">
    172            <image class="protections-popup-shim-allow-hint-icon"></image>
    173            <vbox flex="1">
    174              <description data-l10n-id="protections-panel-description-shim-allowed">
    175              </description>
    176              <html:a class="protections-popup-shim-allow-learn-more"
    177                     is="moz-support-link"
    178                     data-l10n-id="protections-panel-description-shim-allowed-learn-more"
    179                     support-page="smartblock-enhanced-tracking-protection"
    180              />
    181            </vbox>
    182          </hbox>
    183        </vbox>
    184        <toolbarseparator></toolbarseparator>
    185        <vbox id="protections-popup-trackersView-list" class="panel-subview-body protections-popup-list">
    186        </vbox>
    187        <toolbarseparator></toolbarseparator>
    188        <toolbarbutton id="protections-popup-trackersView-settings-button"
    189                data-l10n-id="protections-panel-content-blocking-manage-settings"
    190                class="subviewbutton panel-subview-footer-button"/>
    191    </panelview>
    192 
    193    <!-- Social Block SubView -->
    194    <panelview id="protections-popup-socialblockView"
    195               class="PanelUI-subView"
    196               role="document">
    197        <vbox id="protections-popup-socialblockView-heading" class="protections-popup-description">
    198          <description data-l10n-id="protections-panel-social-media-trackers"></description>
    199          <hbox id="protections-popup-socialblockView-shim-allow-hint"
    200                class="protections-popup-shim-allow-hint">
    201            <image class="protections-popup-shim-allow-hint-icon"></image>
    202            <vbox flex="1">
    203              <description data-l10n-id="protections-panel-description-shim-allowed">
    204              </description>
    205              <html:a class="protections-popup-shim-allow-learn-more"
    206                     is="moz-support-link"
    207                     data-l10n-id="protections-panel-description-shim-allowed-learn-more"
    208                     support-page="smartblock-enhanced-tracking-protection"
    209              />
    210            </vbox>
    211          </hbox>
    212        </vbox>
    213        <toolbarseparator></toolbarseparator>
    214        <vbox id="protections-popup-socialblockView-list" class="panel-subview-body protections-popup-list">
    215        </vbox>
    216        <toolbarseparator></toolbarseparator>
    217        <toolbarbutton id="protections-popup-socialblockView-settings-button"
    218                data-l10n-id="protections-panel-content-blocking-manage-settings"
    219                class="subviewbutton panel-subview-footer-button"/>
    220    </panelview>
    221 
    222    <!-- Cookies SubView -->
    223    <panelview id="protections-popup-cookiesView"
    224               class="PanelUI-subView"
    225               role="document">
    226        <vbox id="protections-popup-cookiesView-heading" class="protections-popup-description">
    227          <description data-l10n-id="protections-panel-cross-site-tracking-cookies"></description>
    228        </vbox>
    229        <toolbarseparator></toolbarseparator>
    230        <vbox id="protections-popup-cookiesView-list" class="panel-subview-body protections-popup-list">
    231        </vbox>
    232        <toolbarseparator></toolbarseparator>
    233        <toolbarbutton id="protections-popup-cookiesView-settings-button"
    234                  data-l10n-id="protections-panel-content-blocking-manage-settings"
    235                  class="subviewbutton panel-subview-footer-button"/>
    236    </panelview>
    237 
    238    <!-- Fingerprinters SubView -->
    239    <panelview id="protections-popup-fingerprintersView"
    240               class="PanelUI-subView"
    241               role="document">
    242        <vbox id="protections-popup-fingerprinters-heading" class="protections-popup-description">
    243          <description data-l10n-id="protections-panel-fingerprinters"></description>
    244          <hbox id="protections-popup-fingerprintersView-shim-allow-hint"
    245                class="protections-popup-shim-allow-hint">
    246            <image class="protections-popup-shim-allow-hint-icon"></image>
    247            <vbox flex="1">
    248              <description data-l10n-id="protections-panel-description-shim-allowed">
    249              </description>
    250              <html:a class="protections-popup-shim-allow-learn-more"
    251                     is="moz-support-link"
    252                     data-l10n-id="protections-panel-description-shim-allowed-learn-more"
    253                     support-page="smartblock-enhanced-tracking-protection"
    254              />
    255            </vbox>
    256          </hbox>
    257        </vbox>
    258        <toolbarseparator></toolbarseparator>
    259        <vbox id="protections-popup-fingerprintersView-list" class="panel-subview-body protections-popup-list">
    260        </vbox>
    261        <toolbarseparator></toolbarseparator>
    262        <toolbarbutton id="protections-popup-fingerprintersView-settings-button"
    263                  data-l10n-id="protections-panel-content-blocking-manage-settings"
    264                  class="subviewbutton panel-subview-footer-button"/>
    265    </panelview>
    266 
    267    <!-- Cryptominers SubView -->
    268    <panelview id="protections-popup-cryptominersView"
    269               class="PanelUI-subView"
    270               role="document">
    271        <vbox id="protections-popup-cryptominers-heading" class="protections-popup-description">
    272          <description data-l10n-id="protections-panel-cryptominers"></description>
    273          <hbox id="protections-popup-cryptominersView-shim-allow-hint"
    274                class="protections-popup-shim-allow-hint">
    275            <image class="protections-popup-shim-allow-hint-icon"></image>
    276            <vbox flex="1">
    277              <description data-l10n-id="protections-panel-description-shim-allowed">
    278              </description>
    279              <html:a class="protections-popup-shim-allow-learn-more"
    280                     is="moz-support-link"
    281                     data-l10n-id="protections-panel-description-shim-allowed-learn-more"
    282                     support-page="smartblock-enhanced-tracking-protection"
    283              />
    284            </vbox>
    285          </hbox>
    286        </vbox>
    287        <toolbarseparator></toolbarseparator>
    288        <vbox id="protections-popup-cryptominersView-list" class="panel-subview-body protections-popup-list">
    289        </vbox>
    290        <toolbarseparator></toolbarseparator>
    291        <toolbarbutton id="protections-popup-cryptominersView-settings-button"
    292                  data-l10n-id="protections-panel-content-blocking-manage-settings"
    293                  class="subviewbutton panel-subview-footer-button"/>
    294    </panelview>
    295 
    296    <!-- Cookie Banner SubView -->
    297    <panelview id="protections-popup-cookieBannerView"
    298               class="PanelUI-subView"
    299               role="document"
    300               data-l10n-id="protections-panel-cookie-banner-blocker-view-title">
    301        <vbox id="protections-popup-cookieBannerView-heading"
    302              class="protections-popup-description protections-popup-cookiesView-list-section">
    303          <description id="cookieBannerView-disable-site" data-l10n-id="protections-panel-cookie-banner-blocker-view-turn-off-for-site" data-l10n-args='{"host":""}'></description>
    304          <description id="cookieBannerView-enable-site" data-l10n-id="protections-panel-cookie-banner-blocker-view-turn-on-for-site" data-l10n-args='{"host":""}'></description>
    305          <description id="cookieBannerView-disable-site-warning" data-l10n-id="protections-panel-cookie-banner-view-cookie-clear-warning"></description>
    306          <description id="cookieBannerView-enable-site-description" data-l10n-id="protections-panel-cookie-banner-blocker-view-turn-on-description"></description>
    307        </vbox>
    308        <html:moz-button-group class="panel-footer protections-popup-cookieBannerView-footer">
    309          <button id="protections-popup-cookieBannerView-cancel"
    310                    data-l10n-id="protections-panel-cookie-banner-view-cancel-label"
    311                    class="footer-button" />
    312          <button id="protections-popup-cookieBannerView-enable-button"
    313                    data-l10n-id="protections-panel-cookie-banner-view-turn-on-label"
    314                    default="true"
    315                    class="footer-button" />
    316          <button id="protections-popup-cookieBannerView-disable-button"
    317                    data-l10n-id="protections-panel-cookie-banner-view-turn-off-label"
    318                    default="true"
    319                    class="footer-button" />
    320        </html:moz-button-group>
    321    </panelview>
    322  </panelmultiview>
    323 </panel>
    324 </html:template>