Bug 1414581 - Part 2. Add crashtest. r=masayuki
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 06 Nov 2017 17:06:09 +0900
changeset 443950 9903b9dbd27f2b5183c2a4c3bf6b9ed7b4d34fbd
parent 443949 c95fd22b6a4f4741e38aa1a1a68e944ccf31400d
child 443951 20d4b128753bf57a03d56e4b73e7c96049e875b5
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs1414581
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1414581 - Part 2. Add crashtest. r=masayuki MozReview-Commit-ID: 3H4DSubkt0q
editor/libeditor/crashtests/1414581.html
editor/libeditor/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/crashtests/1414581.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function jsfuzzer() {
+  document.execCommand("outdent", false);
+}
+function eventhandler2() {
+  document.execCommand("styleWithCSS", false, true);
+}
+function eventhandler3() {
+  document.execCommand("delete", false);
+  var element1 = document.getElementById("element1");
+  document.getSelection().setPosition(element1, 0);
+  var element1 = document.getElementById("element2");
+  element2.ownerDocument.execCommand("insertOrderedList", false);
+  var element1 = document.getElementById("element3");
+  element3.addEventListener("DOMSubtreeModified", eventhandler3);
+  document.activeElement.setAttribute("contenteditable", "true");
+}
+</script>
+</head>
+<body onload=jsfuzzer()>
+<i id="element1">
+<audio i src="x"></audio>
+<da id="element2">
+<br id="element3" style="">
+<svg onload="eventhandler3()">
+<animate onbegin="eventhandler2()">
+<body>
+</html>
--- a/editor/libeditor/crashtests/crashtests.list
+++ b/editor/libeditor/crashtests/crashtests.list
@@ -88,8 +88,9 @@ load 1383763.html
 load 1384161.html
 load 1388075.html
 load 1393171.html
 needs-focus load 1402196.html
 load 1402469.html
 load 1402904.html
 load 1405747.html
 load 1408170.html
+load 1414581.html