apnews.com / 'Freezes' Pale Moon on load

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
ioSelect
Moongazer
Moongazer
Posts: 11
Joined: 2020-07-16, 00:23
Contact:

apnews.com / 'Freezes' Pale Moon on load

Unread post by ioSelect » 2023-11-15, 21:47

Navigate to: [ apnews.com ]

'Freezes' Pale Moon without script hang wrapper or debugger or error console access; does not create core dump file or log as far as i can tell.
Worked earlier today, they made some recent change, but it is not being caught/wrapped/sandboxed/eval'd in some way afaict.
Also, to be more complete; had the same issue using browser 'Safe Mode'.
The page loads in Edge, so it is not a network issue it would seem.

Please try loading the page, let us know.

Code: Select all

Thanks for Pale Moon !!

User avatar
ron_1
Moon Magic practitioner
Moon Magic practitioner
Posts: 2849
Joined: 2012-06-28, 01:20

Re: apnews.com / 'Freezes' Pale Moon on load

Unread post by ron_1 » 2023-11-15, 21:57

Freezes for me also. Pale Moon's CPU usage went through the roof during the freeze.

User avatar
Nigaikaze
Board Warrior
Board Warrior
Posts: 1320
Joined: 2014-02-02, 22:15
Location: Chicagoland

Re: apnews.com / 'Freezes' Pale Moon on load

Unread post by Nigaikaze » 2023-11-15, 22:58

Yup, freezes here, too. Pale Moon 32.5.0 locks solid as CPU usage spikes and RAM usage slowly creeps upward until I kill -9 it.

EDIT: Seems like the exact same problem that I saw with the jewelosco.com website a while back, reported here: viewtopic.php?f=70&t=30258&p=242919
Nichi nichi kore ko jitsu = Every day is a good day.

User avatar
adoxa
Fanatic
Fanatic
Posts: 140
Joined: 2019-03-16, 13:26

Re: apnews.com / 'Freezes' Pale Moon on load

Unread post by adoxa » 2023-11-16, 02:59

Something's going awry with WebComponents - disabling it (or removing window.customElements.define) prevents the freeze (I didn't try playing videos, though).

User avatar
sanstones
Newbie
Newbie
Posts: 4
Joined: 2021-02-22, 16:50

Re: apnews.com / 'Freezes' Pale Moon on load

Unread post by sanstones » 2023-11-16, 17:11

It started freezing for me yesterday also.

How or where does one disable WebComponents?

User avatar
ron_1
Moon Magic practitioner
Moon Magic practitioner
Posts: 2849
Joined: 2012-06-28, 01:20

Re: apnews.com / 'Freezes' Pale Moon on load

Unread post by ron_1 » 2023-11-16, 20:55

sanstones wrote:
2023-11-16, 17:11
How or where does one disable WebComponents?
In about:config I suppose. There is an entry in there named dom.webcomponents.enabled and its default is true.

User avatar
ioSelect
Moongazer
Moongazer
Posts: 11
Joined: 2020-07-16, 00:23
Contact:

Re: apnews.com / 'Freezes' Pale Moon on load

Unread post by ioSelect » 2023-11-28, 14:20

Tested using latest version and this issue still seems to exist.
Was able to get some console output, seems to want some epoch stuff.
Browser very rapidly consumes gigabytes of available memory and must be signalled from task manager.

Code: Select all

  [img]
    [attachment=0]Untitled.png[/attachment]
  [/img]
Thanks, hth!
Attachments
Untitled.png

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 924
Joined: 2021-01-26, 11:18

Re: apnews.com / 'Freezes' Pale Moon on load

Unread post by Kris_88 » 2023-12-03, 10:53

This is a Mutation Observer problem.
https://assets.apnews.com/resource/0000 ... 21d6.gz.js :2:118672

Code: Select all

checkBtnStatus(){
const t=this.querySelector(".flickity-button.flickity-prev-next-button.previous"),
  e=this.querySelector(".flickity-button.flickity-prev-next-button.next"),
  i={attributes:!0,childList:!1,subtree:!1},
  s=new MutationObserver(((t,e)=>{
    for(const e of t) 
      "attributes"===e.type && 
        ( console.log(`The ${e.attributeName} attribute was modified.`),
          this.changeBtnStyle()
        )
  }));
  s.observe(t,i),
  s.observe(e,i),
  this.changeBtnStyle()
}

