The code that deals with ellipsis and selections is in a place that sounds like it should not be mutating state, but it is. This should likely move to SelectionRangeData. Move this code, and also make sure that it also works with the new HighlightAPI.
Created attachment 438026 [details]
Committed r282337 (241604@main): <https://commits.webkit.org/241604@main>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 438026 [details].