Chromium Code Reviews
DescriptionMake SpellChecker::didBeginEdit() not to crash with elements editing ignore content
This patch makes |SpellChecker::didBeginEdit()| not to pass an element
which returns true for |editingIgnoresContent(element)|, since
|selectionFromContentsOfNode(element)| doesn't accept such elements, to avoid
crash with such elements.
Since test runner sets false for |unifiedTextCheckerEnabled()|, we have not
been aware this. Following patch will make |unifiedTextCheckerEnabled()|
to return true always.
Following test crashes when |unifiedTextCheckerEnabled()| is true:
- editing/execCommand/append-node-under-document.html
- editing/text-iterator/backward-textiterator-first-letter-crash.html
BUG=619452
TEST=n/a; no user visible changes
Committed: https://crrev.com/be44d0ea538814bb21fd76bf562b4247c10f5f9b
Cr-Commit-Position: refs/heads/master@{#402714}
Patch Set 1 : 2016-06-28T16:59:23 #Patch Set 2 : 2016-06-28T17:34:15 #
Total comments: 2
Messages
Total messages: 12 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||