tor-browser

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

torCircuitPanel.inc.xhtml (4188B)


      1 <panel id="tor-circuit-panel"
      2       role="dialog"
      3       aria-labelledby="tor-circuit-heading"
      4       type="arrow"
      5       orient="vertical"
      6       class="cui-widget-panel panel-no-padding">
      7  <!-- Use same semantic structure as #identity-popup and #protections-popup
      8     - with a role="alertdialog" wrapping a role="document", except we use a
      9     - "dialog" rather than an "alertdialog".
     10     - Moreover, since this "dialog" may just be for reading, we also make the
     11     - "document" part of the focus cycle and receive the initial focus, rather
     12     - than finding the first focusable target within.
     13     - We do not set "aria-describedby" for this "dialog" because the content
     14     - is complex, so a flat string would not make sense. -->
     15  <!-- NOTE: Currently Orca fails to read the content of this panel, so the
     16     - circuit details are not accessible. This effects mozilla-central as well.
     17     - See bugzilla bug 1820765 and bugzilla bug 1926374.
     18     - The focusable elements are still operable though. -->
     19  <vbox id="tor-circuit-panel-document" role="document" tabindex="0">
     20    <vbox class="panel-header">
     21      <html:h1 id="tor-circuit-heading"></html:h1>
     22      <html:div id="tor-circuit-alias" hidden="hidden">
     23        <html:img
     24          src="chrome://browser/content/tor-circuit-redirect.svg"
     25          alt=""
     26        />
     27        <html:p id="tor-circuit-alias-label">
     28          <html:a class="tor-circuit-alias-link" data-l10n-name="alias-link" />
     29        </html:p>
     30      </html:div>
     31    </vbox>
     32    <toolbarseparator/>
     33    <vbox id="tor-circuit-panel-body" class="panel-subview-body">
     34      <html:p
     35        id="tor-circuit-node-list-name"
     36        data-l10n-id="tor-circuit-panel-node-list-introduction"
     37      ></html:p>
     38      <html:ol id="tor-circuit-node-list">
     39        <html:li
     40          id="tor-circuit-start-item"
     41          class="tor-circuit-node-item"
     42          data-l10n-id="tor-circuit-panel-node-browser"
     43        ></html:li>
     44        <html:li
     45          id="tor-circuit-relays-item"
     46          class="tor-circuit-node-item tor-circuit-relays-item"
     47          data-l10n-id="tor-circuit-panel-node-onion-relays"
     48        ></html:li>
     49        <html:li
     50          id="tor-circuit-end-item"
     51          class="tor-circuit-node-item"
     52        ></html:li>
     53      </html:ol>
     54      <html:template id="tor-circuit-node-item-template">
     55        <html:li class="tor-circuit-node-item">
     56          <html:img class="tor-circuit-region-flag" alt="" />
     57          <html:span class="tor-circuit-node-name"></html:span>
     58          <html:span class="tor-circuit-addresses"></html:span>
     59        </html:li>
     60      </html:template>
     61    </vbox>
     62    <toolbarseparator/>
     63    <!-- NOTE: To fully benefit from the .subviewbutton styling, we need to use
     64       - a xul:toolbarbutton rather than a html:button.
     65       - By default, a xul:toolbarbutton is not focusable so we need to add
     66       - tabindex. -->
     67    <toolbarbutton
     68      id="tor-circuit-new-circuit"
     69      class="subviewbutton panel-subview-footer-button tor-circuit-button"
     70      tabindex="0"
     71      aria-labelledby="tor-circuit-new-circuit-label"
     72      aria-describedby="tor-circuit-new-circuit-description"
     73    >
     74      <vbox align="start">
     75        <label
     76          id="tor-circuit-new-circuit-label"
     77          class="toolbarbutton-text"
     78          data-l10n-id="tor-circuit-panel-new-button"
     79        />
     80        <!-- NOTE: Use html:span rather than xul:label. Otherwise Orca will
     81           - treat this as a label for the dialog. -->
     82        <html:span
     83          id="tor-circuit-new-circuit-description"
     84          class="tor-circuit-button-description"
     85        ></html:span>
     86      </vbox>
     87    </toolbarbutton>
     88  </vbox>
     89 </panel>
     90 <menupopup id="tor-circuit-panel-alias-menu">
     91  <!-- Copied from browser/base/content/browser-context.inc -->
     92  <menuitem id="tor-circuit-panel-alias-menu-new-tab"
     93            data-l10n-id="main-context-menu-open-link-new-tab"/>
     94  <menuitem id="tor-circuit-panel-alias-menu-new-window"
     95            data-l10n-id="main-context-menu-open-link-new-private-window"/>
     96  <menuseparator/>
     97  <menuitem id="tor-circuit-panel-alias-menu-copy"
     98            data-l10n-id="main-context-menu-copy-link-simple"/>
     99 </menupopup>