mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
Bug 1848815 - Add a user-facing setting to enable enterprise roots import, and enable it by default. r=keeler,settings-reviewers,fluent-reviewers,desktop-theme-reviewers,flod,Itiel,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D186236
This commit is contained in:
parent
ebc1a9e95a
commit
d4d8aa987d
@ -1179,6 +1179,18 @@
|
||||
"/>
|
||||
</vbox>
|
||||
</hbox>
|
||||
|
||||
<hbox id="certEnableThirdPartyToggleBox" align="center">
|
||||
<checkbox id="certEnableThirdPartyToggle"
|
||||
data-l10n-id="certs-thirdparty-toggle"
|
||||
preference="security.enterprise_roots.enabled"
|
||||
class="tail-with-learn-more"
|
||||
/>
|
||||
<html:a is="moz-support-link"
|
||||
class="learnMore"
|
||||
support-page="automatically-trust-third-party-certificates"
|
||||
/>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
|
||||
<!-- HTTPS-ONLY Mode -->
|
||||
|
@ -191,6 +191,8 @@ Preferences.addAll([
|
||||
|
||||
{ id: "security.OCSP.enabled", type: "int" },
|
||||
|
||||
{ id: "security.enterprise_roots.enabled", type: "bool" },
|
||||
|
||||
// Add-ons, malware, phishing
|
||||
{ id: "xpinstall.whitelist.required", type: "bool" },
|
||||
|
||||
@ -450,6 +452,19 @@ var gPrivacyPane = {
|
||||
showQuickActionsGroup();
|
||||
},
|
||||
|
||||
_initThirdPartyCertsToggle() {
|
||||
// Third-party certificate import is only implemented for Windows and Mac,
|
||||
// and we should not expose this as a user-configurable setting if there's
|
||||
// an enterprise policy controlling it (either to enable _or_ disable it).
|
||||
let canConfigureThirdPartyCerts =
|
||||
(AppConstants.platform == "win" || AppConstants.platform == "macosx") &&
|
||||
typeof Services.policies.getActivePolicies()?.Certificates
|
||||
?.ImportEnterpriseRoots == "undefined";
|
||||
|
||||
document.getElementById("certEnableThirdPartyToggleBox").hidden =
|
||||
!canConfigureThirdPartyCerts;
|
||||
},
|
||||
|
||||
syncFromHttpsOnlyPref() {
|
||||
let httpsOnlyOnPref = Services.prefs.getBoolPref(
|
||||
"dom.security.https_only_mode"
|
||||
@ -886,6 +901,7 @@ var gPrivacyPane = {
|
||||
this.fingerprintingProtectionReadPrefs();
|
||||
this.networkCookieBehaviorReadPrefs();
|
||||
this._initTrackingProtectionExtensionControl();
|
||||
this._initThirdPartyCertsToggle();
|
||||
|
||||
Services.telemetry.setEventRecordingEnabled("privacy.ui.fpp", true);
|
||||
|
||||
|
@ -1472,6 +1472,10 @@ certs-devices =
|
||||
.label = Security Devices…
|
||||
.accesskey = D
|
||||
|
||||
certs-thirdparty-toggle =
|
||||
.label = Allow { -brand-short-name } to automatically trust third-party root certificates you install
|
||||
.accesskey = t
|
||||
|
||||
space-alert-over-5gb-settings-button =
|
||||
.label = Open Settings
|
||||
.accesskey = O
|
||||
|
@ -13903,7 +13903,7 @@
|
||||
# Whether or not to import and trust third party root certificates from the OS.
|
||||
- name: security.enterprise_roots.enabled
|
||||
type: RelaxedAtomicBool
|
||||
value: false
|
||||
value: true
|
||||
mirror: always
|
||||
|
||||
- name: security.intermediate_preloading_healer.enabled
|
||||
|
Loading…
Reference in New Issue
Block a user