Bug 1350772 - Part 2: Add test. r=masayuki, a=gchang
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 27 Mar 2017 14:41:21 +0900
changeset 395516 35d42d438c86a85eb158caf08407817cfab4a30a
parent 395515 8a10927531c52f98ced4e8ef67fe776e600c9bf7
child 395517 0192498782689f8171c60263b186ac63ba3aeffc
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki, gchang
bugs1350772
milestone54.0a2
Bug 1350772 - Part 2: Add test. r=masayuki, a=gchang 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
@@ -67,8 +67,9 @@ load 1134545.html
 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 1350772.html