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