Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: Source/WebCore/inspector/front-end/NetworkManager.js

Issue 7030014: Merge 86027 - 2011-05-08 Pavel Feldman <pfeldman@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698