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: 74
Joined: 2018-06-12, 10:26
Location: CET

Re: PM 31.0.0 Useragent problems

Unread post by pm4eva » 2022-10-12, 18:58

@ jobbautista9

I have tried the addon now and it did not work for me.
And i am not 100% sure about but it seems it did override the Site-Specific-UA Strings too with the global String after i opend a Site to test.
Maybe a Sideeffect of something.

Also weird that "network.http.useragent.global_override" not exists in about:config
I m not sure if it did exist in older PM Versions.

And i do not care about anymore.
If some sites does not open i dont search anymore for the reason.
Its a waste of time and Firefox sure can open it.
thx and greets

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 782
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: PM 31.0.0 Useragent problems

Unread post by jobbautista9 » 2022-10-13, 01:52

network.http.useragent.global_override is not visible because it doesn't have its value set by default. You have to create a pref with that name and then add your UA there.

Anyway my extension doesn't support global useragent overrides. I might consider supporting it, but I will make sure any setting of the global override by the extension will be temporary, i.e. it will be reset when the browser shuts down. After all it's only meant to be a convenient testing pref for those who need to deal with multiple domains, not a privacy or real solution for which SSUAOs exist.
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

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

Re: PM 31.0.0 Useragent problems

Unread post by pm4eva » 2022-10-13, 12:55

I did not mean that it must have a global override function.
The Problem for me was that the Addon not used the internal site-specific-strings from the browser.
All what it did was changing color.
And i do not know why but here it did override the browser strings too in about:config.
If an addon want set a different UA-String for a website it should use a seperate database.
thx and greets

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 782
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: PM 31.0.0 Useragent problems

Unread post by jobbautista9 » 2022-10-13, 14:31

pm4eva wrote:
2022-10-13, 12:55
The Problem for me was that the Addon not used the internal site-specific-strings from the browser.
It does use the internal SSUAOs for the textbox and icon's tooltip though..? If you mean the %OS_SLICE% part is not preserved, then that's just a side-effect of the extension using the window's navigator.userAgent.
pm4eva wrote:
2022-10-13, 12:55
If an addon want set a different UA-String for a website it should use a seperate database.
That would be inefficient. Why bother having your own database when you can use the browser's preferences store?
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 937
Joined: 2017-12-14, 12:59

Re: PM 31.0.0 Useragent problems

Unread post by gepus » 2022-10-13, 14:49

jobbautista9 wrote:
2022-10-13, 01:52
Anyway my extension doesn't support global useragent overrides. I might consider supporting it, but I will make sure any setting of the global override by the extension will be temporary, i.e. it will be reset when the browser shuts down.
IMHO not a good idea.
As stupid as it sounds, many people don't shut down their browser for days, weeks.
Those who know what they are doing can easily modify for convenience old extensions ...

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 782
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: PM 31.0.0 Useragent problems

Unread post by jobbautista9 » 2022-10-13, 15:00

That's their problem then. They (should) know that the global UA override pref is supposed to be used for testing only, not as a replacement to SSUAOs. Those who know what they're doing surely knows that when they get hit by the footgun, they have only themselves to blame.

Btw, I will not make it clear any previously existing global UA override when it does its reset. I'm not ass enough to do that. :P I will make sure to have the extension remember the previous global UA override if it exists and reset to that when the browser closes. Or maybe when the browser opens if it's really that big of a deal. Just don't blame me if the browser's start up slows down because of that. :P
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

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

Re: PM 31.0.0 Useragent problems

Unread post by pm4eva » 2023-02-14, 11:16

At the moment more and more sites are broken cos they do not know the PM UA String.
Some need Firefox UA String and some works with empty String.
Sorry but how should a normal User without IT knowledge can handle that?

I have tested now a site it works only with a Firefox UA String.
The Webdesigner have changed the site and thinks that PM is a Mobile Phone.
No one knows that PM is a Webbrowser on PC and thats the bigest Problem.

You can never know all sites and add it in your site-specific-UA-list
and it would be alot work to hold it accurate.

Better you change the general user agent to a firefox string. 60 or higher.
thx and greets

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: PM 31.0.0 Useragent problems

Unread post by Moonchild » 2023-02-14, 14:40

pm4eva wrote:
2023-02-14, 11:16
No one knows that PM is a Webbrowser on PC and thats the bigest Problem.
The solution is simple: advocate for Pale Moon. Write to the webmaster that their detection is wrong and should be looked at/fixed.
Coming here and complaining about it to the choir doesn't really help anyone.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 937
Joined: 2017-12-14, 12:59

Re: PM 31.0.0 Useragent problems

Unread post by gepus » 2023-02-14, 14:48

pm4eva wrote:
2023-02-14, 11:16
At the moment more and more sites are broken cos they do not know the PM UA String.
Can't confirm. From those many sites can you give a few examples?
Most sites that don't work are relying on features introduced by Google and which Pale Moon doesn't support.
pm4eva wrote:
2023-02-14, 11:16
Some need Firefox UA String ...
That's what site specific overrides are for.
pm4eva wrote:
2023-02-14, 11:16
... and some works with empty String.
Really? Some examples?
pm4eva wrote:
2023-02-14, 11:16
Sorry but how should a normal User without IT knowledge can handle that?
And how should a "normal User" without IT knowledge handle it with a global override?
pm4eva wrote:
2023-02-14, 11:16
No one knows that PM is a Webbrowser on PC and thats the bigest Problem.
"No one" is an overstatement but however irrelevant.
pm4eva wrote:
2023-02-14, 11:16
Better you change the general user agent to a firefox string. 60 or higher.
It is already set to 102 by default.

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

Re: PM 31.0.0 Useragent problems

Unread post by pm4eva » 2023-02-14, 16:26

I ve tested now Youtube and guess what.
With the original native UAS it works better than with your build in SiteSpecificUAS(ff60).
With it, it loads that slow that i get Timeout Message.
Tested on W7/32 atm but will test on W10/64 later too.
The idea of SSUAS is good but what if it works less good and next list-update time the string changes again.
And yes the webdesigner are another problem.
On W11 i heard MS does not show the OS anymore or it shows Win10.0.
And i m sure some sites will break with that again.
That all is just a joke, but a bad one.
thx and greets

Locked