Only cache scopes route node if names route node found
This CL fixes an issue that was causing the screen reader to unnecessarily re-focus when a node with scopes route flag was found without any descendant names route node. This caused the scopes route node to be added to the cache but then immediately removed by the check for empty scopes route. That causes a refocus. Bug: None Test: Manual w/ display assistant, unit tests Change-Id: Idbafc1cff79150d8be7f790612d342cd674d16e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2525771Reviewed-by:Ryan Daum <rdaum@chromium.org> Commit-Queue: Randy Rossi <rmrossi@chromium.org> Cr-Commit-Position: refs/heads/master@{#825448}
Showing
Please register or sign in to comment