tor-browser

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

input-password-remask.html (524B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3 <head>
      4 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      5 </head>
      6 <body>
      7 <input type="password" value="abcdef">
      8 <script>
      9  function runTest() {
     10    let input = document.getElementsByTagName("input")[0];
     11    input.focus();
     12    input.setSelectionRange(3, 4);
     13    let editor = SpecialPowers.wrap(input).editor;
     14    editor.unmask(0, 6);
     15    editor.mask();
     16    document.documentElement.removeAttribute("class");
     17  }
     18 
     19  SimpleTest.waitForFocus(runTest);
     20 </script>
     21 
     22 </body>
     23 </html>