Closed Bug 846135 Opened 13 years ago Closed 10 years ago

Wrong upload progress if the file is large

Categories

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

18 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: radic.feng, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.99 Safari/537.22 Steps to reproduce: Upload a big file over 800M, and the network is slow. Actual results: I see the progress bar shows the percentage is larger than 100%. And I debug to find evt.loaded gives the wrong percentage. Expected results: By any means, evt.loaded should give the right percentage.
Component: Untriaged → DOM: Mozilla Extensions
Product: Firefox → Core
Dongwei, would you have a testcase?
Keywords: testcase-wanted
Mounir, if you have a testcase on upload's "progress“ event, e.g. xhr.upload.addEventListener("progress", uploadProgress, false); function uploadProgress(evt) { if (evt.lengthComputable) { var percentComplete = Math.round(evt.loaded * 100 / evt.total); document.getElementById('progressNumber').innerHTML = percentComplete.toString() + '%'; } else { document.getElementById('progressNumber').innerHTML = 'unable to compute'; } } If the file to upload is big, my file is about 800M, and my bandwidth is about 20k/s. almost every time, I can see percentComplete is > 100%. And when it became to 200%, it showed upload failed.
Is this a dup of the one where .total tells the compressed size and .loaded the uncompressed?
By Firebug, I can see if the upload takes a long time, the request will be aborted, and the progress will became 100%. But immediately, it will restart to upload.. I do not know Firefox has retry mechanism or it relates to this bug.
Olli, is there a bug number for the .total issue ? I want to read and confirm if this is the same issue we are seeing in our production environment.
Component: DOM: Mozilla Extensions → DOM
Hi Dongwei, Do you still have this issue, with the latest Firefox version, You can download it from here: https://www.mozilla.org/en-US/firefox/new/# Thank you.
Flags: needinfo?(radic.feng)
(In reply to Olli Pettay [:smaug] (high review load) from comment #3) > Is this a dup of the one where .total tells the compressed size and .loaded > the uncompressed? Bug 614352?
Marking this as Resolved: Incomplete due to the lack of response from the reporter. If anyone can still reproduce it on latest versions, feel free to reopen the issue and provide more information
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(radic.feng)
Keywords: testcase-wanted
Resolution: --- → INCOMPLETE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.