diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2022-05-21 16:30:25 +0100 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2022-05-27 21:47:02 +0100 |
commit | 6f99d28488c0eb39722079340864563318c7ef6b (patch) | |
tree | 509bf4c51c7f2ae6061515b3dda94410e359aa37 /docs | |
parent | 230aa1736ff7e2aa77a5fc4fce55f5b048f9a9e4 (diff) | |
download | netsurf-6f99d28488c0eb39722079340864563318c7ef6b.tar.gz netsurf-6f99d28488c0eb39722079340864563318c7ef6b.tar.bz2 |
UA: align with compat spec
See: https://compat.spec.whatwg.org/#ua-string-section
Force desktop sites on Linux by claiming to be running under X11
(Linux is otherwise considered a mobile OS).
Diffstat (limited to 'docs')
-rw-r--r-- | docs/PACKAGING-GTK | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/PACKAGING-GTK b/docs/PACKAGING-GTK index 4eab25b96..b81bc6162 100644 --- a/docs/PACKAGING-GTK +++ b/docs/PACKAGING-GTK @@ -64,18 +64,19 @@ =================== You may also want to change NetSurf's user agent string to include the - name of your distribution. The user agent string is build by a function + name of your distribution. The user agent string is built by a function kept in utils/useragent.c - you'll want to change the macro called NETSURF_UA_FORMAT_STRING. It's processed via sprintf, so keep that in - mind when changing it. The first two printf parameters are major and minor - version numbers, the second two are OS name (uname -s) and architecture - (uname -m). You might want change this to something like: + mind when changing it. The first format parameter is the OS name (uname -s) + and the remainder are major and minor version numbers. You might want + to change this to something like: - "NetSurf/%d.%d (%s; %s; Debian GNU/Linux)" + "Mozilla/5.0 (%s; Debian GNU/Linux) NetSurf/%d.%d" - or similar. Please don't be tempted to mention Mozilla or similar - let's - let that lie die. + or similar. + Note that the "Mozilla/5.0" prefix is a requirement to enable modern + web standards on many websites. It should not be removed or modified. Home page URL =============== |