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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js

Issue 2314503005: DevTools: remove UISourceCodeFrame from context when switching panels. (Closed)
Patch Set: Created 4 years, 3 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
Index: third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js b/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
index 64f668e11abda13260eb0855eba44a489a5e1a28..7397630d721247c39a2e6b45fe90dfaaee8b22f9 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
@@ -215,7 +215,6 @@ WebInspector.TabbedEditorContainer.prototype = {
var previousView = this._currentView;
this._currentView = this.visibleView;
- WebInspector.context.setFlavor(WebInspector.UISourceCodeFrame, this._currentView instanceof WebInspector.UISourceCodeFrame ? this._currentView : null);
this._addViewListeners();
var eventData = {
@@ -255,8 +254,6 @@ WebInspector.TabbedEditorContainer.prototype = {
if (nextTabId)
this._tabbedPane.selectTab(nextTabId, true);
this._tabbedPane.closeTab(id, true);
- if (WebInspector.context.flavor(WebInspector.UISourceCodeFrame) === previousView)
- WebInspector.context.setFlavor(WebInspector.UISourceCodeFrame, null);
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698