[w3c/permissions] Flesh out request("geolocation") (#112)

[`"geolocation"`](https://w3c.github.io/permissions/#geolocation) is currently specified as a boolean feature, but `request()` needs to work on browsers like Firefox that let the user grant one location stream but still prompt for the next request in the same realm. That is, request()'s result needs to include a location or a location stream, which means the input needs to include the [`PositionOptions`](https://dev.w3.org/geo/api/spec-source.html#position_options_interface).

I assume we don't want to open up a position stream unless the caller wants it, since watching a location costs more and shows the location indicator for longer than getting a single point. But the stream should be possible, and more idiomatic than `watchPosition()`, so we need to design that.

We also need to figure out what to do with [`POSITION_UNAVAILABLE`](https://dev.w3.org/geo/api/spec-source.html#position_unavailable_error) and [`TIMEOUT`](https://dev.w3.org/geo/api/spec-source.html#timeout_error). Are they rejected promises or some field in the result?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/112

Received on Tuesday, 26 July 2016 00:09:34 UTC