CloudFlare discussion thread

General project discussion.
Use this as a last resort if your topic does not fit in any of the other boards but it still on-topic.
Forum rules
This General Discussion board is meant for topics that are still relevant to Pale Moon, web browsers, browser tech, UXP applications, and related, but don't have a more fitting board available.

Please stick to the relevance of this forum here, which focuses on everything around the Pale Moon project and its user community. "Random" subjects don't belong here, and should be posted in the Off-Topic board.
User avatar
Basilisk-Dev
Lunatic
Lunatic
Posts: 492
Joined: 2022-03-23, 16:41
Location: Chamber of Secrets

Re: CloudFlare discussion thread

Unread post by Basilisk-Dev » 2025-03-20, 14:29

mstremante wrote:
2025-03-20, 14:21
Could you confirm if you are still experiencing issues with Basilisk at this time? If not, can you please share as many details as you can around what you are observing and on what setup.
I am still experiencing issues with Basilisk, yes. I have verified these issues with both a brand new, clean profile and my normal profile with my preferred add-ons installed.

To replicate the issue do the following:
* Browse to https://drunkenslug.com/
* You will see the "Verifying you are human. This may take a few seconds." Cloudflare verification page.
* The tab basically crashes until the browser asks me to stop the JavaScript that is running on the page.

This is the exact same behavior that was experienced in Pale Moon until the most recent change was made that allowed the checks to pass in Pale Moon.

If I browse to about:config and create a new config string called "general.useragent.override.challenges.cloudflare.com" and set the value to a Pale Moon user agent I am able to pass the check in Basilisk.

This indicates to me that the issue is likely related to user agent sniffing. It seems to be checking for a Pale Moon user agent, but not for a Basilisk user agent.

For reference, here is the Pale Moon useragent I used: Mozilla/5.0 (Macintosh; Intel Mac OS X 15.3; rv:128.0) Gecko/20100101 Goanna/6.7 Firefox/128.0 PaleMoon/33.6.1

Also, here is my Basilisk User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 15.3; rv:128) Gecko/20100101 Goanna/6.7 Firefox/128 Basilisk/20250220
Basilisk Project Owner

viewtopic.php?f=61&p=230756

User avatar
billmcct
Board Warrior
Board Warrior
Posts: 1044
Joined: 2012-09-04, 15:19
Location: Union City Georgia USA

Re: CloudFlare discussion thread

Unread post by billmcct » 2025-03-20, 15:35

Not everything is fully working in Pale Moon. Such as:

https://www.betus.com.pa/authentication/login

It wont even show the captcha.
--------------------------------------------------------------------------------------------------------------
Dell Precision 15 7550
Windows 10 Pro. 22H2
Xeon W-10885M
64 GB DDR4 ECC memory (128 GB max)
500 GB Corsair T500 main M2 SSD
1 TB Intel storage M2 SSD (6 TB max)
Intel onboard GPU 1080p
Quadro RTX 5000 Max-Q GPU 4K

Pale Moon 33.7.x x64 AVX2 build

The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
Drugwash
Lunatic
Lunatic
Posts: 272
Joined: 2016-01-28, 12:08
Location: Ploieşti, Romania

Re: CloudFlare discussion thread

Unread post by Drugwash » 2025-03-20, 15:47

billmcct wrote:
2025-03-20, 15:35
Not everything is fully working in Pale Moon. Such as:

https://www.betus.com.pa/authentication/login

It wont even show the captcha.
First of all that site uses a self-signed certificate which Pale Moon flags:
Untrusted_Connection_-_2025-03-20_17.40.15.png
Unfortunately after allowing as exception I got an official notice from my government that I'm not allowed to access that site - so can't confirm your claim. Anyone not in the US please be aware:
forbidden_-_2025-03-20_17.46.25.png
You do not have the required permissions to view the files attached to this post.

User avatar
andyprough
Board Warrior
Board Warrior
Posts: 1115
Joined: 2020-05-31, 04:33

Re: CloudFlare discussion thread

Unread post by andyprough » 2025-03-20, 15:48

billmcct wrote:
2025-03-20, 15:35
Not everything is fully working in Pale Moon. Such as:

https://www.betus.com.pa/authentication/login

It wont even show the captcha.
The Cloudflare verification box worked for me in a clean new profile. Is there an extra capcha on that page if you try to log in with credentials?
2025-03-20_10-46.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
biopsin
Fanatic
Fanatic
Posts: 128
Joined: 2016-02-07, 17:15

Re: CloudFlare discussion thread | disabled npapi

Unread post by biopsin » 2025-03-20, 15:56

A Pale Moon build with disabled npapi, with a default new profile wont pass unfortunatly, not shure if this a site spesific setting or a general issue. viewtopic.php?f=3&t=32045&p=260969#p260969

Edit: Its also a unofficial branding to be clear and might be related to viewtopic.php?f=5&t=31768&p=256676&hili ... ng#p256676
Last edited by biopsin on 2025-03-20, 16:06, edited 2 times in total.
voidlinux_x64 glibc-2.41 / compiled latest Palemoon (gcc-14.2.1) / GTK3

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2880
Joined: 2012-08-19, 20:32

