Index: Source/devtools/front_end/elements/ElementsPanel.js |
diff --git a/Source/devtools/front_end/elements/ElementsPanel.js b/Source/devtools/front_end/elements/ElementsPanel.js |
index dde173bfa2576aa126ad5c02248fac63bdf1e132..00ddd3142ed6c719a44567d6a826324c216224b1 100644 |
--- a/Source/devtools/front_end/elements/ElementsPanel.js |
+++ b/Source/devtools/front_end/elements/ElementsPanel.js |
@@ -967,6 +967,8 @@ WebInspector.ElementsPanel.prototype = { |
if (this.sidebarPaneView && this.sidebarPaneView.shouldHideOnDetach()) |
return; // We can't reparent extension iframes. |
+ var selectedTabId = this.sidebarPaneView ? this.sidebarPaneView.selectedTabId : null; |
+ |
var extensionSidebarPanes = WebInspector.extensionServer.sidebarPanes(); |
if (this.sidebarPaneView) { |
this.sidebarPaneView.detach(); |
@@ -1065,6 +1067,9 @@ WebInspector.ElementsPanel.prototype = { |
this._splitWidget.setSidebarWidget(this.sidebarPaneView); |
this.sidebarPanes.styles.expand(); |
+ |
+ if (selectedTabId) |
+ this.sidebarPaneView.selectTab(selectedTabId); |
}, |
/** |