Skip to content
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

prefetch initiator appears to be unused #1008

Closed
bakkot opened this issue Mar 18, 2020 · 6 comments · Fixed by whatwg/html#8111
Closed

prefetch initiator appears to be unused #1008

bakkot opened this issue Mar 18, 2020 · 6 comments · Fixed by whatwg/html#8111

Comments

@bakkot
Copy link
Contributor

bakkot commented Mar 18, 2020

This part of the fetch spec says that requests have an associated initiator, for which one of the possible values is prefetch (added in #659, so cc @yoavweiss and @annevk as the most likely people to know abou this). A table shortly below it says that prefetch initiator is used for "HTML’s <link rel=prefetch>". But neither the HTML spec nor the resource hints spec (the only other place I could think where it would be defined) make any mention of this. The resource hints spec doesn't even mention initiators at all.

Is there somewhere else I should be looking?

@yoavweiss
Copy link
Collaborator

It's used in whatwg/html#4115, which never landed, but which we should get back to.

/cc @domfarolino

@annevk
Copy link
Member

annevk commented Mar 25, 2020

https://w3c.github.io/webappsec-csp/ uses it as well.

@bakkot
Copy link
Contributor Author

bakkot commented Mar 25, 2020

@annevk Sorry, by "uses" I meant that nothing creates such requests. CSP switches on request having an initiator of prefetch, but since nothing creates such request that part of the specification is effectively dead. (That's actually how this came up; I was trying to figure out what that part of the CSP spec did.)

@annevk
Copy link
Member

annevk commented Mar 25, 2020

Ah okay, so in part the history here is that browsers shipped a bunch of things without standardizing them properly and we've been slowly trying to fix that. (Another large hole here is that CSS doesn't really call into fetch.)

@annevk
Copy link
Member

annevk commented Dec 9, 2022

cc @noamr

@noamr
Copy link
Contributor

noamr commented Dec 9, 2022

whatwg/html#8111 fixes this.

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

Successfully merging a pull request may close this issue.

4 participants