Bug 428630

Summary: User Agent Manager doesn't keep Chrome but keeps Firefox.
Product: [Applications] Falkon Reporter: 0BADC0DE <vincenzo.romano>
Component: generalAssignee: David Rosca <nowrep>
Status: REPORTED ---    
Severity: normal CC: 369start
Priority: NOR    
Version First Reported In: 3.1.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.