Bug 1646890 - Add automated test for bug 1645983 r=m_kato
authorMasayuki Nakano <masayuki@d-toybox.com>
Mon, 22 Jun 2020 14:48:47 +0000
changeset 536700 be987c4c9dd724285e22eb1e6b6521ad156d8e1e
parent 536699 135eb1ba22b62890eda413f6092c9ec60e8c4520
child 536701 cb2515ac9f5b50b07b13ff4da618dc9c44fa2718
push id37532
push userabutkovits@mozilla.com
push dateTue, 23 Jun 2020 16:15:06 +0000
treeherdermozilla-central@3add3a174755 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersm_kato
bugs1646890, 1645983
milestone79.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 1646890 - Add automated test for bug 1645983 r=m_kato This patch adds new test which is based on actual scenario in Gmail composer. Differential Revision: https://phabricator.services.mozilla.com/D80310
editor/libeditor/crashtests/1645983-1.html
editor/libeditor/crashtests/1645983-2.html
editor/libeditor/crashtests/1645983.html
editor/libeditor/crashtests/crashtests.list
rename from editor/libeditor/crashtests/1645983.html
rename to editor/libeditor/crashtests/1645983-1.html
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/crashtests/1645983-2.html
@@ -0,0 +1,7 @@
+<!doctype html>
+<div contenteditable>abc<span></span><span></span></div>
+<script>
+let editor = document.querySelector("div[contenteditable]");
+getSelection().collapse(editor, 3);
+document.execCommand("inserttext", false, " ");
+</script>
--- a/editor/libeditor/crashtests/crashtests.list
+++ b/editor/libeditor/crashtests/crashtests.list
@@ -118,9 +118,10 @@ load 1547897.html
 load 1547898.html
 load 1556799.html
 load 1574544.html
 load 1596516.html
 load 1618906.html
 load 1623913.html
 load 1624007.html
 load 1624011.html
-load 1645983.html
+load 1645983-1.html
+load 1645983-2.html