tor-browser

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

459443-1.html (1529B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <body onload="loaded()">
      4    <iframe id="foo"></iframe> 
      5    <script type="text/javascript">
      6    function loaded() {
      7        dump("459443-1.html: Entering loaded()\n");
      8        var n = document.getElementById('foo');
      9 
     10        // Just to detect if/when the iframe might be firing its load event
     11        // before we set up its final className-clearing load event handler:
     12        n.addEventListener("load",
     13                           function() {
     14                               dump("459443-1.html: Entering n initial " +
     15                                    "no-op load callback\n");});
     16 
     17        var f = n.contentWindow;
     18        f.document.open();
     19        f.document.write('');
     20        f.onload = function() {
     21          dump("459443-1.html: Entering f.onload callback\n");
     22          f.document.designMode = 'on';
     23          setTimeout(function() {
     24            dump("459443-1.html: Entering setTimeout callback\n");
     25            f.document.designMode='on';
     26            f.location = 'data:text/html;charset=utf-8,<body>FAIL<script>document.body.innerHTML="PASS"<\/script>';
     27            n.addEventListener("load",
     28                               function() {
     29                                   dump("459443-1.html: Entering n final " +
     30                                        "load callback; clearing className\n");
     31                                   document.documentElement.className = ''; });
     32          }, 0);
     33        };
     34        f.document.close();
     35    }
     36    </script>
     37  </body>
     38 </html>