Bug 1500068 - Avoid opening Add-ons panel when a location hash is passed to select another one. r=jdescottes

Doing this avoid loading the addons panel and doing its related requests,
which may still be pending after closing about:debugging.

MozReview-Commit-ID: LJjaE5YVgXi

Depends on D8867

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alexandre Poirot 2018-10-18 12:36:35 +00:00
Родитель 11e4486644
Коммит 2fe147bee7
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -60,7 +60,7 @@ class AboutDebuggingApp extends Component {
super(props); super(props);
this.state = { this.state = {
selectedPanelId: defaultPanelId selectedPanelId: window.location.hash.substr(1) || defaultPanelId
}; };
this.onHashChange = this.onHashChange.bind(this); this.onHashChange = this.onHashChange.bind(this);
@ -69,7 +69,6 @@ class AboutDebuggingApp extends Component {
componentDidMount() { componentDidMount() {
window.addEventListener("hashchange", this.onHashChange); window.addEventListener("hashchange", this.onHashChange);
this.onHashChange();
// aboutdebugging is not connected with a toolbox so we pass -1 as the // aboutdebugging is not connected with a toolbox so we pass -1 as the
// toolbox session id. // toolbox session id.