https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c4de0019f3aa95861f0c9f646e9cd0c0f1252594 authored by Anne van Kesteren on 23 March 2018, 17:49:38 UTC
Comment out SVGElement dependency from html.idl
Tip revision: c4de001
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