Fix for Bug 83177, Checking in for Kai Engert

r=ddrinan, sr=blizzard

Add PFX to the supported file extensions when looking for a certificate
to look for.  Will make inter-op with IE better.
This commit is contained in:
javi%netscape.com 2001-08-01 23:07:57 +00:00
parent 7fadde140f
commit ebc10a1395

View File

@ -227,7 +227,7 @@ function backupCerts()
fp.init(window,
bundle.GetStringFromName("chooseP12BackupFileDialog"),
nsIFilePicker.modeSave);
fp.appendFilter("PKCS12 Files (*.p12)", "*.p12");
fp.appendFilter("PKCS12 Files", "*.p12");
fp.appendFilters(nsIFilePicker.filterAll);
var rv = fp.show();
if (rv == nsIFilePicker.returnOK || rv == nsIFilePicker.returnReplace) {
@ -268,7 +268,7 @@ function restoreCerts()
fp.init(window,
bundle.GetStringFromName("chooseP12RestoreFileDialog"),
nsIFilePicker.modeOpen);
fp.appendFilter("PKCS12 Files (*.p12)", "*.p12");
fp.appendFilter("PKCS12 Files", "*.p12;*.pfx");
fp.appendFilters(nsIFilePicker.filterAll);
if (fp.show() == nsIFilePicker.returnOK) {
var certdb = Components.classes[nsX509CertDB].getService(nsIX509CertDB);