tor-browser

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

bug1263288.html (804B)


      1 <!DOCTYPE HTML><html>
      2 <!--
      3 https://bugzilla.mozilla.org/show_bug.cgi?id=1263288
      4 -->
      5 <head>
      6    <meta charset="utf-8">
      7    <title>Testcase #1 for bug 1263288</title>
      8    <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9    <script src="/tests/SimpleTest/EventUtils.js"></script>
     10 </head>
     11 <body>
     12 <div id="readonly">xyz</div>
     13 <div id="editable" contenteditable='true' spellcheck=false style="outline: 1px solid;"><span contentEditable='false'>xyz<!-- comment --></span><br></br></div>
     14 <script>
     15 
     16 function start() {
     17  var sel = window.getSelection();
     18  // Focus on editable block.
     19  theDiv = document.getElementById("editable");
     20  theDiv.focus();
     21  sel.collapse(theDiv, 0);
     22  synthesizeMouse(theDiv, 100, 2, {});
     23  synthesizeKey("KEY_End");
     24 }
     25 
     26 SimpleTest.waitForFocus(start);
     27 
     28 </script>
     29 </body>
     30 </html>