Revision dfc6293bd278f46fb6963950157a4f19b281dca4 authored by Ms2ger on 14 March 2018, 16:45:25 UTC, committed by Ms2ger on 14 March 2018, 16:45:25 UTC
1 parent e3d85ce
Raw File
unload.html
<!doctype html>
<title>visibilitychange fires on unload</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
async_test(function(t) {
  var w = window.open("unload-1.html");
  window.onmessage = t.step_func(function(event) {
    if (event.data === "close") {
      w.close();
      return;
    }
    assert_equals(event.data, "hidden");
    t.done();
  });
});
</script>
back to top