| 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 92ee5a880496acab0eb345ec63ee955b0e6a7bd1..f8265fe6ce8bb7a82d509a47999f82015599b425 100644
|
| --- a/Source/devtools/front_end/console/ConsoleView.js
|
| +++ b/Source/devtools/front_end/console/ConsoleView.js
|
| @@ -281,12 +281,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 || executionContext.name);
|
| } else {
|
| - result = WebInspector.displayNameForURL(executionContext.name)
|
| + result = WebInspector.displayNameForURL(executionContext.origin) || executionContext.name;
|
| }
|
| } else
|
| - result = "\u00a0\u00a0\u00a0\u00a0" + executionContext.name;
|
| + result = "\u00a0\u00a0\u00a0\u00a0" + (executionContext.name || executionContext.origin);
|
|
|
| var maxLength = 50;
|
| return result.trimMiddle(maxLength);
|
|
|