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

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

Issue 2900613002: Support DevTools for off-main-thread-fetch (Closed)
Patch Set: incorporated dgozman's comment Created 3 years, 6 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/TargetManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
index 2275b7510298cf99521c8868deb7d08444726a3f..dbcca477bb5defd73762f1998f225b80bb7a49bb 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
@@ -468,8 +468,12 @@ SDK.ChildTargetManager = class {
* @return {number}
*/
_capabilitiesForType(type) {
- if (type === 'worker')
- return SDK.Target.Capability.JS | SDK.Target.Capability.Log;
+ if (type === 'worker') {
+ if (Runtime.experiments.isEnabled('offMainThreadFetch'))
+ return SDK.Target.Capability.JS | SDK.Target.Capability.Log | SDK.Target.Capability.Network;
+ else
+ return SDK.Target.Capability.JS | SDK.Target.Capability.Log;
+ }
if (type === 'service_worker')
return SDK.Target.Capability.Log | SDK.Target.Capability.Network | SDK.Target.Capability.Target;
if (type === 'iframe') {

Powered by Google App Engine
This is Rietveld 408576698