Bug 1324505 - Part 2. Add crash test. r?masayuki draft
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Wed, 11 Jan 2017 19:04:32 +0900
changeset 459545 af2ab1d8998f4caa0f1a5a6a02e7f188f31b2d6c
parent 459544 d873de724996400c2a72eec79194a3ffc36ffc2a
child 459546 0274850c78bd02e28e3af6636c38052570516281
push id41260
push userm_kato@ga2.so-net.ne.jp
push dateThu, 12 Jan 2017 06:01:18 +0000
reviewersmasayuki
bugs1324505
milestone53.0a1
Bug 1324505 - Part 2. Add crash test. r?masayuki MozReview-Commit-ID: 7NJr1fGKBZA
editor/libeditor/crashtests/1324505.html
editor/libeditor/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/crashtests/1324505.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<script>
+addEventListener("DOMContentLoaded", function(){
+  let root = document.documentElement;
+  while(root.firstChild) {
+    root.removeChild(root.firstChild);
+  }
+  let o_0 = document.createElement("body");
+  root.appendChild(o_0);
+  o_0.appendChild(document.createElement("table"));
+  o_0.appendChild(document.createElement("canvas"));
+  let o_1 = document.createElement("canvas");
+  o_0.appendChild(o_1);
+  o_1.setAttribute("contenteditable", "true");
+  setTimeout(function(){
+    document.execCommand("selectAll", false, "Marker felt");
+    document.designMode = 'on';
+    document.execCommand("insertorderedlist", false, null);
+    document.execCommand("insertorderedlist", false, null);
+  }, 0);
+});
+</script>
+</html>
--- a/editor/libeditor/crashtests/crashtests.list
+++ b/editor/libeditor/crashtests/crashtests.list
@@ -66,8 +66,9 @@ asserts-if(stylo,1) needs-focus load 112
 load 1134545.html
 load 1158452.html
 load 1158651.html
 load 1244894.xhtml
 load 1264921.html
 load 1272490.html
 asserts-if(stylo,1-24) load 1317704.html # bug 1324663
 load 1317718.html
+load 1324505.html