From 0e587b07ec3b14fee39124a29f89147d5484f065 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 11 Nov 2026 18:54:07 +0000 Subject: [PATCH 1/2] feat: improvements to bookmarks, search engines --- .../reference/policies/ManagedBookmarks.mdx | 75 ++++++++++++++++--- .../docs/reference/policies/SearchEngines.mdx | 31 +++++++- 2 files changed, 94 insertions(+), 12 deletions(-) diff --git a/src/content/docs/reference/policies/ManagedBookmarks.mdx b/src/content/docs/reference/policies/ManagedBookmarks.mdx index f786c5b..2e8f8ae 100644 --- a/src/content/docs/reference/policies/ManagedBookmarks.mdx +++ b/src/content/docs/reference/policies/ManagedBookmarks.mdx @@ -28,6 +28,60 @@ The first entry in the list names the toolbar folder, and the entries after it a +### Adding a list of bookmarks + +This example adds a folder to the bookmarks toolbar. +There's no `toplevel_name` entry, so Firefox names the folder **Managed bookmarks**. +By default, Firefox only shows the toolbar on the new tab page, so [`DisplayBookmarksToolbar`](/reference/policies/displaybookmarkstoolbar/) is set to `always`: + +```json +{ + "policies": { + "ManagedBookmarks": [ + { "name": "Intranet", "url": "https://intranet.example.com" }, + { "name": "IT help desk", "url": "https://help.example.com" }, + { "name": "Expenses", "url": "https://expenses.example.com" } + ], + "DisplayBookmarksToolbar": "always" + } +} +``` + +### Organizing bookmarks into folders + +The `toplevel_name` entry sets the name of the toolbar folder. +An entry with `children` is a folder, and folders can contain other folders. +Firefox skips bookmarks without a `name`, and shows folders without a `name` as **Subfolder**: + +```json +{ + "policies": { + "ManagedBookmarks": [ + { "toplevel_name": "Example Corp" }, + { "name": "Intranet", "url": "https://intranet.example.com" }, + { + "name": "HR", + "children": [ + { "name": "Benefits", "url": "https://hr.example.com/benefits" }, + { "name": "Time off", "url": "https://hr.example.com/time-off" } + ] + }, + { + "name": "Engineering", + "children": [ + { "name": "Code review", "url": "https://code.example.com" }, + { + "name": "Runbooks", + "children": [{ "name": "On-call", "url": "https://wiki.example.com/on-call" }] + } + ] + } + ], + "DisplayBookmarksToolbar": "always" + } +} +``` + ## Windows (GPO) Software\Policies\Mozilla\Firefox\ManagedBookmarks (REG_MULTI_SZ) = @@ -67,15 +121,16 @@ Software\Policies\Mozilla\Firefox\ManagedBookmarks (REG_MULTI_SZ) = toplevel_name My managed bookmarks folder - - url - example.com - name - Example - favicon - https://example.com/favicon.ico - - + + + url + example.com + name + Example + favicon + https://example.com/favicon.ico + + name Mozilla links children @@ -84,7 +139,7 @@ Software\Policies\Mozilla\Firefox\ManagedBookmarks (REG_MULTI_SZ) = url https://mozilla.org name - Mozilla + Mozilla.org url diff --git a/src/content/docs/reference/policies/SearchEngines.mdx b/src/content/docs/reference/policies/SearchEngines.mdx index c1d0ba4..0c207ae 100644 --- a/src/content/docs/reference/policies/SearchEngines.mdx +++ b/src/content/docs/reference/policies/SearchEngines.mdx @@ -10,7 +10,8 @@ Configure search engines in Firefox. `SearchEngines` accepts an object with one or more of the following keys: -- `Add` (array of objects): Add new search engines. Each entry accepts: +- `Add` (array of objects): Add new search engines. + Each entry accepts: - `Name` (**required**): the name of the search engine. - `URLTemplate` (**required**): the search URL with `{searchTerms}` to substitute for the search term. - `Method`: either [GET](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/GET) or [POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/POST). @@ -21,7 +22,7 @@ Configure search engines in Firefox. - `SuggestURLTemplate`: a search suggestions URL with `{searchTerms}` to substitute for the search term. - `Encoding`: the query charset for the engine. Defaults to `UTF-8`. Although there are five engines available in the ADMX template, there is no maximum number that can be specified — to add more in the ADMX template, duplicate the XML. -- `Default` (string): set the default search engine. +- `Default` (string): set the default search engine by name. - `PreventInstalls` (boolean): prevent installing search engines from webpages. - `Remove` (array of strings): hide built-in search engines by name. @@ -29,6 +30,32 @@ Configure search engines in Firefox. +### Adding an internal search engine as the default + +This example adds a search engine for an intranet and makes it the default. +Firefox replaces the `{searchTerms}` placeholder in `URLTemplate` with whatever the user searches for. +With `Alias`, users can type `intranet` and their search terms in the address bar to search with this engine: + +```json +{ + "policies": { + "SearchEngines": { + "Add": [ + { + "Name": "Intranet", + "URLTemplate": "https://intranet.example.com/search?q={searchTerms}", + "IconURL": "https://intranet.example.com/favicon.ico", + "Alias": "intranet" + } + ], + "Default": "Intranet" + } + } +} +``` + +Users can choose a different engine at any point, but changing the `Default` value will update the default engine again. + ## Windows (GPO) ``` From 62b1f45a0fda57ed2dba9fda69d0a12a5d4ffb01 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 11 Nov 2026 19:01:29 +0000 Subject: [PATCH 2/2] feat: improvements to bookmarks, search engines --- src/content/docs/reference/policies/ManagedBookmarks.mdx | 4 ++-- src/content/docs/reference/policies/SearchEngines.mdx | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/content/docs/reference/policies/ManagedBookmarks.mdx b/src/content/docs/reference/policies/ManagedBookmarks.mdx index 2e8f8ae..799c72e 100644 --- a/src/content/docs/reference/policies/ManagedBookmarks.mdx +++ b/src/content/docs/reference/policies/ManagedBookmarks.mdx @@ -17,6 +17,7 @@ The first entry in the list names the toolbar folder, and the entries after it a - `toplevel_name`: The name of the folder button added to the bookmarks toolbar. Only used in the first entry. - `name`: The name shown for a bookmark or folder. + Firefox skips bookmarks without a `name`, and shows folders without a `name` as **Subfolder**. - `url`: The address the bookmark opens. A `javascript:` URL creates a bookmarklet. - `favicon`: The URL of an icon to show for the bookmark. @@ -50,8 +51,7 @@ By default, Firefox only shows the toolbar on the new tab page, so [`DisplayBook ### Organizing bookmarks into folders The `toplevel_name` entry sets the name of the toolbar folder. -An entry with `children` is a folder, and folders can contain other folders. -Firefox skips bookmarks without a `name`, and shows folders without a `name` as **Subfolder**: +An entry with `children` is a folder, and folders can contain other folders: ```json { diff --git a/src/content/docs/reference/policies/SearchEngines.mdx b/src/content/docs/reference/policies/SearchEngines.mdx index 0c207ae..ca7f8bc 100644 --- a/src/content/docs/reference/policies/SearchEngines.mdx +++ b/src/content/docs/reference/policies/SearchEngines.mdx @@ -34,7 +34,7 @@ Configure search engines in Firefox. This example adds a search engine for an intranet and makes it the default. Firefox replaces the `{searchTerms}` placeholder in `URLTemplate` with whatever the user searches for. -With `Alias`, users can type `intranet` and their search terms in the address bar to search with this engine: +With `Alias`, users can type `intranet`, followed by a space and their search terms, in the address bar to search with this engine, for example `intranet holiday policy`: ```json { @@ -54,7 +54,8 @@ With `Alias`, users can type `intranet` and their search terms in the address ba } ``` -Users can choose a different engine at any point, but changing the `Default` value will update the default engine again. +Firefox sets this engine as the default when the policy is first applied and whenever the `Default` value changes. +Users can choose a different default engine between these changes. ## Windows (GPO)