The default bug view has changed. See this FAQ.

XHR upload progress event not working for dropped files

RESOLVED WORKSFORME

Status

()

Core
DOM
RESOLVED WORKSFORME
5 years ago
2 years ago

People

(Reporter: Dan Günther, Unassigned)

Tracking

({regression})

15 Branch
x86
Linux
regression
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

183.53 KB, application/octet-stream
Details
(Reporter)

Description

5 years ago
Created attachment 656774 [details]
upload.zip

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0
Build ID: 20120825192214

Steps to reproduce:

I attached a simple test script for the bug I experience with Firefox 15.

The script includes a drag & drop uploader.
1. Drop any files from your system into the div element or simply all files included in the attached archive.
2. An XHR request will be made to a PHP file which uploads all your dropped files into the uploads folder.
3. A progress for each dropped file will be displayed.

Before, in Firefox 14, this script worked perfectly for any file (like it still does in Google Chrome or Internet Explorer 10). Since Firefox 15 the xhr.upload.onprogress Event doesn't fire properly anymore. It seems to only fire on images and sometimes it stops firing suddenly, so the progress calculated ends up with let's say 70%.

In any case, all files will be uploaded properly. Only the xhr.upload.onprogress behaves strangely since Firefox 15.
Component: Untriaged → DOM: Mozilla Extensions
Product: Firefox → Core
Keywords: regression, regressionwindow-wanted
Dan, would you be willing to use http://harthur.github.com/mozregression/ to narrow down when the problem appeared?  I totally understand if you don't have time to...

If you don't, is the actual server setup being used here available for testing against?
(Reporter)

Comment 2

5 years ago
Well, I took the time and used mozregression (Windows 7) but without success. I even tested a nightly build from march 2011 with the test script attached. Last week, I uninstalled Firefox 15 on a Windows 7 virtual machine and installed Firefox 14 instead. The script worked at this time (actually, I created this script based on full functionality for Firefox 14, Google Chrome and Internet Explorer 10)!

Whatever, today I updated to Firefox 15 again to check it still doesn't work before I test with mozregression and after I uninstalled Firefox 15 again and reinstalled version 14, it now doesn't work either...I guess I broke something. Whatever, I know it worked someday before Firefox 15. :)

I use Ubuntu 12.04.1 LTS with Apache 2.2.22 installed. PHP is 5.4.4-1~oneiric+1. Apache and PHP setups are mostly default. I test in a local network on a Windows 7 x32 virtual machine. Windows 7 setup is also mostly default. During my development I used Firefox 14.0.1 on both, Ubuntu and Windows 7.

The problem isn't much of a deal for me as I can still fetch when the file is uploaded completely and display a 100% progress bar no matter what happened before (onreadystatechange event still works). When it comes to uploading bigger files, a growing progress bar looks better than a broken or no bar. So fixing this bug would only make the user waiting more comfortable, but won't change the functionality of what I actually do.

I hope anyone can reproduce this issue. I guess my test script is pretty clear and standardized. Thanks!
(Assignee)

Updated

4 years ago
Component: DOM: Mozilla Extensions → DOM
Product: Core → Core
I think this is just a specific case of bug 908375, so I'm marking as dup. We should however make sure to test this when we've fixed that..
Status: UNCONFIRMED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 908375
Marking dependent is probably a better way to track that.  Easier to remember to retest.
Status: RESOLVED → REOPENED
Depends on: 908375
Ever confirmed: true
Resolution: DUPLICATE → ---
Status: REOPENED → RESOLVED
Last Resolved: 4 years ago3 years ago
Resolution: --- → WORKSFORME
See bug 908375 comment 16

Updated

2 years ago
Depends on: 1103367
Keywords: regressionwindow-wanted
You need to log in before you can comment on or make changes to this bug.