-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting referrer policy in speculation rules #167
Comments
An alternative was discussed in #18, which is removing the requirement of referrer policy matching. There, we decided the reason we kept it was mostly to help in some cross-site cases related to cookies. I wonder if we should consider revisiting that decision, at least for same-site cases? In particular, @domfarolino's survey in #18 (comment) of how nothing else keys on referrer policy is pretty convincing... |
This is not a full alternative, however. Consider a site which does want to vary its content based on referrer. That site sends For such sites, we need a way to indicate the referrer policy at prerendering time anyway. So, I think I am back to adding |
Agreed we want syntax for it at least for list rules; in my mind that was always going to happen, just a question of priority. Failing that we should respect the attribute on the link (for document rules) and the document's default referrer policy. I need to give it more thought, but I think I'm coming around on not keying on referrer policy at least if |
@domenic @jeremyroman hi, how is the status on this change? is there a specific blocker. or just isn't a high-priority item? |
Implementation-wise I have a WIP CL here: https://chromium-review.googlesource.com/c/chromium/src/+/3971707 , which is almost ready for review. |
We've now spec'd the "referrer_policy" key in speculation rules. I'll go ahead and close this. |
We currently do not allow using a prerender or prefetch that has a mismatched referrer policy.
And, we always prerender or prefetch using the page's overall default referrer policy.
This means that if a site has something like this:
then the prerender will be discarded instead of activated. This is correct behavior, but is unfortunate.
We could solve this with document rules. Or, we could allow setting the expected referrer policy in the list rules, e.g.
The text was updated successfully, but these errors were encountered: