Closed Bug 701154 Opened 9 years ago Closed 7 years ago

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

Categories

(Firefox :: General, defect)

8 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: laaglu, Unassigned)

Details

Attachments

(1 file)

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
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: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.