28.9.0 and YouTube

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
LAR Grizzly
Lunatic
Lunatic
Posts: 358
Joined: 2017-08-11, 16:49
Location: Upstate Ohio, USA
Contact:

Re: 28.9.0 and YouTube

Unread post by LAR Grizzly » 2020-03-24, 18:23

JoeyG wrote:
2020-03-24, 18:19
Apparently at least one other Win 7 user experienced the same thing I did.
All of my special "general.useragent" strings have the previously reported "%OS_SLICE%" anomaly.
Attachments
untitled.jpg
Last edited by LAR Grizzly on 2020-03-24, 18:35, edited 2 times in total.
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.1.0, Epyrus Mail 2.1.2, Firefox 115.9.1esr, Thunderbird 115.9.0, and SeaMonkey 2.53.18.2

User avatar
eskaton
Lunatic
Lunatic
Posts: 474
Joined: 2013-08-23, 19:54

Re: 28.9.0 and YouTube

Unread post by eskaton » 2020-03-24, 18:27

I'm on Windows 10 64 bit running PM 28.9 64 bit and all but three of my 'general.useragent.override' entries contain the OS_SLICE text. Two of those are ones I edited manually and the other is web.whatsapp.com.

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

Re: 28.9.0 and YouTube

Unread post by Moonchild » 2020-03-24, 18:42

%OS_SLICE% is not an anomaly. It was put there on purpose instead of a build-time hard-coded OS version, but there's something wrong with the code that replaces it.
We're looking into it. For the time being there are overrides in place that the browser will get dynamically from our servers (also a new feature as of this version), but it may take time for that to kick in since we don't have that on fast timers.

You should be able to force an update by going to about:config, then first right-clicking and resetting the preference general.useragent.updates.lastupdated
Then -temporarily- setting general.useragent.updates.interval to "60" until the pref you just reset is filled with a value again, and then restoring the default for the interval pref (to not hammer our server with update requests).

Sorry for the inconvenience. We'll have an update for affected operating systems once we figure out the exact nature of the problem and patch for it.
"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
LAR Grizzly
Lunatic
Lunatic
Posts: 358
Joined: 2017-08-11, 16:49
Location: Upstate Ohio, USA
Contact:

Re: 28.9.0 and YouTube

Unread post by LAR Grizzly » 2020-03-24, 18:45

Moonchild wrote:
2020-03-24, 18:42
%OS_SLICE% is not an anomaly. It was put there on purpose instead of a build-time hard-coded OS version, but there's something wrong with the code that replaces it.
We're looking into it.
OK. I understand. I'll wait for the point release. Thanks Moonchild.
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.1.0, Epyrus Mail 2.1.2, Firefox 115.9.1esr, Thunderbird 115.9.0, and SeaMonkey 2.53.18.2

User avatar
JoeyG
Astronaut
Astronaut
Posts: 655
Joined: 2017-06-12, 13:27
Location: How can you be in two places at once, when you're not anywhere at all?

Re: 28.9.0 and YouTube

Unread post by JoeyG » 2020-03-24, 18:51

LAR Grizzly wrote:
2020-03-24, 18:23
JoeyG wrote:
2020-03-24, 18:19
Apparently at least one other Win 7 user experienced the same thing I did.
All of my special "general.useragent" strings have the previously reported "%OS_SLICE%" anomaly.
Mine, too.
Image
As I've mentioned, I was able to get rid of it with a modified user string. This, however, is clearly not sustainable. I, too, thank the devs in advance for the fix.
"And you can believe me because I never lie - and I'm always right."
(Asserted by George Leroy Tirebiter* and my wife; only the latter is telling the truth.)
*Firesign Theater version

User avatar
Night Wing
Knows the dark side
Knows the dark side
Posts: 5173
Joined: 2011-10-03, 10:19
Location: Piney Woods of Southeast Texas, USA

Re: 28.9.0 and YouTube

Unread post by Night Wing » 2020-03-24, 20:48

I'll be like everyone else and just wait for the point release update for both linux and windows Pale Moon. If I have to spend a lot of time on YouTube (two or more hours at a time), since my eyes like YouTube's dark version for their new interface, I'll just use linux and windows Firefox, for the time being, depending on what operating system I'm using for YouTube at that time.

When the Pale Moon point release is made, then I'll switch back to linux and windows Pale Moon for YouTube.
Linux Mint 21.3 (Virginia) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox
MX Linux 23.2 (Libretto) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox
Linux Debian 12.5 (Bookworm) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox

User avatar
LAR Grizzly
Lunatic
Lunatic
Posts: 358
Joined: 2017-08-11, 16:49
Location: Upstate Ohio, USA
Contact:

Re: 28.9.0 and YouTube

