tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

413292-1.html (1002B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3 <head>
      4 
      5 <style>
      6  body { font-family: sans-serif; }
      7 </style>
      8 
      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();
     14 
     15 function ap()
     16 {
     17  document.getElementById("div").style.position = "absolute";
     18  setTimeout(bp, pause);
     19 }
     20 
     21 function bp()
     22 {
     23  document.getElementById("div").style.position = "";
     24  setTimeout(cp, pause);
     25 }
     26 
     27 function cp()
     28 {
     29  document.getElementById("iframe").setAttribute("src", src);
     30  setTimeout(nextIteration, pause);
     31 }
     32 
     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>
     45 
     46 </head>
     47 
     48 <body onload="ap();"><div id="div"><iframe id="iframe"></iframe></div></body>
     49 </html>