mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00

It checks whether the document body itself is empty or not. However, if there is only a shadow DOM hosts, it considers the content is empty. Therefore, `HTMLEditor::HandleDeleteSelection` does nothing. I think that it should check whether current editing host is empty or not. That does not work without selection ranges, but I think it's fine in most cases. Differential Revision: https://phabricator.services.mozilla.com/D202274