Unread post by LAR Grizzly » 2020-03-25, 00:29

The point release, PM 28.9.0.1, has fixed my issues with YouTube. Thanks Moonchild! :clap:
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.1.0, Epyrus Mail 2.1.2, Firefox 115.9.1esr, Thunderbird 115.9.0, and SeaMonkey 2.53.18.2

groundhog2
Fanatic
Fanatic
Posts: 153
Joined: 2012-08-30, 04:22
Location: USA

Re: 28.9.0 and YouTube

Unread post by groundhog2 » 2020-03-25, 00:37

Still happening for me where the old layout is used, not the new. Windows 10, using 64 bit. SHould there be a specific UA override for YouTube? I removed what I had there and still the same.

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

Re: 28.9.0 and YouTube

Unread post by Moonchild » 2020-03-25, 10:34

It shouldn't still happening with 28.9.0.1 because that literally has the relevant changes reverted to what it was before...
Are you sure it's not something else interfering here that causes issues? can you use the web developer tools to check the request sent to YouTube and see which useragent string is being sent?
(go to network, clear the display, then navigate to www.youtube.com, and check a request to the domain, under "request headers")
"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

spline
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2013-11-07, 16:29
Location: Canada

Re: 28.9.0 and YouTube

Unread post by spline » 2020-03-25, 10:45

Ok, I had this issue too when upgrading from 28.9.0 to 28.9.0.1. Suddenly youtube went back to the old layout.

Went through my settings... I'd been using an override agent for youtube for ages. Suddenly it seemed to have no effect. So I started the whole troubleshooting deal.

After an hour or so of disabling all extensions (no effect), testing safe mode (no effect), resetting all preferences (that worked), then narrowing things down, it came to one setting:

layers.acceleration.disabled = true

Keep in mind I've been using Palemoon a *very* long time, so this setting seems to have been deprecated at some point and in fact no longer exists. But, resetting it (or just removing it in prefs.js) allowed youtube.com to load with the new layout and no extra UA override required. Interestingly there is a layers.accelerated.enabled=true setting nowdays which obviously directly conflicts with the old one.

So yeah... no idea whatever you changed in the point release would cause this ancient setting to affect anything, but after narrowing it down with a copy of my profile on portable, I made that change -and only that change- to my main profile, and now it works.

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

Re: 28.9.0 and YouTube

Unread post by Moonchild » 2020-03-25, 10:53

The layers.acceleration pref is causing issues, but -should- have been removed during upgrade, and there shouldn't be any further use of it either (the pref was one of the things changed in 28.9.0's development).
Since there doesn't seem to be any further use of the pref, there's no indication why it would influence anything, so it's a bit of a conundrum. I also can't reproduce any problems when manually setting the old pref in my configuration.
See Issue #1495 (UXP)

If anyone has this issue could you please check the browser's error console?
"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

spline
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2013-11-07, 16:29
Location: Canada

Re: 28.9.0 and YouTube

Unread post by spline » 2020-03-25, 11:09

Yeah I can't recreate the problem by going the other way either, starting with a blank profile and then putting in that pref. It's possible that one of the later changed prefs could be affecting it in combination, I was going through deleting/resetting things in order and stopped when I got a successful page display hehe..

I can send you my prefs.js file if you want to play around.

User avatar
Tomaso
Board Warrior
Board Warrior
Posts: 1622
Joined: 2015-07-23, 16:09
Location: Norway

Re: 28.9.0 and YouTube

Unread post by Tomaso » 2020-03-25, 11:30

Part of this issue probably lays with YouTube itself, and its somewhat inconsistent UA detection.
I'm still using the old UA override, which gives me the classic YT interface (will use it for as long as it works), and block the yellow warning banner with the following adblock rule:

Code: Select all

