Bug 826771 pref-applicationManager.xul is broken because Services isn't defined in the scope r=IanN.
authorPhilip Chee <philip.chee@gmail.com>
Sun, 27 Jan 2013 00:22:30 +0800
changeset 11845 507de3e54b36d3ecdaea02e0696d9af7ee20535d
parent 11844 3a9313769ebfde322d1dabb2e92d08dd2b5b91b7
child 11846 26e91802d679e5e109e541ab999963c6bfa7cbd3
push id8823
push userphilip.chee@gmail.com
push dateSat, 26 Jan 2013 16:23:09 +0000
treeherdercomm-central@507de3e54b36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN
bugs826771
Bug 826771 pref-applicationManager.xul is broken because Services isn't defined in the scope r=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;