tor-browser

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

bug632215-1.html (809B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <head>
      4    <script src="/tests/SimpleTest/EventUtils.js"></script>
      5  </head>
      6  <body>
      7    <iframe srcdoc="<body spellcheck=false></body>"></iframe>
      8    <script>
      9      onload = function() {
     10        var i = document.querySelector("iframe");
     11        var d = i.contentDocument;
     12        var w = i.contentWindow;
     13        var s = w.getSelection();
     14        i.focus();
     15        d.body.contentEditable = true;
     16        d.body.contentEditable = false;
     17        d.designMode = "off";
     18        d.designMode = "on";
     19        d.body.focus();
     20        sendString("x");
     21        s.collapse(d.body.firstChild, 1);
     22        sendString("x");
     23        setTimeout(function() {
     24          document.documentElement.removeAttribute("class");
     25        }, 0);
     26      };
     27    </script>
     28  </body>
     29 </html>