blob: 74add4c99663340fd8b20cd9d2efeb9bb2b20697 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setCanOpenWindows();
testRunner.setPopupBlockingEnabled(true);
testRunner.setCloseRemainingWindowsWhenComplete(true);
}
</script>
</head>
<body>
<iframe name="A"></iframe>
<iframe id="B" sandbox="allow-scripts allow-same-origin allow-popups allow-modals"></iframe>
<script>
document.getElementById("B").contentWindow.eval('alert(window.open.call(window.top, "about:blank", "A") ? "FAIL" : "PASS");');
</script>
</body>
</html>