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

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

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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/ResourceTreeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
index 035b4ac10cc57e420402d17232bd6be3f1a443e2..ee1740897427e2e60afaa5464df1c447a10e45b1 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
@@ -129,7 +129,7 @@ WebInspector.ResourceTreeModel.prototype = {
this._inspectedPageURL = mainFramePayload.frame.url;
// Do not process SW resources.
- if (this.target().isPage())
+ if (this.target().hasBrowserCapability())
this._addFramesRecursively(null, mainFramePayload);
else
this._addSecurityOrigin(mainFramePayload.frame.securityOrigin);

Powered by Google App Engine
This is Rietveld 408576698