fix(stealth): solve Cloudflare challenges regardless of locale + retry cap + fix crashing mid-solve
The solver matched English challenge strings, so any non-default locale left the challenge unsolved. The real cause was Playwright's context locale option patching the main thread only, while Web Workers kept the browser language, a mismatch Cloudflare rejects. Locale is now applied via browser launch flags, so the page, workers, and the Accept-Language header stay consistent, and the solver checks the language-free challenge markers with a retry cap. Also catch patchright errors in the page-content retry so stealth pages stop crashing mid-solve. Co-Authored-By: Parash Subedi <parash.subedi@grepsr.com>
K
Karim shoair committed
c0326263b525a611db51bdb5d0173eeb29ec68a7
Parent: 9376a3d