Bug 1768724 - Part 1: Add a preference and policy for Microsoft SSO on macOS (Non-Necko Part) r=fluent-reviewers,mkaply,mossop,bolsson

Differential Revision: https://phabricator.services.mozilla.com/D212445
This commit is contained in:
Sean 2024-09-18 23:23:16 +00:00
Родитель 301008a81a
Коммит a174e516cc
3 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -1638,6 +1638,12 @@ export var Policies = {
},
},
MicrosoftEntraSSO: {
onBeforeAddons(manager, param) {
setAndLockPref("network.http.microsoft-entra-sso.enabled", param);
},
},
NetworkPrediction: {
onBeforeAddons(manager, param) {
setAndLockPref("network.dns.disablePrefetch", !param);

Просмотреть файл

@ -244,3 +244,5 @@ policy-UseSystemPrintDialog = Print using the system print dialog.
policy-WebsiteFilter = Block websites from being visited. See documentation for more details on the format.
policy-Windows10SSO = Allow Windows single sign-on for Microsoft, work, and school accounts.
policy-MicrosoftEntraSSO = Allow single sign-on for Microsoft Entra accounts.

Просмотреть файл

@ -337,6 +337,10 @@ const DEFAULT_ENVIRONMENT_PREFS = new Map([
["media.gmp-widevinecdm.visible", { what: RECORD_PREF_VALUE }],
["media.gmp-manager.lastCheck", { what: RECORD_PREF_VALUE }],
["media.gmp-manager.lastEmptyCheck", { what: RECORD_PREF_VALUE }],
[
"network.http.microsoft-entra-sso.enabled",
{ what: RECORD_DEFAULTPREF_VALUE },
],
["network.http.windows-sso.enabled", { what: RECORD_PREF_VALUE }],
["network.proxy.autoconfig_url", { what: RECORD_PREF_STATE }],
["network.proxy.http", { what: RECORD_PREF_STATE }],