[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 Review URL: https://codereview.chromium.org/1298633002 git-svn-id: svn://svn.chromium.org/blink/trunk@200709 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment