https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4ecc44f58698cc889d8fe2a24152ab1cc0d48af4 authored by Geoffrey Sneddon on 09 April 2018, 13:16:33 UTC
Re-add logging for used port
Tip revision: 4ecc44f
unload-1.html
<!doctype html>
<html>
<head><title>Document</title></head>
<body>
<h1>Document</h1>
<script>
onload = function() {
  document.addEventListener("visibilitychange", onVisibilityChange, false);
  opener.postMessage("close", "*");
}

function onVisibilityChange() {
  opener.postMessage(document.visibilityState, "*");
}
</script>
</body>
</html>
back to top