Bug 1402196 - Part 2. Add crashtest. r?masayuki draft
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 23 Oct 2017 12:24:04 +0900
changeset 684544 6da88b049cbde57c56613cd0bd83126a297e21e1
parent 684543 c72e6d803b7e0cbe0c8d55aa95f87ab1bc6b5da1
child 736883 fab37c051f8d2715c2150d4d9224901aa7718223
push id85637
push userbmo:m_kato@ga2.so-net.ne.jp
push dateMon, 23 Oct 2017 03:24:57 +0000
reviewersmasayuki
bugs1402196
milestone58.0a1
Bug 1402196 - Part 2. Add crashtest. r?masayuki MozReview-Commit-ID: IF6UsY3QR1A
editor/libeditor/crashtests/1402196.html
editor/libeditor/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/crashtests/1402196.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+<script>
+function load() {
+  document.getElementById("p").addEventListener("DOMNodeInserted", () => {
+    document.getElementById("style").appendChild(
+                                       document.getElementById("table"));
+    document.documentElement.classList.remove("reftest-wait");
+  });
+  document.execCommand("insertOrderedList", false);
+}
+</script>
+</head>
+<body onload="load()">
+<table id="table"></table>
+<style id="style"></style>
+<spacer id="spacer" contenteditable="true">
+<p id="p"></p>
+</body>
+</html>
--- a/editor/libeditor/crashtests/crashtests.list
+++ b/editor/libeditor/crashtests/crashtests.list
@@ -83,12 +83,13 @@ load 1366176.html
 load 1375131.html
 load 1381541.html
 load 1383747.html
 load 1383755.html
 load 1383763.html
 load 1384161.html
 load 1388075.html
 load 1393171.html
+needs-focus 1402196.html
 load 1402469.html
 load 1402904.html
 load 1405747.html
 load 1408170.html