Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 <!DOCTYPE HTML>
2 <html class="reftest-wait">
3 <head>
5 <style>
6 body { font-family: sans-serif; }
7 </style>
9 <script type="text/javascript">
10 var loopCount = 0;
11 var pause = 10; // smaller values make the bug more likely to occur
12 var src = "data:text/html,iframe 1 <iframe width='100' height='100' src='data:text/html,iframe 2'>";
13 var start = new Date();
15 function ap()
16 {
17 document.getElementById("div").style.position = "absolute";
18 setTimeout(bp, pause);
19 }
21 function bp()
22 {
23 document.getElementById("div").style.position = "";
24 setTimeout(cp, pause);
25 }
27 function cp()
28 {
29 document.getElementById("iframe").setAttribute("src", src);
30 setTimeout(nextIteration, pause);
31 }
33 function nextIteration()
34 {
35 var now = new Date();
36 loopCount++;
37 if (loopCount < 20 && now - start < 5000) {
38 ap();
39 } else {
40 document.body.textContent = "Done";
41 document.documentElement.className = '';
42 }
43 }
44 </script>
46 </head>
48 <body onload="ap();"><div id="div"><iframe id="iframe"></iframe></div></body>
49 </html>