Web Compatibility Support • Re: Loss of performance caused by the :has() selector in specific circumstances on 8chan.moe
Hello there. I'm the programmer who wrote POWBlock, and also one of the technical staff on 8chan.moe. Pleased to meet you.
I'm honestly not sure what the issue is, as it appears to be sporadic and only appeared recently. For example, in testing the Linux AMD 64 GTK3 release just now, I was able to pass POWBlock and access the site just fine. This was with a brand new Palemoon, no modifications or settings changed, just download, untar, run.
The POW challenge page (html, js engine) is known-good for both PM and Tor Browser, and has been in use for a year. The POWBlock backend undergoes frequent tweaks and updates since its under active development, but its behavior is quite straightforward to the browser. Combining its flow with the ordinary website workings, what happens is this:
Client connects on HTTP
Varnish cache redirect triggers on proto, performing a 301 to HTTPS + sameHost + sameURL
Varnish checks for the POW cookies, doesn't see them, and routes the client to POWBlock
PB serves the POW page (on the same URL), browser solves, submits via GET with query params (must be plaintext base64, no % encoding)
Varnish sees the submission, still no cookie yet, routes the compound URL with params to POWBlock
POWBlock parses the URL, verifies the submission, and responds with a 302 to the original URL that also sets the POW cookies
Varnish sees the 302, recognizes the cookies, and sends the client to the same URL on the origin server = full site access.
The issue being described to me is that PB is "looping" on the challenge page with Pale Moon. Looping is odd behavior since most client issues will trigger an error response instead. I can't replicate this bug in PM Linux GTK3 so I can only make educated guesses. My top theory is that the cookies are not being set or not being used by Pale Moon. This would reach the 302 redirect in the above cycle, but Varnish would not see the cookies, and the logic would fall back to the top and issue another challenge. Which would also fail to set cookies, and so forth. If the loop appears "very fast" with the indicator bar jumping back and forth on the POW page, that just means that you're on HTTP and not HTTPS. The POW uses crypto.subtle, so it requires HTTPS for the page to run at all.
I'd be happy to keep responding and help diagnose both the POW gate issues and the performance issues on the origin.
* * *