BrowserWorks / Waterfox-Classic

The Waterfox Classic repository, for legacy systems and customisation.
https://classic.waterfox.net
Mozilla Public License 2.0
175 stars 34 forks source link

https://chaturbate.com/ JavaScript freezes #45

Open rami123 opened 2 years ago

rami123 commented 2 years ago

https://chaturbate.com/ freezes in clean Firefox classic install version 2021.11

I get message: "a web page is slowing down your browser"

Killogy commented 2 years ago

If you use block Origin block gstatic.com.

https://i.imgur.com/Mr2ctmn.jpg

hawkeye116477 commented 2 years ago

Firefox

So you're writing in wrong place. This isn't Mozilla's forum.

Killogy commented 2 years ago

Firefox

So you're writing in wrong place. This isn't Mozilla's forum.

I'm sure he meant Watefox Classic 2021.11. This issue is only occurring under Waterfox Classic, under Waterfox G4 this issue is not reproduced.

rami123 commented 2 years ago

Yes I meant Watefox Classic 2021.11, not FireFox or Waterfox G4.

rami123 commented 2 years ago

If you use block Origin block gstatic.com.

https://i.imgur.com/Mr2ctmn.jpg

@Killogy
I have blocked gstatic.com, but it does not help.

Killogy commented 2 years ago

If you use block Origin block gstatic.com. https://i.imgur.com/Mr2ctmn.jpg

@Killogy I have blocked gstatic.com, but it does not help.

For me blocking only gstatic.com fixes this problem.

Blocking www.gstatic.com or www.google.com or google.com also fixes this problem, so test blocking some of those domains.

Squall-Leonhart commented 2 years ago

you have to disable the explicit filter on gstatic.com to be able to block it per domain.

rami123 commented 2 years ago

Just a quick update, chatrubate is not that important, but I tried to understand better what is causing sites not to load. At least in this case when I whitelisted gstatic.com in ublock, chatrubate become slightly more responsive so ublock log could be used to see what runs. After I analyzed the log, I added this rule to uBlock My Filters and it solved the problem: ||www.gstatic.com/*.js$script,domain=chaturbate.com,important

This says that every java script that run on chaturbate.com and is originated from www.gstatic.com will be blocked. (Important tag at the end gives this rule priority over other rules)

Like many of you might know, other sites with problems like GitHub have other causes not work, like the need for Google Webcomponents that can be solved with Polly extension (https://github.com/WaterfoxCo/Waterfox-Classic/issues/41)

WaywardHeart commented 2 years ago

I looked into it, and the freeze is being caused by a mutation observer getting caught in an infinite loop. It looks like Bug 1428246 should fix it.

rami123 commented 2 years ago

I looked into it, and the freeze is being caused by a mutation observer getting caught in an infinite loop. It looks like Bug 1428246 should fix it.

Thanks

Squall-Leonhart commented 1 month ago

I looked into it, and the freeze is being caused by a mutation observer getting caught in an infinite loop. It looks like Bug 1428246 should fix it.

this looks like a right pain in the ass to bring over.

This says that every java script that run on chaturbate.com and is originated from www.gstatic.com will be blocked. (Important tag at the end gives this rule priority over other rules)

unfortunately not a great idea as this nasty site does some whacky things that leak memory if any scripts fail to load.

https://webcompat.com/issues/115500