Bug 1487954 - do not load inspector unnecessarily when a11y panel is loaded. r=pbro
authorYura Zenevich <yura.zenevich@gmail.com>
Thu, 13 Sep 2018 13:10:43 +0000
changeset 436143 a238b0434c9718357c7569b124f3be97f0564806
parent 436142 79d78bba6f6871cf37fe793e26aa1e5ae33d8125
child 436144 f27a2163e8e9ea97ae75de6e7072670bed1dbb76
push id34630
push usernerli@mozilla.com
push dateThu, 13 Sep 2018 21:58:06 +0000
treeherdermozilla-central@71736f1f0f3e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro
bugs1487954
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1487954 - do not load inspector unnecessarily when a11y panel is loaded. r=pbro MozReview-Commit-ID: LbQtTjVY7o8 Differential Revision: https://phabricator.services.mozilla.com/D5689
devtools/client/accessibility/components/MainFrame.js
--- a/devtools/client/accessibility/components/MainFrame.js
+++ b/devtools/client/accessibility/components/MainFrame.js
@@ -39,18 +39,16 @@ class MainFrame extends Component {
   constructor(props) {
     super(props);
 
     this.resetAccessibility = this.resetAccessibility.bind(this);
     this.onPanelWindowResize = this.onPanelWindowResize.bind(this);
   }
 
   componentWillMount() {
-    // Need inspector for many things such as dom node preview etc.
-    gToolbox.loadTool("inspector");
     this.props.accessibility.on("init", this.resetAccessibility);
     this.props.accessibility.on("shutdown", this.resetAccessibility);
     this.props.walker.on("document-ready", this.resetAccessibility);
 
     window.addEventListener("resize", this.onPanelWindowResize, true);
   }
 
   componentWillReceiveProps({ enabled }) {