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 7397630d721247c39a2e6b45fe90dfaaee8b22f9..64f668e11abda13260eb0855eba44a489a5e1a28 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js |
@@ -215,6 +215,7 @@ |
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 = { |
@@ -254,6 +255,8 @@ |
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; |