Repository navigation
Fixed
-
AWS WAF detection loses the
gokuPropstriple under Camoufox beta.29+.
This answers the open question from 3.0.0 and 4.5.0. It is a real
detection regression, not aset_contenttiming artefact, and it hit
production images too. From beta.29, Camoufox runspage.evaluatein an
isolated JS world: the DOM is shared, but globals the page defines are
not. Sowindow.gokuPropsreadundefinedeven after the inline script
had run. Measured directly: the same script's DOM write was visible, and
its global was not. The detector now also parses the triple out of the
inline<script>source, which is part of the DOM and visible from any
world. The_KNOWN_BROKENtolerance from 4.5.0 is gone, and a new case
covers the shape live AWS WAF pages serve, with JSON-quoted keys and no
awswaf<script src>.Not taken: launching with
main_world_eval=True. That makes our own
evaluation visible to the page, which a stealth browser cannot afford. -
The same isolated world broke two more things. I audited every script
passed toevaluatefor page-global reads, and found two:- GeeTest went undetected on pages where the only sign was the
initGeetest*globals, and its key and nonce fallbacks (__geetest_config,
gtConfig) were always empty. The loader's<script src>and the inline
init call now count as the same signal the global gave. The config is
parsed from inline source through the same helper asgokuProps. - Image captchas never got their image.
_IMAGE_B64_JSwalked a
Uint8Array, and Firefox forbids reading TypedArray data across the
isolated-world boundary. Every call threw,_fetch_image_b64logged a
warning and returned"", and the image tier could not run. It now uses
FileReader.readAsDataURL, which hands back a plain string. I checked
that the page's cookies are still sent.
Injection, token readback, the slider canvas grab and scrolling are only
DOM reads and writes, and are unaffected. Each fix has a real-browser case
that fails against the 4.5.0 code. - GeeTest went undetected on pages where the only sign was the
Changed
- Lock refreshed against releases since 4.5.0: selectolax 0.4.13 -> 1.0.0,
mcp 2.2.0 -> 2.3.0, plus markupsafe, trimesh and ast-serialize patches. CI's
astral-sh/setup-uvaction is bumped 10.0.1 -> 10.2.0. selectolax 1.0 is a
new major version, but the Lexbor API we use is unchanged and the full suite
passes on it. Its stubs now typecss_firstas returningNoneon a miss, so
threetype: ignore[unreachable]comments in Pattern C and a cast in the CSS
extractor were removed rather than left as suppressions that suppress
nothing.