summaryrefslogtreecommitdiffstats
path: root/xpcom/base
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:11:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:11:27 +0000
commitf3bcaf9f88aad2c423ebcd61121562f9834187d4 (patch)
treef22238c29b57707b645a350940e3e9bdf3ce1f5d /xpcom/base
parentAdding debian version 115.7.0esr-1~deb12u1. (diff)
downloadfirefox-esr-f3bcaf9f88aad2c423ebcd61121562f9834187d4.tar.xz
firefox-esr-f3bcaf9f88aad2c423ebcd61121562f9834187d4.zip
Merging upstream version 115.8.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xpcom/base')
-rw-r--r--xpcom/base/nsSystemInfo.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/xpcom/base/nsSystemInfo.cpp b/xpcom/base/nsSystemInfo.cpp
index 9febabaad7..9a389f6938 100644
--- a/xpcom/base/nsSystemInfo.cpp
+++ b/xpcom/base/nsSystemInfo.cpp
@@ -57,6 +57,7 @@
# include <unistd.h>
# include <fstream>
# include "mozilla/Tokenizer.h"
+# include "mozilla/widget/LSBUtils.h"
# include "nsCharSeparatedTokenizer.h"
# include <map>
@@ -1139,6 +1140,14 @@ nsresult nsSystemInfo::Init() {
SetupAndroidInfo(info);
#endif
+#if defined(XP_LINUX) && !defined(ANDROID)
+ nsCString dist, desc, release, codename;
+ if (widget::lsb::GetLSBRelease(dist, desc, release, codename)) {
+ SetPropertyAsACString(u"distro"_ns, dist);
+ SetPropertyAsACString(u"distroVersion"_ns, release);
+ }
+#endif
+
#if defined(XP_LINUX) && defined(MOZ_SANDBOX)
SandboxInfo sandInfo = SandboxInfo::Get();