W3C home > Mailing lists > Public > public-geolocation@w3.org > March 2009

Re: PositionOptions.timeout & UserAgent permission

From: Doug Turner <doug.turner@gmail.com>
Date: Sat, 14 Mar 2009 20:27:03 -0700
Cc: public-geolocation <public-geolocation@w3.org>
Message-Id: <7BD2B4E3-7590-4267-9825-42335E7D4C5D@gmail.com>
To: Greg Bolsinga <bolsinga@apple.com>
Hi Greg,

I have interpreted the PositionOptions timeout starting point when the  
user accepts the geolocation request.  if the user never clicks  
"allows", there will be no callbacks.  Sounds like we need a bit of  
clarification here.

 From the user's perspective, if the timeout happens at the same time  
the user grants access, they might be confused at this behavior.   
However, from the developers point of view, not getting a timeout  
failure in this case might require them to hook up a separate timeout.

Doug



On Mar 14, 2009, at 7:26 PM, Greg Bolsinga wrote:

> Hello --
>
> I have a implementation detail question about the PositionOptions  
> timeout. http://dev.w3.org/geo/api/spec-source.html#timeout
>
> What if the UA has to put up a UI that asks the user to allow  
> Geolocation, and then what if the user takes longer to respond than  
> the timeout? If the user allows it, and the timeout has expired,  
> which wins? Does the page get the position, or the timeout error?
>
> In my implementation, by the time the user is requested for  
> permission, a location is extremely likely to be known, so I can  
> stop the timeout then, but I just want to be sure.
>
> Thanks,
> -- Greg
>
>
Received on Sunday, 15 March 2009 03:27:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:33:52 UTC