DescriptionFix a hidden crash when ImeThread feature is used
DCHECK in PlainTextRange's constructor causes a crash when start > end, but
the test passes, probably because it's a renderer crash and we call it at
the end.
In this case, we'll swap start and end just like BaseInputConnection does.
Also adds some tests to fix the behavior and prevents a crash in the future.
BUG=
Committed: https://crrev.com/d7e40d40a011ad58385e8935764898bdde795aa2
Cr-Commit-Position: refs/heads/master@{#408927}
Patch Set 1 #
Messages
Total messages: 13 (7 generated)
|