mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-20 05:30:25 +02:00
2b34aeea5d
Signed-off-by: Leah Rowe <leah@libreboot.org>
59 lines
2.0 KiB
Diff
59 lines
2.0 KiB
Diff
From 828d539224f49b9fa5084b14b5aa0c7a6f7ce236 Mon Sep 17 00:00:00 2001
|
|
From: LibreWolf Developers <noreply@librewolf.net>
|
|
Date: Sun, 6 Sep 2026 10:12:44 +0100
|
|
Subject: [PATCH 49/52] vendor-name.patch
|
|
|
|
---
|
|
toolkit/components/extensions/parent/ext-runtime.js | 10 +++++++++-
|
|
toolkit/xre/nsAppRunner.cpp | 6 ------
|
|
2 files changed, 9 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/toolkit/components/extensions/parent/ext-runtime.js b/toolkit/components/extensions/parent/ext-runtime.js
|
|
index 22f03e99a871..875fca7be972 100644
|
|
--- a/toolkit/components/extensions/parent/ext-runtime.js
|
|
+++ b/toolkit/components/extensions/parent/ext-runtime.js
|
|
@@ -334,7 +334,15 @@ this.runtime = class extends ExtensionAPIPersistent {
|
|
|
|
getBrowserInfo: function () {
|
|
const { name, vendor, version, appBuildID } = Services.appinfo;
|
|
- const info = { name, vendor, version, buildID: appBuildID };
|
|
+ const useFirefoxDefaults = Services.prefs.getBoolPref(
|
|
+ "librewolf.getBrowserInfo.setToFirefoxDefaults",
|
|
+ true
|
|
+ );
|
|
+
|
|
+ const info = useFirefoxDefaults
|
|
+ ? { name: "Firefox", vendor: "Mozilla", version, buildID: appBuildID }
|
|
+ : { name, vendor, version, buildID: appBuildID };
|
|
+
|
|
return Promise.resolve(info);
|
|
},
|
|
|
|
diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
|
|
index cd9485c34497..140c31d08353 100644
|
|
--- a/toolkit/xre/nsAppRunner.cpp
|
|
+++ b/toolkit/xre/nsAppRunner.cpp
|
|
@@ -2257,9 +2257,6 @@ static void DumpHelp() {
|
|
}
|
|
|
|
static inline void DumpVersion() {
|
|
- if (gAppData->vendor && *gAppData->vendor) {
|
|
- printf("%s ", (const char*)gAppData->vendor);
|
|
- }
|
|
printf("%s ", (const char*)gAppData->name);
|
|
|
|
// Use the displayed version
|
|
@@ -2273,9 +2270,6 @@ static inline void DumpVersion() {
|
|
}
|
|
|
|
static inline void DumpFullVersion() {
|
|
- if (gAppData->vendor && *gAppData->vendor) {
|
|
- printf("%s ", (const char*)gAppData->vendor);
|
|
- }
|
|
printf("%s ", (const char*)gAppData->name);
|
|
|
|
// Use the displayed version
|
|
--
|
|
2.47.3
|
|
|