Description[Editing] Make InsertListCommand check endingSelection() editability.
doApply assumes |endingSelection()| has rootEditableElement as L114 checks.
However, reseting |endingSelection()| through |endOfSelection| at L171 can
invalidate the assumption.
This CL let it return early if it does.
We should fix the reseting |endingSelection| algorithm in long term but let me fix
the stable blocker crash.
BUG=515490
TEST=LayoutTests/editing/execCommand/insert-ordered-list-crash2.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200709
Patch Set 1 : v1 #
Total comments: 2
Patch Set 2 : nit pick #
Messages
Total messages: 9 (4 generated)
|