Revision 71263ec0d30542a559cac096eea7b7dd496ecc6b authored by Chris Dumez on 19 August 2016, 20:40:15 UTC, committed by Domenic Denicola on 19 August 2016, 20:40:15 UTC
Re-sync Canvas API in html/dom/interfaces.html with the latest HTML specification.
1 parent 2f92336
Raw File
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