[Webkit-unassigned] [Bug 172627] New: multiple files(5 files) upload with XMLHttpRequest(high cpu usage when listen to onprogress)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 25 19:48:27 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=172627
Bug ID: 172627
Summary: multiple files(5 files) upload with
XMLHttpRequest(high cpu usage when listen to
onprogress)
Product: WebKit
Version: Other
Hardware: PC
OS: Windows 7
Status: NEW
Severity: Blocker
Priority: P2
Component: Accessibility
Assignee: webkit-unassigned at lists.webkit.org
Reporter: acbrr1985 at 163.com
CC: webkit-bug-importer at group.apple.com
Here are the code sample:
var _createXDomainRequest = function(){
var xhr = new XMLHttpRequest();
//xhr.withCredentials = true;
if(isIE9 && XDomainRequest){
xhr = new XDomainRequest();
}
return xhr;
};
var blobSlice = window.File && (File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice) || function(){};
var ajax = _createXDomainRequest();
ajax.onload = function(){};
ajax.onerror = function(){};
if(ajax.upload){
ajax.upload.onprogress = function (event){}
}
ajax.open('put', this.rangeData.upload_url, true);
ajax.setRequestHeader("Etag", md5);
ajax.setRequestHeader("Authorization", self.token);
ajax.send(blobSlice.call(self.blobFile, start, (end + 1)));
if i comment /*
if(ajax.upload){
ajax.upload.onprogress = function (event){}
}
*/
all the file upload are fine.
but I try to listen to onprogress, which cause high CPU usage.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170526/61e2e9a3/attachment-0001.html>
More information about the webkit-unassigned
mailing list