tor-browser

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

close_beforeunload.html (436B)


      1 <!doctype html>
      2 <title>Running beforeunload handler in window.close()</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="log"></div>
      6 <script>
      7 var t = async_test();
      8 var w = window.open("close_beforeunload-1.html");
      9 onmessage = t.step_func(function(event) {
     10  if (event.data != "loaded") {
     11    return;
     12  }
     13  w.close();
     14 });
     15 callback = function() {t.done()}
     16 </script>