Ok, here is the new patch attached.
I'm happy for this version to be reviewed and, I hope, merged. The difference versus the previous patch is that it reintroduces and expands the disablement options via GenerativeAI, thus:
+ "GenerativeAI": {
+ "Enabled": false,
+ "Chatbot": false,
+ "LinkPreviews": false,
+ "TabGroups": false,
+ "Locked": true
+ },
It still introduces the individual toggles via AIControls as in
www/mozilla-firefox, turning everything off and locking the toggles as
in the Firefox port, however:
I re-added the GenerativeAI disablement config because the JustTheBrowser project does both:
https://raw.githubusercontent.com/corbindavenport/just-the-browser/8054bf40874b5fc5e51cdb1af2a188cd5c9e2426/firefox/policies.jsonJust The Browser does the same as OpenBSD's firefox port, and was in fact the basis for that setting being introduced recently in OpenBSD's firefox port, disabling the AI via individual toggle options. However, it still also disables via the GenerativeAI toggle, which OpenBSD's firefox port removed in favour of just disabling via AIControls.
Therefore, this is now a slight divergence in the LibreWolf port versus the Firefox port. The Firefox port currently disables only via AIControls, whereas my LibreWolf port does, with this patch, disable it via both AIControls and GenerativeAI toggles.
This is probably excessive, but I agree with the policy that we should not enable AI in the browser. Doing so needlessly multiplies the amount of electricity your web browser uses, frivolously for a feature that most people don't use. If someone wants to use an AI, they always can, but there's no reason why it should be integrated directly into the browser.
Am 29.08.26 um 15:29 schrieb Leah Rowe:
don't merge it. i'm going to make another change to the patch, and re-submit.Am 29.08.26 um 14:21 schrieb Leah Rowe:Hi everyone,I hereby announce that I am resuming my regular work maintaining the LibreWolf port in OpenBSD. I announced two months ago that I was taking a brief hiatus from the work, and I left yaydn exclusively in charge of maintaining the port.I would like to continue working with yaydn, as this person has done stellar work while I was away, so maybe we can work something out.Anyway:Here is a patch (sorry, I still haven't learned CVS. I patched the GitHub mirror).It fixes the following:* Brings AI policy in line with www/mozilla-firefox. LibreWolf already turned off AI the same way OpenBSD's ff port does, but the OpenBSD ff also locked those toggles. I've locked them accordingly in the LibreWolf port, as applied in the ff port.* Minor update to mozconfig (MOZ_APP_REMOTINGNAME is now properly exported as per upstream policy)* Redundant WANTLIB entries removed from the Makefile I say again:I'm back. I shall continue maintaining this port full-time now. I'm early. I said I'd be back in October, but that I might be back in late August or so. The "might" clause has been executed :)
-- Company director, Minifree Ltd Registered in England, No. 9361826 | VAT No. GB202190462 Registered Office: 19 Hilton Road, Canvey Island, Essex SS8 9QA, UK
From 4512b917e53c6d32466b15a14c1949fb34db4c57 Mon Sep 17 00:00:00 2001 From: Leah Rowe <[email protected]> Date: Sat, 29 Aug 2026 13:43:03 +0100 Subject: [PATCH 1/1] Update LibreWolf policy and mozconfig Recent updates to LibreWolf did not incorporate the new disablement policy regarding AI. It should be noted that LibreWolf upstream already disabled these the same way, but did not lock these settings the same way. I have made OpenBSD's LibreWolf port configure AI the same way as the FireFox port (turn it all off and lock the toggles). A minor change to mozconfig has also been made, exporting the MOZ_APP_REMOTINGNAME string correctly. This change is imported from upstream's newest mozconfig. I also removed two unnecessary WANTLIB entries. Xtst and freebl3 are not used by www/mozilla-firefox. I'm not sure why freebl3 was added by yaydn (it was not explained), so I've simply removed it. The firefox port already removed Xtst several updates ago. As the current LibreWolf version in OpenBSD is up to date, this patch is therefore a revision only. REVISION has been updated in the Makefile accordingly. Extra note regarding AI: GenerativeAI setting still retained, and expanded based on the policy config shown by the justthebrowser project. The individual AIControls settings from www/mozilla-firefox are also present, adapted for LibreWolf. JustTheBrowser disables AI in both ways: via GenerativeAI and AIControls toggle settings. Signed-off-by: Leah Rowe <[email protected]> --- www/librewolf/Makefile | 3 +- www/librewolf/files/mozconfig-openbsd | 4 + www/librewolf/patches/patch-lw_policies_json | 83 +++++++++++++++++--- 3 files changed, 80 insertions(+), 10 deletions(-) diff --git a/www/librewolf/Makefile b/www/librewolf/Makefile index 9a215e1e3ab..7ad98e9ae31 100644 --- a/www/librewolf/Makefile +++ b/www/librewolf/Makefile @@ -15,6 +15,7 @@ ONLY_FOR_ARCHS = amd64 aarch64 riscv64 # librewolf-149.0.2-2 (upstream) becomes librewolf-149.0.2pl2 (patch level 2) MOZILLA_DIST_VERSION = 154.0.1-3 MOZILLA_VERSION = ${MOZILLA_DIST_VERSION:C/-([0-9]+)$/pl\1/} +REVISION = 0 MOZILLA_PROJECT = librewolf MOZILLA_CODENAME = browser @@ -59,7 +60,7 @@ BUILD_DEPENDS += devel/py-setuptools RUN_DEPENDS = graphics/ffmpeg # uses pledge() -WANTLIB += Xrandr Xtst freebl3 +WANTLIB += Xrandr CONFIGURE_STYLE = simple CONFIGURE_SCRIPT = ${MODPY_BIN} ${WRKSRC}/configure.py diff --git a/www/librewolf/files/mozconfig-openbsd b/www/librewolf/files/mozconfig-openbsd index 2ef2958106d..eb5b8aebe8f 100644 --- a/www/librewolf/files/mozconfig-openbsd +++ b/www/librewolf/files/mozconfig-openbsd @@ -45,8 +45,12 @@ ac_add_options --with-l10n-base=$PWD/lw/l10n # OpenBSD www/firefox doesn't use this, so we won't. Disabling. # ac_add_options --enable-bootstrap +# upstream does: MOZ_TELEMETRY_REPORTING= # upstream does: MOZ_REQUIRE_SIGNING= # upstream does: MOZILLA_OFFICIAL=1 +# upstream does: export MOZ_APP_REMOTINGNAME=LibreWolf + +export MOZ_APP_REMOTINGNAME=LibreWolf mk_add_options MOZ_CRASHREPORTER=0 mk_add_options MOZ_DATA_REPORTING=0 diff --git a/www/librewolf/patches/patch-lw_policies_json b/www/librewolf/patches/patch-lw_policies_json index f4d54544311..ba045f030c7 100644 --- a/www/librewolf/patches/patch-lw_policies_json +++ b/www/librewolf/patches/patch-lw_policies_json @@ -3,14 +3,79 @@ perhaps send these to librewolf upstream as well Index: lw/policies.json --- lw/policies.json.orig +++ lw/policies.json -@@ -30,6 +30,10 @@ - "DisableSetDesktopBackground": false, - "DisableTelemetry": true, - "DontCheckDefaultBrowser": true, +@@ -1,26 +1,47 @@ + { + "__COMMENT__ More Information": "https://github.com/mozilla/policy-templates/blob/master/README.md", + "policies": { +- "AIControls": { ++ ++ "GenerativeAI": { ++ "Enabled": false, ++ "Chatbot": false, ++ "LinkPreviews": false, ++ "TabGroups": false, ++ "Locked": true ++ }, ++ "AIControls": { ++ "Default": { ++ "Value": "blocked", ++ "Locked": true ++ }, + "Translations": { +- "Value": "available" ++ "Value": "blocked", ++ "Locked": false + }, + "PDFAltText": { +- "Value": "blocked" ++ "Value": "blocked", ++ "Locked": false + }, + "SmartTabGroups": { +- "Value": "blocked" ++ "Value": "blocked", ++ "Locked": true + }, + "LinkPreviewKeyPoints": { +- "Value": "blocked" ++ "Value": "blocked", ++ "Locked": true + }, + "SidebarChatbot": { +- "Value": "blocked" ++ "Value": "blocked", ++ "Locked": true + }, + "SmartWindow": { +- "Value": "blocked" ++ "Value": "blocked", ++ "Locked": true + } +- }, ++ ++ }, ++ ++ + "AppUpdateURL": "https://localhost", + "DisableAppUpdate": true, + "DisableDefaultBrowserAgent": true, +@@ -73,6 +94,7 @@ + "EnablePrompting": true + }, + "NoDefaultBookmarks": true, + "GoToIntranetSiteForSingleWordEntryInAddressBar": true, -+ "GenerativeAI": { -+ "Enabled": false + "OverridePostUpdatePage": "", + "SkipTermsOfUse": true, + "SupportMenu": { +@@ -84,6 +106,11 @@ + "SkipOnboarding": true, + "MoreFromMozilla": false, + "FirefoxLabs": false + }, - "WebsiteFilter": { - "Block": [ - "https://localhost/*" ++ "SearchEngines": { ++ "Remove": [ ++ "Perplexity" ++ ] + } + } + } -- 2.47.3
OpenPGP_0x5C654067D383B1FF.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
