commit | 436331303b8eb05698cee5c12614f8560edf1d49 | [log] [tgz] |
---|---|---|
author | Andrew Williams <awillia@chromium.org> | Wed Aug 21 23:05:51 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 21 23:05:51 2024 |
tree | 42d843ebf770b8958d6155ddd05e82ed328d9e7a | |
parent | 277f39e42978fc1e90fc1400a692212618305c85 [diff] |
Improve handling of Link header `rel="preload";as="document"` prefetches When Chrome encounteres a Link rel=preload header on a prefetched response, it will attempt to promote that to a prefetch instead. If the Link header has `rel="preload";as="document"`, it will set a flag indicating that the prefetch should be for a top-level navigation. Chrome doesn't correctly support building a request when both of these conditions are true, so this CL makes it so that the `as=document` parameter was not specified (matching how the code behaves today). I added a new test for this but have it disabled like some similar tests that have flakiness issues. I ran the tests manually, though, using: ./out/Debug/content_browsertests --gtest_filter="*DISABLED_CrossOriginWithInvalidPreloadAsDocument/*" --gtest_also_run_disabled_tests Bug: 357325599, 347934841 Change-Id: Ifa1729dbfa04261de8cb4babaadcd74a087ac6e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5769944 Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org> Commit-Queue: Andrew Williams <awillia@chromium.org> Cr-Commit-Position: refs/heads/main@{#1345125}
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.