Index: Source/devtools/front_end/NetworkManager.js |
diff --git a/Source/devtools/front_end/NetworkManager.js b/Source/devtools/front_end/NetworkManager.js |
index 76c0fafce15d25d36fdbb84571eb29a583ef7510..fd77f7335cd2befe64d4b306b9d867db764724a6 100644 |
--- a/Source/devtools/front_end/NetworkManager.js |
+++ b/Source/devtools/front_end/NetworkManager.js |
@@ -164,9 +164,6 @@ WebInspector.NetworkDispatcher.prototype = { |
*/ |
_updateNetworkRequestWithResponse: function(networkRequest, response) |
{ |
- if (!response) |
- return; |
- |
if (response.url && networkRequest.url !== response.url) |
networkRequest.url = response.url; |
networkRequest.mimeType = response.mimeType; |
@@ -235,17 +232,6 @@ WebInspector.NetworkDispatcher.prototype = { |
}, |
/** |
- * @param {!NetworkAgent.Response} response |
- * @return {boolean} |
- */ |
- _isNull: function(response) |
- { |
- if (!response) |
- return true; |
- return !response.status && !response.mimeType && (!response.headers || !Object.keys(response.headers).length); |
- }, |
- |
- /** |
* @param {!NetworkAgent.RequestId} requestId |
* @param {!PageAgent.FrameId} frameId |
* @param {!NetworkAgent.LoaderId} loaderId |
@@ -295,10 +281,6 @@ WebInspector.NetworkDispatcher.prototype = { |
*/ |
responseReceived: function(requestId, frameId, loaderId, time, resourceType, response) |
{ |
- // FIXME: move this check to the backend. |
- if (this._isNull(response)) |
- return; |
- |
var networkRequest = this._inflightRequestsById[requestId]; |
if (!networkRequest) { |
// We missed the requestWillBeSent. |