From 3a6229832c1bba15fa051bc46c1d37783cb43b30 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Thu, 26 Feb 2015 21:38:13 -0500 Subject: [PATCH] user-agent-branding 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/WebCore/platform/glib/UserAgentGLib.cpp b/Source/WebCore/platform/glib/UserAgentGLib.cpp index 7e7c9b55aa..908efa1677 100644 --- a/Source/WebCore/platform/glib/UserAgentGLib.cpp +++ b/Source/WebCore/platform/glib/UserAgentGLib.cpp @@ -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()); } -- 2.30.2