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