Descriptionreset VisibleSelection at the Undo command.
Sice UndoManager doesn't manage DOM mutations outside of execCommand, the Undo command sometimes set broken VisibleSelection which is valid when it was recorded to the Undo steps but selection.deleteFromDocument broke that in this test case.
This CL validates VisibleSelection when it is used to restore Selection at Undo.
The main target VisibleSelection to be validate is that has any VisiblePosition which is not in the document already or which offset violates its nodes length because of "Unmagaed" DOM mutations.
BUG=369759
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175647
Patch Set 1 #
Total comments: 7
Patch Set 2 : Add the VisibleSelection::validateIfNeeded method #
Messages
Total messages: 12 (0 generated)
|