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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js

Issue 2543113002: [Devtools] Fixed frontend to properly support optional requestWillBeSent (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js
index 52fd74b24b8e8d6748e01cd5d76edb4b0ab0d2b8..1baa0ce2caa72d90827bdad9a5cbcbc37889bf57 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js
@@ -326,7 +326,7 @@ SDK.NetworkDispatcher = class {
networkRequest.hasNetworkData = true;
this._updateNetworkRequestWithRequest(networkRequest, request);
networkRequest.setIssueTime(time, wallTime);
- networkRequest.setResourceType(Common.resourceTypes[resourceType]);
+ networkRequest.setResourceType(Common.resourceTypes[resourceType] || Protocol.Page.ResourceType.Other);
lushnikov 2016/12/02 01:52:23 nit: it's a bit hacky to query map with the undefi
allada 2016/12/02 02:33:51 Done.
this._startNetworkRequest(networkRequest);
}
« 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