youtube.com###old-browser-alert
However, every once in a while, I get the new interface regardlessly, and lately this seems to happen way more frequently!
Simply restarting Pale Moon (and thereby deleting all cookies, cache, etc., which I've configured it to do), fixes the problem at my end.

--
Off-topic:
On a side note, Google recently introduced some changes to YT's ad system.
Both EasyList and AdBlock are still fine-tuning their rules to work around some minor quirks, related to adblocking:
https://github.com/easylist/easylist/issues/5112
https://github.com/AdguardTeam/AdguardF ... sues/51070

JustOff

Re: 28.9.0 and YouTube

Unread post by JustOff » 2020-03-25, 11:46

spline wrote:
2020-03-25, 11:09
Yeah I can't recreate the problem by going the other way either
Looks like I found the reason: one small typo and a bunch of problems :roll:

User avatar
JoeyG
Astronaut
Astronaut
Posts: 655
Joined: 2017-06-12, 13:27
Location: How can you be in two places at once, when you're not anywhere at all?

Re: 28.9.0 and YouTube

Unread post by JoeyG » 2020-03-25, 12:35

I can now verify that with the following settings and "Use hardware acceleration when available" checked, when I use the "normal" UA, I get the new YouTube layout and NO yellow banner.
ImageThis holds for both 28.9.0.1 and 29.0.0a2.
"And you can believe me because I never lie - and I'm always right."
(Asserted by George Leroy Tirebiter* and my wife; only the latter is telling the truth.)
*Firesign Theater version

groundhog2
Fanatic
Fanatic
Posts: 153
Joined: 2012-08-30, 04:22
Location: USA

Re: 28.9.0 and YouTube

Unread post by groundhog2 » 2020-03-25, 13:00

Okay, not sure if this is what did it but I reset layers.acceleration.disabled = true and added the override UA

Code: Select all

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 
then removed all YouTube cookies and restarted Pale Moon and it finally switched to the new layout! Back to the dark theme for me, much better on the eyes!

However, my YouTube override string is no longer in bold, what does that mean? As long as it works, I don't care, but it used to be bold.

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

Re: 28.9.0 and YouTube

Unread post by Moonchild » 2020-03-25, 14:08

For those interested, here's the technical explanation of what JustOff and myself found out in parallel caused by a typo. Yes, one small typo in the browser's glue code (that binds everything together) can cause a lot of trouble... :silent:
So, the problem was a typo in migration code (that should have been caught during development but wasn't, because we normally don't run in a situation where we disable layers acceleration).
This migration code lives in nsBrowserGlue.js which is the javascript code at the heart of Pale Moon's browser initialization that ties everything together.
It is controlled by a pref keeping track of the "user interface version" -- browser.migration.version
If this is current, then the migration code will be skipped. If it isn't current, then the migration code runs and will end with some clean-up of old code that needs to be regenerated, and updating the migration version number to skip it next run.

The typo, when a user pref would be present for layers.acceleration.disabled (and only then), would cause the entire initialization to abort, and making the browser glue initialization end up in an incomplete state causing all these strange errors people have been reporting, including YouTube, Yahoo, etc.
This aborting also resulted in not updating the version number for migration, resulting in the migration triggering every time, hitting the typo every time, and aborting every time, keeping the browser in this half-initialized state. By deleting the user pref, the typo would be skipped over, allowing the migration to complete and with subsequent runs avoiding the error because the migration version would be current. This explains why re-adding the pref didn't do anything since the migration code would no longer run on an updated browser that didn't need migration.

The most influenced websites are the ones requiring user-agent overrides because in its half-initialized state, site-specific user-agent overrides don't work at all and the site will be sent our default user-agent string (which obviously doesn't work very well for those sites needing overrides...) and apparently YouTube does check for Pale Moon, but only insofar as to call us old and unsupported (which is actually worse than not checking for us at all)
"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
Night Wing
Knows the dark side
Knows the dark side
Posts: 5173
Joined: 2011-10-03, 10:19
Location: Piney Woods of Southeast Texas, USA

Re: 28.9.0 and YouTube

Unread post by Night Wing » 2020-03-25, 14:33

I'm going to add my two cents in here.

I just created a clean new profile in all of my linux Mint and Windows 7 hard drives for Pale Moon 28.9.0.1 and YouTube with it's new interface (and dark theme) is working again for me.

Of course, I had to put back all of my bookmarks back along with some customizations I had for both linux and windows Pale Moon, but I don't mind. With this COVID-19 virus keeping me sequestered in my home, it gives me something to do to break the monotony.

A clean profile is good every now and then. :)
Linux Mint 21.3 (Virginia) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox
MX Linux 23.2 (Libretto) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox
Linux Debian 12.5 (Bookworm) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox

groundhog2
Fanatic
Fanatic
Posts: 153
Joined: 2012-08-30, 04:22
Location: USA

Re: 28.9.0 and YouTube

Unread post by groundhog2 » 2020-03-25, 14:57

Night Wing wrote:
2020-03-25, 14:33
A clean profile is good every now and then. :)
That may be true, but it's not an option for me. I have been using Pale Moon for so long, all of my history is in my profile and I'm afraid to ever change or wipe that.

JustOff

Re: 28.9.0 and YouTube

Unread post by JustOff » 2020-03-25, 15:04

Btw, now that the main reason has been found, I have to say that my error with SSUAO on Linux was not really the cause of the problems with YouTube. As it turned out, it works just fine without the presence of X11 in the user agent string. This does not reduce my guilt for this flaw, though. I will try my best to have the revised version of SSUAO optimization re-introduced in the next Pale Moon release.

Locked