FileReader fails to fire onerror events, raises unexpected native exceptions instead

RESOLVED WORKSFORME

Status

()

defect
RESOLVED WORKSFORME
8 years ago
6 years ago

People

(Reporter: laaglu, Unassigned)

Tracking

8 Branch
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Reporter

Description

8 years ago
Hi, I have been stumbling on the following issue when trying to use the File API. My error handler is never called when I call the ReadAsXXX methods on the async API (FileReader, not FileReaderSync) for a file on which I do not have read permissions. Instead an exception in thrown. I have checked the spec and run my test sample with Chromium and I think the current behavior in FF is not correct. I am including a sample for you to assess the validity of my bug report.

Regards

Lukas

Comment 1

6 years ago
Mozilla/5.0 (X11; Linux i686; rv:27.0) Gecko/20100101 Firefox/27.0


The error handler is now called and I get "Error event: undefined".
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.