Bug 1081711 - Ensure 'remember this decision' works for client certificates. r=wjohnston, a=lsblakk
authorMark Goodwin <mgoodwin@mozilla.com>
Wed, 22 Oct 2014 13:18:00 +0200
changeset 234838 431266bc5e4da105f1be79f4b031c5a4fbd84fa5
parent 234837 afef8d8afd377ace7dd0b95e25007c7123812c00
child 234839 33a3fd9c20471237b8c6defadcf48de9cb59e839
push id611
push userraliiev@mozilla.com
push dateMon, 05 Jan 2015 23:23:16 +0000
treeherdermozilla-release@345cd3b9c445 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswjohnston, lsblakk
bugs1081711
milestone35.0a2
Bug 1081711 - Ensure 'remember this decision' works for client certificates. r=wjohnston, a=lsblakk
mobile/android/components/NSSDialogService.js
--- a/mobile/android/components/NSSDialogService.js
+++ b/mobile/android/components/NSSDialogService.js
@@ -195,17 +195,17 @@ NSSDialogs.prototype = {
       });
       let response = this.showPrompt(prompt);
       selectedIndex = response.nicknames;
       if (response.button == 1) {
         this.viewCertDetails(certDetailsList[selectedIndex]);
         continue;
       } else if (response.button == 0) {
         canceled.value = false;
-        if (response.rememberBox == "true") {
+        if (response.rememberBox == true) {
           aCtx.QueryInterface(Ci.nsIClientAuthUserDecision).rememberClientAuthCertificate = true;
         }
         return true;
       }
       canceled.value = true;
       return false;
     }
   }