W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

Re: FileReader question about ProgressEvent

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 20 Apr 2010 16:22:55 -0700
Message-ID: <h2l63df84f1004201622kbc80def5wb490888413aa70e1@mail.gmail.com>
To: Jian Li <jianli@chromium.org>
Cc: Web Applications Working Group WG <public-webapps@w3.org>
On Tue, Apr 20, 2010 at 3:51 PM, Jian Li <jianli@chromium.org> wrote:
> According to the spec, we will dispatch a progress event for a read method.
> But per the "Progress Events 1.0" spec, the attributes "loaded" and "total"
> are defined  as "unsigned long".
>    interface ProgressEvent : events::Event {
>         ...
>         readonly attribute unsigned long   loaded;
>         readonly attribute unsigned long   total;
>         ...
> The type "unsigned long" is not enough to represent the file size. Do we
> want to update the Progress Event spec to use "unsigned long long"? Or we
> could limit the FileReader to only read from the file with size less than

I think the progress events spec needs to be amended here yes. Though
one complication is that ECMAScript can't represent all values of a
unsigned long long.

Ideally webidl would define an integer type with 53 bits (which iirc
is the largest size you can precisely represent in an ECMAScript

/ Jonas
Received on Tuesday, 20 April 2010 23:23:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:07 UTC