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

Unified Diff: Source/devtools/front_end/console/ConsoleView.js

Issue 15764004: DevTools: show extension name in console context switcher (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. Created 6 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
Index: Source/devtools/front_end/console/ConsoleView.js
diff --git a/Source/devtools/front_end/console/ConsoleView.js b/Source/devtools/front_end/console/ConsoleView.js
index 18a76abf17750840615bfbea1de984f22a1b857d..4f1bde72416f6e5155e09f76528da699d11951c6 100644
--- a/Source/devtools/front_end/console/ConsoleView.js
+++ b/Source/devtools/front_end/console/ConsoleView.js
@@ -285,12 +285,12 @@ WebInspector.ConsoleView.prototype = {
if (executionContext.isMainWorldContext) {
if (executionContext.frameId) {
var frame = executionContext.target().resourceTreeModel.frameForId(executionContext.frameId);
- result = frame ? frame.displayName() : executionContext.name;
+ result = frame ? frame.displayName() : executionContext.origin;
} else {
- result = WebInspector.displayNameForURL(executionContext.name)
+ result = WebInspector.displayNameForURL(executionContext.origin)
}
} else
- result = "\u00a0\u00a0\u00a0\u00a0" + executionContext.name;
+ result = "\u00a0\u00a0\u00a0\u00a0" + (executionContext.name || executionContext.origin);
var maxLength = 50;
return result.trimMiddle(maxLength);

Powered by Google App Engine
This is Rietveld 408576698