Bug 826771 pref-applicationManager.xul is broken because Services isn't defined in the scope r=IanN a=IanN.
authorPhilip Chee <philip.chee@gmail.com>
Sun, 27 Jan 2013 00:22:30 +0800
changeset 13147 83a3bdce3c23ae8ed089cefee79dd5433d4d744a
parent 13146 0c3f165260b6d99431ecbe444432a54786bc52f2
child 13148 5c432757a60465f8d74a29b764b5ab3c502ec806
push id853
push userphilip.chee@gmail.com
push dateSun, 27 Jan 2013 15:12:41 +0000
treeherdercomm-aurora@83a3bdce3c23 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, IanN
bugs826771
Bug 826771 pref-applicationManager.xul is broken because Services isn't defined in the scope r=IanN a=IanN.
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;