Index: Source/WebCore/inspector/front-end/NetworkManager.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/NetworkManager.js (revision 86557) |
+++ Source/WebCore/inspector/front-end/NetworkManager.js (working copy) |
@@ -115,10 +115,18 @@ |
this._updateResourceWithResponse(resource, cachedResource.response); |
}, |
+ _isNull: function(response) |
+ { |
+ return response && !response.status && !response.mimeType && !Object.keys(response.headers).length; |
+ }, |
+ |
requestWillBeSent: function(identifier, frameId, loaderId, documentURL, request, time, stackTrace, redirectResponse) |
{ |
var resource = this._inflightResourcesById[identifier]; |
if (resource) { |
+ // FIXME: move this check to the backend. |
+ if (this._isNull(redirectResponse)) |
+ return; |
this.responseReceived(identifier, time, "Other", redirectResponse); |
resource = this._appendRedirect(identifier, time, request.url); |
} else |
@@ -141,6 +149,10 @@ |
responseReceived: function(identifier, time, resourceType, response) |
{ |
+ // FIXME: move this check to the backend. |
+ if (this._isNull(response)) |
+ return; |
+ |
var resource = this._inflightResourcesById[identifier]; |
if (!resource) |
return; |