Name Description Size
adjustedCerts.js To change this file you will have to add a function to download a file in toolkit/components/certviewer/content/certviewer.mjs. Add the following after this line https://searchfox.org/firefox-main/rev/50a34d25155fd70628ee69c7d68a2509c0e3445d/toolkit/components/certviewer/content/certviewer.mjs#414: function download(filename, text) { var element = document.createElement('a'); element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); element.setAttribute('download', filename); element.style.display = 'none'; document.body.appendChild(element); element.click(); document.body.removeChild(element); } // Start file download. download("out.txt",JSON.stringify({certItems, tabName})); Build Nightly and then open the test certificate in about:certificate. You can use the following bash script to get the correct URL: ``` function urlencode() { python3 -c 'import urllib.parse, sys; print(urllib.parse.quote(sys.argv[1], safe=sys.argv[2]))' "$1" "$urlencode_safe" } function pemurl() { echo "about:certificate?cert=$(urlencode $(openssl x509 -in $1 -outform der | base64 -w 0))" } pemurl toolkit/components/certviewer/tests/browser/example.com.pem ``` Finally, paste the output here and update the URL in browser_renderCertToUI.js. 9863
browser.toml 700
browser_aboutcertificateviewer.js 10137
browser_certificateTabLink.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 7338
browser_checkAuthorityKeyID.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 8496
browser_checkLongHex.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 9431
browser_checkMissingCommonName.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 11490
browser_checkNonEmptyFields.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 11793
browser_checkNonRepeatedCertTabs.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 4369
browser_checkNonUndefinedStrings.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 6698
browser_checkOCSP.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 10128
browser_checkStandAlonePage.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 2291
browser_checkValiditySection.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 9320
browser_downloadLink.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 12271
browser_handleMultipleCertsURL.js 28859
browser_openTabAndSendCertInfo.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 10726
browser_renderCertToUI.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 7985
dummy_page.html Dummy test page 173
example.com.pem 1688
example.com.pem.certspec 481
head.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 4011