summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/files/domurl-script-execution-context-crash.html
blob: a1df80d53ce169e8faf421ab206ebd4954940682 (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
<html>
<script>
function crash()
{
    try {
        e.apply(w, ['URL']);
    } catch (ex) { }
    document.body.innerHTML = "PASS: null security context for URL did not crash";
    if (window.testRunner)
        testRunner.notifyDone();
}

function load()
{
    w.close();
    setTimeout(crash, 30);
}

if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.setCanOpenWindows();
    testRunner.setCloseRemainingWindowsWhenComplete(true);
    testRunner.waitUntilDone();
}

e = (w = open()).eval;
</script>
<body onload="load()">
</body>
</html>