tor-browser

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

474472-1.html (702B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <body>
      4    <iframe id="foo" srcdoc="<body bgcolor='red'>FAIL</body>"></iframe> 
      5    <script type="text/javascript">
      6      // Globals
      7      var foo = document.getElementById('foo');
      8      var win = foo.contentWindow;
      9 
     10      // Start the chain of execution when iframe's window loads
     11      win.onload = iframeWindowLoaded;
     12 
     13      function iframeWindowLoaded() {
     14        setTimeout("tweak()", 0);
     15      }
     16      function tweak() {
     17        win.location ="data:text/html,<body bgcolor='lime'>PASS</body>";
     18        foo.onload = snapshot;
     19      }
     20      function snapshot() {
     21        document.documentElement.className = '';
     22      }
     23    </script>
     24  </body>
     25 </html>