commit | 0f53b8ea683ea78f27a96dddd68ee6003974e5e8 | [log] [tgz] |
---|---|---|
author | Alan Cutter <alancutter@chromium.org> | Tue Mar 12 04:34:46 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 12 04:34:46 2024 |
tree | 3038cc5c054849421bc02fad65ed7428841286e4 | |
parent | 136156df5170d35d67c22fd256c9f55ef9b407c5 [diff] |
Link capturing: Fix tab closing for user initiated JavaScript navigations This CL updates link capturing to only close the captured tab if the navigation was not from a user gesture within the tab. This fixes a bug where pages that set location.href = url in JavaScript in response to a user click were being closed erroneously. This CL also backfills missing test coverage around the tab closing code path. Bug: b/328481912 Change-Id: Ic55c4b8df73a0b887ddc576fe66fd655b7f8d2d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5354786 Commit-Queue: Alan Cutter <alancutter@chromium.org> Reviewed-by: Tim Sergeant <tsergeant@chromium.org> Reviewed-by: Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/main@{#1271366}
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.