Bug 259713

Summary: JSON.parse error in cloudflare check page
Product: WebKit Reporter: two
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Major CC: ap, mcatanzaro, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: PC   
OS: Linux   

Description two 2023-08-01 16:12:46 PDT
on websites that use cloudflare for "protection", the "checking security" page doesn't complete

```
[Error] SyntaxError: JSON Parse error: Invalid escape character '
	parse (v1:1:157907)
	gR (v1:1:157907)
	aQnCf (v1:1:149338)
	gV (v1:1:149374)
	gQ (v1:1:137483)
	h4 (v1:1:124536)
	fD (v1:1:121510)
	BBcuN (v1:1:141832)
	(anonymous function) (v1:1:142405)
	(anonymous function) (v1:1:142161)
```

this only happens in Epiphany stable, not nightly

on matrix people said it doesn't happen when the js debugger is on
Comment 1 Michael Catanzaro 2023-08-01 16:32:27 PDT
Please, always provide WebKitGTK version when reporting a bug. You mentioned on Matrix this was with WebKitGTK 2.40.4, which is 260527.381@webkitglib/2.40 (86182cd30e2b8c7ab3414e0c883a333033868a12).
Comment 2 Michael Catanzaro 2023-08-01 16:42:37 PDT
We think this is a bug with the DFG JIT tier because a user reports on Matrix that the problem goes away when using JSC_useDFGJIT=0. There are two DFG fixes in WebKitGTK 2.40.5, from bug #256865 and bug #257285. It makes sense to test that before asking JSC developers to investigate further.

Also, the problem reportedly does not occur in Tech Preview (at least, it certainly doesn't occur for me), so if it's not fixed in 2.40.5 it might be bisectable.
Comment 3 Radar WebKit Bug Importer 2023-08-08 16:13:16 PDT
<rdar://problem/113592447>
Comment 4 Michael Catanzaro 2023-08-10 12:08:59 PDT
Any chance this was indeed fixed by WebKitGTK 2.40.5?

Can you provide an example website where the problem can be reproduced? I want to see if it is bisectable.
Comment 5 two 2023-08-22 13:58:31 PDT
it was on many sites including gitlab.com/users/sign_in, but i can't reproduce this any more