| 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 046eca1195e8d77c9fffdc0a7ca2c0cc1238a9a6..5b7d53c5286a8cdbcad6dd3f2564b5d42a5aa7dc 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js
|
| @@ -10,7 +10,6 @@
|
| WebInspector.ThreadsSidebarPane = function()
|
| {
|
| WebInspector.View.call(this, WebInspector.UIString("Threads"));
|
| - this.requestSetVisible(false);
|
|
|
| /** @type {!Map.<!WebInspector.DebuggerModel, !WebInspector.UIList.Item>} */
|
| this._debuggerModelToListItems = new Map();
|
| @@ -35,10 +34,8 @@ WebInspector.ThreadsSidebarPane.prototype = {
|
| targetAdded: function(target)
|
| {
|
| var debuggerModel = WebInspector.DebuggerModel.fromTarget(target)
|
| - if (!debuggerModel) {
|
| - this._updateVisibility();
|
| + if (!debuggerModel)
|
| return;
|
| - }
|
|
|
| var executionContext = target.runtimeModel.defaultExecutionContext();
|
| var label = executionContext && executionContext.label() ? executionContext.label() : target.name();
|
| @@ -52,13 +49,6 @@ WebInspector.ThreadsSidebarPane.prototype = {
|
| this._listItemsToTargets.set(listItem, target);
|
| this.threadList.addItem(listItem);
|
| this._updateDebuggerState(debuggerModel);
|
| - this._updateVisibility();
|
| - },
|
| -
|
| - _updateVisibility: function()
|
| - {
|
| - this._wasVisibleAtLeastOnce = this._wasVisibleAtLeastOnce || this._debuggerModelToListItems.size > 1;
|
| - this.requestSetVisible(this._wasVisibleAtLeastOnce);
|
| },
|
|
|
| /**
|
| @@ -75,7 +65,6 @@ WebInspector.ThreadsSidebarPane.prototype = {
|
| this._listItemsToTargets.remove(listItem);
|
| this.threadList.removeItem(listItem);
|
| }
|
| - this._updateVisibility();
|
| },
|
|
|
| /**
|
|
|