Closed Bug 978924 Opened 10 years ago Closed 10 years ago

FileAPI Abort Call Fires Wrong Event Order, with Accompanying Wrong FileReader State

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: arun, Unassigned)

References

()

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0

Steps to reproduce:

The attached HTML file invokes FileReader.abort() on a given FileReader. 

Actual Result:

"abort 2"
"loadend 2" 
"loadstart 2"

Expected Result:

"loadstart 1" 
"abort 2" 
"loadend 2"

Explanation:

When loadstart fires, the state should be LOADING.
The 'abort' event fires and the state of the FileReader should be DONE.
The 'loadend' event fires and the state of the FileReader should be DONE. 

Also, the Fx event firing sequence is illogical.
This is a direct result of your spec defining that abort() fires its event synchronously, and your test logging "loadstart" after calling abort(). See $URL for a better test.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
I'm not sure you should close this bug. It still shows event inconsistency w.r.t Chrome. Also, the spec. has changed (to always fire loadend).
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: