blob: c9f37ac8efd90e6055e8af6d4ef99248ed378883 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
window.top.postMessage(JSON.stringify({
"type": "child-crossorigin-loaded",
"isActive": navigator.userActivation.isActive,
"hasBeenActive": navigator.userActivation.hasBeenActive
}), "*");
window.addEventListener("click", event => {
window.open().close();
window.top.postMessage(JSON.stringify({
"type": "child-crossorigin-report",
"isActive": navigator.userActivation.isActive,
"hasBeenActive": navigator.userActivation.hasBeenActive
}), "*");
});
</script>
</head>
<body style="background: lightgreen;">
<!-- The midpoint of this frame should be outside the grandchild frame. -->
<div style="height: 75px;">Cross-origin child frame</div>
<iframe id="child2" width="270px" height="30px"
src="http://{{domains[www]}}:{{ports[http][0]}}/html/user-activation/resources/child-two.html">
</iframe>
</body>
</html>