summaryrefslogtreecommitdiffstats
path: root/application/basilisk
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-05-09 13:26:23 -0400
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-05-09 19:45:32 +0200
commit440b167d621beca26ce09de8afac82e3a0fb2393 (patch)
treed030e7e8a07a3c2163c8042b03d411adc6173911 /application/basilisk
parentbf0b2ab2ed3a117cd2c561a47ca939d82e11fddd (diff)
downloadUXP-440b167d621beca26ce09de8afac82e3a0fb2393.tar
UXP-440b167d621beca26ce09de8afac82e3a0fb2393.tar.gz
UXP-440b167d621beca26ce09de8afac82e3a0fb2393.tar.lz
UXP-440b167d621beca26ce09de8afac82e3a0fb2393.tar.xz
UXP-440b167d621beca26ce09de8afac82e3a0fb2393.zip
Issue #1082 - Restore a getBoolPref global shim in utilityOverlay.js
for Extension compatibility (uplift)
Diffstat (limited to 'application/basilisk')
-rw-r--r--application/basilisk/base/content/utilityOverlay.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/application/basilisk/base/content/utilityOverlay.js b/application/basilisk/base/content/utilityOverlay.js
index f3ebf3b7e..ee26ad22f 100644
--- a/application/basilisk/base/content/utilityOverlay.js
+++ b/application/basilisk/base/content/utilityOverlay.js
@@ -17,6 +17,9 @@ XPCOMUtils.defineLazyServiceGetter(this, "aboutNewTabService",
"@mozilla.org/browser/aboutnewtab-service;1",
"nsIAboutNewTabService");
+XPCOMUtils.defineLazyModuleGetter(this, "Deprecated",
+ "resource://gre/modules/Deprecated.jsm");
+
this.__defineGetter__("BROWSER_NEW_TAB_URL", () => {
if (PrivateBrowsingUtils.isWindowPrivate(window) &&
!PrivateBrowsingUtils.permanentPrivateBrowsing &&
@@ -42,6 +45,13 @@ 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