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

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

Issue 2620463002: Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: incorporated falken's comment Created 3 years, 11 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
Index: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
index 1a92cface00bf3d516148439bb774c903a7623a3..6f226c77a93ee487c80221c0b4455e5f7a1de993 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
@@ -1080,6 +1080,8 @@ SDK.NetworkRequest = class extends SDK.SDKObject {
scriptId = topFrame.scriptId;
break;
}
+ } else if (initiator.type === Protocol.Network.InitiatorType.Preload) {
+ type = SDK.NetworkRequest.InitiatorType.Preload;
}
}
@@ -1225,7 +1227,8 @@ SDK.NetworkRequest.InitiatorType = {
Other: 'other',
Parser: 'parser',
Redirect: 'redirect',
- Script: 'script'
+ Script: 'script',
+ Preload: 'preload'
};
/** @typedef {!{name: string, value: string}} */

Powered by Google App Engine
This is Rietveld 408576698