mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-20 21:50:21 +02:00
2b34aeea5d
Signed-off-by: Leah Rowe <leah@libreboot.org>
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From 045dddc201c0d52abccbbd47d7b69273a72abf4c Mon Sep 17 00:00:00 2001
|
|
From: LibreWolf Developers <noreply@librewolf.net>
|
|
Date: Sun, 6 Sep 2026 10:10:59 +0100
|
|
Subject: [PATCH 28/52] remove-language-packs.patch
|
|
|
|
---
|
|
browser/components/BrowserGlue.sys.mjs | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/browser/components/BrowserGlue.sys.mjs b/browser/components/BrowserGlue.sys.mjs
|
|
index 6339f3df60ab..202d238d56b9 100644
|
|
--- a/browser/components/BrowserGlue.sys.mjs
|
|
+++ b/browser/components/BrowserGlue.sys.mjs
|
|
@@ -403,6 +403,16 @@ BrowserGlue.prototype = {
|
|
|
|
// handle any UI migration
|
|
this._migrateUI();
|
|
+
|
|
+ const removeLangpacks = async () => {
|
|
+ for (const addon of await lazy.AddonManager.getAddonsByTypes(["locale"])) {
|
|
+ await addon.uninstall();
|
|
+ }
|
|
+ };
|
|
+
|
|
+ removeLangpacks().catch(err => {
|
|
+ console.error("Could not remove langpacks", err);
|
|
+ });
|
|
|
|
if (!Services.prefs.prefHasUserValue(PREF_PDFJS_ISDEFAULT_CACHE_STATE)) {
|
|
lazy.PdfJs.checkIsDefault(this._isNewProfile);
|
|
--
|
|
2.47.3
|
|
|