mirror of
https://github.com/daijro/camoufox.git
synced 2026-11-19 00:07:28 +00:00
The install gate packed the wheel and the npm tarball, installed each into a clean environment and ran `camoufox fetch`, but nothing then launched a browser through them, and every other browser suite drives the launchers from the source tree, so the path a user takes was never exercised end to end. After the fetch, each installed package now launches, headless, the browser it fetched and the browser under test (whatever prepare-browser unpacks: the build job's dist/bin or the fetched release), through the user's import path: python_probe.py under the clean venv with -I, in a new "interact" mode, and node_probe.mjs, its Node twin, copied into the project that installed the tarball so `camoufox` resolves to that install. A local page records the request's User-Agent, runs the shared probe.js, and logs the events of a button and a text input that both probes click and type into with Playwright's locators. The gate fails unless the User-Agent is stock Firefox's shape with the launched browser's application.ini major, navigator.userAgent equals the header, the fonts every Linux identity claims render, the click reached the button once and trusted, and every keystroke was trusted, landed on the input and left the typed text there. Launching the browser under test makes the job wait for the build, so it moves from tier 1 to tier 3a. STOCK_UA moves to ci/_util.py so this gate and the firefox-version-pin guard share one definition of a stock User-Agent. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>