https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1ea1164abf90d96f40b93221795734fd97acc605 authored by Chandan Padhi on 26 March 2018, 10:09:55 UTC
Add support for autoGainControl and noiseSuppression to getCapabilities()
Tip revision: 1ea1164
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