Blame SOURCES/disable-openpgp-in-thunderbird.patch
|
|
225ef2 |
diff --git a/comm/mail/extensions/openpgp/content/BondOpenPGP.jsm b/comm/mail/extensions/openpgp/content/BondOpenPGP.jsm
|
|
|
225ef2 |
--- a/comm/mail/extensions/openpgp/content/BondOpenPGP.jsm
|
|
|
225ef2 |
+++ b/comm/mail/extensions/openpgp/content/BondOpenPGP.jsm
|
|
|
225ef2 |
@@ -53,20 +53,23 @@ var BondOpenPGP = {
|
|
|
225ef2 |
|
|
|
225ef2 |
// if null, we haven't yet read the pref
|
|
|
225ef2 |
// if true, pref was enabled and we already triggered init
|
|
|
225ef2 |
_isEnabled: null,
|
|
|
225ef2 |
|
|
|
225ef2 |
_alreadyTriedInit: false, // if already true, we will not try again
|
|
|
225ef2 |
|
|
|
225ef2 |
setIsEnabledFromPref() {
|
|
|
225ef2 |
- this._isEnabled = Services.prefs.getBoolPref("mail.openpgp.enable");
|
|
|
225ef2 |
+ return false;
|
|
|
225ef2 |
+ //this._isEnabled = Services.prefs.getBoolPref("mail.openpgp.enable");
|
|
|
225ef2 |
},
|
|
|
225ef2 |
|
|
|
225ef2 |
async init() {
|
|
|
225ef2 |
+ return;
|
|
|
225ef2 |
+
|
|
|
225ef2 |
if (!MailConstants.MOZ_OPENPGP) {
|
|
|
225ef2 |
return;
|
|
|
225ef2 |
}
|
|
|
225ef2 |
|
|
|
225ef2 |
// We never shut off after pref change, disabling requires restart.
|
|
|
225ef2 |
// If null, it means we're here for the first time, read the pref.
|
|
|
225ef2 |
// If false, it could mean the pref was now turned on at runtime.
|
|
|
225ef2 |
// In both scenarios, null and false, we reread the pref to check
|