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

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: [Devtools] Fixed frontend to properly support optional requestWillBeSent 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..00d33612413f1f918d3e458b4952da6d6120e6e9 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,8 @@ SDK.NetworkDispatcher = class {
networkRequest.hasNetworkData = true;
this._updateNetworkRequestWithRequest(networkRequest, request);
networkRequest.setIssueTime(time, wallTime);
- networkRequest.setResourceType(Common.resourceTypes[resourceType]);
+ networkRequest.setResourceType(
+ resourceType ? Common.resourceTypes[resourceType] : Protocol.Page.ResourceType.Other);
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