layout/reftests/bugs/413292-1.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     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>

mercurial