It would be great if Web Driver provided a means for a user agent to emit a Geolocation coordinates. These would be picked up by the Geolocation API's requestPosition() and watchPosition() methods.
This would be beneficial to both web developers and implementers.
The straw person is to allow developers to pass an JSON object with a shape that matches GeolocationCoordinates.
Then the UA can just echo that as a real GeolocationCoordinates object.
On WPT, at least, (and yes, I'm aware test_driver is not part of this spec.. just showing it as a use case) I'm imagining something like:
It would be great if Web Driver provided a means for a user agent to emit a Geolocation coordinates. These would be picked up by the Geolocation API's
requestPosition()
andwatchPosition()
methods.This would be beneficial to both web developers and implementers.
The straw person is to allow developers to pass an JSON object with a shape that matches GeolocationCoordinates.
Then the UA can just echo that as a real
GeolocationCoordinates
object.On WPT, at least, (and yes, I'm aware
test_driver
is not part of this spec.. just showing it as a use case) I'm imagining something like:Similarly, with
watchPosition()
, one would get the 3 positions:Thoughts?