1 <iframe src="http://does.not.exist/" id="target"></iframe>
3 if (window.layoutTestController) {
4 layoutTestController.dumpAsText();
5 layoutTestController.waitUntilDone();
8 setTimeout(function() {
9 document.getElementById("target").src = "javascript:alert('FAIL')";
12 window.addEventListener("popstate", function() {
13 document.write("PASS - Javascript URL blocked without crashing.");
14 if (window.layoutTestController)
15 layoutTestController.notifyDone();