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

Client hints difference between navigation and subresources #707

Closed
annevk opened this issue Apr 17, 2018 · 8 comments
Closed

Client hints difference between navigation and subresources #707

annevk opened this issue Apr 17, 2018 · 8 comments

Comments

@annevk
Copy link
Member

annevk commented Apr 17, 2018

@igrigorik is it intentional that for subresources we always append client hints headers and for navigation only if they're not already present?

That doesn't actually make a whole lot of sense to me, since navigation is the one where it's currently impossible for those headers to already be present...

@igrigorik
Copy link
Member

Most recent IETF draft updates the opt-in flow. The short of it:

  • Servers must advertise Accept-CH with list of hints they want to receive.
    • If this opt-in is present on response to navigation request, then we should emit the requested request header fields for same-origin subresources.
  • Optionally, the server can also provide Accept-CH-Lifetime to persist above preference. This means that future navigation+subresource requests should emit requested header fields.

Sending requested header fields to 3P origins is subject to Feature Policy, the plumbing for which is WIP — see w3c/webappsec-permissions-policy#129.

@annevk
Copy link
Member Author

annevk commented Apr 18, 2018

@igrigorik that opt-in flow requires a bunch of plumbing in HTML and Fetch too. Who will do that work?

@igrigorik
Copy link
Member

It's been my list for a while, but as you can tell.. haven't found the cycles to tackle it so far. If there is anyone else interested in picking this up, I'd be happy to help review!

@yoavweiss
Copy link
Collaborator

Taking a cautious peek at that, it seems like that work would comprise of:

@annevk - does that sound about right?

@annevk
Copy link
Member Author

annevk commented Apr 24, 2018

Yeah (also tests).

@igrigorik
Copy link
Member

@yoavweiss that sounds about right!

@igrigorik
Copy link
Member

@annevk let's close this and track progress in #726?

@annevk
Copy link
Member Author

annevk commented May 18, 2018

Sure.

@annevk annevk closed this as completed May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants