Bug 1898884 - Disabling and hiding the OS Authentication checkboxes when "security.nocertdb" is true. r=Gijs,settings-reviewers,credential-management-reviewers,dimi

Differential Revision: https://phabricator.services.mozilla.com/D212744
This commit is contained in:
Sidharth Sachdev
2024-06-06 14:44:25 +00:00
parent 871e74ca58
commit 70d35a30e4
4 changed files with 20 additions and 2 deletions

View File

@@ -3071,7 +3071,10 @@ var gPrivacyPane = {
_initOSAuthentication() {
let osReauthCheckbox = document.getElementById("osReauthCheckbox");
if (!OSKeyStore.canReauth()) {
if (
!OSKeyStore.canReauth() ||
Services.prefs.getBoolPref("security.nocertdb", false)
) {
osReauthCheckbox.hidden = true;
return;
}