Bug 826771 pref-applicationManager.xul is broken because Services isn't defined in the scope r=IanN a=Callek.
authorPhilip Chee <philip.chee@gmail.com>
Sun, 27 Jan 2013 00:22:30 +0800
changeset 30944 2ba7869026e0a860dfeb701b0407ccba2adf1bfc
parent 30943 77eb2bc81830baa51de99d7158ba69471024501f
child 30945 7e850f147fff8a4c07105847e2d583674188350f
child 30948 e44b50d9a05c87a97e51eb6470e57e8b09c9f058
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, Callek
bugs826771
Bug 826771 pref-applicationManager.xul is broken because Services isn't defined in the scope r=IanN a=Callek.
suite/common/pref/pref-applicationManager.js
--- a/suite/common/pref/pref-applicationManager.js
+++ b/suite/common/pref/pref-applicationManager.js
@@ -1,15 +1,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 // As pref-applications.js is always loaded, we can (and should!) reuse
 // the nsI* constants from there, if needed also any services we need.
 
+Components.utils.import("resource://gre/modules/Services.jsm");
+
 var gAppManagerDialog = {
   _removed: [],
 
   init: function appManager_init() {
     this.handlerInfo = window.arguments[0];
 
     var bundle = document.getElementById("appManagerBundle");
     var contentText;