[Webkit-unassigned] [Bug 37771] New: XMLHTTPRequestUpload events not firing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 18 03:15:01 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=37771

           Summary: XMLHTTPRequestUpload events not firing
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pota at mosfet.hu
                CC: jchaffraix at webkit.org, jianli at chromium.org


Webkit does not seem to fire various events (onload, onprogress) when uploading
files with XMLHTTPRequest.send. I found bug
https://bugs.webkit.org/show_bug.cgi?id=26979 and used FormData to send the
files (I added Firefox's get/sendAsBinary way to test FF, see:
https://developer.mozilla.org/en/Using_files_from_web_applications and
http://blog.igstan.ro/2009/01/pure-javascript-file-upload.html, hopefully FF
soon lands FormData too, so it automatically handles headers).

The test I used: http://pastie.org/925509, server side:
http://pastie.org/925510. (I tested with "real server" with my home connection,
uploading a pdf file about 700KB.)

Output with webkit (nighlty, r57720):
(0) request readystatechange: 1
(0) request start
(0) upload start
(0) request readystatechange: 2
(0) request progress: 60 / 60 = 100%
(0) request readystatechange: 3
(0) request readystatechange: 4
(0) request finished: upload success fileinput : file.pdf

The inspector shows 2.4s for the XHR.

The same test with Firefox (v3.6.3):
(0) request readystatechange: 1
(0) request readystatechange: 1
(0) request start
(0) upload start
(0) upload progress: 126361 / 693664 = 18.21645638234073%
(0) upload progress: 132601 / 693664 = 19.116027356183974%
(0) upload progress: 146841 / 693664 = 21.16889445033907%
(0) upload progress: 167321 / 693664 = 24.121332518337407%
(0) upload progress: 186177 / 693664 = 26.839651473912443%
(0) upload progress: 208281 / 693664 = 30.026208654334088%
(0) upload progress: 224665 / 693664 = 32.38815910873276%
(0) upload progress: 244097 / 693664 = 35.18951538497024%
(0) upload progress: 264369 / 693664 = 38.111967753840474%
(0) upload progress: 282009 / 693664 = 40.654985699128105%
(0) upload progress: 302489 / 693664 = 43.60742376712645%
(0) upload progress: 322969 / 693664 = 46.559861835124785%
(0) upload progress: 342561 / 693664 = 49.38428403376851%
(0) upload progress: 359833 / 693664 = 51.874250357521795%
(0) upload progress: 380313 / 693664 = 54.82668842552014%
(0) upload progress: 400793 / 693664 = 57.779126493518476%
(0) upload progress: 421273 / 693664 = 60.73156456151681%
(0) upload progress: 441753 / 693664 = 63.684002629515156%
(0) upload progress: 458137 / 693664 = 66.04595308391383%
(0) upload progress: 478617 / 693664 = 68.99839115191216%
(0) upload progress: 499097 / 693664 = 71.9508292199105%
(0) upload progress: 519577 / 693664 = 74.90326728790885%
(0) upload progress: 538041 / 693664 = 77.5650747335886%
(0) upload progress: 560537 / 693664 = 80.80814342390552%
(0) upload progress: 575441 / 693664 = 82.9567340960465%
(0) upload progress: 595961 / 693664 = 85.9149386446464%
(0) upload progress: 616233 / 693664 = 88.83739101351664%
(0) upload progress: 638361 / 693664 = 92.02740808229922%
(0) upload progress: 658841 / 693664 = 94.97984615029755%
(0) upload progress: 679321 / 693664 = 97.93228421829589%
(0) upload progress: 687513 / 693664 = 99.11325944549523%
(0) request readystatechange: 2
(0) upload finished
(0) request readystatechange: 3
(0) request readystatechange: 4
(0) request finished: upload success fileinput : file.pdf

Firebug reports 1.87s for the XHR.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list