dw.com freezing PM

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.
frmariam
Hobby Astronomer
Hobby Astronomer
Posts: 29
Joined: 2018-01-26, 10:54

dw.com freezing PM

Unread post by frmariam » 2021-02-14, 00:02

Good evening

Just found a news site freezing PM: dw.com .
I was trying to find a link to the cited source so I opened a bunch of pages with similar news.
This was the specific pagre freezing PM:

https://www.dw.com/en/covid-herd-immuni ... a-56197701

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

Re: dw.com freezing PM

Unread post by Moonchild » 2021-02-14, 00:17

Confirmed. careful clicking the above link it may freeze your browser -- the problem seems to be an endless or recursive loop that causes severe memory inflation.
"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
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35627
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: dw.com freezing PM

Unread post by Moonchild » 2021-02-14, 00:39

OK, so the culprit is promio-connect.com -- their (newsletter) script causes endless allocation of their form container on the page.
Use your adblocker to block the domain promio-connect.com or system.promio-connect.com and you'll be able to safely load the page.

Code: Select all

||promio-connect.com
Seems to be an effective ABL rule to prevent this issue without any loss of functionality on the page.
I've contacted dw.com with details of my analysis.

As far as I can tell this is a recursive scripting call (which are notoriously hard to catch or prevent) in their newsletter container scripting which causes an endless creation of DOM container nodes eating memory and locking up the event loop in the browser. That isn't a browser bug as the browser is simply doing what it's told, but unfortunately does result in denial of service for us.
"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

Locked