blob: 5d75123cbcf8dc7f5ab342f9965c797cfca960f7 [file] [log] [blame]
<iframe src="http://does.not.exist/" id="target"></iframe>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
setTimeout(function() {
document.getElementById("target").src = "javascript:alert('FAIL')";
}, 0);
window.addEventListener("popstate", function() {
document.write("PASS - Javascript URL blocked without crashing.");
if (window.testRunner)
testRunner.notifyDone();
}, false);
</script>