diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
commit | d8bbc7858622b6d9c278469aab701ca0b609cddf (patch) | |
tree | eff41dc61d9f714852212739e6b3738b82a2af87 /security/manager/pki/resources/content | |
parent | Releasing progress-linux version 125.0.3-1~progress7.99u1. (diff) | |
download | firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'security/manager/pki/resources/content')
-rw-r--r-- | security/manager/pki/resources/content/clientauthask.js | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/security/manager/pki/resources/content/clientauthask.js b/security/manager/pki/resources/content/clientauthask.js index e9df667dbe..e8b746ab34 100644 --- a/security/manager/pki/resources/content/clientauthask.js +++ b/security/manager/pki/resources/content/clientauthask.js @@ -46,7 +46,7 @@ var certArray; * * @type {HTMLInputElement} Element checkbox, has to have |checked| property. */ -var rememberBox; +var rememberBox, args; async function onLoad() { let rememberSetting = Services.prefs.getBoolPref( @@ -55,12 +55,20 @@ async function onLoad() { rememberBox = document.getElementById("rememberBox"); rememberBox.checked = rememberSetting; - certArray = window.arguments[0].certArray; + let propBag = window.arguments[0] + .QueryInterface(Ci.nsIWritablePropertyBag2) + .QueryInterface(Ci.nsIWritablePropertyBag); + args = {}; + for (let prop of propBag.enumerator) { + args[prop.name] = prop.value; + } + + certArray = args.certArray; document.l10n.setAttributes( document.getElementById("clientAuthSiteIdentification"), "client-auth-site-identification", - { hostname: window.arguments[0].hostname } + { hostname: args.hostname } ); let selectElement = document.getElementById("nicknames"); @@ -148,7 +156,7 @@ async function onCertSelected() { } function doOK() { - let { retVals } = window.arguments[0]; + let { retVals } = args; let index = parseInt(document.getElementById("nicknames").value); let cert = certArray[index]; retVals.cert = cert; @@ -156,7 +164,7 @@ function doOK() { } function doCancel() { - let { retVals } = window.arguments[0]; + let { retVals } = args; retVals.cert = null; retVals.rememberDecision = rememberBox.checked; } |