diff --git a/security/manager/locales/en-US/chrome/pippki/pippki.properties b/security/manager/locales/en-US/chrome/pippki/pippki.properties index bbe74f228dd6..7fc9a4a14849 100644 --- a/security/manager/locales/en-US/chrome/pippki/pippki.properties +++ b/security/manager/locales/en-US/chrome/pippki/pippki.properties @@ -54,22 +54,18 @@ issuerNotKnown=Because you do not know the certificate authority that issued thi issuerCertNotFound=Certificate for this certificate authority was not found #For Deleting Certificates -deleteSslCertFlag=deleteSslFlag deleteSslCertConfirm=Are you sure you want to delete these web site certificates? deleteSslCertImpact=If you delete a web site certificate, you will be asked to accept it again the next time you visit the web site. deleteSslCertTitle=Delete Web Site Certificates -deleteUserCertFlag=deleteUserFlag deleteUserCertConfirm=Are you sure you want to delete these certificates? deleteUserCertImpact=If you delete one of your own certificates, you can no longer use it to identify yourself. deleteUserCertTitle=Delete your Certificates -deleteCaCertFlag=deleteCaFlag deleteCaCertConfirm=Are you sure you want to delete these CA certificates? deleteCaCertImpact=If you delete a certificate authority (CA) certificate, your browser will no longer trust any certificates issued by that CA. deleteCaCertTitle=Delete CA Certificates -deleteEmailCertFlag=deleteEmailFlag deleteEmailCertConfirm=Are you sure you want to delete these people's e-mail certificates? deleteEmailCertImpact=If you delete an e-mail certificate, your will no longer be able to send encrypted e-mail to those people. deleteEmailCertTitle=Delete E-Mail Certificates diff --git a/security/manager/pki/resources/content/certManager.js b/security/manager/pki/resources/content/certManager.js index ee9a7f2c68a4..6ea2f0b010f4 100644 --- a/security/manager/pki/resources/content/certManager.js +++ b/security/manager/pki/resources/content/certManager.js @@ -331,19 +331,19 @@ function deleteCerts() if (selTabID == 'mine_tab') { - params.SetString(0,bundle.GetStringFromName("deleteUserCertFlag")); + params.SetString(0, selTabID); } else if (selTabID == "websites_tab") { - params.SetString(0,bundle.GetStringFromName("deleteSslCertFlag")); + params.SetString(0, selTabID); } else if (selTabID == "ca_tab") { - params.SetString(0,bundle.GetStringFromName("deleteCaCertFlag")); + params.SetString(0, selTabID); } else if (selTabID == "others_tab") { - params.SetString(0,bundle.GetStringFromName("deleteEmailCertFlag")); + params.SetString(0, selTabID); } else { diff --git a/security/manager/pki/resources/content/deletecert.js b/security/manager/pki/resources/content/deletecert.js index 3f058f949059..bb77a17f7a0a 100644 --- a/security/manager/pki/resources/content/deletecert.js +++ b/security/manager/pki/resources/content/deletecert.js @@ -66,25 +66,25 @@ function setWindowName() var confirm; var impact; - if(typeFlag == bundle.GetStringFromName("deleteUserCertFlag")) + if(typeFlag == "mine_tab") { title = bundle.GetStringFromName("deleteUserCertTitle"); confirm = bundle.GetStringFromName("deleteUserCertConfirm"); impact = bundle.GetStringFromName("deleteUserCertImpact"); } - else if(typeFlag == bundle.GetStringFromName("deleteSslCertFlag")) + else if(typeFlag == "websites_tab") { title = bundle.GetStringFromName("deleteSslCertTitle"); confirm = bundle.GetStringFromName("deleteSslCertConfirm"); impact = bundle.GetStringFromName("deleteSslCertImpact"); } - else if(typeFlag == bundle.GetStringFromName("deleteCaCertFlag")) + else if(typeFlag == "ca_tab") { title = bundle.GetStringFromName("deleteCaCertTitle"); confirm = bundle.GetStringFromName("deleteCaCertConfirm"); impact = bundle.GetStringFromName("deleteCaCertImpact"); } - else if(typeFlag == bundle.GetStringFromName("deleteEmailCertFlag")) + else if(typeFlag == "others_tab") { title = bundle.GetStringFromName("deleteEmailCertTitle"); confirm = bundle.GetStringFromName("deleteEmailCertConfirm");