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

Re: [FileAPI] Updates to FileAPI Editor's Draft

From: Jian Li <jianli@chromium.org>
Date: Tue, 7 Jun 2011 11:51:54 -0700
Message-ID: <BANLkTi=QxX6LdGtbynDze65m2s8T+iLwNn-tcY6WdGK1oF1xfQ@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: "arun@mozilla.com" <arun@mozilla.com>, Web Applications Working Group WG <public-webapps@w3.org>
On Tue, Jun 7, 2011 at 11:23 AM, Jonas Sicking <jonas@sicking.cc> wrote:

> On Tue, Jun 7, 2011 at 10:43 AM, Jian Li <jianli@chromium.org> wrote:
> > I have a couple questions regarding abort behavior.
> >
> > If the reading is completed and the loadend event has been fired, do we
> want
> > to fire loadend event again when abort() method is called?
>
> No
>
> > Do we want to reset error to null or leave it intact when abort() method
> is
> > called?
>
> If called after load/abort/error has fired the calling abort() should
> just throw an exception and not alter the FileReader object in any
> way.
>

Do you mean we should throw if abort() is called after load/abort/error has
been fired but before loadend event has been fired? If so, what kind of
exception should we throw?

The spec only mentions that "If readyState = DONE set result to null."

>
> / Jonas
>
Received on Tuesday, 7 June 2011 18:52:40 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT