tor-browser

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

not-user-activation.html (670B)


      1 <!doctype html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <script src="/resources/testdriver.js"></script>
      5 <script src="/resources/testdriver-vendor.js"></script>
      6 <script src="/resources/testdriver-actions.js"></script>
      7 <script src="../resources/helpers.js"></script>
      8 
      9 <body>
     10 <script>
     11 promise_test(async t => {
     12  let events = [];
     13  let watcher = createRecordingCloseWatcher(t, events);
     14 
     15  await sendEscKey();
     16 
     17  assert_array_equals(events, ["cancel[cancelable=false]", "close"]);
     18 }, "Esc key does not count as user activation, so if it is the sole user interaction, cancel is cancelable=false");
     19 </script>