summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-04-30 07:19:29 -0400
committerMatt A. Tobin <email@mattatobin.com>2018-04-30 07:19:29 -0400
commit5287427c57b28b1169d97dfa937c0f7be2fefd51 (patch)
tree1b722731cf67d7b23cfebdd5312f9ba8a8ba0dc1 /application
parent7c8c0540db529cffdbcd142af74ea1a8df6be23f (diff)
downloadUXP-5287427c57b28b1169d97dfa937c0f7be2fefd51.tar
UXP-5287427c57b28b1169d97dfa937c0f7be2fefd51.tar.gz
UXP-5287427c57b28b1169d97dfa937c0f7be2fefd51.tar.lz
UXP-5287427c57b28b1169d97dfa937c0f7be2fefd51.tar.xz
UXP-5287427c57b28b1169d97dfa937c0f7be2fefd51.zip
[PALEMOON] Add required gBrowserBundle lazy getter in nsBrowserGlue.js
Diffstat (limited to 'application')
-rw-r--r--application/palemoon/components/nsBrowserGlue.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/application/palemoon/components/nsBrowserGlue.js b/application/palemoon/components/nsBrowserGlue.js
index d6bdfd642..d1f10111a 100644
--- a/application/palemoon/components/nsBrowserGlue.js
+++ b/application/palemoon/components/nsBrowserGlue.js
@@ -13,7 +13,11 @@ const XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
-// Define Lazy Module Gitters
+// Define Lazy Service Getters
+XPCOMUtils.defineLazyServiceGetter(this, "AlertsService",
+ "@mozilla.org/alerts-service;1", "nsIAlertsService");
+
+// Define Lazy Module Getters
[
["AddonManager", "resource://gre/modules/AddonManager.jsm"],
["NetUtil", "resource://gre/modules/NetUtil.jsm"],
@@ -40,8 +44,10 @@ Cu.import("resource://gre/modules/Services.jsm");
["ShellService", "resource:///modules/ShellService.jsm"],
].forEach(([name, resource]) => XPCOMUtils.defineLazyModuleGetter(this, name, resource));
-XPCOMUtils.defineLazyServiceGetter(this, "AlertsService",
- "@mozilla.org/alerts-service;1", "nsIAlertsService");
+// Define Lazy Getters
+XPCOMUtils.defineLazyGetter(this, "gBrowserBundle", function() {
+ return Services.strings.createBundle('chrome://browser/locale/browser.properties');
+});
const PREF_PLUGINS_NOTIFYUSER = "plugins.update.notifyUser";
const PREF_PLUGINS_UPDATEURL = "plugins.update.url";