editor/libeditor/crashtests/1645983-1.html
author Masayuki Nakano <masayuki@d-toybox.com>
Mon, 22 Jun 2020 14:48:47 +0000
changeset 536700 be987c4c9dd724285e22eb1e6b6521ad156d8e1e
parent 535995 editor/libeditor/crashtests/1645983.html@64a1bcea93be7e51de8f08a94e9ca33f3e597f2c
permissions -rw-r--r--
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

<div contenteditable>&nbsp;a</div>
<script>
let editor = document.querySelector("div[contenteditable]");
editor.insertBefore(document.createTextNode(""), editor.firstChild);
let selection = getSelection();
selection.collapse(editor.firstChild.nextSibling, 2);
document.execCommand("delete", false);
</script>