From b23a559ea939ec91355895fe8afa748cf5005d5e Mon Sep 17 00:00:00 2001 From: Michael Kaply <345868+mkaply@users.noreply.github.com> Date: Tue, 23 Nov 2021 12:54:33 -0600 Subject: [PATCH] Add support for emptying bookmarks. Fixes #817. --- README.md | 17 +++++++++++++++++ windows/de-DE/firefox.adml | 10 ++++++++++ windows/en-US/firefox.adml | 10 ++++++++++ windows/es-ES/firefox.adml | 10 ++++++++++ windows/firefox.admx | 7 +++++++ windows/fr-FR/firefox.adml | 10 ++++++++++ windows/it-IT/firefox.adml | 10 ++++++++++ windows/ru-RU/firefox.adml | 10 ++++++++++ windows/zh-CN/firefox.adml | 10 ++++++++++ windows/zh-TW/firefox.adml | 10 ++++++++++ 10 files changed, 104 insertions(+) diff --git a/README.md b/README.md index 0d3a75e..c86e448 100644 --- a/README.md +++ b/README.md @@ -656,6 +656,8 @@ Note: [`ManagedBookmarks`](#managedbookmarks) is the new recommended way to add Add bookmarks in either the bookmarks toolbar or menu. Only `Title` and `URL` are required. If `Placement` is not specified, the bookmark will be placed on the toolbar. If `Folder` is specified, it is automatically created and bookmarks with the same folder name are grouped together. +If you want to clear all bookmarks set with this policy, you can set the value to an empty array (```[]```). This can be on Windows via GPO or Intune with the new Bookmarks (JSON) policy. + **Compatibility:** Firefox 60, Firefox ESR 60\ **CCK2 Equivalent:** `bookmarks.toolbar`,`bookmarks.menu`\ **Preferences Affected:** N/A @@ -667,6 +669,12 @@ Software\Policies\Mozilla\Firefox\Bookmarks\1\URL = "https://example.com" Software\Policies\Mozilla\Firefox\Bookmarks\1\Favicon = "https://example.com/favicon.ico" Software\Policies\Mozilla\Firefox\Bookmarks\1\Placement = "toolbar" | "menu" Software\Policies\Mozilla\Firefox\Bookmarks\1\Folder = "FolderName" + +Software\Policies\Mozilla\Firefox\Bookmarks (REG_MULTI_SZ) = +``` +[] +``` + ``` #### Windows (Intune) OMA-URI: @@ -682,6 +690,15 @@ Value (string): ``` +OMA-URI: +``` +./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox/Bookmarks +``` +Value (string): +``` + + +``` #### macOS ``` diff --git a/windows/de-DE/firefox.adml b/windows/de-DE/firefox.adml index a9b5eed..de29466 100644 --- a/windows/de-DE/firefox.adml +++ b/windows/de-DE/firefox.adml @@ -838,6 +838,16 @@ Wenn diese Richtlinieneinstellung deaktiviert oder nicht konfiguriert ist, werde Für eine Beschreibung der Einstellung, siehe: https://github.com/mozilla/policy-templates/blob/master/README.md#preferences (Englisch) + Bookmarks (JSON) + If this policy is enabled, you can use JSON to configure bookmarks, including [] to clear all bookmarks. + +If this policy is disabled or not configured, the individual bookmark policies are used. + +If this policy is enabled along with individual bookmarks, those bookmarks will not be added. + +This policy has no effect on Managed Bookmarks. + +For detailed information on the JSON, see https://github.com/mozilla/policy-templates/blob/master/README.md#bookmarks. Verwaltete Lesezeichen Wenn diese Richtlinieneinstellung aktiviert ist, können Sie verwaltete Lesezeichen mit Hilfe einer JSON-Datei konfigurieren. diff --git a/windows/en-US/firefox.adml b/windows/en-US/firefox.adml index 2c71153..2c8019a 100644 --- a/windows/en-US/firefox.adml +++ b/windows/en-US/firefox.adml @@ -838,6 +838,16 @@ If this policy is enabled, you can use JSON to configure preferences. If this policy is disabled or not configured, preferences are not modified. For detailed information on creating the policy, see https://github.com/mozilla/policy-templates/blob/master/README.md#preferences. + Bookmarks (JSON) + If this policy is enabled, you can use JSON to configure bookmarks, including [] to clear all bookmarks. + +If this policy is disabled or not configured, the individual bookmark policies are used. + +If this policy is enabled along with individual bookmarks, those bookmarks will not be added. + +This policy has no effect on Managed Bookmarks. + +For detailed information on the JSON, see https://github.com/mozilla/policy-templates/blob/master/README.md#bookmarks. Managed Bookmarks If this policy is enabled, you can use JSON to configure managed bookmarks. diff --git a/windows/es-ES/firefox.adml b/windows/es-ES/firefox.adml index c0d5e34..be37de0 100644 --- a/windows/es-ES/firefox.adml +++ b/windows/es-ES/firefox.adml @@ -838,6 +838,16 @@ If this policy is enabled, you can use JSON to configure preferences. If this policy is disabled or not configured, preferences are not modified. For detailed information on creating the policy, see https://github.com/mozilla/policy-templates/blob/master/README.md#preferences. + Bookmarks (JSON) + If this policy is enabled, you can use JSON to configure bookmarks, including [] to clear all bookmarks. + +If this policy is disabled or not configured, the individual bookmark policies are used. + +If this policy is enabled along with individual bookmarks, those bookmarks will not be added. + +This policy has no effect on Managed Bookmarks. + +For detailed information on the JSON, see https://github.com/mozilla/policy-templates/blob/master/README.md#bookmarks. Managed Bookmarks If this policy is enabled, you can use JSON to configure managed bookmarks. diff --git a/windows/firefox.admx b/windows/firefox.admx index 65fb305..19e4bdc 100644 --- a/windows/firefox.admx +++ b/windows/firefox.admx @@ -1351,6 +1351,13 @@ + + + + + + + diff --git a/windows/fr-FR/firefox.adml b/windows/fr-FR/firefox.adml index a37a951..841d77a 100644 --- a/windows/fr-FR/firefox.adml +++ b/windows/fr-FR/firefox.adml @@ -837,6 +837,16 @@ If this policy is enabled, you can use JSON to configure preferences. If this policy is disabled or not configured, preferences are not modified. For detailed information on creating the policy, see https://github.com/mozilla/policy-templates/blob/master/README.md#preferences. + Bookmarks (JSON) + If this policy is enabled, you can use JSON to configure bookmarks, including [] to clear all bookmarks. + +If this policy is disabled or not configured, the individual bookmark policies are used. + +If this policy is enabled along with individual bookmarks, those bookmarks will not be added. + +This policy has no effect on Managed Bookmarks. + +For detailed information on the JSON, see https://github.com/mozilla/policy-templates/blob/master/README.md#bookmarks. Managed Bookmarks If this policy is enabled, you can use JSON to configure managed bookmarks. diff --git a/windows/it-IT/firefox.adml b/windows/it-IT/firefox.adml index 14c10f4..c5983ee 100644 --- a/windows/it-IT/firefox.adml +++ b/windows/it-IT/firefox.adml @@ -839,6 +839,16 @@ If this policy is enabled, you can use JSON to configure preferences. If this policy is disabled or not configured, preferences are not modified. For detailed information on creating the policy, see https://github.com/mozilla/policy-templates/blob/master/README.md#preferences. + Bookmarks (JSON) + If this policy is enabled, you can use JSON to configure bookmarks, including [] to clear all bookmarks. + +If this policy is disabled or not configured, the individual bookmark policies are used. + +If this policy is enabled along with individual bookmarks, those bookmarks will not be added. + +This policy has no effect on Managed Bookmarks. + +For detailed information on the JSON, see https://github.com/mozilla/policy-templates/blob/master/README.md#bookmarks. Managed Bookmarks If this policy is enabled, you can use JSON to configure managed bookmarks. diff --git a/windows/ru-RU/firefox.adml b/windows/ru-RU/firefox.adml index 0a673bb..9a4a3d0 100644 --- a/windows/ru-RU/firefox.adml +++ b/windows/ru-RU/firefox.adml @@ -838,6 +838,16 @@ If this policy is disabled or not configured, onboarding messages will be shown Если эта политика отключена или не настроена, предпочтения не изменяются. Для получения подробной информации о создании политики см. Https://github.com/mozilla/policy-templates/blob/master/README.md#preferences. + Bookmarks (JSON) + If this policy is enabled, you can use JSON to configure bookmarks, including [] to clear all bookmarks. + +If this policy is disabled or not configured, the individual bookmark policies are used. + +If this policy is enabled along with individual bookmarks, those bookmarks will not be added. + +This policy has no effect on Managed Bookmarks. + +For detailed information on the JSON, see https://github.com/mozilla/policy-templates/blob/master/README.md#bookmarks. Управляемые закладки Если эта политика включена, вы можете использовать JSON для настройки управляемых закладок. diff --git a/windows/zh-CN/firefox.adml b/windows/zh-CN/firefox.adml index 3dac342..e87c35c 100644 --- a/windows/zh-CN/firefox.adml +++ b/windows/zh-CN/firefox.adml @@ -836,6 +836,16 @@ If this policy is disabled or not configured, onboarding messages will be shown 若禁用或不设定此原则,则不修改偏好设定。 若需要建立原则的详细信息,请参考 https://github.com/mozilla/policy-templates/blob/master/README.md#preferences。 + Bookmarks (JSON) + If this policy is enabled, you can use JSON to configure bookmarks, including [] to clear all bookmarks. + +If this policy is disabled or not configured, the individual bookmark policies are used. + +If this policy is enabled along with individual bookmarks, those bookmarks will not be added. + +This policy has no effect on Managed Bookmarks. + +For detailed information on the JSON, see https://github.com/mozilla/policy-templates/blob/master/README.md#bookmarks. 受管理的书签 若启用此原则,您可以使用 JSON 文件来指定受管理的书签。 diff --git a/windows/zh-TW/firefox.adml b/windows/zh-TW/firefox.adml index 4c4e01c..80437bf 100644 --- a/windows/zh-TW/firefox.adml +++ b/windows/zh-TW/firefox.adml @@ -836,6 +836,16 @@ Mozilla 建議您不要停用 Telemetry。透過 Telemetry 收集到的資訊可 若停用或不設定此原則,則不修改偏好設定。 若需要建立原則的詳細資訊,請參考 https://github.com/mozilla/policy-templates/blob/master/README.md#preferences。 + Bookmarks (JSON) + If this policy is enabled, you can use JSON to configure bookmarks, including [] to clear all bookmarks. + +If this policy is disabled or not configured, the individual bookmark policies are used. + +If this policy is enabled along with individual bookmarks, those bookmarks will not be added. + +This policy has no effect on Managed Bookmarks. + +For detailed information on the JSON, see https://github.com/mozilla/policy-templates/blob/master/README.md#bookmarks. 受管理的書籤 若啟用此原則,您可以使用 JSON 檔案來指定受管理的書籤。 -- 2.34.1