editor/composer/src/crashtests/461049-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 <html>
     3 <head>
     4 <script type="text/javascript">
     6 function uu()
     7 {
     8   document.removeEventListener("DOMSubtreeModified", uu, false);
     9   document.execCommand("undo", false, null);
    10 }
    12 function boom()
    13 {
    14   document.execCommand("selectAll", false, null);
    15   document.execCommand("strikethrough", false, null);
    16   document.addEventListener("DOMSubtreeModified", uu, false);
    17   document.execCommand("undo", false, null);
    18 }
    20 </script>
    21 </head>
    23 <body contenteditable="true" onload="boom();"><div></div></body>
    25 </html>

mercurial