tor-browser

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

bug632215-2.html (786B)


      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 contenteditable 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 = false;
     16        d.designMode = "off";
     17        d.designMode = "on";
     18        d.body.focus();
     19        sendString("x");
     20        s.collapse(d.body.firstChild, 1);
     21        sendString("x");
     22        setTimeout(function() {
     23          document.documentElement.removeAttribute("class");
     24        }, 0);
     25      };
     26    </script>
     27  </body>
     28 </html>