Bug 1350772 - Part 2. Add test. r?masayuki
MozReview-Commit-ID: 9jQyvpXFl1E
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/crashtests/1350772.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+addEventListener("DOMContentLoaded", () => {
+ try {
+ document.designMode = 'on';
+ document.removeChild(document.documentElement);
+ document.appendChild(document.createElement("p"));
+ document.execCommand("insertParagraph", false, null);
+ } catch(e) {
+ }
+});
+</script>
+</head>
+</html>
--- a/editor/libeditor/crashtests/crashtests.list
+++ b/editor/libeditor/crashtests/crashtests.list
@@ -68,8 +68,9 @@ load 1158452.html
load 1158651.html
load 1244894.xhtml
load 1264921.html
load 1272490.html
load 1317704.html
load 1317718.html
load 1324505.html
load 1348851.html
+load 1350772.html