PM 31.0.0 Useragent problems Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
pm4eva
Moonbather
Moonbather
Posts: 57
Joined: 2018-06-12, 10:26
Location: CET

PM 31.0.0 Useragent problems

Unread post by pm4eva » 2022-05-18, 03:38

My settings are all default just what i changed is

general.useragent.override; Mozilla/5.0 (X11; U; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0
general.useragent.site_specific_overrides; false

within PM 28 it works but within PM 31 not and it does not override the useragent string

the only thing what works with PM 31 is to change
general.useragent.compatMode.version
to 91.0 for example

but i want change the whole string and the reason is that for some sites i want do that
with an addon with a switch button to fake the OS and the browser

general.useragent.override does not work anymore
please change that back cos it can be important for testing sites with a different string
thx and greets

User avatar
RealityRipple
Astronaut
Astronaut
Posts: 505
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California
Contact:

Re: PM 31.0.0 Useragent problems

Unread post by RealityRipple » 2022-05-18, 03:45

https://www.palemoon.org/releasenotes-archived.shtml#v28.17.0
The global user-agent override was moved to the networking component where it is actually implemented. The new preference name is network.http.useragent.global_override. Please note that using a blanket override is normally (very) counterproductive and does not, in fact, help much with privacy. It would also override the compatibility modes (Native/Gecko/Firefox) in Pale Moon. As such, the browser will now warn you if the user-agent is globally overridden (in preferences) and allow you to easily reset that override and re-enable the various compatibility modes.

vannilla
Board Warrior
Board Warrior
Posts: 1907
Joined: 2018-05-05, 13:29

Re: PM 31.0.0 Useragent problems

Unread post by vannilla » 2022-05-18, 12:29

If you need it only for specific websites, use sasuga or PermissionPlus, both available from the addons site.

User avatar
pm4eva
Moonbather
Moonbather
Posts: 57
Joined: 2018-06-12, 10:26
Location: CET

Re: PM 31.0.0 Useragent problems

Unread post by pm4eva » 2022-05-19, 17:37

network.http.useragent.global_override
seems to work but the addons what using the old overrider dont work anymore

If there is no important reason for changing the variable i think it would better to change it back.
All older Addons are using general.useragent.override
thx and greets

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 32190
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: PM 31.0.0 Useragent problems

Unread post by Moonchild » 2022-05-19, 19:58

No, it will not be changed back.
See implementation notes from 28.17 (almost 1.5 years ago!) as to the reasoning behind this change, also explained multiple times on this forum.
"You will observe with concern how long a useful truth may be known and exist before it is generally received and practiced on." -- Benjamin Franklin
"Compromise and collaboration lie at the heart of all great endeavours" -- Kassandra
Image

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 3952
Joined: 2015-12-09, 15:45
Contact:

Re: PM 31.0.0 Useragent problems

Unread post by moonbat » 2022-05-20, 02:12

pm4eva wrote:
2022-05-18, 03:38
to fake the OS and the browser
Bad idea, it breaks sites that wrongly rely only on the user-agent for feature detection and does nothing in terms of privacy because there are dozens of other ways to uniquely identify you. This is why site specific overrides exist - to fix sites that break due to UA sniffing, as already explained above.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 20.1 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
pm4eva
Moonbather
Moonbather
Posts: 57
Joined: 2018-06-12, 10:26
Location: CET

Re: PM 31.0.0 Useragent problems

Unread post by pm4eva » 2022-05-20, 09:06

Moonchild wrote:
2022-05-19, 19:58
No, it will not be changed back.
OK
thx and greets

User avatar
pm4eva
Moonbather
Moonbather
Posts: 57
Joined: 2018-06-12, 10:26
Location: CET

Re: PM 31.0.0 Useragent problems

Unread post by pm4eva » 2022-05-20, 09:15

moonbat wrote:
2022-05-20, 02:12
Bad idea......
I know why specific site override exist and its a really good thing.
If i remember right even the Addons from PM Addon site did not work as i tried them, or arent comfortable.
And i am not sure how a user can add a website to specific-override, or manage that within an addon or menue.
thx and greets

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 32190
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: PM 31.0.0 Useragent problems

Unread post by Moonchild » 2022-05-20, 10:23

pm4eva wrote:
2022-05-20, 09:15
And i am not sure how a user can add a website to specific-override, or manage that within an addon or menue.
Use any of the available extensions like Sasuga,
or go into about:config and make a general.useragent.override.yourdomain.com preference and put in whatever US string you want or need for yourdomain.com

Or use forum search to get more posts to explain the same (in more detail)
"You will observe with concern how long a useful truth may be known and exist before it is generally received and practiced on." -- Benjamin Franklin
"Compromise and collaboration lie at the heart of all great endeavours" -- Kassandra
Image

Post Reply