tor-browser

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

changepassword.xhtml (2497B)


      1 <?xml version="1.0"?>
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 
      6 <?csp default-src chrome: resource:; style-src chrome: 'unsafe-inline'; ?>
      7 
      8 <!DOCTYPE window>
      9 
     10 <window
     11  data-l10n-id="change-device-password-window"
     12  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     13  xmlns:html="http://www.w3.org/1999/xhtml"
     14 >
     15  <dialog id="set_password" buttons="accept,cancel">
     16    <linkset>
     17      <html:link rel="stylesheet" href="chrome://global/skin/global.css" />
     18 
     19      <html:link rel="localization" href="security/pippki/pippki.ftl" />
     20    </linkset>
     21 
     22    <stringbundle
     23      id="pippki_bundle"
     24      src="chrome://pippki/locale/pippki.properties"
     25    />
     26 
     27    <script src="chrome://global/content/globalOverlay.js" />
     28    <script src="chrome://global/content/editMenuOverlay.js" />
     29 
     30    <script src="chrome://pippki/content/changepassword.js" />
     31 
     32    <hbox align="center">
     33      <label
     34        id="tokenName"
     35        data-l10n-id="change-password-token"
     36        data-l10n-args='{"tokenName":""}'
     37      />
     38    </hbox>
     39 
     40    <separator />
     41 
     42    <vbox>
     43      <hbox class="input-row">
     44        <label flex="1" data-l10n-id="change-password-old" />
     45        <html:input id="oldpw" type="password" />
     46        <!-- This textbox is inserted as a workaround to the fact that making the 'type'
     47         & 'disabled' property of the 'oldpw' textbox toggle between ['password' &
     48         'false'] and ['text' & 'true'] - as would be necessary if the menu has more
     49         than one tokens, some initialized and some not - does not work properly. So,
     50         either the textbox 'oldpw' or the textbox 'message' would be displayed,
     51         depending on the state of the token selected
     52     -->
     53        <html:input id="message" disabled="true" />
     54      </hbox>
     55      <hbox class="input-row">
     56        <label flex="1" data-l10n-id="change-password-new" />
     57        <html:input id="pw1" type="password" />
     58      </hbox>
     59      <hbox class="input-row">
     60        <label flex="1" data-l10n-id="change-password-reenter" />
     61        <html:input id="pw2" type="password" />
     62      </hbox>
     63    </vbox>
     64 
     65    <vbox style="margin: 6px">
     66      <label
     67        for="pwmeter"
     68        style="display: flex"
     69        data-l10n-id="password-quality-meter"
     70      />
     71      <html:progress id="pwmeter" value="0" max="100" />
     72    </vbox>
     73  </dialog>
     74 </window>