From b0a3c5fa0c4d42793e0d4256558ebd814b33f7fb 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/webkitgtk4/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 c863da610a..3862965dc4 100644 --- a/Source/WebCore/platform/glib/UserAgentGLib.cpp +++ b/Source/WebCore/platform/glib/UserAgentGLib.cpp @@ -88,6 +88,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