editor/txmgr/tests/crashtests/449006-1.html
author Jesse Ruderman <jruderman@gmail.com>
Sat, 07 Feb 2009 21:33:31 -0800
changeset 24763 5558583f428771f5798cf9e8c19def522b14d700
child 374655 7b434711753b98a87603453caaa0945791ffe12b
permissions -rw-r--r--
Add crashtests for the following bugs: https://bugzilla.mozilla.org/buglist.cgi?quicksearch=328944+401042+413085+416461+431705+437142+449006+463741+465651+472782+474744

<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>