commit | 19422be2e791e3a33e9e6b8644499f3f4273dc71 | [log] [tgz] |
---|---|---|
author | Tommy C. Li <tommycli@chromium.org> | Wed Jul 25 23:47:13 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jul 25 23:47:13 2018 |
tree | 430f0a0eac26e1fb978a5a4c1dfdb693dfed2172 | |
parent | 567d05d238b73a051114bc59412d104b3d3fbdea [diff] |
Omnibox UI Refresh: Prevent restoring incorrect edit model focus state The tab management system saves and restores the last-focused control for each tab. However, if the last-focused control is destroyed, the browser focuses the Omnibox by default. In those cases, the edit model's saved focus state will be incorrect. This CL prevents that weird state from occurring by cross-checking the edit model's saved focus state with the actual focus state restored by the tab management system. This state de-syncing was always there, but has been recently made visibly apparent because of: https://chromium-review.googlesource.com/c/chromium/src/+/1144211 Bug: 866781 Change-Id: I0e85be9f650ae896021096e6c546b9f085d528d6 Reviewed-on: https://chromium-review.googlesource.com/1149191 Commit-Queue: Tommy Li <tommycli@chromium.org> Reviewed-by: Justin Donnelly <jdonnelly@chromium.org> Cr-Commit-Position: refs/heads/master@{#578131}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .