uefa.com - blank page

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.
Enobarbous
Fanatic
Fanatic
Posts: 119
Joined: 2022-12-06, 17:44

uefa.com - blank page

Post by Enobarbous » 2024-06-18, 19:06

Clear PM 33.2.0
Site: https://www.uefa.com/
What it says on the can - just a blank page instead of a site.
In the console:

Code: Select all

ReferenceError: FinalizationRegistry is not defined
If this is what is described on the mdn (FinalizationRegistry, ff79+), then.... why? WHY? WeakRef wasn't enough and you need another way to kill yourself on GC?

User avatar
Moonchild
Project founder
Project founder
Posts: 39626
Joined: 2011-08-28, 17:27
Location: Sweden

Re: uefa.com - blank page

Post by Moonchild » 2024-06-18, 19:21

Note: Cleanup callbacks should not be used for essential program logic. See Notes on cleanup callbacks for details.
We can't fix stupid.

Enobarbous
Fanatic
Fanatic
Posts: 119
Joined: 2022-12-06, 17:44

Re: uefa.com - blank page

Post by Enobarbous » 2024-06-18, 19:27

Moonchild wrote:
2024-06-18, 19:21
We can't fix stupid.
Honestly, I don't expect it to be implemented. It just bruised my brain so much that the report seemed like a good idea...

User avatar
Moonchild
Project founder
Project founder
Posts: 39626
Joined: 2011-08-28, 17:27
Location: Sweden

Re: uefa.com - blank page

Post by Moonchild » 2024-06-18, 20:41

You should write uefa.com and tell them the issue.
The fact that they apparently rely on this in critical page logic needs to be addressed by them. The whole point is that there is absolutely 0 guarantee that the FinalizationRegistry callbacks will ever be called even in a browser that fully supports this nonsense, so it's literally completely pointless to even make use of it. The page might as well not have the code and the end result would literally be exactly the same.

User avatar
adoxa
Astronaut
Astronaut
Posts: 668
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: uefa.com - blank page

Post by adoxa » 2024-06-19, 03:06

A workaround via Modify HTTP Response.

Code: Select all

[["www.uefa.com",["/CompiledAssets\\/UefaCom\\/js\\/base\\.js/",["new FinalizationRegistry(G=>{this.cache.get(G)?.deref()||this.cache.delete(G)})","{register:()=>{},unregister:()=>{}}","/new WeakRef\\((..)\\)/g","{deref:()=>$1}"]]]]
There are other issues: the slider > arrows don't work; "Our work in action" is displayed totally wrong (probably an aspect-ratio or min CSS problem).