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 /Makefile.defaults | |
parent | 230aa1736ff7e2aa77a5fc4fce55f5b048f9a9e4 (diff) | |
download | netsurf-6f99d28488c0eb39722079340864563318c7ef6b.tar.gz |
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 'Makefile.defaults')
-rw-r--r-- | Makefile.defaults | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.defaults b/Makefile.defaults index edf491a6f..85be74802 100644 --- a/Makefile.defaults +++ b/Makefile.defaults @@ -101,10 +101,11 @@ NETSURF_USE_UTF8PROC := YES # Valid options: YES, NO NETSURF_STRIP_BINARY := NO -# Template used for constructing the User Agent: string. The first two -# replacements are major/minor version, next is OS. -# Please don't be tempted to mention Mozilla here! Let's let that lie die. -NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s)" +# Template used for constructing the User Agent: string. The first +# replacement is OS, the next two are major/minor version. +# 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. +NETSURF_UA_FORMAT_STRING := "Mozilla/5.0 (%s) NetSurf/%d.%d" # Default home page, if one is not defined by the user. Note that this # option does not apply to the RISC OS version, as it has its own local |