From a565ad1f526fbf766e93b8c170d94fc1563827c1 Mon Sep 17 00:00:00 2001 From: Masayuki Nakano Date: Thu, 27 Jul 2023 03:28:22 +0000 Subject: [PATCH] Make `HTMLEditor::SplitAncestorStyledInlineElementsAtRangeEdges` abort if splitting points are lost Due to the `DOMNodeRemoved` event listener, splitting at range boundaries may fail tracking the DOM tree due to unexpected container lost. In the cases, the method should abort its task. Differential Revision: https://phabricator.services.mozilla.com/D184457 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1845208 gecko-commit: c8b0f9251387925f0a9e26d5458af36114c0b736 gecko-reviewers: m_kato --- .../removeformat-from-DOMNodeRemoved.html | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 editing/crashtests/removeformat-from-DOMNodeRemoved.html diff --git a/editing/crashtests/removeformat-from-DOMNodeRemoved.html b/editing/crashtests/removeformat-from-DOMNodeRemoved.html new file mode 100644 index 00000000000000..3f78f9943621df --- /dev/null +++ b/editing/crashtests/removeformat-from-DOMNodeRemoved.html @@ -0,0 +1,29 @@ + + + + + + + + + + +
+ +a + +
+ +