20 lines
555 B
HTML
20 lines
555 B
HTML
<!DOCTYPE html><!-- webkit-test-runner [ JavaScriptCanOpenWindowsAutomatically=false ] -->
|
|
<html>
|
|
<head>
|
|
<script>
|
|
if (window.testRunner) {
|
|
testRunner.dumpAsText();
|
|
testRunner.setCanOpenWindows();
|
|
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("about:blank", "A") ? "FAIL" : "PASS");');
|
|
</script>
|
|
</body>
|
|
</html>
|