Index: LayoutTests/http/tests/inspector/network-test.js |
diff --git a/LayoutTests/http/tests/inspector/network-test.js b/LayoutTests/http/tests/inspector/network-test.js |
index af435748973ba791ab329720e355ed714869d597..8b33d0a423de5ff0067d4ed6eda43067e1bc4af0 100644 |
--- a/LayoutTests/http/tests/inspector/network-test.js |
+++ b/LayoutTests/http/tests/inspector/network-test.js |
@@ -103,7 +103,10 @@ function makeSimpleXHRWithPayload(method, url, async, payload, callback) |
function makeXHR(method, url, async, user, password, headers, withCredentials, payload, type, callback) |
{ |
var xhr = new XMLHttpRequest(); |
- xhr.responseType = type; |
+ if (type == undefined) |
+ xhr.responseType = ""; |
+ else |
+ xhr.responseType = type; |
xhr.onreadystatechange = function() |
{ |
if (xhr.readyState === XMLHttpRequest.DONE) { |