Bug 1375131 - Part 2. Add crash test. r=masayuki
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Fri, 23 Jun 2017 16:45:50 +0900
changeset 366595 69bd674188668fab414c4926329a94b84bb9724f
parent 366594 a46cfc0a8203378a65591e451a8a6e74042f1dec
child 366596 5baa008248ff9f3c38d442b73b424e6e48d1b2ea
push id32105
push usercbook@mozilla.com
push dateThu, 29 Jun 2017 13:47:53 +0000
treeherdermozilla-central@08465078f3c2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs1375131
milestone56.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 1375131 - Part 2. Add crash test. r=masayuki MozReview-Commit-ID: DxYWPNcb7jK
editor/libeditor/crashtests/1375131.html
editor/libeditor/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/crashtests/1375131.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <script type="application/javascript">
+      document.designMode = 'on';
+
+      let div = document.createElement('div');
+      let p = document.createElement('p');
+      document.documentElement.appendChild(div);
+      document.documentElement.appendChild(
+        document.createElement('body'));
+      document.documentElement.appendChild(p);
+      document.execCommand('insertimage', false, 'http://localhost/');
+      document.execCommand('insertparagraph', false, null);
+
+      document.elementFromPoint(0, 0);
+
+      let selection = window.getSelection();
+      selection.modify('extend', 'forward', 'character');
+
+      let range = document.createRange();
+      range.selectNode(p);
+      selection.addRange(range);
+      range.setStart(div, 0);
+
+      range = document.createRange();
+      range.selectNode(p);
+      selection.addRange(range);
+
+      document.execCommand('delete', false, null);
+    </script>
+  </head>
+</html>
--- a/editor/libeditor/crashtests/crashtests.list
+++ b/editor/libeditor/crashtests/crashtests.list
@@ -71,8 +71,9 @@ load 1264921.html
 load 1272490.html
 load 1317704.html
 load 1317718.html
 load 1324505.html
 needs-focus load 1343918.html
 load 1348851.html
 load 1350772.html
 load 1366176.html
+load 1375131.html