FileReader does not fire progress event at 100%

UNCONFIRMED
Unassigned

Status

()

Core
DOM
UNCONFIRMED
4 years ago
3 years ago

People

(Reporter: M8R-p7, Unassigned)

Tracking

Trunk
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Firefox only emits Progress events until the file has been loaded, while Chromium and Internet Explorer emit Progress events up to and including 100%.

The W3C FileAPI spec specifies that a progress event must be fired "at 100% completion of the read operation" ( http://www.w3.org/TR/FileAPI/#events )
(Reporter)

Comment 1

3 years ago
Created attachment 8451359 [details]
Testcase: Final reported loaded bytes

Not sure if a testcase is required, but have this anyway to clarify: this outputs the Loaded Bytes count of the last Progress Event received before the Load Event.

In Firefox, the result will be either 100% or less, depending on whether the whole file could be loaded at once.

I haven't yet received less than 100% in other browsers (expected behavior).
You need to log in before you can comment on or make changes to this bug.