blob: 8d903a9fec4e7c0ece2119d42895b08f8044282f [file] [log] [blame]
<body>
This test passes if alert() is not called.
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
i = document.body.appendChild(document.createElement("iframe"));
f = frames[0].eval('(function(){location="javascript:alert(location)"})');
i.src = "http://localhost:8000/security/resources/innocent-victim.html";
i.addEventListener("load", f);
i.addEventListener("load", function() {
if (window.testRunner)
testRunner.notifyDone();
});
</script>