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