tor-browser

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

input-password-unmask-around-emoji.html (653B)


      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="a&#x1f914;b">
      8 <script>
      9  function runTest() {
     10    let params = window.location.hash.substring(1).split("-");
     11    let input = document.getElementsByTagName("input")[0];
     12    let editor = SpecialPowers.wrap(input).editor;
     13    editor.unmask(Number.parseInt(params[0]), Number.parseInt(params[1]));
     14    input.setSelectionRange(Number.parseInt(params[2]), Number.parseInt(params[3]));
     15    document.documentElement.removeAttribute("class");
     16  }
     17 
     18  SimpleTest.waitForFocus(runTest);
     19 </script>
     20 </body>
     21 </html>