user-agent-branding
authorMichael Catanzaro <mcatanzaro@gnome.org>
Fri, 27 Feb 2015 02:38:13 +0000 (21:38 -0500)
committerAlberto Garcia <berto@igalia.com>
Mon, 16 Mar 2020 14:25:01 +0000 (14:25 +0000)
Add optional distributor string to user agent

https://bugs.webkit.org/show_bug.cgi?id=162611
https://src.fedoraproject.org/rpms/webkit2gtk3/blob/master/f/user-agent-branding.patch

Gbp-Pq: Name user-agent-branding.patch

Source/WebCore/platform/glib/UserAgentGLib.cpp

index 2fa2974ef72c8b689fb1d09bbc3e8ae4208933a3..62a30a518cf8b705b8564e2be56919733870aafc 100644 (file)
@@ -89,6 +89,9 @@ static String buildUserAgentString(const UserAgentQuirks& quirks)
     else {
         uaString.append(platformForUAString());
         uaString.appendLiteral("; ");
+#if defined(USER_AGENT_GTK_DISTRIBUTOR_NAME)
+        uaString.appendLiteral(USER_AGENT_GTK_DISTRIBUTOR_NAME "; ");
+#endif
         uaString.append(platformVersionForUAString());
     }