Bug 1324505 - Part 2. Add crash test. r?masayuki
MozReview-Commit-ID: 7NJr1fGKBZA
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