Bug 1858590 - Make `TextEditor::HandleInsertText` stop handling the command for empty...
commit86ce739a0479f728e5db57778e9e19eb04d21ff7
authorMasayuki Nakano <masayuki@d-toybox.com>
Thu, 19 Oct 2023 03:16:08 +0000 (19 03:16 +0000)
committerMasayuki Nakano <masayuki@d-toybox.com>
Thu, 19 Oct 2023 03:16:08 +0000 (19 03:16 +0000)
tree8e42d87176b22381a07778ad3a71ba78d5f87f27
parent523be3ce4986fae9cd7dfd3570aec0a643a75901
Bug 1858590 - Make `TextEditor::HandleInsertText` stop handling the command for empty string after deleting selection r=m_kato

The handler has an early-return block for the case inserting empty text.
However, it's done before deleting selection, but it should be done after that.

Differential Revision: https://phabricator.services.mozilla.com/D190904
editor/libeditor/TextEditSubActionHandler.cpp
testing/web-platform/tests/editing/other/exec-command-with-text-editor.tentative.html