Re: CloudFlare discussion thread

Unread post by back2themoon » 2025-03-20, 15:57

billmcct wrote:
2025-03-20, 15:35
https://www.betus.com.pa/authentication/login

It wont even show the captcha.
Works fine here. If it doesn't show, perhaps you are blocking it in some way.

User avatar
billmcct
Board Warrior
Board Warrior
Posts: 1044
Joined: 2012-09-04, 15:19
Location: Union City Georgia USA

Re: CloudFlare discussion thread

Unread post by billmcct » 2025-03-20, 18:00

back2themoon wrote:
2025-03-20, 15:57
billmcct wrote:
2025-03-20, 15:35
https://www.betus.com.pa/authentication/login

It wont even show the captcha.
Works fine here. If it doesn't show, perhaps you are blocking it in some way.
I got it figured out. I allowed everything in UBO and the captcha showed up.
I then after logging in I went to CookieKeeper and protected the CF cookies so they wont be deleted.
--------------------------------------------------------------------------------------------------------------
Dell Precision 15 7550
Windows 10 Pro. 22H2
Xeon W-10885M
64 GB DDR4 ECC memory (128 GB max)
500 GB Corsair T500 main M2 SSD
1 TB Intel storage M2 SSD (6 TB max)
Intel onboard GPU 1080p
Quadro RTX 5000 Max-Q GPU 4K

Pale Moon 33.7.x x64 AVX2 build

The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
frostknight
Astronaut
Astronaut
Posts: 572
Joined: 2022-08-10, 02:25

Re: CloudFlare discussion thread

Unread post by frostknight » 2025-03-20, 22:36

mstremante wrote:
2025-03-20, 14:21
All good, this is hard for us too as this whole situation is not our desired outcome.

Could you confirm if you are still experiencing issues with Basilisk at this time? If not, can you please share as many details as you can around what you are observing and on what setup.
In any case, its a nice start that palemoon will at least work now with it. I am sure you will get both working.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

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

Re: CloudFlare discussion thread

Unread post by Moonchild » 2025-03-21, 14:17

mstremante wrote:
2025-03-17, 10:52
Pale Moon lacks support for these two functions:
  • canvas fillText()
  • DomRect.toJSON()
I just looked into canvas fillText() to kick this off, and I'm not sure why the CloudFlare checks think we don't support fillText() for canvas -- we do! In fact this has been part of our engine since the start.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Kris_88
Board Warrior
Board Warrior
Posts: 1101
Joined: 2021-01-26, 11:18

Re: CloudFlare discussion thread

Unread post by Kris_88 » 2025-03-21, 18:53

Moonchild wrote:
2025-03-21, 14:17
I just looked into canvas fillText() to kick this off, and I'm not sure why the CloudFlare checks think we don't support fillText().
Try this document in Pale Moon and MS Edge.
Pale Moon returns nsresult: "0x80004005 (NS_ERROR_FAILURE)

Code: Select all

<html>
<head>
</head>
<body>
<script>
var ifr = document.createElement('iframe');
document.body.appendChild(ifr);
var doc = ifr.contentWindow.document;
var cnv = doc.createElement('canvas');
cnv.width = 100;
cnv.height = 100;
doc.body.appendChild(cnv);
var ctx = cnv.getContext("2d");
try { ctx.fillText('test',1,1); }  catch(e) { alert(e); };
</script>
</body>
</html>

Kris_88
Board Warrior
Board Warrior
Posts: 1101
Joined: 2021-01-26, 11:18

Re: CloudFlare discussion thread

Unread post by Kris_88 » 2025-03-21, 20:51

Actually, we should wait for the iframe to load. Then it works. But, Cloudflare gets an NS_ERROR_FAILURE and probably doesn't wait for the iframe to load.
Let's see what mstremante says...

Code: Select all

<html>
<head>
</head>
<body>

<script>
var ifr = document.createElement('iframe');
ifr.onload = function() {

  var doc = ifr.contentWindow.document;
  var cnv = doc.createElement('canvas');
  cnv.width = 100;
  cnv.height = 100;
  doc.body.appendChild(cnv);
  var ctx = cnv.getContext("2d");
  try { ctx.fillText('test',1,10); }  catch(e) { alert(e); };
};

document.body.appendChild(ifr);
</script>

</body>
</html>

User avatar
gepus
Board Warrior
Board Warrior
Posts: 1006
Joined: 2017-12-14, 12:59

Re: CloudFlare discussion thread

Unread post by gepus » 2025-03-21, 22:31

Off-topic:
Drugwash wrote:
2025-03-20, 15:47
Unfortunately after allowing as exception I got an official notice from my government that I'm not allowed to access that site - so can't confirm your claim. Anyone not in the US please be aware:
forbidden_-_2025-03-20_17.46.25.png
No problem accessing the site from abroad (DE). No need for allowing an exception for the cert.
(Your government is kindly protecting you. :) )

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

Re: CloudFlare discussion thread

Unread post by Moonchild » 2025-03-22, 02:16

