tor-browser

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

unload.html (470B)


      1 <!doctype html>
      2 <title>visibilitychange fires on unload</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="log"></div>
      6 <script>
      7 async_test(function(t) {
      8  var w = window.open("resources/unload.html");
      9  window.onmessage = t.step_func(function(event) {
     10    if (event.data === "close") {
     11      w.close();
     12      return;
     13    }
     14    assert_equals(event.data, "hidden");
     15    t.done();
     16  });
     17 });
     18 </script>