Bug 1350772 - Part 2. Add test. r?masayuki draft
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 27 Mar 2017 14:41:21 +0900
changeset 551638 d2d17f46b6adf68c96ce56e204ea00e853b3dd24
parent 551637 6003d2f6a09dffbc0bc8a8c443d52bc043c98210
child 621587 bebe16c4dc3392e015c2be711ffa00ba15dbd48c
push id51102
push userm_kato@ga2.so-net.ne.jp
push dateMon, 27 Mar 2017 05:52:33 +0000
reviewersmasayuki
bugs1350772
milestone55.0a1
Bug 1350772 - Part 2. Add test. r?masayuki MozReview-Commit-ID: 9jQyvpXFl1E
editor/libeditor/crashtests/1350772.html
editor/libeditor/crashtests/crashtests.list
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