summaryrefslogtreecommitdiffstats
path: root/security/manager/pki/resources/content/pippki.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /security/manager/pki/resources/content/pippki.js
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'security/manager/pki/resources/content/pippki.js')
-rw-r--r--security/manager/pki/resources/content/pippki.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/manager/pki/resources/content/pippki.js b/security/manager/pki/resources/content/pippki.js
index 8094074281..91cc68972e 100644
--- a/security/manager/pki/resources/content/pippki.js
+++ b/security/manager/pki/resources/content/pippki.js
@@ -127,7 +127,7 @@ async function exportToFile(parent, cert) {
);
var fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
- fp.init(parent, saveCertAs, Ci.nsIFilePicker.modeSave);
+ fp.init(parent.browsingContext, saveCertAs, Ci.nsIFilePicker.modeSave);
fp.defaultString = certToFilename(cert);
fp.defaultExtension = DEFAULT_CERT_EXTENSION;
for (let format of Object.values(formats)) {
@@ -225,7 +225,7 @@ function asyncDetermineUsages(cert) {
);
Object.keys(certificateUsages).forEach(usageString => {
promises.push(
- new Promise((resolve, reject) => {
+ new Promise(resolve => {
let usage = certificateUsages[usageString];
certdb.asyncVerifyCertAtTime(
cert,
@@ -233,7 +233,7 @@ function asyncDetermineUsages(cert) {
0,
null,
now,
- (aPRErrorCode, aVerifiedChain, aHasEVPolicy) => {
+ (aPRErrorCode, aVerifiedChain) => {
resolve({
usageString,
errorCode: aPRErrorCode,