| commit | 25e17582f3ece8dfd8766b65bff9ad8d1a5a402f | [log] [tgz] |
|---|---|---|
| author | Lijin Shen <lazzzis@google.com> | Tue Jan 10 17:52:40 2023 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 10 17:52:40 2023 |
| tree | 8726e25caf07211780bde5ade67717c509afb865 | |
| parent | 8604e80c3a3abc8208d525ff865dc00499538bcb [diff] |
Re-introduce back press handler of tab page history. Currently, we use ToolbarTabController to track that state by listening to events related to WebContents. But the appearance of assertion errors proves this approach not reliable. This CL adopts ToolbarManager as the new back press handler. The inspiration comes from the back button in tablet toolbar. In tablet mode, that back button tracks and indicates if the current page can be navigated back. This CL syncs the back press handler with that state in order to intercept the back press correctly. ToolbarManager updates that button's state inside updateButtonStatus method and so the back press state is updated everytime it's triggered. Bug: 1402783 Change-Id: I30ca5fac3820d5d5c881e228c6275a47c36a0d0c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4136887 Reviewed-by: Theresa Sullivan <twellington@chromium.org> Commit-Queue: Lijin Shen <lazzzis@google.com> Cr-Commit-Position: refs/heads/main@{#1090897}
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.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.