Bug 428630 - User Agent Manager doesn't keep Chrome but keeps Firefox.
Summary: User Agent Manager doesn't keep Chrome but keeps Firefox.
Status: REPORTED
Alias: None
Product: Falkon
Classification: Applications
Component: general (show other bugs)
Version: 3.1.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-03 07:40 UTC by 0BADC0DE
Modified: 2023-01-30 20:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 0BADC0DE 2020-11-03 07:40:34 UTC
SUMMARY
Selecting Chrome UA (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36) is uneffective as the browser reverts back to Safari (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12) as soon as you close the settings window.


STEPS TO REPRODUCE
1. Open Preferences->Other->Change browser identification
2. Enable "Change global user agent"
3. Select "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
4. Click on "OK"
5. Close settings by clicking on "OK"
6. Repeat step no.1

OBSERVED RESULT
Browser UA is set to "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12"


EXPECTED RESULT
Browser UA is set to "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"


SOFTWARE/OS VERSIONS
Windows: n/a
macOS: n/a
Linux/KDE Plasma: 5.20.2
(available in About System)
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
If I select Firefox (Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0) it sticks and is kep even after subsequent browser restart.
Comment 1 0BADC0DE 2020-11-03 07:46:02 UTC
The website [https://www.whatismybrowser.com/detect/what-is-my-user-agent] reports this actual UA after changing to Chrome and restarting the browser:

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.1 Chrome/80.0.3987.163 Safari/537.36

The configuration file ~/.config/falkon/profiles/default/settings.ini has this setting:

UserAgent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"

The UA feature seems to have inconsistent behaviors.