diff --git a/browser/components/preferences/applicationManager.js b/browser/components/preferences/applicationManager.js
index 12bf8e8e441..9f13b56e116 100644
--- a/browser/components/preferences/applicationManager.js
+++ b/browser/components/preferences/applicationManager.js
@@ -35,6 +35,11 @@
#
# ***** END LICENSE BLOCK *****
+#ifdef XP_MACOSX
+var Cc = Components.classes;
+var Ci = Components.interfaces;
+#endif
+
var gAppManagerDialog = {
_removed: [],
diff --git a/browser/components/preferences/applicationManager.xul b/browser/components/preferences/applicationManager.xul
index b9e0aa53330..e7cf05a14bf 100644
--- a/browser/components/preferences/applicationManager.xul
+++ b/browser/components/preferences/applicationManager.xul
@@ -50,10 +50,10 @@
style="&appManager.style;"
persist="screenX screenY">
-
+