From: Michael Catanzaro Date: Fri, 27 Feb 2015 02:38:13 +0000 (-0500) Subject: user-agent-branding X-Git-Tag: archive/raspbian/2.24.2-1+rpi1^2~1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=775546763e7cf96a1bcfffc3d6bfca5d5726d6c9;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 37bed5f194..5edfa7bfac 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()); }