From: Michael Kaply <345868+mkaply@users.noreply.github.com> Date: Wed, 8 Dec 2021 21:38:38 +0000 (-0600) Subject: Add support for new Cookie Behavior policy X-Git-Tag: v3.4~2^2~1 X-Git-Url: https://git.p6c8.net/policy-templates.git/commitdiff_plain/b06395a01a8b538676599667c571d4c3778c95ef Add support for new Cookie Behavior policy --- diff --git a/README.md b/README.md index d9bc93b..acf671d 100644 --- a/README.md +++ b/README.md @@ -891,19 +891,32 @@ Configure cookie preferences. `Block` is a list of origins (not domains) where cookies are always blocked. You must include http or https. -`Default` determines whether cookies are accepted at all. +`Behavior` sets the default behavior for cookies based on the values below. -`AcceptThirdParty` determines how third-party cookies are handled. +`BehaviorPrivateBrowsing` sets the default behavior for cookies in private browsing based on the values below. + +| Value | Description +| --- | --- +| accept | Accept all cookies +| reject-foreign | Reject third party cookies +| reject | Reject all cookies +| limit-foreign | Reject third party cookies for sites you haven't visited +| reject-tracker | Reject cookies for known trackers (default) +| reject-tracker-and-partition-foreign | Reject cookies for known trackers and partition third-party cookies (Total Cookie Protection) (default for private browsing) + +`Default` (Deprecated) determines whether cookies are accepted at all. + +`AcceptThirdParty` (Deprecated) determines how third-party cookies are handled. `ExpireAtSessionEnd` determines when cookies expire. -`RejectTracker` only rejects cookies for trackers. +`RejectTracker` (Deprecated) only rejects cookies for trackers. `Locked` prevents the user from changing cookie preferences. -**Compatibility:** Firefox 60, Firefox ESR 60 (RejectTracker added in Firefox 63, AllowSession added in Firefox 79/78.1)\ +**Compatibility:** Firefox 60, Firefox ESR 60 (RejectTracker added in Firefox 63, AllowSession added in Firefox 79/78.1, Behavior added in Firefox 95/91.4)\ **CCK2 Equivalent:** N/A\ -**Preferences Affected:** `network.cookie.cookieBehavior`, `network.cookie.lifetimePolicy` +**Preferences Affected:** `network.cookie.cookieBehavior`, `network.cookie.cookieBehavior.pbmode`, `network.cookie.lifetimePolicy` #### Windows (GPO) ``` @@ -914,6 +927,8 @@ Software\Policies\Mozilla\Firefox\Cookies\Default = 0x1 | 0x0 Software\Policies\Mozilla\Firefox\Cookies\AcceptThirdParty = "always" | "never" | "from-visited" Software\Policies\Mozilla\Firefox\Cookies\ExpireAtSessionEnd = 0x1 | 0x0 Software\Policies\Mozilla\Firefox\Cookies\RejectTracker = 0x1 | 0x0 +Software\Policies\Mozilla\Firefox\Cookies\Behavior = "accept" | "reject-foreign" | "reject" | "limit-foreign" | "reject-tracker" | "reject-tracker-and-partition-foreign" +Software\Policies\Mozilla\Firefox\Cookies\BehaviorPrivateBrowsing = "accept" | "reject-foreign" | "reject" | "limit-foreign" | "reject-tracker" | "reject-tracker-and-partition-foreign" Software\Policies\Mozilla\Firefox\Cookies\Locked = 0x1 | 0x0 ``` #### Windows (Intune) @@ -985,6 +1000,24 @@ Value (string): ``` or ``` +OMA-URI: +``` +./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Cookies/Cookies_Behavior +``` +Value (string): +``` + + +``` +OMA-URI: +``` +./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Cookies/Cookies_BehaviorPrivateBrowsing +``` +Value (string): +``` + + +``` #### macOS ``` @@ -1012,6 +1045,10 @@ Value (string): | Locked | + Behavior + accept | reject-foreign | reject | limit-foreign | reject-tracker | reject-tracker-and-partition-foreign + BehaviorPrivateBrowsing + accept | reject-foreign | reject | limit-foreign | reject-tracker | reject-tracker-and-partition-foreign ``` @@ -1027,7 +1064,9 @@ Value (string): "AcceptThirdParty": "always" | "never" | "from-visited", "ExpireAtSessionEnd": true | false, "RejectTracker": true | false, - "Locked": true | false + "Locked": true | false, + "Behavior": "accept" | "reject-foreign" | "reject" | "limit-foreign" | "reject-tracker" | "reject-tracker-and-partition-foreign", + "BehaviorPrivateBrowsing": "accept" | "reject-foreign" | "reject" | "limit-foreign" | "reject-tracker" | "reject-tracker-and-partition-foreign", } } } diff --git a/mac/org.mozilla.firefox.plist b/mac/org.mozilla.firefox.plist index 733afeb..1ad8bc6 100644 --- a/mac/org.mozilla.firefox.plist +++ b/mac/org.mozilla.firefox.plist @@ -118,14 +118,8 @@ https://www.example.edu/ - Default - - AcceptThirdParty - never - ExpireAtSessionEnd - - RejectTracker - + Behavior + limit-foreign Locked diff --git a/windows/de-DE/firefox.adml b/windows/de-DE/firefox.adml index 1c4bc26..8d60782 100644 --- a/windows/de-DE/firefox.adml +++ b/windows/de-DE/firefox.adml @@ -394,6 +394,20 @@ Diese Einstellung wird ignoriert wenn diese Richtlinieneinstellung deaktiviert o Wenn Sie die Richtlinieneinstellung aktivieren können Benutzer die Cookie-Einstellungen nicht ändern. Wenn Sie die Richtlinieneinstellung deaktivieren oder nicht konfigurieren, können Benutzer die Cookie-Einstellungen ändern. + Cookie Behavior + If this policy is enabled, you can configure cookie behavior. + +If this policy is not configured or disabled, cookies are rejected for known trackers. + Cookie Behavior in private browsing + If this policy is enabled, you can configure cookie behavior in private browsing. + +If this policy is not configured or disabled, in private browsing, cookies are rejected for known trackers and third-party cookies are partitioned. + Accept all cookies + Reject third party cookies + Reject all cookies + Reject third party cookies for sites you haven't visited + Reject cookies for known trackers + Reject cookies for known trackers and partition third-party cookies (Total Cookie Protection) Wenn diese Richtlinieneinstellung aktiviert ist, wird die Kamera für die genannten Quellen automatisch freigegeben. Wenn diese Richtlinieneinstellung deaktiviert oder nicht konfiguriert ist, wird die Standardeinstellung befolgt. @@ -987,6 +1001,12 @@ https://github.com/mozilla/policy-templates/blob/master/README.md#preferences (E + + + + + + diff --git a/windows/en-US/firefox.adml b/windows/en-US/firefox.adml index d279adc..f4e0f83 100644 --- a/windows/en-US/firefox.adml +++ b/windows/en-US/firefox.adml @@ -371,11 +371,11 @@ If this policy is disabled or not configured, the default cookie policy is follo If this policy is enabled, cookies are blocked for the origins indicated. If a top level domain is specified (http://example.org), cookies are blocked from all subdomains as well. If this policy is disabled or not configured, cookies are not blocked by default. - Accept cookies from websites + Accept cookies from websites (Deprecated) If this policy is disabled, cookies are not accepted from websites by default. If this policy is not configured or enabled, cookies are accepted from websites. - Accept third-party cookies + Accept third-party cookies (Deprecated) If this policy is enabled and cookies are allowed, you can set when to accept third-party cookies. This setting is ignored if this policy is disabled or not configured or if cookies are not allowed. @@ -386,14 +386,26 @@ This setting is ignored if this policy is disabled or not configured or if cooki If this policy is enabled and cookies are allowed, they will expire when Firefox is closed. This setting is ignored if this policy is disabled or not configured or if cookies are not allowed. - Reject trackers + Reject trackers (Deprecated) If this policy is enabled and cookies are allowed, Firefox will reject tracker cookies by default. This setting is ignored if this policy is disabled or not configured or if cookies are not allowed. Do not allow preferences to be changed - If this policy is enabled, cookie preferences cannot be changed by the user. - -If this policy is disabled or not configured, the user can change their cookie preferences. + If this policy is enabled, cookie preferences cannot be changed by the user. + Cookie Behavior + If this policy is enabled, you can configure cookie behavior. + +If this policy is not configured or disabled, cookies are rejected for known trackers. + Cookie Behavior in private browsing + If this policy is enabled, you can configure cookie behavior in private browsing. + +If this policy is not configured or disabled, in private browsing, cookies are rejected for known trackers and third-party cookies are partitioned. + Accept all cookies + Reject third party cookies + Reject all cookies + Reject third party cookies for sites you haven't visited + Reject cookies for known trackers + Reject cookies for known trackers and partition third-party cookies (Total Cookie Protection) If this policy is enabled, access to the camera is always allowed for the origins indicated. If this policy is disabled or not configured, the default camera policy is followed. @@ -986,6 +998,12 @@ https://github.com/mozilla/policy-templates/blob/master/README.md#preferences. + + + + + + diff --git a/windows/es-ES/firefox.adml b/windows/es-ES/firefox.adml index c7a8b12..4c8a537 100644 --- a/windows/es-ES/firefox.adml +++ b/windows/es-ES/firefox.adml @@ -394,6 +394,20 @@ Esta configuración se ignora si esta política está deshabilitada o no está c Si esta política está habilitada, el usuario no podrá cambiar las preferencias de cookies. Si esta política está deshabilitada o no está configurada, el usuario podrá cambiar tus preferencias de cookies. + Cookie Behavior + If this policy is enabled, you can configure cookie behavior. + +If this policy is not configured or disabled, cookies are rejected for known trackers. + Cookie Behavior in private browsing + If this policy is enabled, you can configure cookie behavior in private browsing. + +If this policy is not configured or disabled, in private browsing, cookies are rejected for known trackers and third-party cookies are partitioned. + Accept all cookies + Reject third party cookies + Reject all cookies + Reject third party cookies for sites you haven't visited + Reject cookies for known trackers + Reject cookies for known trackers and partition third-party cookies (Total Cookie Protection) Si esta política está habilitada, el acceso a la cámara siempre estará permitido para los orígenes indicados. Si esta política está deshabilitada o no está configurada, se seguirá la política de cámara predeterminada. @@ -986,6 +1000,12 @@ https://github.com/mozilla/policy-templates/blob/master/README.md#preferences + + + + + + diff --git a/windows/firefox.admx b/windows/firefox.admx index aea314b..104f75e 100644 --- a/windows/firefox.admx +++ b/windows/firefox.admx @@ -381,6 +381,82 @@ + + + + + + + + accept + + + + + reject-foreign + + + + + reject + + + + + limit-foreign + + + + + reject-tracker + + + + + reject-tracker-and-partition-foreign + + + + + + + + + + + + + accept + + + + + reject-foreign + + + + + reject + + + + + limit-foreign + + + + + reject-tracker + + + + + reject-tracker-and-partition-foreign + + + + + diff --git a/windows/fr-FR/firefox.adml b/windows/fr-FR/firefox.adml index 8ca32b1..a23203a 100644 --- a/windows/fr-FR/firefox.adml +++ b/windows/fr-FR/firefox.adml @@ -394,6 +394,20 @@ Ce paramètre est ignoré si cette stratégie est désactivée ou non configuré Si cette stratégie est activée, les préférences en matière de cookies ne peuvent pas être modifiées par l'utilisateur. Si cette stratégie est désactivée ou non configurée, l'utilisateur peut modifier ses préférences en matière de cookies. + Cookie Behavior + If this policy is enabled, you can configure cookie behavior. + +If this policy is not configured or disabled, cookies are rejected for known trackers. + Cookie Behavior in private browsing + If this policy is enabled, you can configure cookie behavior in private browsing. + +If this policy is not configured or disabled, in private browsing, cookies are rejected for known trackers and third-party cookies are partitioned. + Accept all cookies + Reject third party cookies + Reject all cookies + Reject third party cookies for sites you haven't visited + Reject cookies for known trackers + Reject cookies for known trackers and partition third-party cookies (Total Cookie Protection) Si cette stratégie est activée, l'accès à la caméra est toujours autorisé pour les origines indiquées. Si cette stratégie est désactivée ou non configurée, la stratégie par défaut de la caméra est appliquée. @@ -985,6 +999,12 @@ https://github.com/mozilla/policy-templates/blob/master/README.md#preferences + + + + + + diff --git a/windows/it-IT/firefox.adml b/windows/it-IT/firefox.adml index 15276cc..02d35bd 100644 --- a/windows/it-IT/firefox.adml +++ b/windows/it-IT/firefox.adml @@ -394,6 +394,20 @@ Quest'impostazione è ignorata se questo criterio è disabilitato o non configur Se questo criterio è abilitato, le preferenze relative ai cookie non possono essere modificate dall'utente. Se questo criterio è disabilitato o non configurato, l'utente può modificare le preferenze relative ai cookie. + Cookie Behavior + If this policy is enabled, you can configure cookie behavior. + +If this policy is not configured or disabled, cookies are rejected for known trackers. + Cookie Behavior in private browsing + If this policy is enabled, you can configure cookie behavior in private browsing. + +If this policy is not configured or disabled, in private browsing, cookies are rejected for known trackers and third-party cookies are partitioned. + Accept all cookies + Reject third party cookies + Reject all cookies + Reject third party cookies for sites you haven't visited + Reject cookies for known trackers + Reject cookies for known trackers and partition third-party cookies (Total Cookie Protection) Se questo criterio è abilitato, l'accesso alla fotocamera è sempre consentito per le origini indicate. Se questo criterio è disabilitato o non configurato verrà seguita la politica predefinita per la fotocamera. @@ -987,6 +1001,12 @@ https://github.com/mozilla/policy-templates/blob/master/README.md#preferences + + + + + + diff --git a/windows/ru-RU/firefox.adml b/windows/ru-RU/firefox.adml index ade9f10..113b2fc 100644 --- a/windows/ru-RU/firefox.adml +++ b/windows/ru-RU/firefox.adml @@ -394,6 +394,20 @@ Mozilla рекомендует не отключать телеметрию. И Если эта политика включена, пользователь не может изменить настройки файлов cookie. Если эта политика отключена или не настроена, пользователь может изменить свои настройки файлов cookie. + Cookie Behavior + If this policy is enabled, you can configure cookie behavior. + +If this policy is not configured or disabled, cookies are rejected for known trackers. + Cookie Behavior in private browsing + If this policy is enabled, you can configure cookie behavior in private browsing. + +If this policy is not configured or disabled, in private browsing, cookies are rejected for known trackers and third-party cookies are partitioned. + Accept all cookies + Reject third party cookies + Reject all cookies + Reject third party cookies for sites you haven't visited + Reject cookies for known trackers + Reject cookies for known trackers and partition third-party cookies (Total Cookie Protection) Если эта политика включена, доступ к камере всегда разрешен для указанных источников. Если эта политика отключена или не настроена, применяется политика камеры по умолчанию. @@ -983,17 +997,23 @@ https://github.com/mozilla/policy-templates/blob/master/README.md#preferences. < Разрешить всплывающие окна для веб-сайтов - - - - - - - - Не разрешать изменять настройки защиты от отслеживания. - Блокировать скрипты майнинга. - Блокировать скрипты снятия отпечатков пальцев. - Исключения: + + + + + + + + + + + + + + Не разрешать изменять настройки защиты от отслеживания. + Блокировать скрипты майнинга. + Блокировать скрипты снятия отпечатков пальцев. + Исключения: diff --git a/windows/zh-CN/firefox.adml b/windows/zh-CN/firefox.adml index b114a53..0b4e518 100644 --- a/windows/zh-CN/firefox.adml +++ b/windows/zh-CN/firefox.adml @@ -392,6 +392,20 @@ Mozilla 建议您不要禁用 Telemetry。 透过 Telemetry 收集到的信息 若启用此原则,用户将无法调整 Cookie 偏好设置。 若禁用或不设定此原则,则使用者能够自行调整 Cookie 偏好设定。 + Cookie Behavior + If this policy is enabled, you can configure cookie behavior. + +If this policy is not configured or disabled, cookies are rejected for known trackers. + Cookie Behavior in private browsing + If this policy is enabled, you can configure cookie behavior in private browsing. + +If this policy is not configured or disabled, in private browsing, cookies are rejected for known trackers and third-party cookies are partitioned. + Accept all cookies + Reject third party cookies + Reject all cookies + Reject third party cookies for sites you haven't visited + Reject cookies for known trackers + Reject cookies for known trackers and partition third-party cookies (Total Cookie Protection) 若启用此原则,将允许指定来源网址访问摄像头。 若禁用或不设定此原则,则依循预设摄影机存取原则。 @@ -981,13 +995,19 @@ https://github.com/mozilla/policy-templates/blob/master/README.md#preferences。 允许网站弹出窗口 - - - - - - - + + + + + + + + + + + + + 不允许调整追踪保护偏好设置。 封锁加密货币采矿程序。 封锁数位指纹追踪程序。 diff --git a/windows/zh-TW/firefox.adml b/windows/zh-TW/firefox.adml index 9495c90..36ed4d6 100644 --- a/windows/zh-TW/firefox.adml +++ b/windows/zh-TW/firefox.adml @@ -392,6 +392,20 @@ Mozilla 建議您不要停用 Telemetry。透過 Telemetry 收集到的資訊可 若啟用此原則,使用者將無法調整 Cookie 偏好設定。 若停用或不設定此原則,則使用者能夠自行調整 Cookie 偏好設定。 + Cookie Behavior + If this policy is enabled, you can configure cookie behavior. + +If this policy is not configured or disabled, cookies are rejected for known trackers. + Cookie Behavior in private browsing + If this policy is enabled, you can configure cookie behavior in private browsing. + +If this policy is not configured or disabled, in private browsing, cookies are rejected for known trackers and third-party cookies are partitioned. + Accept all cookies + Reject third party cookies + Reject all cookies + Reject third party cookies for sites you haven't visited + Reject cookies for known trackers + Reject cookies for known trackers and partition third-party cookies (Total Cookie Protection) 若啟用此原則,將允許指定來源網址存取攝影機。 若停用或不設定此原則,則依循預設攝影機存取原則。 @@ -984,6 +998,12 @@ https://github.com/mozilla/policy-templates/blob/master/README.md#preferences。 + + + + + +