Kris_88 wrote:
2025-03-21, 20:51
Actually, we should wait for the iframe to load. Then it works. But, Cloudflare gets an NS_ERROR_FAILURE and probably doesn't wait for the iframe to load.
Setting up an iframe takes time! Telling the browser to create a new document context and then immediately shoving elements in it assumes it would be a synchronous process; it isn't.
If you don't allow the iframe enough time to be set up, then the canvas context will not yet be valid or cannot yet be created. The context might also not be valid if there is no active display ("display:none" for example will not necessarily create a context to use and/or behave unexpectedly). All of this has to do with the necessary trade-offs for performance in a rendering engine, too. This will be very implementation-dependent.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Kris_88
Board Warrior
Board Warrior
Posts: 1101
Joined: 2021-01-26, 11:18

Re: CloudFlare discussion thread

Unread post by Kris_88 » 2025-03-22, 02:32

Moonchild wrote:
2025-03-22, 02:16
The context might also not be valid if there is no active display ("display:none" for example will not necessarily create a context to use and/or behave unexpectedly).
Oh, yes, they have canvas with "visibility:hidden". Maybe that's the reason. I can't see everything in their code, otherwise it would take a lot of time. But I see the NS_ERROR_FAILURE error, and the canvas is definitely in the about:blank iframe.

EDIT:

No, the problem is probably in waiting for the iframe.
cnv.setAttribute('style', "visibility:hidden;") hides the canvas but does not prevent the example from working if we are waiting for the iframe to load.

Kris_88
Board Warrior
Board Warrior
Posts: 1101
Joined: 2021-01-26, 11:18

Re: CloudFlare discussion thread

Unread post by Kris_88 » 2025-03-22, 04:14

Okay... let Cloudflare figure it out on its own. I'm done wasting my time on this thankless task... :crazy:

Kris_88
Board Warrior
Board Warrior
Posts: 1101
Joined: 2021-01-26, 11:18

Re: CloudFlare discussion thread

Unread post by Kris_88 » 2025-03-22, 11:38

And, yes, to finish with this, from what I saw.

1) window.structuredClone([ BigInt ])
Exception: DataCloneError: The object could not be cloned.
This is a legitimate error, apparently part of their checks.

2) SVGGElement.getBBox()
As far as I remember, there was NS_ERROR_FAILURE here too.
I don't know here. Either something is not implemented in Pale Moon or they are again trying to do something with the element before it is ready...

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

Re: CloudFlare discussion thread

Unread post by Moonchild » 2025-03-22, 12:51

Kris_88 wrote:
2025-03-22, 04:14
I'm done wasting my time on this thankless task... :crazy:
It's not your job to do this for them, anyway. Not like you're one of their employees who get paid for this.
"A dead end street is a place to turn around and go into a new direction" - 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
billmcct
Board Warrior
Board Warrior
Posts: 1044
Joined: 2012-09-04, 15:19
Location: Union City Georgia USA

Re: CloudFlare discussion thread

Unread post by billmcct » 2025-03-22, 17:59

Wonder what this is going to do to PM and other browsers?

https://www.bleepingcomputer.com/news/s ... endpoints/
--------------------------------------------------------------------------------------------------------------
Dell Precision 15 7550
Windows 10 Pro. 22H2
Xeon W-10885M
64 GB DDR4 ECC memory (128 GB max)
500 GB Corsair T500 main M2 SSD
1 TB Intel storage M2 SSD (6 TB max)
Intel onboard GPU 1080p
Quadro RTX 5000 Max-Q GPU 4K

Pale Moon 33.7.x x64 AVX2 build

The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

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

Re: CloudFlare discussion thread

Unread post by Moonchild » 2025-03-22, 23:03

billmcct wrote:
2025-03-22, 17:59
Wonder what this is going to do to PM and other browsers?
Absolutely nothing. This is only relevant for those CF clients using their CF API. Aside from that Pale Moon and other browsers should have no issue using https to the TLS standards used by CF.
"A dead end street is a place to turn around and go into a new direction" - 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
mstremante
Moongazer
Moongazer
Posts: 8
Joined: 2025-03-04, 16:54

Re: CloudFlare discussion thread

Unread post by mstremante » 2025-03-24, 17:12

I am still experiencing issues with Basilisk, yes. I have verified these issues with both a brand new, clean profile and my normal profile with my preferred add-ons installed.
Hi Basilisk-Dev, we did test Pale Moon and Basilisk before deploying. We do check the UA, but not just for "Basilisk".

Yours: Mozilla/5.0 (Macintosh; Intel Mac OS X 15.3; rv:128) Gecko/20100101 Goanna/6.7 Firefox/128 Basilisk/20250220
Expected: Mozilla/5.0 (Macintosh; Intel Mac OS X 15.3; rv:115.0) Gecko/20100101 Goanna/6.7 Firefox/115.0 Basilisk/20250220

Build numbers aside, do different builds have different formats? The exact syntax tripping up our logic here currently is "Firefox/128" as opposed to "Firefox/128.0".

We're also spinning up a page with a Turnstile widget which has no special Pale Moon (and similar browsers) exceptions to make testing easier. Will provide more updates as soon as possible.