precz / wpaana

Web page as an native application.
GNU General Public License v3.0
23 stars 3 forks source link

User-Agent string does not indicate Firefox compatibility #3

Closed timretout closed 5 years ago

timretout commented 5 years ago

The wpaana user agent out of the box is this (on my machine):

Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 wpaana/0.1

This does not mention Firefox, so causes lots of sites which do user-agent sniffing to change their behaviour. For example, google.com looks completely different.

There is a compatibility setting to address this, which could be added to prefs.js:

pref("general.useragent.compatMode.firefox", true);

This sets my UA string to:

Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0 wpaana/0.1

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox#General_form