W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] Bandwidth media queries

From: James Graham <jgraham@opera.com>
Date: Sun, 20 May 2012 17:00:04 +0200 (CEST)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Message-ID: <alpine.DEB.2.02.1205201658440.22566@sirius>
Cc: whatwg@lists.whatwg.org
On Sun, 20 May 2012, Boris Zbarsky wrote:

> On 5/20/12 5:45 AM, Paul Irish wrote:
>> Since no one mentioned it, I just wanted to make sure this thread is aware
>> of the Network Information API [1], which provides
>> navigator.connection.bandwidth
>> 
>> It's been recently implemented (to some degree) in both Mozilla [2] and
>> Webkit [3].
>
> As far as I can tell, the Mozilla implementation always returns Infinity for 
> .bandwidth.
>
> And this is perfectly compliant, since the spec says:
>
>    The user agent must set the value of the bandwidth attribute to:
>
>        0 if the user is currently offline;
>        Infinity if the bandwidth is unknown;
>        an estimation of the current bandwidth in MB/s (Megabytes
>        per seconds) available for communication with the browsing
>        context active document's domain.

If no one is planning on implementing this feature in a meaningful way, 
why is it in the spec?

(yes I know this is not exactly the right list).
Received on Sunday, 20 May 2012 15:00:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT