31 lines
560 B
HTML
31 lines
560 B
HTML
<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>
|