blob: 945b2de1fab477c577230a8cb5940dff1d945f26 [file] [log] [blame]
<body onload="test()">
<iframe src="http://localhost:8000/security/resources/innocent-victim.html"></iframe>
<p>There should be no alert displayed.</p>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function test()
{
var i = document.getElementsByTagName("iframe")[0];
i.src = new Array(100).join('\x20') + 'javascript:alert(document.body.innerHTML)';
setTimeout(function() {
if (window.testRunner)
testRunner.notifyDone();
}, 0);
}
</script>
</body>