user-agent-branding
authorMichael Catanzaro <mcatanzaro@gnome.org>
Fri, 27 Feb 2015 02:38:13 +0000 (21:38 -0500)
committerJeremy Bicha <jbicha@debian.org>
Tue, 30 Jan 2018 01:54:00 +0000 (01:54 +0000)
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

index c863da610a3742778583e30774ec727dbdfa6af8..3862965dc44f3d35808ff1b022ef73a1bcc0d723 100644 (file)
@@ -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());
     }