[Webkit-unassigned] [Bug 199745] [GTK] GitHub breaks on FreeBSD because of "unsupported browser"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 11 21:36:53 PDT 2019


--- Comment #1 from Ting-Wei Lan <lantw44 at gmail.com> ---
In addition to replace FreeBSD with Linux in the user agent, it can also be fixed by putting both FreeBSD and Linux in the user agent.
gsettings set org.gnome.Epiphany.web:/org/gnome/epiphany/web/ user-agent 'Mozilla/5.0 (X11; FreeBSD amd64; Linux amd64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Safari/605.1.15 Epiphany/605.1.15'

It may look unusual, but FreeBSD already does it in its Chromium package. FreeBSD carries more than 700 patches for Chromium because Google doesn't accept patches for *BSD support. I guess it is done by this patch.
$ cat /usr/ports/www/chromium/files/patch-content_common_user__agent.cc 
--- content/common/user_agent.cc.orig   2019-03-11 22:00:58 UTC
+++ content/common/user_agent.cc
@@ -131,6 +131,14 @@ std::string BuildOSCpuInfo(bool include_android_build_
   );  // NOLINT

+#if defined(OS_BSD)
+#if defined(__x86_64__)
+  base::StringAppendF(&os_cpu, "; Linux x86_64");
+  base::StringAppendF(&os_cpu, "; Linux i686");
   return os_cpu;

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190712/8f8b06cf/attachment-0001.html>

More information about the webkit-unassigned mailing list