<html> | |
<body> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
</script> | |
<script> | |
function loaded() { | |
frames[0].location = "javascript:alert('FAIL');"; | |
} | |
</script> | |
<p>This test passes if it does not alert FAIL.</p> | |
<iframe viewsource src="resources/innocent-victim.html" onload="loaded()"> | |
</iframe> | |
</body> | |
</html> |