FrameSelection::SelectWordAroundCaret(): Check Start and End for Null
EphemeralRange crashes when it receives a null position. If a textfield is empty, the start and/or end of the word around the caret may be null. This causes the renderer to crash. Add a check that the start and end positions are not null before passing them in to EphemeralRange. Bug: 872443 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I7156bb99b53134d076359f9ea320b5a5cdbe5bc0 Reviewed-on: https://chromium-review.googlesource.com/1169584 Commit-Queue: Tessa Nijssen <tnijssen@google.com> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#582264}
Showing
Please register or sign in to comment