commit | 03d93ff0c5a63d8ff85d4fc946b4cb41ce5b5fc0 | [log] [tgz] |
---|---|---|
author | Shunya Shishido <sisidovski@chromium.org> | Fri Nov 01 20:11:44 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 01 20:11:44 2024 |
tree | 5f84bf0d758b1e14415625543e831f288f1e1e60 | |
parent | 67dcaebc869b183055d430269b128ef2a239ea1e [diff] |
Stop sending unnecessary subresource requests with Static Routing API This is a bug fix CL. Before this CL, there are unnecessary network requests triggered from SWSubresourceLoader. This is occurred when `race-network-and-fetch-handler` is specified for the main resource load, and there are no matched router rules for subresource. This information is passed to the the renderer via `fetch_handler_bypass_option`, which is retrieved through `controller_connector_` in SWSubresourceLoader. When `race-network-and-fetch-handler` is specified and the network request is dispatched, `ServiceWorkerFetchHandlerBypassOption::kRaceNetworkRequest` is set to fetch_handler_bypass_option, and the subresource loader also starts the network request without checking other conditions. I believe this is the bug introduced when we add the BestEffortServiceWorker behavior to the static routing API. We don't explore BestEffortServiceWorker anymore and it was taken over by SWAutoPreload. We can safely remove code triggering the network request in the resource loader. Bug: 376723182 Change-Id: Ifda20a2ab8c60dd8dc7cdb286d1440cf0766f684 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5981616 Commit-Queue: Shunya Shishido <sisidovski@chromium.org> Reviewed-by: Keita Suzuki <suzukikeita@chromium.org> Cr-Commit-Position: refs/heads/main@{#1377047}
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.