"official" versus "unofficial" linux builds: different user agents 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.
Walter Dnes
Astronaut
Astronaut
Posts: 714
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

"official" versus "unofficial" linux builds: different user agents

Post by Walter Dnes » 2024-10-23, 18:02

This is NOT a support request, but rather a report of an anomaly in the build preocess.

Step 1) Linux build with .mozconfig as per https://developer.palemoon.org/build/linux/
Step 2) After build, go to URL https://www.youtube.com/watch?v=R1AsPwvySbA&t=658s
It runs fine, including chat replay.

VERSUS

Step 1) Make 2 changes to .mozconfig for linux build

ac_add_options --disable-official-branding
export MOZILLA_OFFICIAL=0

Step 2) After build, go to URL https://www.youtube.com/watch?v=R1AsPwvySbA&t=658s
The video runs, but chat complains about older version of browser (see attachment).

I compared user agents at https://www.whatismybrowser.com/detect/ ... ser-agent/
The "official build" that works reports user agent...
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Goanna/6.7 Firefox/102.0 PaleMoon/33.4.0.1

The "unofficial build" that fails reports user agent...
Mozilla/5.0 (X11; Linux x86_64; rv:6.7) Goanna/20241023 PaleMoon/33.4.0.1
You do not have the required permissions to view the files attached to this post.
There are 2 kinds of people in this world...
1) Those who can extrapolate from incomplete data

Walter Dnes
Astronaut
Astronaut
Posts: 714
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: "official" versus "unofficial" linux builds: different user agents

Post by Walter Dnes » 2024-10-23, 19:19

After some experimentation, I created "general.useragent.override.youtube.com" and had to set it to

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0
There are 2 kinds of people in this world...
1) Those who can extrapolate from incomplete data

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

Re: "official" versus "unofficial" linux builds: different user agents

Post by Moonchild » 2024-10-23, 19:19

Yes, unofficial does not default to Firefox Compatibility for the UA. It uses Native instead, which is the platform default.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"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
Pentium4User
Board Warrior
Board Warrior
Posts: 1329
Joined: 2019-04-24, 09:38

Re: "official" versus "unofficial" linux builds: different user agents

Post by Pentium4User » 2024-10-23, 19:25

Just to clarify:
Some webmasters use the User Agent header to determine if their website "works" in a browser or not.
As MC pointed out, the default UA is different without the branding, this explains the result.
The profile picture shows my Maico EC30 E ceiling fan.

Walter Dnes
Astronaut
Astronaut
Posts: 714
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: "official" versus "unofficial" linux builds: different user agents

Post by Walter Dnes » 2024-10-24, 02:10

So I did some comparisons again at https://www.whatismybrowser.com/detect/ ... ser-agent/ Under "Tools ==> Preferences ==> Advanced ==> Compatibility" is a drop-down menu with 3 options...

==> Native
Mozilla/5.0 (X11; Linux x86_64; rv:6.7) Goanna/20241010 PaleMoon/33.4.0.1

==> Gecko
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Goanna/6.7 PaleMoon/33.4.0.1

==> Firefox
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Goanna/6.7 Firefox/102.0 PaleMoon/33.4.0.1
There are 2 kinds of people in this world...
1) Those who can extrapolate from incomplete data

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

Re: "official" versus "unofficial" linux builds: different user agents

Post by Moonchild » 2024-10-24, 08:41

"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite