Bug 228017

Summary: Require transient activation to use Geolocation API
Product: WebKit Reporter: Marcos Caceres <marcos>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ggaren, gsnedders, marcos, smoley, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/w3c/geolocation-api/pull/94

Description Marcos Caceres 2021-07-16 00:31:57 PDT
It would be nice if, in order to use the Geolocation API, transient activation was required. 

There is a proposed Geolocation API spec change at:

The benefits being less annoying prompts for users.

Naturally, this would break *a lot* sites, so it would be great to coordinate on a strategy across browsers. There is support from Chrome and Mozilla to work together to figure out a strategy (see GitHub pull request link above).
Comment 1 Sam Sneddon [:gsnedders] 2021-07-16 03:33:10 PDT
What's "transient activation"?
Comment 2 Sam Sneddon [:gsnedders] 2021-07-16 03:34:25 PDT
Oh, https://html.spec.whatwg.org/multipage/interaction.html#transient-activation-duration

Do people frequently hit geolocation prompts within a few seconds of each other?
Comment 3 Marcos Caceres 2021-07-16 09:00:40 PDT
(In reply to Sam Sneddon [:gsnedders] from comment #2)
> Oh,
> https://html.spec.whatwg.org/multipage/interaction.html#transient-activation-
> duration
> Do people frequently hit geolocation prompts within a few seconds of each
> other?

No, we would consume the activation as it usually displays the prompt (just haven't added that to the spec yet).
Comment 4 Radar WebKit Bug Importer 2021-07-22 16:23:17 PDT
Comment 5 Marcos Caceres 2021-07-22 18:01:49 PDT
Just noting that there are is another idea being thrown around, like only requiring transient activation on third-party contexts... that might reduce a little bit of breakage. In any case, open to ideas and really hope folks here can provide some feedback