If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

FileReader onerror dispatches a ProgressEvent - FileReader::FreeDataAndDispatchError ignores mError

RESOLVED INVALID

Status

()

Core
DOM
RESOLVED INVALID
8 months ago
8 months ago

People

(Reporter: mstange, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox54 affected)

Details

(Reporter)

Description

8 months ago
I'm not sure if this is intentional. It seems rather strange to me.
Code example:

const reader = new FileReader();
reader.onerror = errorEvent => {
  // errorEvent is not helpful at all.
  // Need to check reader.error.name instead.
};
reader.readAsArrayBuffer(someBlob);
https://w3c.github.io/FileAPI/#dfn-error-event

This is correct. You should use FileReader.error in order to have a DOMError object.
Status: NEW → RESOLVED
Last Resolved: 8 months ago
Resolution: --- → INVALID
(Reporter)

Comment 2

8 months ago
ok, thanks
You need to log in before you can comment on or make changes to this bug.