commit | 3bb3bcc8e5e8a43493529ff51d2dab71a6f6f272 | [log] [tgz] |
---|---|---|
author | Lijin Shen <lazzzis@google.com> | Thu Nov 07 02:10:45 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Nov 07 02:10:45 2024 |
tree | f397115e900f0b6d7bb28b6b9e6af7b0c5a96c50 | |
parent | 3a046b253fe1f6b38467fe59927608fadf09a211 [diff] |
[DNT] Fix crash caused by not navigable page when user starts to swipe It turns out that sometimes the stage of whether the page is navigable is not correctly tracked. Sometimes, the onBackStarted is called even when the page is not navigable. This CL adds another check to see if tab can be navigated back. If not, handler will not be created and will fallback to tab history back press handler; in this case, it will return a BackPressResult.Failure and fallback to other handlers. The Android.BackPress.Failure will also be recorded at this case. Bug: 376928606 Change-Id: I56bebd8200130ed5e2cd7892d8d2a2cebab6f2a5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6001437 Auto-Submit: Lijin Shen <lazzzis@google.com> Commit-Queue: Lijin Shen <lazzzis@google.com> Reviewed-by: Theresa Sullivan <twellington@chromium.org> Cr-Commit-Position: refs/heads/main@{#1379416}
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.