layout/generic/crashtests/762764-1.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE html>
     2 <script>
     4 function boom()
     5 {
     6   document.documentElement.removeChild(document.body);
     7   var newBody = document.createElementNS("http://www.w3.org/1999/xhtml", "body");
     8   document.documentElement.appendChild(newBody);
     9   newBody.contentEditable = "true";
    10   document.execCommand("inserthtml", false, "<textarea>a</textarea>");
    11   document.execCommand("insertimage", false, "1.jpg");
    12   try { document.execCommand("forwardDelete", false, null); } catch(e) { }
    13   document.execCommand("inserthtml", false, "x<span><\/span>y");
    14 }
    16 </script>
    18 <body onload="boom();"></body>

mercurial