tor-browser

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

onvisibilitychange.html (594B)


      1 <!doctype html>
      2 <title>onvisibilitychange attribute is a proper event handler</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="log"></div>
      6 <script>
      7 var ast = new async_test("onvisibilitychange attribute is a proper event handler");
      8 function startTest() {
      9  var iframe1 = document.getElementById("frame1");
     10  iframe1.contentWindow.document.onvisibilitychange = ast.step_func(function() {
     11    ast.done();
     12  });
     13  frame1.parentNode.removeChild(frame1);
     14 }
     15 </script>
     16 <iframe id="frame1" src='resources/iframe.html'></iframe>