blob: caf23f4daddd7e6c7118280f4a8c390e9819e92b [file] [log] [blame]
<!DOCTYPE html>
<body style="background: lightgrey;">
<script>
window.top.postMessage(JSON.stringify({
"type": "child-two-loaded",
"isActive": navigator.userActivation.isActive,
"hasBeenActive": navigator.userActivation.hasBeenActive
}), "*");
window.addEventListener("message", event => {
var msg = JSON.parse(event.data);
if (msg.type == "report") {
window.top.postMessage(JSON.stringify({
"type": "child-two-report",
"isActive": navigator.userActivation.isActive,
"hasBeenActive": navigator.userActivation.hasBeenActive
}), "*");
}
});
</script>
</body>