Bug 475132 - add crashtest
authorJesse Ruderman <jruderman@gmail.com>
Sun, 12 Dec 2010 12:54:25 -0800
changeset 59136 6df63f103ec8cc67c581ece995ac0d8d08a32ac8
parent 59135 555646508bf42039df1786b88a81bc1c0db7bfaf
child 59137 06be87da619263dfb434a2684d04a4d9435824f1
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
bugs475132
milestone2.0b8pre
Bug 475132 - add crashtest
editor/libeditor/base/crashtests/475132-1.xhtml
editor/libeditor/base/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/base/crashtests/475132-1.xhtml
@@ -0,0 +1,20 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<script type="text/javascript">
+
+function boom()
+{
+  document.getElementsByTagName("td")[0].contentEditable = "true";
+  document.getElementsByTagName("td")[0].focus();
+  document.documentElement.contentEditable = "true";
+  document.documentElement.focus();
+  document.execCommand("indent", false, null);
+  document.execCommand("insertParagraph", false, null);
+}
+
+</script>
+</head>
+
+<body onload="boom();" contenteditable="false"><td></td></body>
+
+</html>
--- a/editor/libeditor/base/crashtests/crashtests.list
+++ b/editor/libeditor/base/crashtests/crashtests.list
@@ -1,7 +1,8 @@
 load 336104.html
 load 382527-1.html
 load 402172-1.html
 load 407079-1.html
 load 407256-1.html
 load 430624-1.html
 load 459613.html
+load 475132-1.xhtml