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

Make it explicit that user agents can modify or omit hints #121

Merged
merged 6 commits into from
Jul 6, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,15 @@ following steps:
<li>Run [=retrieve the client hints set=] with |settingsObject|.
<li>For each [=client hints token=] |lowEntropyHint| in the registry's [=low entropy hint table=], [=set/append=] |lowEntropyHint| to |hintSet|.
<li>If |request|'s [=request/client=] is not null, then for each [=client hints token=] |requestHint| in
|request|'s [=environment settings object/client hints set=], [=set/append=] |requestHint| to
|settingsObject|'s [=environment settings object/client hints set=], [=set/append=] |requestHint| to
|hintSet|.
arichiv marked this conversation as resolved.
Show resolved Hide resolved
<li>For each |hintName| in |hintSet|:
<ol>
<li>If |request| is not a [=navigation request=] for a "document" [=request/destination=] and if the result of running [[permissions-policy#algo-should-request-be-allowed-to-use-feature]]
given |request| and |hintName|'s associated feature in [[#policy-controlled-features]] returns `false`, then continue to next |hintName|.
<li>If |hintName| should be ommitted (see [=Security and Privacy considerations=]) then continue.
arichiv marked this conversation as resolved.
Show resolved Hide resolved
<li>Let |value| be the result of running [=find client hint value=] with |hintName|.
<li>If |hintName| should be lied about (see [=Security and Privacy considerations=]) then let |value| equal that lie.
arichiv marked this conversation as resolved.
Show resolved Hide resolved
<li>[=header list/append=] |hintName|/|value| to the [=request/header list=].
</ol>
</ol>
Expand Down Expand Up @@ -392,7 +394,12 @@ Issue: Links for image features are broken, need to actually define that and lin

Security and Privacy considerations {#privacy}
===========
See [[!RFC8942]].

This specification exposes information regarding the user's preferences and agent, which can be used as an active fingerprinting vector.
[=User agents=] implementing this specification need to be aware of that, and take that into consideration when deciding whether to implement specific hints,
lie in the value returned for a given hint, or ommit the hint entirely.
arichiv marked this conversation as resolved.
Show resolved Hide resolved

For example, [=user agents=] may decide to omit or lie about the user's preferences when the user is in a private browsing mode.
arichiv marked this conversation as resolved.
Show resolved Hide resolved

Terms {#terms}
====
Expand Down