commit 685a2709317c4b8f8d4e174a86256c51d09231d7
parent bea11f8d19a73d3a36f2f475e2b3de0865f6562d
Author: Divan Visagie <me@divanv.com>
Date: Sat, 28 Nov 2026 01:46:33 +0100
firefox: a clean start, without default bookmarks, shortcuts, stories, or the VPN and account buttons (ADR-0018)
What the user asked for: a Firefox that is clean out of the box, as they had made it by hand on a test
machine: the new tab page just the DuckDuckGo search and the Firefox logo, no VPN and account buttons in the
toolbar, and none of the default bookmarks. Nothing for a new user to remove.
What changed, all in Firefox's policy file (/usr/lib64/firefox/distribution/policies.json):
- NoDefaultBookmarks: a fresh profile had 67 bookmarks (Fedora Docs, Fedora Magazine, ...); it now has 0.
- FirefoxHome: no shortcuts (top sites), sponsored tiles, highlights, Pocket, stories or snippets; the
search box stays.
- The default toolbar layout: browser.uiCustomization.state, taken from the layout the user's own profile
ended on (no VPN button, no account button, tabs in the side bar), as a default value.
The constraint the user stated, and how it is met: defaults must not override what a person sets up, and
updates must not undo their choices. I read Firefox's policy source and then tried it, rather than assume:
the Preferences and FirefoxHome policies set defaults (a user's value sits on top); the default search
engine is applied once per change of its value, so a later choice sticks; no-default-bookmarks is only about
a new profile; and the toolbar default loses to the person's own layout (tried: the account button put
back by the user, Firefox restarted, it stayed). One policy I had added is NOT included: DisableFirefoxAccounts
locks the Sync setting off for good, which is exactly the kind of choice taken away, and it did not even hide
the button.
Measured on a fresh profile in the image, before and after (read back from a running Firefox, not from the
policy names): bookmarks 67 to 0; account button shown to absent; stories on to off; Sync still enabled.
Not done here, and why: the new tab widgets (clocks, timer, lists, weather). Firefox works out their defaults
itself after policies and pref files have run, so no unlocked default can hold them off. That is the next
commit, done differently. The VPN button was already absent in the test container (it is region-gated), so the
layout covers it for machines where it appears; that part could not be shown here.
Diffstat:
2 files changed, 53 insertions(+), 6 deletions(-)
diff --git a/docs/adr/0018-firefox-is-the-browser-and-themed-to-patina.md b/docs/adr/0018-firefox-is-the-browser-and-themed-to-patina.md
@@ -31,6 +31,23 @@ system-wide place for it.
userChrome.css; Firefox's own start page (`about:home`) in place of Fedora's, and no Fedora tile pinned on
the new-tab page (Fedora's `firefox-redhat-default-prefs.js` sets both); vertical tabs
(`sidebar.verticalTabs`); and DuckDuckGo as the default search engine (`SearchEngines.Default`).
+- **A clean start** (2026-11-28, the state the user had made by hand on a test machine): no default
+ bookmarks (`NoDefaultBookmarks`: Fedora's 67 are not made in a new profile); a new tab page that is the
+ search box and the logo, with no shortcuts, highlights, stories or sponsored tiles (`FirefoxHome`); and
+ a toolbar without the VPN button and the account button, as a default toolbar layout
+ (`browser.uiCustomization.state`, the layout the user ended on, with `ipprotection-button` already in
+ its "seen" list so Firefox does not add it back).
+- **Nothing here takes a choice away from the person, and an update never changes one.** Checked in
+ Firefox's own policy source, then by running it:
+ - the `Preferences` and `FirefoxHome` policies set defaults, which a user's own value sits on top of;
+ - `SearchEngines.Default` runs once per change of its value (`runOncePerModification`), so a search
+ engine chosen later survives restarts and updates (changing that value in this file would apply
+ it once more, so it is left alone);
+ - `NoDefaultBookmarks` is only about a new profile's first start;
+ - **`DisableFirefoxAccounts` is not used:** it locks `identity.fxaccounts.enabled` off, so Sync could never
+ be turned on, and it did not hide the toolbar button anyway;
+ - the default toolbar layout loses to the person's own: with the account button put back by the user and
+ Firefox restarted, it stayed.
- The CSS is a copy of patina-browser-themes' file at the commit named in its header; that
repository is the source.
diff --git a/linux/system/usr/lib64/firefox/distribution/policies.json b/linux/system/usr/lib64/firefox/distribution/policies.json
@@ -1,14 +1,44 @@
{
"policies": {
"Preferences": {
- "toolkit.legacyUserProfileCustomizations.stylesheets": { "Value": true, "Status": "default" },
- "browser.startup.homepage": { "Value": "about:home", "Status": "default" },
- "browser.newtabpage.pinned": { "Value": "", "Status": "default" },
- "sidebar.revamp": { "Value": true, "Status": "default" },
- "sidebar.verticalTabs": { "Value": true, "Status": "default" }
+ "toolkit.legacyUserProfileCustomizations.stylesheets": {
+ "Value": true,
+ "Status": "default"
+ },
+ "browser.startup.homepage": {
+ "Value": "about:home",
+ "Status": "default"
+ },
+ "browser.newtabpage.pinned": {
+ "Value": "",
+ "Status": "default"
+ },
+ "sidebar.revamp": {
+ "Value": true,
+ "Status": "default"
+ },
+ "sidebar.verticalTabs": {
+ "Value": true,
+ "Status": "default"
+ },
+ "browser.uiCustomization.state": {
+ "Value": "{\"placements\":{\"widget-overflow-fixed-list\":[],\"unified-extensions-area\":[],\"nav-bar\":[\"sidebar-button\",\"back-button\",\"forward-button\",\"stop-reload-button\",\"customizableui-special-spring1\",\"vertical-spacer\",\"urlbar-container\",\"customizableui-special-spring2\",\"downloads-button\",\"reset-pbm-toolbar-button\",\"unified-extensions-button\",\"alltabs-button\",\"smartwindow-group-tabs-button\",\"ai-window-toggle\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[],\"vertical-tabs\":[\"tabbrowser-tabs\"],\"PersonalToolbar\":[\"personal-bookmarks\"]},\"seen\":[\"reset-pbm-toolbar-button\",\"smartwindow-group-tabs-button\",\"ai-window-toggle\",\"developer-button\",\"screenshot-button\",\"ipprotection-button\"],\"dirtyAreaCache\":[\"nav-bar\",\"TabsToolbar\",\"vertical-tabs\",\"toolbar-menubar\",\"PersonalToolbar\"],\"currentVersion\":28,\"newElementCount\":6}",
+ "Status": "default"
+ }
},
"SearchEngines": {
"Default": "DuckDuckGo"
- }
+ },
+ "FirefoxHome": {
+ "Search": true,
+ "TopSites": false,
+ "SponsoredTopSites": false,
+ "Highlights": false,
+ "Pocket": false,
+ "Stories": false,
+ "SponsoredPocket": false,
+ "Snippets": false
+ },
+ "NoDefaultBookmarks": true
}
}