commit | ad5158e392bf02a46d9688619bd70e3d4953cd28 | [log] [tgz] |
---|---|---|
author | Adithya Srinivasan <adithyas@chromium.org> | Fri Jan 26 15:41:55 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 26 15:41:55 2024 |
tree | fbd89b75ba3f3b21db6ce803d0053387cc6cbc8d | |
parent | fef55720b59a7759c452fd6634bea8d1011aa7c5 [diff] |
Prefetch: Prevent PrefetchContainer::OnCookiesChanged from being called twice It was previously possible for OnCookiesChanged to be called twice in a scenario where a NavigationRequest to a URL is cancelled, and then replaced by another NavigationRequest to the same URL. This CL fixes this by preventing GetPrefetch from selecting a prefetch that has already been marked as unusable because the cookies have changed. This CL also removes a codepath in OnGotPrefetchToServe that was never being used in practice (there are comments in the code explaining why). It also removes a unit test that was exercising this code path. Bug: 1491889 Change-Id: Ic10cdcde1e12ec24710d47dea5c192325df4b1f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5232813 Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org> Commit-Queue: Adithya Srinivasan <adithyas@chromium.org> Cr-Commit-Position: refs/heads/main@{#1252649}
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.