From: Michael Catanzaro Date: Fri, 27 Feb 2015 02:38:13 +0000 (-0500) Subject: user-agent-branding X-Git-Tag: archive/raspbian/2.26.2-1_deb10+1+rpi1^2~1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=81fc34287666b33e1f396b2734a3e04858070328;p=webkit2gtk.git 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 --- diff --git a/Source/WebCore/platform/glib/UserAgentGLib.cpp b/Source/WebCore/platform/glib/UserAgentGLib.cpp index 4a1bc652d4..0e97c5514f 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()); }