Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1248)

Unified Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 627413002: [Devtools] Do not switch tabs by default when adding a tab. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TimelinePanel.js
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js
index 3123606d92cfc4857d6b5e4f98fb39212ac44ef6..b61a44c6365227fcd47883b68efb69421e1404a6 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -1172,7 +1172,7 @@ WebInspector.TimelineDetailsView.prototype = {
appendTab: function(id, tabTitle, view, tabTooltip, userGesture, isCloseable)
{
WebInspector.TabbedPane.prototype.appendTab.call(this, id, tabTitle, view, tabTooltip);
- if (this._lastUserSelectedTabId !== this.selectedTabId)
+ if (this._lastUserSelectedTabId && this._lastUserSelectedTabId !== this.selectedTabId)
pfeldman 2014/10/06 04:56:14 Is (was) this showing all the tabs as they were ad
this.selectTab(id);
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698