Ask me anything!

Have a question you always wanted to ask Moonchild but never did? Now's your chance!
From 2026-03-08 to 2026-03-15 I'll be open to any question by the community, after which I'll provide answers.

Go here to participate: https://forum.palemoon.org/viewtopic.php?f=66&t=33222

Compiler explorer (godbolt.org) is not fully unbroken

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.
dinosaur
Fanatic
Fanatic
Posts: 204
Joined: 2014-06-03, 09:26
Location: France

Compiler explorer (godbolt.org) is not fully unbroken

Post by dinosaur » 2026-01-24, 10:58

With PM 34.0, the WeakRef support does allow Compiler explorer's page to load, but sadly it is now suffering from an issue I did not have in the (distant) past with PM (before the WeakRef usage by godbolt.org).

The text for the editors does not render at all for me and yes, I tried the site settings and changed the fonts family for others, to no avail (I also tried and excluded bitmap fonts from fontconfig). I of course tried the site's various themes, editor lines colouring options, etc, but still no joy. Finally, setting "javascript.options.weakrefs" to true does not change a thing.

Here is what I get (from a blank PM profile):
godbolt.png
There is no error reported in the error console, not even a warning...

Any idea ?
You do not have the required permissions to view the files attached to this post.

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1149
Joined: 2020-11-03, 06:47
Location: Philippines

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by jobbautista9 » 2026-01-24, 12:55

Works fine for me in Windows 11 x64, both in my usual profile and a fresh one of 34.0.1.
You do not have the required permissions to view the files attached to this post.
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2536
Joined: 2018-05-05, 13:29

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by vannilla » 2026-01-24, 13:05

Does not work for me on Linux.

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

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by adoxa » 2026-01-24, 13:58

FWIW it's also fine with 64-bit Basilisk (2026.01.23; usual profile), Win10.

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

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by Moonchild » 2026-01-24, 14:21

Looks fine for me as well on x64 Win 10
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2536
Joined: 2018-05-05, 13:29

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by vannilla » 2026-01-24, 15:34

There is a transform: translate3d(0px, 0px, 0px) CSS directive that "hides" the text content, but apparently it behaves as expected only on Windows.

dinosaur
Fanatic
Fanatic
Posts: 204
Joined: 2014-06-03, 09:26
Location: France

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by dinosaur » 2026-01-24, 22:57

vannilla wrote:
2026-01-24, 15:34
There is a transform: translate3d(0px, 0px, 0px) CSS directive that "hides" the text content, but apparently it behaves as expected only on Windows.
Well spotted !

I managed to make the site work thanks to the Stylem extension, with the following override:

Code: Select all

@-moz-document domain("godbolt.org") {
  html body.enable-motion div#root div.lines-content.monaco-editor-background
  {
    transform: revert !important;
  }
}
But of course, it would be best to find the bug causing this issue under Linux and not Windows...

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

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by Moonchild » 2026-01-25, 00:11

vannilla wrote:
2026-01-24, 15:34
There is a transform: translate3d(0px, 0px, 0px) CSS directive
I have to wonder: Why on earth would they use a transform like that? It does literally nothing. Is this to try and work around bad font rendering in Chrome or something?

EDIT: Oof. oh wow. what on earth are they doing? This almost feels like deliberate breakage. I can see this CSS being all sorts of broken on some engines or causing absolutely massive resource/performance issues.

Code: Select all

position: absolute;
overflow: hidden;
width: 1.67772e+7px;
height: 1.67772e+7px;
transform: translate3d(0px, 0px, 0px);
top: 0px;
left: 0px;
This seems to be geared towards very very specific quirks. Look at that width and height. Then marking overflows hidden (so effectively creating a very large surface that would get hidden) and then doing that transform on the huge surface but all being 0 px. None of that would have a visual effect at all but can absolutely break things.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"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
UCyborg
Keeps coming back
Keeps coming back
Posts: 775
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by UCyborg » 2026-01-25, 10:56

What about right-click context menu on the text area? It doesn't show. Maybe related to weird CSS?

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2536
Joined: 2018-05-05, 13:29

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by vannilla » 2026-01-25, 12:28

UCyborg wrote:
2026-01-25, 10:56
What about right-click context menu on the text area? It doesn't show. Maybe related to weird CSS?
The context menu is replaced by a custom one through Javascript and it seems whatever error is generated is swallowed whole and never printed in the console.
Unfortunately, the site's panels are managed by a package developed by Microsoft, so the chances of things improving are basically zero and all we can hope for is that through fixing web compat issues on other sites, eventually this one is caught too.
In the meantime, if you need the standard context menu while clicking inside one of the panels, you can hold the shift key to bypass the custom functions (I think this is intentional behaviour).

dinosaur
Fanatic
Fanatic
Posts: 204
Joined: 2014-06-03, 09:26
Location: France

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by dinosaur » 2026-01-25, 13:10

vannilla wrote:
2026-01-25, 12:28
In the meantime, if you need the standard context menu while clicking inside one of the panels, you can hold the shift key to bypass the custom functions (I think this is intentional behaviour).
There's also a check box in the site settings menu to disable the custom context menu: I'm using this...

User avatar
Basilisk-Dev
Astronaut
Astronaut
Posts: 562
Joined: 2022-03-23, 16:41
Location: Chamber of Secrets

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by Basilisk-Dev » 2026-01-25, 18:11

This issue does not affect MacOS. Works fine here.
Basilisk Project Owner

viewtopic.php?f=61&p=230756

User avatar
Veit Kannegieser
Moonbather
Moonbather
Posts: 65
Joined: 2019-03-23, 19:16

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by Veit Kannegieser » 2026-01-25, 22:11


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

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by Moonchild » 2026-01-25, 22:27

Veit Kannegieser wrote:
2026-01-25, 22:11
https://godbolt.org/noscript works fine.
Not like that is in any way comparable, of course.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

dinosaur
Fanatic
Fanatic
Posts: 204
Joined: 2014-06-03, 09:26
Location: France

Re: Compiler explorer (godbolt.org) is not fully unbroken

Post by dinosaur » 2026-02-08, 12:26

dinosaur wrote:
2026-01-24, 22:57
I managed to make the site work thanks to the Stylem extension, with the following override:

Code: Select all

@-moz-document domain("godbolt.org") {
  html body.enable-motion div#root div.lines-content.monaco-editor-background
  {
    transform: revert !important;
  }
}
As of today, I had to change the override to something more generic (i.e. not restricted to enable-motion CSS path), with:

Code: Select all

@-moz-document domain("godbolt.org") {
  html div.lines-content.monaco-editor-background
  {
    transform: revert !important;
  }
}
The breakage keeps evolving over time... :crazy: