Re: Geolocation header

Thanks Ilya,

I think it would make perfect sense re-using CH machinery for this, keeping
things simple to implement and still guaranteeing sites only get
geolocation information when permissions are granted and for requests that
need it. So to summarize:

- CH provides a mechanism to only send geolocation to origins that
explicitly accept it (Accept-CH), and its lifetime (Accept-CH-Lifetime).
- UA would only send Geolocation header if the origin had permission
already granted.
- Permission can only be obtained through JS Geolocation API. Geolocation
headers are only used as a transport mechanism.
- Suborigins <> would provide
path-based origins if/when adopted. In the meantime, sites can use
subdomains (e.g. would not send Accept-CH for
Geolocation, but would send Accept-CH for
Geolocation, so only the latest would ever get Geolocation header, when
permissions are already granted).
- Geolocation header would be restricted to only navigation requests.

I'll update the draft with these considerations.

On Fri, Aug 18, 2017 at 8:56 PM, Ilya Grigorik <> wrote:

> Hey all.
> On Wed, Aug 2, 2017 at 7:05 AM, Luis Barguñó Jané <>
>  wrote:
>> After an initial thread on GitHub
>> <>, I decided to
>> start here the discussion so it goes through the proper channels.
>> Here you can find a document detailing the problem and a possible proposal
>> <>
> After a bit of discussion, it looks like Client Hints (CH)
>> <> would
>> be a great way to solve this use case, so I'm preparing a draft for a
>> CH-based approach.
> As discussed on the GH thread — and I think others echoed same suggestion
> on this thread — I think we should drop the header-based ("type") prompt
> trigger: it's not essential and, based on experience, a bad UX pattern.
> That aside, there's path..
> We've looked at path scoping for CH in the past, but the tradeoff between
> functionality that it enables vs. associated implementation complexity and
> (lack of) enforcement is — IMO — not worth it -- e.g. nothing stops a site
> from scoping to "/", which I would expect most sites to do anyway, just as
> they do today with cookies. My recommendation here would be..
> 1. Use default origin scoped opt-in that CH provides
> 2. If/when suborigins proposal [1] becomes a thing, it'll allow #1 to be
> path-scoped in a "generic" way.
> 3. Optionally, in addition to #1 + #2, this particular hint could be
> restricted to navigation requests only; which would provide a much stricter
> (and UA enforceable) policy.
> ig
> [1]

Received on Tuesday, 22 August 2017 14:12:51 UTC