W3C home > Mailing lists > Public > public-geolocation@w3.org > February 2014

Re: Inconsistent definition of timeout / maximumAge in Geo v1

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Fri, 14 Feb 2014 11:04:39 +0100
Message-ID: <1392372279.20872.88.camel@cumulustier>
To: public-geolocation@w3.org
On lun., 2014-02-03 at 17:34 +0100, Dominique Hazael-Massieux wrote:
> * the timeout attribute in the PositionOptions interface is defined as
> "long", with a default value of Infinity
> * yet, the "long" type doesn't accept "Infinity" as a valid value
> (more
> specifically, it casts it to "0")

Interestingly, Firefox works around this by setting the default value of
timeout to 0x7fffffff;
http://mxr.mozilla.org/mozilla-central/source/dom/webidl/Geolocation.webidl

I'm still unclear why maximumAge = Infinity doesn't get converted to 0,
though.

Dom
Received on Friday, 14 February 2014 10:04:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:51:07 UTC