https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0c2089b71e8f1033fd820c9f762aac6601e731f5 authored by James Graham on 21 March 2018, 22:05:32 UTC
Fix python gitignore for directories.
Tip revision: 0c2089b
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