public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Than Ngo <than@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/chromium] epel9-next: add correct platform in user-agent
Date: Fri, 07 Aug 2026 16:06:06 GMT	[thread overview]
Message-ID: <178611876609.1.13874369495667775067.rpms-chromium-ed7a0e21e485@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel9-next
Commit : ed7a0e21e485b4c6ad08e184595116b92862b363
Author : Than Ngo <than@redhat.com>
Date   : 2024-02-26T15:35:33+01:00
Stats  : +3/-20 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/ed7a0e21e485b4c6ad08e184595116b92862b363?branch=epel9-next

Log:
add correct platform in user-agent

---
diff --git a/chromium-101.0.4951.41-fedora-user-agent.patch b/chromium-101.0.4951.41-fedora-user-agent.patch
deleted file mode 100644
index a328425..0000000
--- a/chromium-101.0.4951.41-fedora-user-agent.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up chromium-101.0.4951.41/content/common/user_agent.cc.fedora-user-agent chromium-101.0.4951.41/content/common/user_agent.cc
---- chromium-101.0.4951.41/content/common/user_agent.cc.fedora-user-agent	2022-04-27 20:03:36.913767022 +0000
-+++ chromium-101.0.4951.41/content/common/user_agent.cc	2022-04-27 20:04:30.591942420 +0000
-@@ -34,7 +34,7 @@ std::string GetUserAgentPlatform() {
- #elif BUILDFLAG(IS_MAC)
-   return "Macintosh; ";
- #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
--  return "X11; ";  // strange, but that's what Firefox uses
-+  return "X11; Fedora; ";  // strange, but that's what Firefox uses
- #elif BUILDFLAG(IS_ANDROID)
-   return "Linux; ";
- #elif BUILDFLAG(IS_FUCHSIA)

diff --git a/chromium.spec b/chromium.spec
index d96191c..f31284b 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -327,9 +327,6 @@ Patch8: chromium-117-widevine-other-locations.patch
 # Tell bootstrap.py to always use the version of Python we specify
 Patch11: chromium-93.0.4577.63-py3-bootstrap.patch
 
-# Add "Fedora" to the user agent string
-Patch12: chromium-101.0.4951.41-fedora-user-agent.patch
-
 # debian patch, disable font-test 
 Patch20: chromium-disable-font-tests.patch
 
@@ -1056,11 +1053,6 @@ udev.
 %patch -P8 -p1 -b .widevine-other-locations
 %patch -P11 -p1 -b .py3
 
-# Fedora branded user agent
-%if 0%{?fedora}
-%patch -P12 -p1 -b .fedora-user-agent
-%endif
-
 %patch -P20 -p1 -b .disable-font-test
 
 %if ! %{bundleminizip}
@@ -1227,6 +1219,9 @@ sed -i 's/getenv("CHROME_VERSION_EXTRA")/"Fedora Project"/' chrome/common/channe
 # Fix hardcoded path in remoting code
 sed -i 's|/opt/google/chrome-remote-desktop|%{crd_path}|g' remoting/host/setup/daemon_controller_delegate_linux.cc
 
+# bz#2265957, add correct platform
+sed -i "s/Linux x86_64/Linux %{_arch}/" content/common/user_agent.cc
+ 
 %build
 # utf8 issue on epel7, Internal parsing error 'ascii' codec can't
 # decode byte 0xe2 in position 474: ordinal not in range(128)

                 reply	other threads:[~2026-08-07 16:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178611876609.1.13874369495667775067.rpms-chromium-ed7a0e21e485@fedoraproject.org \
    --to=than@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox