c***@googlecode.com
2012-07-23 07:35:40 UTC
Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 Area-Undefined OS-Windows
New issue 138506 by ***@royalappbooks.com: Chrome crashes on
xhr-downloading a large file with xhr.responseType set to "arraybuffer"
http://code.google.com/p/chromium/issues/detail?id=138506
Chrome Version : 20.0.1132.57
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 5: OK
Firefox 4.x: OK
IE 7/8/9: FAIL (No Support for array buffer
What steps will reproduce the problem?
Downloading a large video file (~160MB) via javascript (xhr2 with a
responsetype "arraybuffer") crashes the Chrome tab.
(Tested with the Ice Age 4 1080p Trailer from Apple Trailers)
var downloadStuff = function(arg, callback) {
var params = arg;
if (typeof arg === 'string') {
params = {url: arg};
}
var xhr = new XMLHttpRequest();
xhr.open('GET', params.url);
xhr.mozResponseType = xhr.responseType = 'arraybuffer';
xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200;
xhr.onprogress = params.progress || undefined;
xhr.onreadystatechange = function() {
var data;
if (xhr.readyState === 4 && xhr.status === xhr.expected) {
data = (xhr.mozResponseArrayBuffer || xhr.mozResponse ||
xhr.responseArrayBuffer || xhr.response);
callback(data);
}
};
xhr.send(null);
};
var url = "http://localhost/H5-Tests/offlineTest/iceage4-tlr2_h1080p.mp4";
downloadStuff(url, function(data){
console.log(data);
});
What is the expected result?
An entry in the console (console.log(data);)
What happens instead?
Chrome tab crashes
Please provide any additional information below. Attach a screenshot if
possible.
UserAgentString: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11
(KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
Owner: ----
Labels: Type-Bug Pri-2 Area-Undefined OS-Windows
New issue 138506 by ***@royalappbooks.com: Chrome crashes on
xhr-downloading a large file with xhr.responseType set to "arraybuffer"
http://code.google.com/p/chromium/issues/detail?id=138506
Chrome Version : 20.0.1132.57
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 5: OK
Firefox 4.x: OK
IE 7/8/9: FAIL (No Support for array buffer
What steps will reproduce the problem?
Downloading a large video file (~160MB) via javascript (xhr2 with a
responsetype "arraybuffer") crashes the Chrome tab.
(Tested with the Ice Age 4 1080p Trailer from Apple Trailers)
var downloadStuff = function(arg, callback) {
var params = arg;
if (typeof arg === 'string') {
params = {url: arg};
}
var xhr = new XMLHttpRequest();
xhr.open('GET', params.url);
xhr.mozResponseType = xhr.responseType = 'arraybuffer';
xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200;
xhr.onprogress = params.progress || undefined;
xhr.onreadystatechange = function() {
var data;
if (xhr.readyState === 4 && xhr.status === xhr.expected) {
data = (xhr.mozResponseArrayBuffer || xhr.mozResponse ||
xhr.responseArrayBuffer || xhr.response);
callback(data);
}
};
xhr.send(null);
};
var url = "http://localhost/H5-Tests/offlineTest/iceage4-tlr2_h1080p.mp4";
downloadStuff(url, function(data){
console.log(data);
});
What is the expected result?
An entry in the console (console.log(data);)
What happens instead?
Chrome tab crashes
Please provide any additional information below. Attach a screenshot if
possible.
UserAgentString: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11
(KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs