Mailing List Archive

[Bug 68872] New: xmlhttprequest.onprogress behavior changed after updated to 2.4.59
https://bz.apache.org/bugzilla/show_bug.cgi?id=68872

Bug ID: 68872
Summary: xmlhttprequest.onprogress behavior changed after
updated to 2.4.59
Product: Apache httpd-2
Version: 2.4.59
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P2
Component: All
Assignee: bugs@httpd.apache.org
Reporter: admin@e-blokos.com
Target Milestone: ---

Hi Folks,

xmlhttprequest.onprogress does not work anymore since I updated to 2.4.59,
the progress bar is to zero until the end of the progress with this piece of
code in javascript that worked for more than 10 years.

xhr.onprogress = function(event){
if(responseType == "blob"){
if(downSockTab){
if(event){
bytesLoaded = event.loaded;
bytesTotal =
event.target.getResponseHeader('x-decompressed-content-length') ||
event.target.getResponseHeader('content-length') || event.total;
if(downSockBar){
downSockBar =
document.getElementById(downSockBar.id);
if(downSockBar){
downSockBar.style.width =
Math.floor(bytesLoaded / bytesTotal * 200)+"px";
}
}
}
}
}
};

any clue how to make onprogress work as before?

thanks

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org