[Webkit-unassigned] [Bug 120828] New: loadend ProgressEvent of XHR can not get correct value of attribute of loaded and total

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 5 22:59:17 PDT 2013


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

           Summary: loadend ProgressEvent of XHR can not get correct value
                    of attribute of loaded and total
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: zhuangzg at cn.fujitsu.com


When we use XHR like below, we can not get correct value.

client = new XMLHttpRequest();
client.open("GET", "data.php");
...
client.onloadend = function(pe) {
    console.log("onloadend: total:"+pe.total+",loaded="+pe.loaded);
  }
client.send(); 

In the sample as the attachment, we expect "onloadend: total:1898,loaded=1898", but we get "onloadend: total:0,loaded=0".
Firefox(23.0.1) can get correct value.

-- 
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