https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c5989ac32436242f3169524e1af32423224ed4da authored by Joanmarie Diggs on 04 April 2018, 20:47:54 UTC
AccName: Fix several expected results
Tip revision: c5989ac
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