https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ce1ce6065b70a59939b184582587b7578da06b72 authored by Chris Nardi on 07 April 2018, 03:56:07 UTC
Update serialization of timing functions
Tip revision: ce1ce60
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