tor-browser

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

password-bidi-dblclick.html (918B)


      1 <!DOCTYPE HTML>
      2 <meta charset=utf-8>
      3 <title>Mozilla bug 1885702</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/resources/testdriver.js"></script>
      7 <script src="/resources/testdriver-actions.js"></script>
      8 <script src="/resources/testdriver-vendor.js"></script>
      9 
     10 <input id="pwd" type="password" value="foo&#x202e;bar&#x202c;"></input>
     11 
     12 <script>
     13  promise_test(async () => {
     14    let actions = new test_driver.Actions();
     15    await actions
     16      .pointerMove( 1, 1, { origin: pwd } )
     17      .pointerDown( { button: actions.ButtonType.LEFT } )
     18      .pointerUp( { button: actions.ButtonType.LEFT } )
     19      .pointerDown( { button: actions.ButtonType.LEFT } )
     20      .pointerUp( { button: actions.ButtonType.LEFT } )
     21      .send();
     22    assert_true(true, 'double-click sent');
     23  }, 'Double-clicking the password field should not crash' );
     24 </script>