Index: third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js |
index 8247d9e5001c12e635ddfe55cc8c67d7cac758e9..0f7ac280be884dd1d48c050f3f2e9722e6e9aa31 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js |
@@ -192,7 +192,8 @@ Sources.ThreadsSidebarPane = class extends UI.VBox { |
if (!target) |
return pendingTarget.name(); |
var executionContext = target.runtimeModel.defaultExecutionContext(); |
- return executionContext && executionContext.label() ? executionContext.label() : target.name(); |
+ var label = executionContext ? executionContext.label(true /* showStatus */) : null; |
+ return label || target.name(); |
} |
/** |
@@ -213,8 +214,8 @@ Sources.ThreadsSidebarPane = class extends UI.VBox { |
return; |
var pendingTarget = this._targetToPending.get(executionContext.target()); |
var listItem = this._pendingToListItem.get(pendingTarget); |
- if (listItem && executionContext.label()) |
- listItem.setTitle(executionContext.label()); |
+ if (listItem && executionContext.label(true /* showStatus */)) |
+ listItem.setTitle(executionContext.label(true /* showStatus */)); |
} |
/** |