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 31953 cc3a5040f78d7db669a48c77dec43e1790843684
parent 31952 6f6c836a215ce7f11b7ccd1a6ff4d2206521cd79
child 31954 9c373f4cbef707b9cfd7eb01879020f0b58af771
push id110
push usermozilla@jorgk.com
push dateWed, 28 Nov 2018 11:39:28 +0000
treeherdercomm-esr60@0ba73c30a3d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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,