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 225851 f953384743a4
parent 225850 c94fc6b83daa
child 225852 c88c66aa42d2
push id4040
push userryanvm@gmail.com
push date2014-10-29 14:22 +0000
treeherdermozilla-beta@b58f505f18df [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswjohnston, lsblakk
bugs1081711
milestone34.0
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;
     }
   }