From 7b0886d7e7c6d63fc1f7faef442eba62b21c4547 Mon Sep 17 00:00:00 2001 From: Leah Rowe 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. Signed-off-by: Leah Rowe --- www/librewolf/Makefile | 3 +- www/librewolf/files/mozconfig-openbsd | 4 ++ www/librewolf/patches/patch-lw_policies_json | 75 +++++++++++++++++--- 3 files changed, 72 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..2aea6f6bafe 100644 --- a/www/librewolf/patches/patch-lw_policies_json +++ b/www/librewolf/patches/patch-lw_policies_json @@ -3,14 +3,71 @@ 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,39 @@ + { + "__COMMENT__ More Information": "https://github.com/mozilla/policy-templates/blob/master/README.md", + "policies": { +- "AIControls": { ++ "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 +86,7 @@ + "EnablePrompting": true + }, + "NoDefaultBookmarks": true, + "GoToIntranetSiteForSingleWordEntryInAddressBar": true, -+ "GenerativeAI": { -+ "Enabled": false + "OverridePostUpdatePage": "", + "SkipTermsOfUse": true, + "SupportMenu": { +@@ -84,6 +98,11 @@ + "SkipOnboarding": true, + "MoreFromMozilla": false, + "FirefoxLabs": false + }, - "WebsiteFilter": { - "Block": [ - "https://localhost/*" ++ "SearchEngines": { ++ "Remove": [ ++ "Perplexity" ++ ] + } + } + } -- 2.47.3