Perform Spellcheck Requesting before Dispatching Events
|ReplaceSelectionCommand| stores the inserted range after |doApply()|. This range may be invalidated if |Editor::appliedEditing()| modifies the DOM, causing spellcheck run on an invalid range. This CL moves the spellcheck request into |Editor::appliedEditing()| before dispatching any event, ensuring spellcheck run on a valid range. BUG=580950 TEST=LayoutTests/editing/pasteboard/paste-webkit-editable-content-changed-crash.html Review URL: https://codereview.chromium.org/1636883003 Cr-Commit-Position: refs/heads/master@{#371776}
Showing
Please register or sign in to comment