Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / cssTarget-crash.html
bloba2312dd7d59c3731b349cbfdde25cf5473ccf3a4
1 <html>
2 <body>
3 <div><a href="rdar://4504805&4577323&4643028&5659812">Should not crash.</a></div>
4 <form name="f" method="GET" action="#a"></form>
5 <div id="anchors"><a name="a"></a></div>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
12 var stopped = false;
13 setTimeout("doIt()", 0);
14 setTimeout("stopped = true;", 100);
15 function doIt() {
16 if (stopped) {
17 if (window.testRunner)
18 testRunner.notifyDone();
19 return;
21 document.forms.f.submit();
22 var x=Math.random();
23 setTimeout("doIt("+x+")",10);
24 document.forms.f.action="#"+x;
25 document.getElementById("anchors").innerHTML+=
26 "<img width=100 height=100><a name=\""+x+"\"></a>";
28 </script>
29 </body>
30 </html>