Bug 826771 pref-applicationManager.xul is broken because Services isn't defined in the scope r=IanN a=IanN. SEAMONKEY_2_16b3_BUILD1 SEAMONKEY_2_16b3_RELEASE
authorPhilip Chee <philip.chee@gmail.com>
Sun, 27 Jan 2013 00:22:30 +0800
changeset 14398 5ddc32eb5a1bb52d36795f30d102607c1cc92586
parent 14397 28a6b4d07152c9d36922ef73893aaa81d0fcc9a2
child 14399 48f4edc0cd75a4f3c76456b93a0a531c3f4a0906
child 14401 50420e86dc116e0600af96a7d90ae5cad85fc810
push idunknown
push userunknown
push dateunknown
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;