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

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

Issue 2297443002: DevTools: show extension name in console execution context selector. (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js ('k') | 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/RuntimeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
index 350ba9248e471c0e0a611b032eb7cd48b358ddff..50009bec4827d43cbcaca20a05d4744e0a6d0a1b 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
@@ -496,8 +496,10 @@ WebInspector.ExecutionContext = function(target, id, name, origin, isDefault, fr
this.debuggerModel = WebInspector.DebuggerModel.fromTarget(target);
this.frameId = frameId;
+ this._label = name;
var parsedUrl = origin.asParsedURL();
- this._label = parsedUrl ? parsedUrl.lastPathComponentWithFragment() : name;
+ if (!this._label && parsedUrl)
+ this._label = parsedUrl.lastPathComponentWithFragment();
}
/**
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698