Bug 774964 - Implement the getPKCS12FilePassword dialog in native fennec. r=mfinkle

This commit is contained in:
Kartikaya Gupta 2013-02-27 00:08:47 -05:00
Родитель 1f5c2c89c0
Коммит d44bb017a4
2 изменённых файлов: 13 добавлений и 3 удалений

Просмотреть файл

@ -81,9 +81,17 @@ NSSDialogs.prototype = {
},
getPKCS12FilePassword: function(aCtx, aPassword) {
// this dialog is never shown in Fennec; in Desktop it is shown while backing up a personal
// certificate to a file via Preferences->Advanced->Encryption->View Certificates->Your Certificates
throw "Unimplemented";
let response = this.showPrompt(this.getString("pkcs12.getpassword.title"),
this.getString("pkcs12.getpassword.message"),
[ this.getString("nssdialogs.ok.label"),
this.getString("nssdialogs.cancel.label")
],
[ { type: "password", id: "pw" } ]);
if (response.button != 0) {
return false;
}
aPassword.value = response.pw;
return true;
},
certInfoSection: function(aHeading, aDataPairs, aTrailingNewline = true) {

Просмотреть файл

@ -14,6 +14,8 @@ downloadCert.trustEmail=Trust to identify email users.
downloadCert.trustObjSign=Trust to identify software developers.
caCertExists.title=Certificate Exists
caCertExists.message=The Certificate already exists.
pkcs12.getpassword.title=Password Entry Dialog
pkcs12.getpassword.message=Please enter the password that was used to encrypt this certificate backup.
certmgr.title=Certificate Details
# These strings are stolen from security/manager/locales/en-US/chrome/pippki/certManager.dtd