DevTools: bring developer tools window to front when panel gets selected

This patch is a hackish way to bring developer tools front-end to front
whenever Toolbox revealer asks to reveal something.

BUG=399259
R=pfeldman

Review URL: https://codereview.chromium.org/468193002

git-svn-id: svn://svn.chromium.org/blink/trunk@180202 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 68e27681
...@@ -221,6 +221,7 @@ WebInspector.InspectorView.prototype = { ...@@ -221,6 +221,7 @@ WebInspector.InspectorView.prototype = {
{ {
if (this._currentPanelLocked) if (this._currentPanelLocked)
return; return;
InspectorFrontendHost.bringToFront();
if (this._currentPanel === x) if (this._currentPanel === x)
return; return;
......
...@@ -320,8 +320,6 @@ WebInspector.SourcesPanel.prototype = { ...@@ -320,8 +320,6 @@ WebInspector.SourcesPanel.prototype = {
_showEditor: function(forceShowInPanel) _showEditor: function(forceShowInPanel)
{ {
if (this._sourcesView.isShowing())
return;
WebInspector.inspectorView.showPanel("sources"); WebInspector.inspectorView.showPanel("sources");
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment