commit f7eeef156f302a5469e60d6d1c9678bc832299b5
parent d7a2f1715245475634d15125095cc94e5f0fffa4
Author: longsonr <longsonr@gmail.com>
Date: Tue, 14 Oct 2025 14:33:27 +0000
Bug 1992865 Part 2 - Add explanation r=dholbert,firefox-svg-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D267949
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/layout/svg/SVGTextFrame.cpp b/layout/svg/SVGTextFrame.cpp
@@ -3613,6 +3613,7 @@ void SVGTextFrame::SelectSubString(nsIContent* aContent, uint32_t charnum,
RefPtr<nsIContent> content;
+ // Ensure the destructor of CharIterator runs before calling HandleClick.
{
// Convert charnum/nchars from addressable characters relative to
// aContent to global character indices.