| commit | 743aa3c7b9eddf0787f93ee2e2388cc71dea5d09 | [log] [tgz] |
|---|---|---|
| author | Simon Knott <simon.knott@microsoft.com> | Wed Jul 16 22:20:51 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 16 22:20:51 2025 |
| tree | 30b15b13550efa6f038c22338afb11783d966a89 | |
| parent | 03cdd4b044c1276339cb17d030cbf7e12d9af34f [diff] |
[CDP] Detect `Page.navigate` download Before this CL, navigating to a download URL yields "net::ERR_ABORTED", and is impossible to distinguish from any other error. To determine whether the error stems from a download, one needs to wait for the `Browser.downloadWillBegin` event. But since that can be emitted *after* `Page.navigate` returns, this introduces unnecessary waiting. To prevent this waiting, this CL adds a flag that shows whether the navigation turned into a download. Change-Id: I90d81d289df6621d0cdb977ba6ed7e7d74ee475e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6696011 Commit-Queue: Yury Semikhatsky <yurys@chromium.org> Reviewed-by: Maksim Sadym <sadym@chromium.org> Reviewed-by: Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/main@{#1487924}
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.