Workaround to avoid crashing in FrameSelection::SelectedText()
This patch introduces workaround to check invalid selection for avoiding crash in |ComputeRangeForSerialization()| called by |FrameSelection::SelectedText()|. When selection is none, both selection base and extent should be null. However, we have invalid selection, one of base and extent is null, by some reasons. Background: Bug: 1019152 Change-Id: I38717ede505eebb9c59229d5d2e14d75b50f24a5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1891819 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#711162}
Showing
Please register or sign in to comment