diff --git a/devtools/client/netmonitor/src/components/TabboxPanel.js b/devtools/client/netmonitor/src/components/TabboxPanel.js index 0c929b9500cb..d608580eaf57 100644 --- a/devtools/client/netmonitor/src/components/TabboxPanel.js +++ b/devtools/client/netmonitor/src/components/TabboxPanel.js @@ -54,6 +54,7 @@ class TabboxPanel extends Component { hideToggleButton: PropTypes.bool, toggleNetworkDetails: PropTypes.func.isRequired, openNetworkDetails: PropTypes.func.isRequired, + showWebSocketsTab: PropTypes.bool, }; } @@ -84,6 +85,7 @@ class TabboxPanel extends Component { selectTab, sourceMapService, toggleNetworkDetails, + showWebSocketsTab, } = this.props; if (!request) { @@ -94,7 +96,9 @@ class TabboxPanel extends Component { const showWebSocketsPanel = request.cause.type === "websocket" && Services.prefs.getBoolPref( - "devtools.netmonitor.features.webSockets"); + "devtools.netmonitor.features.webSockets") && + showWebSocketsTab === undefined ? true : showWebSocketsTab; + return ( Tabbar({ activeTabId, diff --git a/devtools/client/webconsole/components/Output/message-types/NetworkEventMessage.js b/devtools/client/webconsole/components/Output/message-types/NetworkEventMessage.js index 3e974d58b30c..88106cb31c8d 100644 --- a/devtools/client/webconsole/components/Output/message-types/NetworkEventMessage.js +++ b/devtools/client/webconsole/components/Output/message-types/NetworkEventMessage.js @@ -158,6 +158,7 @@ function NetworkEventMessage({ dispatch(actions.selectNetworkMessageTab(tabId)); }, hideToggleButton: true, + showWebSocketsTab: false, }) );