commit | 175d9f804d55c711954fb1b4532b09f0699a32a7 | [log] [tgz] |
---|---|---|
author | Min Qin <qinmin@chromium.org> | Wed Oct 06 20:05:16 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 06 20:05:16 2021 |
tree | 4e392498319deb24f119d2c82b546f51f2533804 | |
parent | 27fabc9229425100467f8f4db55439f111f3a8e5 [diff] |
limit download to only one per tab This CL will limit number of download to one on a tab. Previously more than 1 download is possible though multiple origins. With this CL, after the first download happens, download from new origins will require user confirmation to proceed. With our previous change to store all origin and their corresponding download status in a map, the TabDownloadState cannot be cleared unless the map is empty. If a tab's download count >=1, all download from a non-blocked origin will require prompt. User initiated navigation will clear all download status, unless the origin is blocked in content settings. BUG=1200874 Change-Id: I6ab4aa77bcfc156fe9f14a341c47c0bc3f6b28e5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3161027 Commit-Queue: Min Qin <qinmin@chromium.org> Reviewed-by: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/main@{#928828}
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.