Bug 1509586 - Look for requireEncryptMessage in params.smFields in msgCompSecurityInfo.js. r=mkmelin a=jorgk
authoraceman <acelists@atlas.sk>
Sun, 25 Nov 2018 11:55:00 +0100
changeset 33510 54e10abf7960a7c7008c0f929e4ef4f1f730259a
parent 33509 efe59333c686f36b05a808887f747d2f4c467e4d
child 33511 acbb511ca378e68243236d413f2040be83f7efac
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersmkmelin, jorgk
bugs1509586
Bug 1509586 - Look for requireEncryptMessage in params.smFields in msgCompSecurityInfo.js. r=mkmelin a=jorgk
mailnews/extensions/smime/content/msgCompSecurityInfo.js
--- a/mailnews/extensions/smime/content/msgCompSecurityInfo.js
+++ b/mailnews/extensions/smime/content/msgCompSecurityInfo.js
@@ -37,26 +37,17 @@ function onLoad()
 
   gEmailAddresses = new Object();
   gCertIssuedInfos = new Object();
   gCertExpiresInfos = new Object();
   gCerts = new Object();
   gCount = new Object();
   var canEncrypt = new Object();
 
-  var allow_ldap_cert_fetching = false;
-
-  try {
-    if (params.compFields.securityInfo.requireEncryptMessage) {
-      allow_ldap_cert_fetching = true;
-    }
-  }
-  catch (e)
-  {
-  }
+  var allow_ldap_cert_fetching = params.smFields.requireEncryptMessage;
 
   while (true)
   {
     try
     {
       helper.getRecipientCertsInfo(
         params.compFields,
         gCount,