changeBtnStyle() {
  const t=window.screen.width,
    e=this.querySelector(".flickity-button.flickity-prev-next-button.previous"),
    i=this.querySelector(".flickity-button.flickity-prev-next-button.next");
  e.hasAttribute("disabled") && i.hasAttribute("disabled") ? 
    (e.style.display="none",i.style.display="none") : t>786 && (e.style.display="block",i.style.display="block")
}
In addition, the site uses the console.timeLog function, which is not implemented in Pale Moon.

In general, regarding looped scripts, the browser should warn the user and offer to stop the problematic script. Further research showed that the browser's mechanism for detecting looped scripts works correctly, but the warning window may not always be displayed. Therefore, the user does not have the ability to stop the script. It is possible to automatically stop such scripts without user intervention. To do this, you need to create a boolean preference in about:config page:

Code: Select all

dom.always_stop_slow_scripts = true
Then the scripts will stop automatically and the following event will be logged in the console:
"Warning: Error: Script terminated by timeout at: ..."

User avatar
Old_Radio
Apollo supporter
Apollo supporter
Posts: 35
Joined: 2020-10-20, 20:48
Location: Shelf in Basement

Re: apnews.com / 'Freezes' Pale Moon on load

Unread post by Old_Radio » 2023-12-09, 19:58

Therefore, the user does not have the ability to stop the script. It is possible to automatically stop such scripts without user intervention. To do this, you need to create a boolean preference in about:config page:

Code: Select all

dom.always_stop_slow_scripts = true

Then the scripts will stop automatically and the following event will be logged in the console:
"Warning: Error: Script terminated by timeout at: ..."
Does not work.
Win 8.1 x64 or x32, Win 7 SP1 x64. Nothing hanging on Pale Moon except uBO and P M Commander.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 924
Joined: 2021-01-26, 11:18

Re: apnews.com / 'Freezes' Pale Moon on load

Unread post by Kris_88 » 2023-12-09, 20:05

Old_Radio wrote:
2023-12-09, 19:58
Does not work.
It works.
When dom.always_stop_slow_scripts = true, the browser freezes for a while, and then returns to normal because the script execution is interrupted. You just have to wait a while. And by the way, this is a very useful solution for debugging such problems. It's strange that people here didn't pay attention to this solution. This somehow solves the problem of mutation observers. Yes, not in the best way, but at least somehow.

Browser console:

Code: Select all

TypeError: console.timeLog is not a function[Learn More]  
All.min.98d7a61d3dca74d855c116cdadd821d6.gz.js:2:130817

ReferenceError: zephrBrowser is not defined[Learn More]  
apnews.com:633:17

GTAG-Home_module_shown Object { module_style: "Two Column Container 70/30", module_number: "1", module_name: "A/B/C block", module_topic: "A/B/C block" }  
All.min.98d7a61d3dca74d855c116cdadd821d6.gz.js:2:122571

GTAG-Home_module_shown Object { module_style: "List B", module_number: "1.2", module_name: "B block", module_topic: "B block" }  
All.min.98d7a61d3dca74d855c116cdadd821d6.gz.js:2:122571

GTAG-Home_module_shown Object { module_style: "Narrow List A", module_number: "1.3", module_name: "C block", module_topic: "C block" }  
All.min.98d7a61d3dca74d855c116cdadd821d6.gz.js:2:122571

GTAG-Home_module_shown Object { module_style: "Two Column Container 70/30", module_number: "2", module_name: "V Block", module_topic: "No Value" }  
All.min.98d7a61d3dca74d855c116cdadd821d6.gz.js:2:122571

GTAG-Home_module_shown Object { module_style: "Video Playlist Module - Basic", module_number: "2.1", module_name: "No Value", module_topic: "No Value" }  
All.min.98d7a61d3dca74d855c116cdadd821d6.gz.js:2:122571

Use of document.createAttribute() is deprecated. Use element.setAttribute() instead.  
latest.js:1:384509

Use of setAttributeNode() is deprecated. Use setAttribute() instead.  
latest.js:1:384542

The style attribute was modified. 
All.min.98d7a61d3dca74d855c116cdadd821d6.gz.js:2:118706

Error: Script terminated by timeout at:
checkBtnStatus/s<@https://assets.apnews.com/resource/00000188-2a81-d28a-a1fd-7bfb6ccb0000/styles/default/All.min.98d7a61d3dca74d855c116cdadd821d6.gz.js:2:118672

Post Reply