summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/Window/window-open-no-multiple-windows-from-iframe.html
blob: f63facf4f7b351f4f1d3c2e6fa8a18d7c50838d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.setCanOpenWindows(true);
    testRunner.setPopupBlockingEnabled(false);
    testRunner.overridePreference('WebKitSupportsMultipleWindows', false);
    testRunner.waitUntilDone();
}

function opened(result) {
    // Called by the embedded iframe.
    if (result == window) {
        document.writeln("PASS");
        document.close();
    }

    if (window.testRunner)
        testRunner.notifyDone();
}

</script>
</head>
<body>
<iframe src="resources/child-opens-window.html"></iframe>
FAIL
</body>
</html>