Test case for bug 639736; r=roc
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 16 Jan 2012 16:07:46 -0500
changeset 85822 e1c5a79f27cf84114d4e11cd8b37428c8416c85d
parent 85821 504046941435878dcbf552aae3917de3240061bd
child 85823 60eb0da71cdb391b45cfb1ddca7c01e6c6c09501
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs639736
milestone12.0a1
Test case for bug 639736; r=roc
editor/libeditor/html/crashtests/639736-1.xhtml
editor/libeditor/html/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/html/crashtests/639736-1.xhtml
@@ -0,0 +1,14 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<script>
+
+function boom()
+{
+  try { document.execCommand("removeformat", false, null); } catch(e) { }
+  document.adoptNode(document.documentElement);
+}
+
+</script>
+</head>
+<body onload="boom();"><td contenteditable="true" /></body>
+</html>
--- a/editor/libeditor/html/crashtests/crashtests.list
+++ b/editor/libeditor/html/crashtests/crashtests.list
@@ -17,11 +17,12 @@ load 499844-1.html
 load 503709-1.xhtml
 load 513375-1.xhtml
 load 535632-1.xhtml
 load 574558-1.xhtml
 load 582138-1.xhtml
 load 612565-1.html
 asserts(0-6) load 615015-1.html # Bug 439258
 load 615450-1.html
+load 639736-1.xhtml
 load 643786-1.html
 load 682650-1.html
 load 716456-1.html