зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1561676 - WebSocket panel crashes in WebConsole. r=nchevobbe,Honza
Hide WebSocketsPanel in console. Differential Revision: https://phabricator.services.mozilla.com/D36158 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
47f008c735
Коммит
c5423a8f4a
|
@ -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,
|
||||
|
|
|
@ -158,6 +158,7 @@ function NetworkEventMessage({
|
|||
dispatch(actions.selectNetworkMessageTab(tabId));
|
||||
},
|
||||
hideToggleButton: true,
|
||||
showWebSocketsTab: false,
|
||||
})
|
||||
);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче