Abort InsertTextCommand if there is no VisibleSelection after deleting selection
InsertTextCommand deletes the content of the current selected range before inserting new text. In certain cases, there is non-null selection after the deletion, but the corresponding VisibleSelection is null. This patch makes InsertTextCommand abort in such cases to avoid crashing. Bug: 779376 Change-Id: I84538fe1ccd4200e9505701e7cbe700c48ea101a Reviewed-on: https://chromium-review.googlesource.com/744388 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#512737}
Showing
Please register or sign in to comment