https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ea61e03781c89217bc55a490f7d6ba6e6adb6788 authored by Marcos Cáceres on 29 November 2018, 10:38:58 UTC
Test payment request is showing boolean
Tip revision: ea61e03
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