commit | 358e628f98a8861dcc474e94e132b502b1233fd8 | [log] [tgz] |
---|---|---|
author | Jun Ishiguro <junis@google.com> | Fri Aug 18 01:40:59 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 18 01:40:59 2023 |
tree | a1c06c58f5985589e485c8222bed3f79d44465a1 | |
parent | 1f954f1f0fb99dad152c7feeec3f7794fb555e99 [diff] |
Change localized-link element to trigger click handler on middle-click This CL makes <localized-link> elements trigger the click handler when the user middle-clicks. This change fixes an issue in ChromeOS where the OS settings page is reloaded when the user middle-clicks on a special link, which has a '#' href. The cause is that the default action of middle click is to open the "link" in a background tab. For such links with JavaScript click handler, the default action should be suppressed. By invoking the click handler on auxclick events as well, the click handler can disable the default action by the preventDefault() API. Bug: 1457122 Change-Id: I1a392a1468def246bb960dbcd305db0582b04a5f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4780830 Commit-Queue: Jun Ishiguro <junis@google.com> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/main@{#1185004}
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.