editor/txmgr/tests/crashtests/449006-1.html
author Justin Lebar <justin.lebar@gmail.com>
Fri, 02 Mar 2012 17:18:21 -0500
changeset 91054 69e8dd5e9201e4608a0d603ae9c9287bf8687d7d
parent 24763 5558583f428771f5798cf9e8c19def522b14d700
child 374655 7b434711753b98a87603453caaa0945791ffe12b
permissions -rw-r--r--
Bug 729952 - Part 1: Add a better hash function to mfbt. r=waldo

<html>
<head>
<script type="text/javascript">

function boom()
{
  document.getElementById("d").focus();
  document.execCommand("inserthtml", false, "AB");
  document.execCommand("delete", false, null);
  document.execCommand("undo", false, null);

  document.addEventListener("DOMCharacterDataModified", f, false);
  document.execCommand("redo", false, null);
  document.removeEventListener("DOMCharacterDataModified", f, false);

  function f()
  {
    document.removeEventListener("DOMCharacterDataModified", f, false);
    document.execCommand("formatBlock", false, "<h3>");
  }
}

</script>
</head>

<body onload="boom();"><div id="d" contenteditable="true"></div></body>

</html>