forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subresource prefetch: Fix the referrer value
PerformNetworkContextPrefetch() used an incorrect referrer_policy by default, leading to mismatches. It also failed to trim the referrer on cross-origin fetches. Use a referrer_policy of REDUCE_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN and only include the origin on cross-origin fetches. Also prevent prefetches over insecure HTTP. Add tests for the new functionality. BUG=342445996 Change-Id: I8900cb550f9d80df152b3b14f0bcc7707e9159f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6021766 Commit-Queue: Adam Rice <ricea@chromium.org> Reviewed-by: Lingqi Chi <lingqi@chromium.org> Cr-Commit-Position: refs/heads/main@{#1384197}
- Loading branch information
Showing
2 changed files
with
172 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters