| 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);
|
|
|