From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- security/manager/pki/resources/content/pippki.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'security/manager/pki/resources/content/pippki.js') 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, -- cgit v1.2.3