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