Bug 633709: Actually commit the test. r+a=ehsan
authorKyle Huey <khuey@kylehuey.com>
Sat, 19 Feb 2011 18:40:52 -0500
changeset 62875 6f544597b3305e781067a771b2f766c72501e6ee
parent 62874 5ba5ed2e239d2972e29bea25435ca85f47cf35f8
child 62876 a633a0030ac6dce8c6e1f1f86a64c736c35166a1
push idunknown
push userunknown
push dateunknown
bugs633709
milestone2.0b12pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 633709: Actually commit the test. r+a=ehsan
editor/libeditor/base/crashtests/633709.xhtml
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/base/crashtests/633709.xhtml
@@ -0,0 +1,26 @@
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
+
+<body><div contenteditable="true"></div><div><input id="i"><div></div></input></div></body>
+
+<script id="s">
+<![CDATA[
+
+function boom()
+{
+  document.getElementById("i").focus();
+
+  try { document.execCommand("inserthtml", false, "<x>X</x>"); } catch(e) { }
+  try { document.execCommand("underline", false, null); } catch(e) { }
+  try { document.execCommand("justifyfull", false, null); } catch(e) { }
+  try { document.execCommand("underline", false, null); } catch(e) { }
+  try { document.execCommand("insertParagraph", false, null); } catch(e) { }
+  try { document.execCommand("delete", false, null); } catch(e) { }
+  document.documentElement.removeAttribute("class");
+}
+
+setTimeout(boom, 10);
+
+]]>
+</script>
+
+</html>