| Index: Source/devtools/front_end/components/InspectorView.js
|
| diff --git a/Source/devtools/front_end/components/InspectorView.js b/Source/devtools/front_end/components/InspectorView.js
|
| index 734adb9e9d5e4f4d43042bde0bda8a5a04b6728a..9fbdefc3b3d956faa287fa783a7c0a3f4493a337 100644
|
| --- a/Source/devtools/front_end/components/InspectorView.js
|
| +++ b/Source/devtools/front_end/components/InspectorView.js
|
| @@ -281,9 +281,10 @@ WebInspector.InspectorView.prototype = {
|
|
|
| /**
|
| * @param {!WebInspector.Panel} panel
|
| + * @param {boolean=} suppressBringToFront
|
| * @return {!WebInspector.Panel}
|
| */
|
| - setCurrentPanel: function(panel)
|
| + setCurrentPanel: function(panel, suppressBringToFront)
|
| {
|
| delete this._panelForShowPromise;
|
|
|
| @@ -291,7 +292,9 @@ WebInspector.InspectorView.prototype = {
|
| console.error("Current panel is locked");
|
| return this._currentPanel;
|
| }
|
| - InspectorFrontendHost.bringToFront();
|
| +
|
| + if (!suppressBringToFront)
|
| + InspectorFrontendHost.bringToFront();
|
|
|
| if (this._currentPanel === panel)
|
| return panel;
|
|
|