summaryrefslogtreecommitdiffstats
path: root/application/palemoon
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-05-09 13:26:23 -0400
committerMatt A. Tobin <email@mattatobin.com>2019-05-09 13:26:23 -0400
commitfc937d1eec4b7c9c2fc5a85374b25e0dfa5cf4ab (patch)
tree4cc1afb11b1d15a5c5d7abb2d5ef78101ef50415 /application/palemoon
parentd0b65e8b38ddd1c9dde816941eccac5094957f72 (diff)
downloadUXP-fc937d1eec4b7c9c2fc5a85374b25e0dfa5cf4ab.tar
UXP-fc937d1eec4b7c9c2fc5a85374b25e0dfa5cf4ab.tar.gz
UXP-fc937d1eec4b7c9c2fc5a85374b25e0dfa5cf4ab.tar.lz
UXP-fc937d1eec4b7c9c2fc5a85374b25e0dfa5cf4ab.tar.xz
UXP-fc937d1eec4b7c9c2fc5a85374b25e0dfa5cf4ab.zip
Issue #1082 - Restore a getBoolPref global shim in utilityOverlay.js for Extension compatibility
Diffstat (limited to 'application/palemoon')
-rw-r--r--application/palemoon/base/content/utilityOverlay.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/application/palemoon/base/content/utilityOverlay.js b/application/palemoon/base/content/utilityOverlay.js
index c2a8baeed..6ba634a58 100644
--- a/application/palemoon/base/content/utilityOverlay.js
+++ b/application/palemoon/base/content/utilityOverlay.js
@@ -12,6 +12,9 @@ Components.utils.import("resource:///modules/RecentWindow.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "ShellService",
"resource:///modules/ShellService.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "Deprecated",
+ "resource://gre/modules/Deprecated.jsm");
+
XPCOMUtils.defineLazyGetter(this, "BROWSER_NEW_TAB_URL", function () {
const PREF = "browser.newtab.url";
@@ -57,6 +60,14 @@ function getBrowserURL()
return "chrome://browser/content/browser.xul";
}
+function getBoolPref(pref, defaultValue) {
+ Deprecated.warning("getBoolPref is deprecated and will be removed in a future release. " +
+ "You should use Services.pref.getBoolPref (Services.jsm).",
+ "https://github.com/MoonchildProductions/UXP/issues/989");
+ return Services.prefs.getBoolPref(pref, defaultValue);
+}
+
+
function getTopWin(skipPopups) {
// If this is called in a browser window, use that window regardless of
// whether it's the frontmost window, since commands can be executed in