Changeset 294281 in webkit
- Timestamp:
- May 16, 2022, 4:58:42 PM (3 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r294280 r294281 1 2022-05-16 Gabriel Nava Marino <gnavamarino@apple.com> 2 3 Crash in WebCore::InsertTextCommand::positionInsideTextNode 4 https://bugs.webkit.org/show_bug.cgi?id=240480 5 6 Reviewed by Ryosuke Niwa. 7 8 Calling pushAnchorElementDown in CompositeEditCommand::positionAvoidingSpecialElementBoundary can 9 end up removing the startPosition's container node which leaves an invalid endingSelection. 10 11 InsertTextCommand::doApply requires a real endingSelection, so we should check if this occurred and bail out. 12 13 * editing/InsertTextCommand.cpp: 14 (WebCore::InsertTextCommand::doApply): 15 1 16 2022-05-16 Said Abou-Hallawa <said@apple.com> 2 17 -
trunk/Source/WebCore/editing/InsertTextCommand.cpp
r293491 r294281 183 183 184 184 startPosition = positionAvoidingSpecialElementBoundary(startPosition); 185 185 if (endingSelection().isNoneOrOrphaned()) 186 return; 187 186 188 Position endPosition; 187 189
Note:
See TracChangeset
for help on using the changeset viewer.