Bug 1567167 - Remove clearNetworkRequests from JsTerm destroy function. r=jdescottes.

This shouldn't be JSTerm's responsability to call
this function. Furthermore, the function clear
some references in the WebConsoleFront, which are
going to be destroyed anyway.

Differential Revision: https://phabricator.services.mozilla.com/D38614

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicolas Chevobbe 2019-07-19 08:28:48 +00:00
Родитель d551082a54
Коммит f65992235e
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -1744,7 +1744,6 @@ class JSTerm extends Component {
} }
destroy() { destroy() {
this.webConsoleClient.clearNetworkRequests();
if (this.webConsoleUI.outputNode) { if (this.webConsoleUI.outputNode) {
// We do this because it's much faster than letting React handle the ConsoleOutput // We do this because it's much faster than letting React handle the ConsoleOutput
// unmounting. // unmounting.