FileReader does not fire progress event at 100%

UNCONFIRMED
Unassigned

Status

()

P5
normal
UNCONFIRMED
5 years ago
7 months ago

People

(Reporter: mozbz, Unassigned)

Tracking

Trunk
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 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

5 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).
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.