Bug 1774579 - certificate manager: update leftover loadCerts call from bug 1682412 r=rmf

In bug 1682412, loadCerts was removed from nsICertTree. At the time, the
certificate manager still had one use of it that should have been updated to
loadCertsFromCache. This patch makes that update.

Differential Revision: https://phabricator.services.mozilla.com/D150503
This commit is contained in:
Dana Keeler 2022-06-30 15:41:25 +00:00
parent e51e90d9b1
commit 46abba10d9

View File

@ -790,7 +790,8 @@ async function addCACerts() {
fp.open(rv => {
if (rv == Ci.nsIFilePicker.returnOK) {
certdb.importCertsFromFile(fp.file, Ci.nsIX509Cert.CA_CERT);
caTreeView.loadCerts(Ci.nsIX509Cert.CA_CERT);
let certcache = certdb.getCerts();
caTreeView.loadCertsFromCache(certcache, Ci.nsIX509Cert.CA_CERT);
caTreeView.selection.clearSelection();
}
});