blob: db5669c8a630d955e4754c68b66c6d265602e98a [file] [log] [blame]
<html>
<body>
<div><a href="rdar://4504805&4577323&4643028&5659812">Should not crash.</a></div>
<form name="f" method="GET" action="#a"></form>
<div id="anchors"><a name="a"></a></div>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
var stopped = false;
setTimeout("doIt()", 0);
setTimeout("stopped = true;", 100);
function doIt() {
if (stopped) {
if (window.layoutTestController)
layoutTestController.notifyDone();
return;
}
document.forms.f.submit();
var x=Math.random();
setTimeout("doIt("+x+")",10);
document.forms.f.action="#"+x;
document.getElementById("anchors").innerHTML+=
"<img width=100 height=100><a name=\""+x+"\"></a>";
}
</script>
</body>
</html>