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 14337 2ba7869026e0a860dfeb701b0407ccba2adf1bfc
parent 14336 77eb2bc81830baa51de99d7158ba69471024501f
child 14338 7e850f147fff8a4c07105847e2d583674188350f
child 14341 e44b50d9a05c87a97e51eb6470e57e8b09c9f058
push id147
push userphilip.chee@gmail.com
push dateSun, 03 Feb 2013 04:52:07 +0000
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;