DescriptionFix a crash caused by invalid selection set by Undo command.
Undo command resets the selection to the previous position, but under some
conditions it may set the selection to a position in a document that is not
controlled by FrameSelection.
If this happens, a subsequent call of FindString command provokes an assertion
in TextIterator, as it does not expect the selection endpoints to be in another
document.
This patch fixes the issue and adds a layout test that reproduces the assertion
failure.
BUG=374904
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176010
Patch Set 1 #
Total comments: 6
Patch Set 2 : Revise test. #
Total comments: 4
Patch Set 3 : Fix minor issues in test. #
Messages
Total messages: 8 (0 generated)
|