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>
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
From 9410b040ecde531f6c10992f1f64af126b510ed5 Mon Sep 17 00:00:00 2001
|
|
From: LibreWolf Developers <noreply@librewolf.net>
|
|
Date: Sun, 6 Sep 2026 10:10:16 +0100
|
|
Subject: [PATCH 18/52] link-preview.patch
|
|
|
|
---
|
|
.../preferences/config/tabs-browsing.mjs | 14 ++++++--------
|
|
1 file changed, 6 insertions(+), 8 deletions(-)
|
|
|
|
diff --git a/browser/components/preferences/config/tabs-browsing.mjs b/browser/components/preferences/config/tabs-browsing.mjs
|
|
index 50fb55329067..7d4b5bec8b53 100644
|
|
--- a/browser/components/preferences/config/tabs-browsing.mjs
|
|
+++ b/browser/components/preferences/config/tabs-browsing.mjs
|
|
@@ -440,22 +440,20 @@ Preferences.addSetting({
|
|
Preferences.addSetting({
|
|
id: "linkPreviewEnabled",
|
|
pref: "browser.ml.linkPreview.enabled",
|
|
+});
|
|
+Preferences.addSetting({
|
|
+ id: "linkPreviewKeyPoints",
|
|
+ pref: "browser.ml.linkPreview.optin",
|
|
deps: ["aiControlDefault", "aiControlLinkPreviews"],
|
|
visible: ({ aiControlDefault, aiControlLinkPreviews }) => {
|
|
return (
|
|
window.canShowAiFeature(aiControlLinkPreviews, aiControlDefault) &&
|
|
+ // LinkPreview.canShowKeyPoints depends on the global genai pref.
|
|
// @ts-ignore bug 1996860
|
|
- lazy.LinkPreview.canShowPreferences
|
|
+ lazy.LinkPreview.canShowKeyPoints
|
|
);
|
|
},
|
|
});
|
|
-Preferences.addSetting({
|
|
- id: "linkPreviewKeyPoints",
|
|
- pref: "browser.ml.linkPreview.optin",
|
|
- // LinkPreview.canShowKeyPoints depends on the global genai pref.
|
|
- // @ts-ignore bug 1996860
|
|
- visible: () => lazy.LinkPreview.canShowKeyPoints,
|
|
-});
|
|
Preferences.addSetting({
|
|
id: "linkPreviewLongPress",
|
|
pref: "browser.ml.linkPreview.longPress",
|
|
--
|
|
2.47.3
|
|
|