Skip to content

Should hyperlink downloading consider the referrer policy? #5623

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

Open
domfarolino opened this issue Jun 9, 2020 · 4 comments
Open

Should hyperlink downloading consider the referrer policy? #5623

domfarolino opened this issue Jun 9, 2020 · 4 comments
Assignees

Comments

@domfarolino
Copy link
Member

It seems like https://html.spec.whatwg.org/multipage/links.html#downloading-hyperlinks doesn't consider the subject's referrerpolicy attribute. Seeing as how both <a> and <area> have this attribute, and it is otherwise respected, it seems reasonable to respect it when downloading things.

Do you agree @annevk?

@annevk
Copy link
Member

annevk commented Jun 9, 2020

Yes. I think this is a symptom of #5548. The download attribute bits need to be merged into "follows a hyperlink" and the "navigate" algorithm, instead of being done the way they are.

@domfarolino
Copy link
Member Author

I see, you're saying we should not have a separate path for this, like the current spec has?

@annevk
Copy link
Member

annevk commented Jun 10, 2020

Correct, it leads to a number of bugs with redirects and such.

@domenic
Copy link
Member

domenic commented Jul 1, 2024

Although I suspect @annevk is right that we should overhaul downloading more thoroughly, this particular issue is tightly scoped enough that someone could make a good contribution on it in isolation. To do so:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants