camillelamy / explainers

11 stars 5 forks source link

Previous document URL for reporting #6

Open annevk opened 4 years ago

annevk commented 4 years ago

Why not always use the referrer? If a site includes user information in the URL sometimes they might not wish for that to go into their COOP logs and it seems there's no way to prevent that with the current setup.

camillelamy commented 4 years ago

I think we wanted to provide the full URL when both pages were same-origin in order to make reports more actionable.

@arturjanc: Would always using the referrer URL be ok?

arturjanc commented 4 years ago

Is there a case where the referrer and the full URL will be different for a same-origin navigation, aside from things like Referrer-Policy: no-referrer?

If not, I don't feel strongly about special-casing same-origin URLs here so my guess is that always sending the referrer will be fine.

camillelamy commented 4 years ago

In the latest version, we have two fields, one for the referrer which we always send, and another for the URL which we only fill if they are same-origin.