Re: [FileAPI] FileReader.abort() and File[Saver|Writer].abort have different behaviors

On Tue, May 17, 2011 at 2:42 PM, Eric U <ericu@google.com> wrote:
> It was likely just an oversight on my part that they differ.
> It does seem a bit odd to dispatch error/abort/loadend if aborting
> with no write in progress, so I favor the FileWriter/FileSaver
> behavior, but as long as they match, I'm not too bothered.

For what it's worth, FileReader.abort() currently follows what
XHR.abort() does, which is to do nothing if called in the "wrong"
state. I.e. no events are aborted and no exceptions are thrown.

/ Jonas

Received on Tuesday, 17 May 2011 21:48:57 UTC