forked from mirror/chromium
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid FocusSearch crash in case of focus cycles
When a sequence of Views defined by View::Get{Next,Previous}FocusableView() forms a cycle, FocusSearch can crash due to infinite recursion if none of the Views are focusable candidates. Although View focus cycles are prohibited, we should handle this gracefully to avoid a crash. This change does this by tracking which Views have been seen in FocusSearch::Find{Next,Previous}FocusableViewImpl(). Bug: 924327 Change-Id: Ibdbb0fbceed585fdf689672cc47a08bfeff58294 Reviewed-on: https://chromium-review.googlesource.com/c/1453066 Reviewed-by: Michael Wasserman <msw@chromium.org> Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org> Commit-Queue: Collin Baker <collinbaker@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#629362}(cherry picked from commit c213e8c) Reviewed-on: https://chromium-review.googlesource.com/c/1461317 Reviewed-by: Collin Baker <collinbaker@chromium.org> Cr-Commit-Position: refs/branch-heads/3683@{#317} Cr-Branched-From: e510299-refs/heads/master@{#625896}
- Loading branch information
Showing
3 changed files
with
73 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters