Bug#883712: webkit2gtk: Add Debian to webkit user agent string

Jeremy Bicha jbicha at debian.org
Wed Dec 6 18:14:52 UTC 2017


Source: webkit2gtk
Version: 2.18.3-1
Severity: wishlist
Tags: patch
X-Debbugs-CC: mcatanzaro at gnome.org

Consider applying the Fedora patch to add Debian to the webkit user
agent string.

Implementation
===========
The patch is at
https://src.fedoraproject.org/rpms/webkitgtk4/blob/master/f/user-agent-branding.patch
and it's accompanied by
-DUSER_AGENT_GTK_DISTRIBUTOR_NAME=\'\\"Fedora\\"\'

Besides Ubuntu, there are a couple other Debian derivatives you might
want to support. See around line 50 in
https://anonscm.debian.org/viewvc/pkg-gnome/desktop/unstable/gnome-software/debian/rules?view=markup

Background
=========
The upstream bug is https://bugs.webkit.org/162611

I talked to Michael Catanzaro which pointed out that it's possible for
some websites to try to sniff for "X11; Linux x86_64" (I think this
would change that snippet to "X11; Debian; Linux x86_64"). He said
that Google used to be one of those websites. webkit can add useragent
quirks for any websites that have that problem once someone notices
the issue and files a bug.

By the way, Epiphany master dropped the optional vendor user agent
extension today that Debian had been using because the webkit user
agent string is already included in Epiphany's user agent.
https://git.gnome.org/browse/epiphany/commit/?id=b8508aa

Thanks,
Jeremy Bicha



More information about the Pkg-webkit-maintainers mailing list