Compare commits

...
Author SHA1 Message Date
feder-cr ac75085d10 tests: the ipv6 literal gateway records every CONNECT with time since launch, address type, destination as received and port 2026-11-22 06:31:57 +01:00
feder-cr f5234742e6 tests: the ipv6 literal e2e gateway forwards nothing outside the lab; assert the CONNECT shape, not a count 2026-11-22 06:19:23 +01:00
feder-cr c65828d809 tests: characterize the IPv6 literal gate of firefox-68 (direct refused, mapped refused, SOCKS destination left to the proxy) 2026-11-21 20:37:26 +01:00
Federico Elia 5d84475d98 record 0.58.0 as published (#553) 2026-11-21 12:37:30 +01:00
Federico Elia 0d3a710c02 Release 0.58.0: invisible-core 68.80.0 on firefox-68 (the security state of a retail profile) (#552)
* security state: fetch has the engine generate it, every launch gives the core its engine, and CI launches with a fixed ready directory

The core replaced the intermediates list with the security state (intermediates, OneCRL and the CRLite filters, generated by the engine and copied into every profile). The CLI's fetch calls update_security_state(engine=<the binary it installed>); server.py's one write_user_js passes engine=<the executable of the launch> (no engine_argv: a generation is its own headless run, the core's default line). STEALTHFOX_SECURITY_STATE replaces STEALTHFOX_INTERMEDIATES in every workflow that launches the browser (scripts/ci_lab_security_state.py, ci/security-state/ with a result and no data, pinned by sha256); the unit tests' conftest patches ensure_security_state.

Tests: tests/test_cli.py (fetch), tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py, tests/test_ci_lab_security_state.py, tests/test_ci_workflows_set_the_security_state.py, each red on the code of main.

* e2e: the engine's security state - generation, a normal launch, a certificate revoked in a CRLite delta refused at the first navigation, a launch with no state

wrapper.e2e.securitystate, both legs, in the candidate's wrapper-e2e job: the engine launched directly in its generate mode (exit, the contract's keys, the hashes are the sha256 of the files, the bytes of security_state/) and through the core's generate; a normal launch writes no security-state pref and re-imports nothing; with Mozilla's CRLite test filters and a CA on Mozilla's default test key, a leaf with the serial and SCTs of revoked-in-delta.example.com is refused with SEC_ERROR_REVOKED_CERTIFICATE at the first navigation, a valid one loads, and the revoked one loads with no state; a launch with no or an empty state starts. Red on firefox-67 (no generate mode); the last test is a guard.

* ci: the required list only grows, so the two test files of the intermediates lab keep their names and guard that the old road stays gone

The judge of main refused the list of the branch: wrapper.unit.all.* lost tests/test_ci_lab_intermediates.py and tests/test_ci_workflows_set_the_intermediates_list.py. Both files come back with tests that the lab's files and steps are gone and that every leg that had the step sets the security state (red on main, 5 of 5). The unit suites count what the candidate collected (2183 and 2184) plus these 5: 2188 on Linux, 2189 on Windows.

* ci: the unit rows count what the candidate's gate collected (2168 linux, 2169 windows)

* Release 0.58.0: invisible-core 68.80.0 on firefox-68 (the security state of a retail profile)

* test: the frames of a goto are counted once all are announced, within the goto's own deadline

With Fission the innermost frame of a-b-a lives in a third process and its
announcement may reach the client after the top document's load (2 of 3
frames 0.22 s after the goto, run 44888497316). A frame that never comes
is still red.
2026-11-21 11:12:31 +01:00
Federico Elia 4c7faecde0 tests: the close-loop verdict counts the replies that arrive inside the close, and says where a silent browser was (#550)
The corsa 44856198702 (Windows) was red with replies [47, 0, 46] inside the close: the second browser's engine did not run for the
whole close while the loop read the other two. The verdict asked every browser for a call that BEGAN and ENDED inside the close, so a
single call that straddled the whole close turned a machine that did not run an engine into "the loop did not run".

- the pinger records the spans of its calls and the call still waiting; the test prints the close's duration, the replies that arrived
  inside it, the calls inside it, and the spans that touched it;
- a browser answered during the close when a reply ARRIVED while it was in flight, whenever its call began;
- a browser silent inside the close is red only if the watcher saw the loop's thread inside a step of the close that waits, or if no
  browser answered at all; "all three answer while the removal is held" stays with `during_removal`;
- unit tests: a held loop is red, one silent engine with a free loop is green (the 47/0/46 of the corsa), a straddling call counts, the
  client's own pinger on a scripted page; required-suites: wrapper.unit.all +6 (37 -> 43 in the verdicts file), e2e count unchanged.
2026-11-21 08:59:56 +01:00
Federico Elia f84f83f17d tests: the witness counts only what comes from this host (#551)
* tests: the witness counts as the browser only a source that is an address of this host

* ci: the unit rows that hold the witness test count its four new tests
2026-11-21 08:26:41 +01:00
Federico Elia 2b68ae3adf tests: each engine gate waits for the release that carries its property (68 vs 69) (#548)
* The accumulated line's tests wait for firefox-69, not for the release being made

firefox-68 now carries only the core's in-memory caches, the security-state
files, the held cut of a committed navigation (networkidle), the Juggler trace
and MOZ_LOG modules, and TEMP on D:. The 18 gates on firefox-68 of the 15 test
files of the accumulated line (idwr canvas text, empty fontconfig, ucrt maths,
WebGL blending and ALU, WebCodecs, system fonts and colours, the canvas colour
profile, WebGL2 without Mesa) move to firefox-69. test_a_page_that_moves_on_e2e
keeps its firefox-68 gate.

tests/data/engine_gates.json states for each release from firefox-68 on what it
carries and which test files wait for it; tests/unit/test_engine_at_least.py
reads every engine_at_least / engine_reaches call and fails when a gate names a
release the registry does not put that file in (red on the old gates, green now).
The two unit rows of ci/required-suites.json go up by the 5 new tests.

* Delete the 15 tests of the cancelled backlog, with what exists only for them

The accumulated line (firefox-69) is not the backlog any more: its 15 e2e tests prove
functions that were deleted, and a test no round runs is deleted, not left off.

Out with them: the six unit tests that only read their references or helpers, the
reference data (canvas text and ICC, ucrt sweeps, system theme, WebCodecs streams), the
scripts that built them and the shared canvas helper. tests/data/engine_gates.json keeps
only firefox-68. The strace stand-in that the fontconfig cache test imported from one of
the deleted files moves to tests/_strace_stand_in.py. The two rows of the unit suite lose
those files and 41 tests.

* The fake web's case under load waits for firefox-68, where the held cut of networkidle is fixed
2026-11-21 04:04:49 +01:00
Federico Elia 6c800e7fa0 The judge lets a test leave a row only by a retired list that main holds (#549)
A test that is deleted because its feature is cancelled cannot stay in the rows, and the
judge, reading main, called every such deletion a lost test and a lower minimum.
ci/retired-tests.json, read from main next to main's list (never from the judged branch),
names the files that may go: each with its reason, its date and the number of tests it had
in each row. A retired file that no longer exists leaves its row without being counted as
lost, and the minimum of the row may go down by exactly those tests. A retired file still
on disk, a file main did not retire and a minimum lowered by more all stay red. The ten
files of the cancelled backlog that the unit rows name are the first entries; a test checks
that the declared counts are what the collection gives while a file exists.
2026-11-21 02:45:40 +01:00
Federico Elia 1ee7a6f644 A drag reaches the page with the button it holds (e2e) (#457)
* A drag reaches the page with the button it holds, in a real browser

e2e: mouse.down, moves (plain and with steps), mouse.up, one more move; the
page records event.buttons on every mousemove. Left button expects 1 during
the drag, right expects 2, and 0 after the release; humanised and not.

* ci: wrapper.e2e.page counts the 4 cases of the drag that keeps its buttons (126 -> 130)
2026-11-20 17:09:22 +01:00
Federico Elia 96ffd1238f record 0.57.1 as published (#545) 2026-11-20 17:09:14 +01:00
Federico Elia d0f138c87a tests: the fontconfig cache test measures only the bundle's cache and saves what fontconfig says (#546)
* tests: the fontconfig cache test saves the raw trace of the bundle folder and the parent's XDG_CACHE_HOME, so a launch that wrote no cache can be explained from the evidence

* tests: the fontconfig cache test counts only opens with a result and only the cache of the bundle, and saves what fontconfig prints (FC_DEBUG=16) and every cache open

* ci: the unit rows count the fontconfig cache criterion (2178 -> 2183, 2179 -> 2184)

* tests: the criterion's bundle path is a neutral one, its cache name computed from it

* tests: the cache opens are gathered before the trace that starts with them

* tests: the fontconfig cache test traces the writes with the other calls and keeps those to the descriptors 1 and 2 itself (--trace-fds filtered the execve out)
2026-11-20 16:28:01 +01:00
Federico Elia d1bfea3373 Release 0.57.1: invisible-core 67.79.0 (the font list is created once and never replaced) (#544) 2026-11-20 12:58:28 +01:00
Federico Elia b6a17d00fa ci: the gate waits for the noreply identity check of the core (#543) 2026-11-20 11:55:24 +01:00
Federico Elia 2a1867fd9e docs: no other project or detection page named in our text (#542)
* docs: remove names the project rules keep out of public text

Delete the comparison page for another patched Firefox project and rewrite
every reference without naming it. Replace the names of public fingerprint
test pages with generic descriptions, rename the three pages that were
about them (consistency-checker-explained, raw-value-inspector-explained,
canvas-webgl-readback-hash-explained) and keep the guides usable with
placeholder URLs.

* docs: describe the other detection systems generically on the lines the previous commit rewrote
2026-11-20 11:45:45 +01:00
Federico EliaandClaude Sonnet 5.5 ffe5c4cc9a fakeweb: profile P4, a user journey judged step by step against stock Firefox (#465)
* The fake web, profile P2: a reused routed page reaches networkidle on hard pages, against stock

tests/fakeweb/ holds the offline pages (two origins on 127.0.0.1, every response finite), the P2 driver (one context and one
page reused for every address, the stock Playwright client over our served browser, a plain synchronous route that aborts
image and media, goto(commit) then the client-side networkidle wait, the quiet canary after every page) and the outcome stock
Firefox has on each page (pages.json, stock.lock).

scripts/run_fakeweb.py is the single entry of ci-release-18: our engine and stock Firefox on the same pages, same client,
same job; red where stock idles and we do not, and red as a broken control where stock deviates from pages.json.

tests/test_fakeweb_p2_e2e.py loads each hard page five times in a row, a canary after each: the failure it guards is a rate (one
request whose end the client never hears holds every later address of the page).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fakeweb: newsfront is not a gate page, stock Firefox stalls on it 1 or 2 times in 10

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fakeweb: ten rounds per hard page (cancel_among_beacons is red on main in 3 runs of 3, green on 62.64.0 in 4 of 4)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fakeweb: the stock client is imported by name, the fork's guard forbids the static import

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fakeweb: profile P4, a 17-step user journey judged step by step against stock Firefox

The same entry (scripts/run_fakeweb.py --profile p4) runs stock Firefox first and our engine right after, both driven by the
stock client, over a small multi-page site (tests/fakeweb/journey_site.py): click, hover, scroll, back, forward, popstate
filter, a new tab, a download, a keyboard search, sign-in, sign out, "load more". The verdict compares ok, url, title, marker,
cookie names, history length, open pages, networkidle and the step's own values; the stock run must also match the outcome
declared in pages.json (journey_p4), else it is a broken control.

The ad noise of the site is deterministic: slow responses are held by the server until an event releases them, nothing is
aborted or removed while its request is in flight, so stock gives the same idle vector on every run. Two pages stay "not
idle" on purpose, one of them through a keepalive fetch the client must count as in flight. The second origin is another
site (localhost against 127.0.0.1), so the ad frames and the partner page leave the page's process.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fakeweb: A and O are two sites; the page that leaves with beacons must idle under a load of other browsers (mandatory case)

* sites.start(): A is 127.0.0.1 and O is localhost, two different SITES for Fission (two ports of one host are one site, and a frame of
  the "other origin" never left the page's process). A test asserts that the frames of O add a content process (spares off).
* profile_p2: a navigation that does not idle records the requests the client heard of and not yet heard the end of.
* The mandatory case: leaving_beacons_subframe, ten rounds, under three background browsers of ours reloading an ad-heavy page every
  two seconds. Quiet, it passes; loaded, Playwright's own Firefox idles 30 of 30 and an engine that does not end a resumed request whose
  replaced channel was cancelled idled 1 of 30. Red on the candidate engine, green on a copy with the Juggler change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fakeweb: a popup reaches the client (matrix e2e test), and the notes of profile P4

tests/test_popups_reach_the_client_e2e.py: four ways to open a popup (link, link with noopener, window.open, window.open
with noopener) x the opener's site or another site x with and without a context route x the client of the wheel in the same
process and the stock client over launch_server. Each case: the page event within 10 s, the page at its address, answering an
evaluate, with an opener (stock Firefox gives one in all four kinds). One case proves the other-site target adds a content
process, the same-site one does not. A wait for the engine's ready signal once dropped every popup whose first request went
through a route.

tests/fakeweb/JOURNEY.md: what profile P4 does, why the noise is deterministic, and the known difference in our favour (a
fetch aborted by the page that stock leaves in flight for ever is closed with requestfailed by us).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: what a popup does for each destination, as stock Firefox does it

A 204 and a server that never answers give no page event, a slow answer gives the event when it comes (with the destination
as its url, no ceiling: 25 s was seen by hand), an attachment gives a page event, a download event on the opener and a popup
that closes. Both ways to open (window.open, a target=_blank link), both transports (the client of the wheel in the same
process, the stock client over launch_server). The reference is Playwright 1.62 with its own Firefox, written in the
docstring; the cases that stock answers with "nothing" wait a bounded 8 s.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: a popup whose page answers after 25 seconds is still announced

Stock Firefox has no ceiling on a popup: a destination that answers after 25 s
is announced at 25.1 s. The 4 s case of this file passes with a wait that gives
up on a popup after 20 s, so the 25 s case runs too, once per transport.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* tests: the helper's argument no longer shadows the imported fixture

ruff F811: `_Run.__init__` took an argument called `browser`, the name of the
fixture this file imports from its sibling. The tests job runs that rule on the
whole repository, and a copy of this file on another branch failed it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* ci: the fake web, profile P2, on the engine of a series run (a hunt, not a gate)

Runs scripts/run_fakeweb.py (our engine beside Playwright's own Firefox in the same job, every page, 10 repetitions) and the mandatory case of
tests/test_fakeweb_p2_e2e.py (the page that leaves with beacons under a load of three loaders) on the `asset-win-x86_64` artifact of a run of
the series repository (default: the round 3 build, run 43164943499). The series repository is public, so `gh run download` needs no secret. The
per-page numbers (idle / not idle, engine and stock) are printed and the verdict file is uploaded. It starts on a push that touches this file.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fakeweb: profile P4, a 17-step user journey judged step by step against stock Firefox

The same entry (scripts/run_fakeweb.py --profile p4) runs stock Firefox first and our engine right after, both driven by the
stock client, over a small multi-page site (tests/fakeweb/journey_site.py): click, hover, scroll, back, forward, popstate
filter, a new tab, a download, a keyboard search, sign-in, sign out, "load more". The verdict compares ok, url, title, marker,
cookie names, history length, open pages, networkidle and the step's own values; the stock run must also match the outcome
declared in pages.json (journey_p4), else it is a broken control.

The ad noise of the site is deterministic: slow responses are held by the server until an event releases them, nothing is
aborted or removed while its request is in flight, so stock gives the same idle vector on every run. Two pages stay "not
idle" on purpose, one of them through a keepalive fetch the client must count as in flight. The second origin is another
site (localhost against 127.0.0.1), so the ad frames and the partner page leave the page's process.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fakeweb: a popup reaches the client (matrix e2e test), and the notes of profile P4

tests/test_popups_reach_the_client_e2e.py: four ways to open a popup (link, link with noopener, window.open, window.open
with noopener) x the opener's site or another site x with and without a context route x the client of the wheel in the same
process and the stock client over launch_server. Each case: the page event within 10 s, the page at its address, answering an
evaluate, with an opener (stock Firefox gives one in all four kinds). One case proves the other-site target adds a content
process, the same-site one does not. A wait for the engine's ready signal once dropped every popup whose first request went
through a route.

tests/fakeweb/JOURNEY.md: what profile P4 does, why the noise is deterministic, and the known difference in our favour (a
fetch aborted by the page that stock leaves in flight for ever is closed with requestfailed by us).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: what a popup does for each destination, as stock Firefox does it

A 204 and a server that never answers give no page event, a slow answer gives the event when it comes (with the destination
as its url, no ceiling: 25 s was seen by hand), an attachment gives a page event, a download event on the opener and a popup
that closes. Both ways to open (window.open, a target=_blank link), both transports (the client of the wheel in the same
process, the stock client over launch_server). The reference is Playwright 1.62 with its own Firefox, written in the
docstring; the cases that stock answers with "nothing" wait a bounded 8 s.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: a popup whose page answers after 25 seconds is still announced

Stock Firefox has no ceiling on a popup: a destination that answers after 25 s
is announced at 25.1 s. The 4 s case of this file passes with a wait that gives
up on a popup after 20 s, so the 25 s case runs too, once per transport.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* tests: the helper's argument no longer shadows the imported fixture

ruff F811: `_Run.__init__` took an argument called `browser`, the name of the
fixture this file imports from its sibling. The tests job runs that rule on the
whole repository, and a copy of this file on another branch failed it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fakeweb: profile P4 can trace its walk, and a reader turns the report into a step summary

--trace keeps, per step, the request events the client reported and the hits the site saw. scripts/fakeweb_p4_report.py reads
the runner's JSON: per walk a table (stock ok/idle, ours ok/idle, equal or different), the FAIL lines, whether the control is
sound, and a verdict that tells a difference of ours (1) from a broken control (2); for a traced walk, the resource types of
sendBeacon and the keepalive counts of client and server.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* ci: the fake web, profile P4, on the Linux engine of a series run (a hunt, not a gate)

One job on ubuntu-24.04: the engine of a run of the series repository (asset-linux-x86_64), the core that run was built with, the
wrapper of the pushed branch, stock Firefox of the pinned Playwright; stock first, ours second, three walks, judged step by step.
Red when ours differs from stock on a sound walk, red with another message on a broken control; a traced walk of ours then
reports the resource types of sendBeacon and the keepalive counts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fakeweb-p4: the wrapper under the journey is the one of the engine's run

The first run installed this branch's own wrapper next to the core of the
candidate run. That wrapper is one release older than the core, and the launch
failed before any page: 'SessionGeo' object has no attribute 'srflx_to_declare'.
The tests still come from this branch; the package is installed from the ref
the engine's run was judged with (udp/wrapper-r3), and the versions installed
are printed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fakeweb-p4: the core and the wrapper of round 5 under the journey

The engine stays the one of the candidate run named in ENGINE_RUN_ID until
round 5 has built its own.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fakeweb p4: trace stock and ours, collect server events by walk at the end

- Server events are collected once, after the last step of the walk (0.5 s
  later), by walk and step, so a request fired on pagehide is no longer lost.
- The site counts walks (State.begin_walk) and tags every event with its walk,
  so the stock walk and ours do not mix.
- The workflow traces both browsers (no --no-stock). The trace report compares
  ours with stock per kind of request: same set of resource types, no more
  unreported server hits; stock without any sendBeacon is a broken control
  (exit 2). Without a traced stock walk the absolute rules stay.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fakeweb: one workflow with one verdict, offline and without clocks, registered for the candidate

The two hunt workflows on an engine of a named run (fakeweb-p2.yml, fakeweb-p4.yml) become fakeweb.yml: four legs (P2 and P4, Linux and
Windows) on the published engine beside Playwright's own Firefox, stock first, and the job 'fakeweb verdict' red unless all four are green.
It starts on a pull request or a push to main that touches the fake web, with the concurrency group of e2e.yml, the intermediates list and
the lab GeoIP database made by the repository, and no rerun.

The e2e of the fake web stop waiting on clocks: the loaders say they are up with a file instead of a pause of 20 seconds, the new content
process is waited for as a condition, and the deadlines are 30 seconds or more. ci/required-suites.json gets wrapper.e2e.fakeweb (the two
e2e files, both systems, exact) and the unit files of the fake web in both wrapper.unit.all rows. A unit test holds the fake web offline.

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:59:16 +01:00
Federico Elia d78d017ae2 docs: WebRTC behind a proxy, as the engine does it today (#515)
* docs: WebRTC behind a proxy, as the engine does it today

The guides described a synthetic server-reflexive candidate and an address
rewritten after the STUN reply, and said that SOCKS5 carries only TCP. None of
that is what the published packages do.

What they do, and what the pages now say: before launch the library measures
the SOCKS5 UDP relay of the proxy (UDP ASSOCIATE, a STUN Binding through the
relay, compared with the TCP exit). When the relay answers from the exit
address, WebRTC's UDP goes through it and the srflx is a real one carrying the
exit. With any other proxy no datagram leaves at all: host candidates as mDNS
names, no srflx, one icecandidateerror 701. Never a direct datagram, no option
that forces UDP or declares an address, no IPv6 candidate in any session.

SOCKS5 does define UDP (RFC 1928): the pages say so, and say why a stock
browser leaks anyway (it never asks the proxy to relay WebRTC's UDP).

The examples assert only what is guaranteed in each case, wait for the end of
gathering instead of a fixed time, and no longer require a srflx behind a proxy
that cannot carry UDP. The project's own history is out of these pages.

* docs: the WebRTC examples name a STUN server and wait for the 701, the 701 comes at about eleven seconds, the exit is discovered with an explicit timezone too
2026-11-20 08:14:28 +01:00
Federico Elia 626a602205 record 0.57.0 as published (#541) 2026-11-20 07:28:18 +01:00
Federico Elia b1d5adb7e4 tests: the release walk reads the releases list once, not one call per version (#539)
A transient 5xx on api.github.com turned the check red when it hit any of the
~80 per-version calls. The check now reads GET /releases?per_page=100&page=N
into a tag -> release map and looks each live version up there. An HTTP error
on the list is still an error; a list that breaks mid-way fails with the page
number and the drafts and empty bodies already seen.
2026-11-20 06:07:55 +01:00
Federico Elia f5988a13d6 test: each round of a page that moves waits for its own landing; the strict case refuses NS_BINDING_ABORTED from firefox-68 (#538) 2026-11-20 06:07:48 +01:00
Federico Elia 8e7862f6e7 record 0.56.0 as published (#534) 2026-11-20 06:07:41 +01:00
Federico Elia 93d8a40c63 ci: a ledger PR checks the version it records; the display-start test without a clock (#540)
* ci: the user-install run of a ledger PR checks the version the PR records, not the one of the tree

The ledger pull request of a release is merged after user-install is green, and main may already declare the next version: #534 records
0.56.0 while the tree says 0.57.0, which is not published until that ledger is merged, so the wait on the index for the version of
pyproject.toml could never end.

A step compares PUBLISHED.json at the base of the pull request with the one at its head (scripts/ci_ledger_added_versions.py): the one
added version is INVPW_E2E_VERSION for the wait, the release test (uv add ==X) and the upgrade test (from the release before it to X).
No addition, or more than one, is an error that says so. Scheduled and dispatched runs are unchanged.

Test: the wait is about the version of the ledger, not of pyproject; base [..0.55.0], head [..0.55.0, 0.56.0], tree 0.57.0 gives 0.56.0.
min_tests of the two unit rows +6.

* Test: the display start runs off the loop, proved without a clock

The test measured the longest reply gap of a second browser against a 100 ms
threshold and went red on a loaded GitHub runner (129-134 ms) with no defect in
the code. The display stand-in now blocks until the test releases it; while it
is blocked the loop must serve the second browser. The cancelled-launch test
waits on events instead of sleeping. No test in the file depends on a clock.
2026-11-20 05:35:41 +01:00
Federico Elia 10821ac225 Release 0.57.0: invisible-core 67.78.0 (no value kept in memory, the intermediates list checked by fetch, networkidle from the commit) (#537)
* fetch: look for a newer intermediates list (update_intermediates) instead of only caching one

Needs invisible-core with update_intermediates (the core release after 67.77.0).

* launch: the UDP verdict travels in the prefs to the server; the core keeps none

The core no longer remembers the UDP verdict of a proxy, so the launch's geo step hands it to
the server in the prefs (invisible.server.udp_exit, taken out before the profile is written, never
what a caller wrote) and op_launch gives it to launch_proxy_command. Every entry point keeps
SessionGeo.udp_exit on its session.

Tests that read the core's cache for the verdict now read it where it is written: the one function
that renders the engine's proxy command is spied by conftest (tests/_udp_line.py). The tests that
reset the core's cached seal drop the reset (the core reads the seal on every call).

* Release 0.57.0: pins invisible-core 67.78.0 (no cache in memory in the core; fetch checks the intermediates list), same engine firefox-67

* launch: the UDP verdict is passed to launch_proxy_command by name (keyword-only in the core 67.78.0)

* CHANGELOG 0.57.0: networkidle of a new document counts its quiet from the commit (core 67.78.0)
2026-11-20 04:10:53 +01:00
Federico Elia 7c6aa59bd2 Merge pull request #535 from oss-invisible/tests/lab-proxies-answer-the-egress
tests: the question of the exit behind a proxy of the lab is answered by the lab, never by the internet
2026-11-20 02:42:43 +01:00
Federico Elia 57ab6cf2ec Merge branch 'main' into tests/lab-proxies-answer-the-egress 2026-11-20 02:02:34 +01:00
Federico Elia 553b3289e7 Merge pull request #536 from oss-invisible/tests/networkidle-after-the-move-is-honest
tests: networkidle after a page's move asserts what holds on any machine
2026-11-20 02:02:30 +01:00
feder-cr 608d50df9f test: networkidle after a page's move: the after-load cases assert what holds on any machine, two strict cases on a document still arriving 2026-11-20 01:14:05 +01:00
feder-cr 3f3214d75c tests: the question of the exit behind a proxy of the lab is answered by the lab, never by the internet
The product asks "where do I leave from" through the proxy of a launch, HTTPS, to the exit services
of the core. Some proxies of the tests forward for real (Socks5TcpOnly, the recorder of the SOCKS
auth test, the gateway beyond its own answers): they carried the question to the internet, and the
answer was the public address of the runner, which changed in the middle of a session
(ProxyEgressDrifted on the ledger PR of 0.56.0).

Each proxy of the tests that forwards for real now declares its exit and the lab answers with it.
A question that reaches one without a declaration is refused there, and an autouse fixture fails
the test with the name of the proxy and of the service. Ten unit tests (red on the old bench).
min_tests of wrapper.unit.all: +10.
2026-11-20 00:15:55 +01:00
Federico Elia 54e1761ac1 Merge pull request #533 from oss-invisible/release/0.56.0
Release 0.56.0: invisible-core 67.77.0, the engine firefox-67
2026-11-19 22:35:46 +01:00
feder-cr 2260bde836 Merge remote-tracking branch 'origin/main' into release/0.56.0 2026-11-19 21:52:32 +01:00
Federico Elia e1454deef9 Merge pull request #532 from oss-invisible/tests/core-67-declares-intermediates
tests: ready for the core that declares the intermediates list, and the accumulated line is firefox-68
2026-11-19 21:32:45 +01:00
feder-cr 97eafd1f20 tests: ready for the core that declares the intermediates list (67.77.0), before its release
wrapper-on-this-core (the core's CI) runs the wrapper's main against the new core. Two tests were
red there: the core's write_user_js now declares the intermediates list (a composed session gained
a pref) and its environment registry names STEALTHFOX_INTERMEDIATES (the e2e files' _LEAKS lacked
it). The unit tests stub the list as the core's own suite does (guarded: the pinned 66.76.0 has no
such module), and both e2e files clean the variable. With the line-68 gates (cherry-picked) the
accumulated line's tests skip on the firefox-67 engine.
2026-11-19 20:56:19 +01:00
feder-cr c48e7a72fa tests: the accumulated engine line is firefox-68, not firefox-67
The gates of the shelved line move from engine_at_least("firefox-67") to
engine_at_least("firefox-68"); firefox-67 carries only the declared intermediate certificates.
2026-11-19 20:50:42 +01:00
feder-cr 03e54e3af0 Release 0.56.0: pins invisible-core 67.77.0, engine firefox-67 (the intermediate certificates are declared by the core) 2026-11-19 20:45:28 +01:00
feder-cr 1bc1ffa718 ci: the unit suites count what the candidate collected (2131 on Linux, 2132 on Windows)
Run 44579484534 collected 2131 and 2132 tests and every one passed; the registry is exact and said 2109 and 2110, counted on a PC.
2026-11-19 20:05:25 +01:00
feder-cr e84e17042c tests: the accumulated engine line is firefox-68, not firefox-67
The gates of the shelved line move from engine_at_least("firefox-67") to
engine_at_least("firefox-68"); firefox-67 carries only the declared intermediate certificates.
2026-11-19 18:33:53 +01:00
feder-cr 0f7f21baf5 ci: the Control+A job sets the fixed intermediates list before fetch, too
It fetches and launches like the other Windows parts; without the variable its fetch would
download Mozilla's list. The workflow test now covers that job (red without the step).
2026-11-19 18:22:02 +01:00
feder-cr 3aa3b52385 ci: every leg launches with a fixed, empty intermediates list, so the core asks Mozilla for nothing
scripts/ci_lab_intermediates.py set checks ci/intermediates.json (format 1, no certificate)
against ci/intermediates.pin.json and exports STEALTHFOX_INTERMEDIATES. tests.yml and e2e.yml
(Linux and Windows) run it once, before pytest and, in e2e.yml, before `fetch` (which makes
the list present). Unit tests: the script, and the workflows (once, in order).

The unit suite stubs the list's download as the core's own suite does, the two release e2e
files name the new variable in their _LEAKS, and both rows of the required suites count the
two new files.
2026-11-19 17:57:10 +01:00
feder-cr d4f43cd05a fetch: make the core's intermediates list present after the engine
A failure is a warning on stderr; the exit code and the last line (the engine's path) are unchanged.
2026-11-19 16:49:44 +01:00
Federico Elia 6b1712ee9e Merge pull request #530 from oss-invisible/ledger/0.55.0
record 0.55.0 as published
2026-11-19 04:16:02 +01:00
feder-cr 14f96ff6b2 record 0.55.0 as published 2026-11-19 02:47:23 +00:00
Federico Elia 4eed1e9039 Merge pull request #529 from oss-invisible/release/0.55.0
Release 0.55.0: pins invisible-core 66.76.0, the legacy code of the wrapper is removed (same engine, firefox-66)
2026-11-19 03:01:51 +01:00
feder-crandClaude Opus 5.5 6ccf126bd0 tests: the stub core of test_seal_floor carries pin.py only, and a test refuses the removed _pin alias in a script
The core 66.76.0 has no _pin.py alias. The stub built by test_seal_floor asked for it,
and its subprocess imported it, so 8 tests failed against the new core. The stub copies
pin.py and imports invisible_core.pin. The scan for removed names does not read inside
a string, so a second test reads the source lines for the alias.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:09:52 +01:00
feder-crandClaude Opus 5.5 b3c86ee051 Release 0.55.0: pins invisible-core 66.76.0, the legacy code of the wrapper is removed (same engine, firefox-66)
invisible-core 66.76.0 is on the index (publish run 44432604469). The wrapper
stops reaching the legacy API of the core (#527, #528); the workflows arm the
pre-push gates with python -m invisible_core.hooks install, and
scripts/install_hooks.py, which only forwarded to it, is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:03:57 +01:00
Federico Elia af8ad55cda Merge pull request #528 from oss-invisible/fix/conftest-no-removed-core-names
tests: the conftest does not import a name the core removed
2026-11-19 01:25:44 +01:00
feder-crandClaude Opus 5.5 e7c64166ad tests: the conftest takes the engine entry table from invisible_core.seal, and a test fails if a wrapper file imports a name the core removed
The core 66.76.0 removes constants.BINARY_ENTRY_REL; tests/conftest.py imported it
(inside a try that hid the error), so every fixture that needs the package failed at
setup in the core's wrapper-on-this-core job. seal.DEFAULT_ENTRY_REL is the table it
was a copy of, and exists in both cores.

The new test reads every Python file of src, tests, scripts, ci and examples and fails
on an import or an access of BINARY_ENTRY_REL, tz_env, BROKEN_VERSIONS,
cache_dir_for_version, resolve_session_timezone, _pin, _parse_checksums, or the two
database helpers of invisible_core.download. It has its own known-bad cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:37:09 +01:00
Federico Elia b0fe8c9c51 Merge pull request #527 from oss-invisible/chore/no-legacy
Remove the legacy code of the wrapper (no release; the pin stays 66.75.0)
2026-11-19 00:19:04 +01:00
feder-crandClaude Opus 5.5 ae7c869aeb Version 0.55.0: the legacy code is removed (the pin stays invisible-core 66.75.0 until the core 66.76.0 is published)
The gate that refuses a change to the wheel under an unmoved version asks for it.
No tag: the release of 0.55.0, with the pin moved to 66.76.0, comes after the core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:36:22 +01:00
feder-crandClaude Opus 5.5 f670c41672 Make the cursor engine strict and the generator unconditional
INVPW_CURSOR_ENGINE accepts unset or empty, python and off; any other value
(binary, juggler, none, false, 0, ...) is a ValueError that lists the valid
ones, with no aliases and no value ignored in silence.

The cursor generator is imported directly from invisible_core.juggler, as the
core is pinned with ==: the guarded import, _MOTION_IMPORT_ERROR, the
"no-motion" warning and the inert-pointer branch are gone, and
_motion_factory returns CursorMotion.

The test that scanned a driver bundle tree is removed with the Node driver it
needed, with its row in the accounting test and its exclusion in pyproject.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:04:46 +01:00
feder-crandClaude Opus 5.5 76de860c31 Remove the legacy code of the wrapper
Nine modules that only aliased invisible_core (_geo, _headless, _proxy,
_webgl_personas, config, constants, download, prefs, _fpforge) and _reaper
are gone, with the tests that existed for them (test_backcompat,
test_suite_boundaries); the callers and the tests import
invisible_core.<module> (invisible_core.process for the reaper).

The cursor has one generator, CursorMotion(seed, *, style=), and two
engines, python and off: INVPW_CURSOR_ENGINE=binary, the fallback to the
browser's own motion, the alternative generator names, the max_seconds
introspection and the MIN_EVENT_INTERVAL_MS re-export are removed.

INVPW_TRANSPORT=driver and its guard are removed, with the driver arm of
scripts/capture_protocol.py. preload_newtab is always handed to the core.
resolve_session_timezone is no longer re-exported; the tests use
cache_dir_for_seal, and ensure_geoip_mmdb comes from the package root.

The documentation no longer presents INVPW_BINARY_PATH as a variable of the
library (nothing reads it); binary_path= is the way. A new test fails if any
of the removed modules or names comes back. The unit rows of
ci/required-suites.json follow the files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:01:28 +01:00
Federico Elia e200968886 Merge pull request #526 from oss-invisible/ledger/0.54.0
record 0.54.0 as published
2026-11-18 02:15:46 +01:00
feder-cr b04c50b0a9 record 0.54.0 as published 2026-11-18 00:47:20 +00:00
Federico Elia 481d97fcc2 Merge pull request #525 from oss-invisible/release/0.54.0
Release 0.54.0: invisible-core 66.75.0, the engine firefox-66
2026-11-18 01:06:47 +01:00
feder-cr 6f02a21978 Release 0.54.0: pins invisible-core 66.75.0, the engine firefox-66 (a screenshot on Linux draws text in the page's fonts)
The engine's main process shows the bundled fonts to fontconfig before it builds
its font list, and a face of a collection keeps its index (Mozilla bug 2077661):
a screenshot on Linux no longer draws text with a fallback font or another face of
the collection. The tests that see it came with #524.

invisible-core 66.75.0 is not on the index yet: this branch pins a core that is
published by the release of the core that comes first.
2026-11-17 22:57:57 +01:00
Federico Elia 9e04f2cbd8 Merge pull request #524 from oss-invisible/test/screenshot-bundle-fonts
tests: a screenshot draws the bundled fonts as the content draws them (from firefox-66)
2026-11-17 22:53:25 +01:00
feder-cr 5807de97af tests: the stand-in's tool test waits for the fake engine's signal, not for a second
The clock guard refused time.sleep(1.0) in the tool test of the stand-in. The fake
engine now writes a signal file (renamed into place) once its child runs, with the
child's pid and its own parent's; the test waits for it with wait_until (tests/
_waits.py) and then reads the state: the process the launcher holds is alive and
is the fake engine's parent (strace), and the group holds strace and the child.
2026-11-17 22:15:24 +01:00
feder-cr 6c298fcd41 tests: the strace stand-in stays in the engine's place (no setsid), and its cleanup kills the group of its pid
Candidate 44161687675 (job 134356188701): the fontconfig e2e failed at the cold
launch, "the browser exited during startup ... exit code 0" after 1.7 s. The core
spawns the engine as the leader of a process group of its own (posix_spawn with
setpgroup=0); the stand-in exec'd setsid, and setsid(1) forks when its caller leads
a group: its parent exited 0 at once and the core saw the engine gone.

The stand-in now execs strace itself: the pid stays, and the group is the one the
core gave the engine. _kill_group kills the group of the stand-in's pid
(os.getpgid), never the test's own group; _group_members and _wait_for_exit take
that group. The kill test launches the stand-in as the core does (_detached,
process_group=0). New test of the tool, no browser: a fake engine with a child,
launched as the core launches the engine, through the stand-in: the launcher's
process lives as long as the fake engine, and the group killed holds strace and
the child, with nothing left. wrapper.e2e.fontconfig: min_tests 2; strace only
(setsid is no longer used).
2026-11-17 22:01:21 +01:00
Federico Elia 5c94b0d281 Merge pull request #523 from oss-invisible/test/accumulated-line-is-firefox-67
tests: the accumulated engine line is firefox-67
2026-11-17 18:34:41 +01:00
feder-cr 7d8186fe6a ci: the Linux e2e installs strace
From firefox-66 the e2e of fontconfig's cache (wrapper.e2e.fontconfig) runs with the
published engine and is red without strace, not skipped. The runner image does not
have it: the Linux job installs it, as the engine's gate does on its fontconfig leg.
2026-11-17 18:23:48 +01:00
feder-cr 3aff03c7cc tests: the cold parent scans the whole bundle and the warm one does not (fontconfig scans a folder all or none)
Even on a warm cache the parent opens a few files of <GRE>/fonts before the first
page, to use them (a face of its own interface), so "no file the cold launch opened"
was red for a good engine. Fontconfig scans a folder as a whole or reads its cache.
The measurement is valid when the cold parent opened every font file of the folder
(as the disk lists it, by extension) and fontconfig wrote its cache; the verdict is
that the warm parent does not open every font file of the folder and opens a
*.cache-* file under $XDG_CACHE_HOME/fontconfig. The evidence names the files each
launch opened before the first page and the files of the folder that are not fonts.
2026-11-17 18:12:33 +01:00
feder-cr 4f510bfba0 tests: the warm parent reads the bundle from fontconfig's cache and does not scan it again (Linux e2e, from firefox-66)
Two launches under strace with the same XDG_CACHE_HOME: in the warm one the parent opens no file of <GRE>/fonts that the cold one opened
before any page, and opens a *.cache-* file of fontconfig. Evidence: interval and number of opens of the bundle, the cache file, the VmRSS
of the parent after about:blank and after a page with every family; a third launch with gfx.bundled-fonts.activate=0 is evidence only.
The strace stand-in takes the traced calls and -ttt as arguments, and the roles of the processes come out of _host_lookups as _roles.
New row wrapper.e2e.fontconfig (Linux only, min_tests 1).
2026-11-17 17:56:36 +01:00
feder-cr 425cf8319a tests: the screenshot-of-text test holds two faces that are not the first of their collection (MS PGothic, NSimSun)
A text run carries the path of the file and the index of the face. A parent that lets the system choose the index draws another face of
the same .ttc. MS PGothic is face 2 of msgothic5_32.ttc and NSimSun is face 1 of simsun.ttc; their blocks hold the writing they draw
(Japanese with Latin and kana, Chinese), so the wrong face gives other outlines. Same page, same assertion, no threshold.
wrapper.e2e.compositing: min_tests 7 -> 9.
2026-11-17 17:44:57 +01:00
feder-cr b26b67494c tests: the clock guard reads an XML namespace as a name, not as a request; regressions.json goes; the screenshot-of-text test has no clock
* ci/regressions.json is removed: no judge reads it. The "red if it did not pass" of the new e2e is the row of wrapper.e2e.compositing in ci/required-suites.json (the file and an exact min_tests).
* tests/_e2e_clocks.py: a URL that stands as the value of an xmlns / xmlns:p attribute, or as the namespace argument of a DOM call that takes one (createElementNS, setAttributeNS, ...), is a name and nothing fetches it, so rule "net" does not report it. It is recognised by where it stands, not by host: an href, a src, a fetch or a goto to the same host is still reported. Two unit tests: the namespaces written whole are not a request (red on the guard as it was), and a request to the host of a namespace is.
* The new e2e writes its namespaces whole again.
* tests/test_screenshot_of_text_returns_linux_e2e.py: the deadline, started/took and the assertion on a duration are gone; a screenshot that never comes back is stopped by the limit of the job. page.screenshot() keeps the default timeout of the API. Its entry in tests/gates/e2e_clock_exceptions.json is dropped.
* ci/required-suites.json: wrapper.unit.all.linux 2070 -> 2072, wrapper.unit.all.windows 2071 -> 2073 (counted with the judge's selector).
2026-11-17 14:36:53 +01:00
feder-cr 7a572baf95 tests: a screenshot draws the text of the bundled fonts as the content drew it (from firefox-66)
page.screenshot rebuilds the text in the parent; on Linux the parent recreates the font from its path through fontconfig, which does not know the folder of the bundle, and the run is drawn with the glyph numbers of the bundle and the outlines of DejaVu Sans. The new e2e puts, for each of Arial, Times New Roman, Consolas and Segoe UI, the same block of text as HTML and as a canvas onto which an SVG image with a foreignObject of the same markup was drawn, takes one page.screenshot, cuts the two boxes out and asks for the same bytes: no threshold, no stored image. It runs on both systems and says which family differs.

It saves the screenshot, the two boxes and a result.json under RUNNER_TEMP/invpw-evidence (green or red, only on a runner), and e2e.yml uploads that folder. The test is a row of wrapper.e2e.compositing (3 -> 7) and the first row of ci/regressions.json; the crop, the PNG writer and the pixel comparison are helpers of _page_bytes.py with unit tests (wrapper.unit.compositing 19 -> 30, the two whole-suite rows +11).
2026-11-17 14:30:10 +01:00
feder-cr 0328b23673 tests: the accumulated engine line is firefox-67, not firefox-66
The gates of the shelved line move from engine_at_least("firefox-66") to
engine_at_least("firefox-67"); firefox-66 carries only the screenshot font fix.
2026-11-17 14:19:57 +01:00
Federico Elia 39b303923a Merge pull request #521 from oss-invisible/ci/real-sites-against-stock
ci: real sites, the published package against stock Firefox
2026-11-17 13:36:39 +01:00
Federico Elia e270bc7b4a Merge pull request #522 from oss-invisible/decodo-banner
README: a Decodo banner under the title
2026-11-17 13:00:36 +01:00
Federico EliaandClaude Opus 5.5 fec3c9533c README: a Decodo banner under the title
Decodo residential proxies, free trial, with a referral link and marked as sponsored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 12:53:09 +01:00
feder-cr dae1d2c870 ci: real-sites, the admission judges the list and not the luck of a site; the minimum is half the list
The rule "unstable means out" does not converge: five passes cannot tell an
unstable site from a rare failure on the side of stock, and every real site
has one (a load timeout once in five for one, a challenge page once in five
for another). In the round a cell is red only if stock is good in all three
runs, so a failure of stock removes information from its cell and never gives
blame.

- The admission is red only for a defect of the list: an invalid list, a pass
  that is missing, a site never good in any pass of a system and not of the
  class protetta, more than 4 protetta, more than 20 sites. A site good in
  some passes stays, and the report gives its count per system. It computes
  no minimum.
- The judge computes the minimum of informative cells from the list: half the
  sites, rounded up. min_informative leaves sites.json, and a file that
  still has it is refused as invalid.
- duckduckgo comes back: 15 sites, no min_informative.
- The tests of the old rule are replaced; min_tests 2059 and 2060.
2026-11-17 12:51:15 +01:00
feder-cr 324246b343 ci: real-sites, the admission is decided per push, and duckduckgo leaves the list
The plan looked at all the files of the pull request, so every push of it
re-ran the admission and resampled the real sites, which can go red for a
reason that is nobody's change. Now a push (synchronize) is compared with the
head it replaced and runs the admission only if tests/realsites/sites.json is
among the files; an opened or reopened pull request is judged on all its
files; a compare that cannot be made (forced push, no before, API error) runs
the admission. The decision is Python in the plan step, and the wiring test
runs that code with a fake gh.

duckduckgo is out of the list (14 sites), min_informative 11.
2026-11-17 10:08:38 +01:00
feder-cr 1fda08f380 tests: a request that arrived after the networkidle return is not in flight at it
quiet_problem called "in flight" a request whose `sent` was None even when it arrived after `goto` returned (on a slow machine it
arrives between `returned = time.monotonic()` and the read of the stamps). It now discards the stamps whose arrival is after the
return first; if none is left it says no request of the page was seen. Also drops the upper bound on a clock interval from the
fake-server test (a clock upper limit is a guess); the order at <= sent <= done and the lower bound from the sleep stay.
min_tests of wrapper.unit.all.linux/windows: +1.
2026-11-17 08:52:07 +01:00
feder-cr 4d930e21c0 tests: networkidle quiet is judged on when the server starts to answer, not on a stamp after the write
The e2e test of networkidle with a frame of another site was red on the windows runner (run 44039376589): "after only 0.328 s
without network". The fake server stamped `done` after `wfile.write`, on a thread of the test process (the client runs in the
same process); that thread can lose the CPU or the GIL between the write and the stamp, so `done` was 0.2 s later than the real
end and the measured quiet shorter than the browser's.

The server now also stamps `sent`: after the delay, before send_response/write, the first instant the browser can have seen the
end. quiet_problem judges on it (in flight = sent None or after the return; quiet = return - max(sent)). A correct product returns
at least 0.5 s after `sent` under any load; one that ignores the requests of the frame returns earlier. The tolerance QUIET = 0.4
is gone: the threshold is the promise (IDLE_QUIET, invisible_core/juggler/lifecycle.py:56) less the resolution that
time.get_clock_info("monotonic") declares, the clock the core's timer reads (lifecycle.py:340, 541, 551).

Unit tests: the timestamps of the failed run are green, a product that returns early is red, a request not yet written at the
return is in flight, the tolerance is the declared resolution, and the fake server's `sent` is after the delay and before `done`.
min_tests of wrapper.unit.all.linux/windows: +5.
2026-11-17 08:49:48 +01:00
feder-cr 7ab22b0961 ci: real sites, the diagnosis names the document's status once (http_status) 2026-11-17 08:32:49 +01:00
feder-cr 27b884ae87 ci: real sites, the 15 sites kept for the admission (min_informative 12) 2026-11-17 08:26:11 +01:00
feder-cr 279ff286c5 ci: real-sites runner imports the package of its own mode only
The venv of the ours pass holds invisible-playwright and no playwright, so
the import of playwright.sync_api at the top of main failed the pass on both
systems. Each mode now imports its own package inside its branch: stock from
playwright.sync_api, ours from invisible_playwright.sync_api, whose Error and
TimeoutError are the classes the vendored client raises.

The diagnosis of a cell without its marker carries the status of the document
as `http` (and `http_status`) and keeps only non-empty ids, at most 40.

A test runs the script over stub packages (the other package unimportable) in
both modes, and covers the timeout class and the diagnosis. Both rows of the
unit suite name it (min_tests 2048 and 2049).
2026-11-17 08:26:10 +01:00
feder-cr 7d3dbfbf1c ci: real-sites, the token also in the step that installs the package and fetches the engine
The step installs the published package and runs invisible_playwright fetch
(a download from GitHub, no browser). The step that runs the passes still
has no token. The wiring test names the three steps that carry it.
2026-11-17 06:55:13 +01:00
feder-cr bab3a2b9d5 ci: the list of real sites to admit (27 sites, min_informative 0 until the admission) 2026-11-17 06:52:00 +01:00
feder-cr 5dd2b21c67 ci: real-sites round, the rules of the judge and the admission made literal
- The version after a publication is the tag of the publish run
  (head_branch without its v); a run that is not of a v* tag makes the plan
  red. The other events read the index. The install retry stays.
- A cell that differs in the first pass needs three runs of each browser;
  without them it is a problem ("giro incompleto"), not a red cell. Red is
  stock good in all three and ours not good in at least two. The rule
  min(2, runs) is gone.
- An empty round is not green: a list with no sites or a min_informative
  below 1 is red ("il giro non ha misurato").
- A pull request that touches the list runs the admission and the round.
- The admission decides: it is red when the file holds a site it would
  drop, or a min_informative of 0 or above the computed one; an empty list
  is green.
- The token is only in the two steps that call gh, not at the level of the
  workflow; the steps that open real sites do not see it.
- Tests for each rule, and tests/test_the_real_sites_workflow.py for the
  wiring; both rows of the unit suite name it (min_tests 2042 and 2043).
2026-11-17 06:51:41 +01:00
feder-cr eff2eb267a ci: a round on real pages, the published wrapper against stock Firefox
Add the round that visits a list of real pages with one browser at a time
(stock Firefox driven by stock Playwright, then the published wrapper) and
judges where stock gets through and the wrapper does not.

- tests/realsites/sites.json: the schema of the list (id, url, marker, class,
  min_informative), empty for now.
- scripts/run_real_sites.py: one browser, one context and one page for the
  whole list; per site goto(load), networkidle, marker, document status and a
  local canary page. It writes cells, no judgement, no time measured. No
  click and no consent handling. --diagnose (admission only) adds the status,
  title and first 40 element ids where stock does not find the marker.
- scripts/judge_real_sites.py: pure judge (red only where stock is good in
  every run and ours is not good in at least two of three; no information
  where stock is not good; red on a site not visited or on too few
  informative cells), the summary, the cells that differ, and the admission
  report (keep or drop per site with the reason, at most 20 kept, min_informative).
- tests/test_real_sites_judge.py: the six cases of the design and the helpers;
  added to the unit rows of ci/required-suites.json (+23 tests).
- .github/workflows/real-sites.yml: Linux and Windows jobs; after a
  publication, on a push to main or a pull request that touches the five
  files, or by hand to rerun. A pull request that touches sites.json runs the
  admission (stock, five passes per system) instead of the round.
2026-11-17 06:42:36 +01:00
Federico Elia d154675deb Merge pull request #519 from oss-invisible/ledger/0.53.1
ledger: record 0.53.1 as published
2026-11-16 22:39:08 +01:00
feder-cr 518a65ed1a Merge remote-tracking branch 'origin/main' into ledger/0.53.1 2026-11-16 21:55:08 +01:00
Federico Elia 25c83d1570 Merge pull request #520 from oss-invisible/docs/changelog-0.53.0-never-published
changelog: 0.53.0 was never published; its changes ship in 0.53.1
2026-11-16 21:54:52 +01:00
feder-cr b27a6fdf5b changelog: 0.53.0 was never published; its changes ship in 0.53.1 2026-11-16 21:38:09 +01:00
feder-cr e8990bd58a record 0.53.1 as published 2026-11-16 20:32:15 +00:00
Federico Elia 118d013306 Merge pull request #518 from oss-invisible/release/0.53.1
Release 0.53.1
2026-11-16 20:55:11 +01:00
feder-cr 4f1a5feb17 Release 0.53.1: the second goto is judged where the page landed, read after the landing
0.53.0 was tagged and never published: the e2e of main read the page's address right after the
rest of /partial was sent, before the first navigation (the winner) could commit it, and was red
whenever the first goto won. The scenario now sends the rest once the second goto has returned,
awaits the first, waits for the page to land on either address, and judges by the winner
(tests/_second_goto_verdicts.py), with unit tests on the six kinds of run of the hunt on the
candidate and on the defects, and a check of the order of the scenario (red on 0.53.0).

Version 0.53.1, pin unchanged (invisible_core==65.74.0); wrapper.unit.all 2005/2006.
2026-11-16 20:14:26 +01:00
Federico Elia dd4c623d2c Merge pull request #517 from oss-invisible/release/0.53.0
Release 0.53.0
2026-11-16 19:05:17 +01:00
feder-cr c8554e9879 tests: the fixture taken as a parameter is not a redefinition (F811) for the lint of the CI
test_a_bundled_stock_firefox_is_refused_by_binary_path.py imports the fixture `active` and takes it as a parameter; ruff --select F821,F811,F601, as tests.yml runs it, flags the parameter. The noqa sits on the line it reports.
2026-11-16 18:25:48 +01:00
feder-cr 371c22957e Release 0.53.0: the cursor's path is one stroke, a close leaves the cleanup to the launch's reaper; pins invisible-core 65.74.0
Pins invisible-core 65.74.0 (engine firefox-65). The cursor's path leaves through Actions.walk as one stroke on the client's own clock;
close() returns when the browser has exited and the session's directories and last reap are handed to the launch's reaper; the cursor's motion
catches only what the engine or the page answers. pytest-rerunfailures leaves the dev extra, and the e2e workflow uploads the junit of every pass.
2026-11-16 17:15:58 +01:00
feder-cr c595296fc9 Merge remote-tracking branch 'origin/main' into release/0.53.0-aligned 2026-11-16 17:15:30 +01:00
Federico Elia 9579798b08 Merge pull request #516 from oss-invisible/tests/benches-and-key-delay-for-the-stroke-core
tests: the click and pointer benches and the key delay hold with the stroke core
2026-11-16 17:14:50 +01:00
feder-cr 626532c3b9 tests: the pointer golden is compared without the stroke tags of the core's strokes
The test half of 450ff5a2: `_normalised` drops `stroke` and `at`, which the core's strokes add and 5d9ad70 did not send. The events and the instants they went out at, which the golden holds, are compared unchanged.
2026-11-16 16:07:50 +01:00
feder-cr 8f2ea98928 tests: the key delay is read from the browser's own event time stamps 2026-11-16 16:06:05 +01:00
feder-cr 3b13957547 tests: the benches count a stroke's instants on their virtual clock
A stroke sends each command "at" an instant on time.monotonic and waits until
it. The pointer-server bench and the click-rhythm bench slept on a virtual
clock but left monotonic real, so every wait was made again at the end of the
stroke: a click slept twice, a path drifted by the dwell of each click and the
pacer drew 34 more events in session_a. The goldens were right.

- test_pointer_server: the core's time.monotonic is the virtual clock too.
- test_click_rhythm: a sleep advances a virtual monotonic; the 150 ms delay is
  compared with approx.
- pointer_golden_origin: the server's run uses the same clock and drops the
  stroke/at tags; --from-current OUT writes the current server's run of every
  session in the golden's layout (never over the golden) and says whether each
  is the golden's; the old-client run refuses with a message where the old
  client does not exist; the layout is LF, as the repository stores it.
2026-11-16 16:06:05 +01:00
feder-cr 717af6bcee tests: the removal of the profile is held still and judged on who reaches it, not on the close
With the core that hands the session's directories to the launch's reaper, the removal of the
profile no longer runs inside the close: it runs on the reaper's thread (or its continuation)
after the close has returned. test_the_removal_of_the_profile_ran_inside_the_close asked for
the old place and was red on a correct product.

The client now holds the removal of the closing browser's profile inside shutil.rmtree until
the test releases it, and records the thread that reached it and its stack. The e2e judges,
without a clock: the removal was reached on a thread of the reaper (not the loop's thread, not
a step of the close); the close returned while it was held; the other three browsers answered
while it was held, and only then it is released; wait_reaped(token) returns and the profile is
gone. A removal that is never reached fails 30 s after the close returned.

Verdicts with a red case each in _close_loop_verdicts.py: removal_on_the_users_thread_problem
(loop thread, thread inside a step of the close, thread that is not the reaper's; green on a
real Reaper alive and finished), close_waited_for_the_removal_problem and
removal_never_reached_problem. wrapper.e2e.page 122 -> 124, wrapper.unit.all 1977/1978 ->
1988/1989.
2026-11-16 14:27:50 +01:00
feder-cr 30ee9e597c ci: the whole unit suite is 1977 tests on Linux and 1978 on Windows with the session folders handed to the reapers, counted with the judge's selector 2026-11-16 14:01:29 +01:00
feder-cr 638c92af8a Merge remote-tracking branch 'origin/fix/session-removal-never-on-the-shutdown-thread' into release/0.53.0 2026-11-16 13:57:46 +01:00
feder-cr bee98fde71 Merge remote-tracking branch 'origin/fix/the-session-folders-leave-after-the-reapers' into release/0.53.0 2026-11-16 13:57:45 +01:00
feder-cr fe04f3c206 tests: the removal of the session's directories is not run on the shutdown thread after a finished reaper
SessionRemoval.close hands the removal to the launch's reaper with then(). The core's
Reaper.then ran the step on the caller when the reaper had finished, which was the
juggler-shutdown thread that the user's close waits for. The test uses the core's own
finished Reaper and holds the removal on an Event: close() returns while it is held,
the removal runs on another thread, and wait_reaped waits for it. It is red on a core
that runs the step on the caller and green with the core fix.
2026-11-16 13:52:11 +01:00
feder-cr 27b3c7f2a7 The session folders leave after the reapers, not on the shutdown thread
The downloads root and the upload root were removed by after-shutdown steps
on the juggler-shutdown thread, which the user's stop and the context exit
wait for; a removal of a profile-sized folder took 0.4 to 2.5 s on Windows.

_reaped.after_the_reapers is now the one place for "run this step after the
session's reapers": once, after the last one, and at once when there is none.
final_reap runs on it, and so do the two folder removals (Server.after_reapers,
which reads the session tokens of the launches when the shutdown runs the step).
The no-reaper route of SessionRemoval.after_shutdown is unchanged.
2026-11-16 13:13:23 +01:00
feder-cr ef3ba1c862 tests: a row that excludes the e2e may name test_release_e2e.py for its one offline test
The whole unit suite now names its files, so it names this one; its marker keeps the e2e tests
out, which naming the file would otherwise bring back. A row that could run them is still
refused, with its known-bad case. min_tests of the two whole-suite rows: 1973 and 1974.
2026-11-16 12:04:43 +01:00
feder-cr 968e1533dd tests: the moved bundle-quotes test is exempt from the English gate by its own path, as test_fork.py is
Its account of the defect quotes the same two Italian words the known-bad fixture of
test_fork.py does; the exemption stays one path, never a folder.
2026-11-16 12:04:43 +01:00
feder-cr 0e05823035 ci: the whole unit suite names its files, with no folder and no deselect
wrapper.unit.all.linux (1972 tests, 200 files) and wrapper.unit.all.windows (1973 tests, 201
files) list every file with a test collected by "not slow and not e2e", ordered, but the
files of the environment and the files of the other system; min_tests counted with the
judge's selector. The checks of the list go back to files and node ids: the folder tests and
--deselect are refused again, and the marker of the whole suite is accepted on a row of files.
2026-11-16 11:58:20 +01:00
feder-cr 56b097fb8b tests: every file of the unit suite is in the rows of the candidate or a named file of the environment
The whole unit suite is two rows that name every file the marker collects; a file in neither
the rows nor a short list of environment files (each with its reason, and a fixed count that
is changed by hand with the list) is red, and so is a row that names a file with no collected
test, a file of one system in the row of the other, or a folder, a node id or an option.
2026-11-16 11:58:20 +01:00
feder-cr f76363b1dd tests: the tests that need the environment of their machine move to files of their own
Same bodies, same assertions; each file says in its name and docstring what it needs:
the driver bundle tree (INVPW_DRIVER_TREE), the workbench next to the checkout, a stock
Firefox bundled with Playwright, a clone with core.hooksPath armed, a clone with
origin/main, and the two tests that run on Windows only (the hidden desktop's prefs,
the job object of the reaper). The files that held them keep what runs everywhere.
2026-11-16 11:54:42 +01:00
feder-cr 06f9fd4b5e tests: a unit test does not read the seal the job exports
The CI jobs export INVISIBLE_SEAL_FILE (a local seal of the candidate) for the e2e
tests. Ten unit tests that compose a launch reached ensure_binary with it and died
with "the active seal is a LOCAL seal with no published assets". An autouse fixture
takes the variable out of the environment of every test that is not e2e and drops
the seal the process had already resolved; the e2e tests keep it. A test that wants
a seal sets the variable itself, after the fixture.
2026-11-16 11:54:42 +01:00
feder-cr 274fdc2812 ci: the whole unit suite is 1961 tests on Linux and 1962 on Windows with the stroke of the cursor path, counted with the judge's selector 2026-11-16 10:34:34 +01:00
feder-cr 4a5a303d32 Merge remote-tracking branch 'origin/fix/the-cursor-path-is-a-stroke' into release/0.53.0 2026-11-16 10:28:56 +01:00
feder-cr 93911c52a3 tests: the session-end helper names the test that reads the trapped files 2026-11-16 10:28:01 +01:00
feder-cr ddc98493a2 tests: a session of the trapped e2e ends before the next test starts, so the sender of its shutdown pings is not counted by the one after
close() returns when the browser has exited; the sender of the shutdown pings lives on for about half a second and asks the resolver of the machine for the telemetry host. In a session without a proxy of the launch that is allowed, and the next parameter of test_nothing_leaves_but_the_proxy_e2e.py, with a resolver trap of its own, counted those questions as its own (seen with the kernel's tools: 50-66 ms after it began).

Every session of the e2e files that run a resolver trap or a watcher of direct connections is now an EndingPlaywright (tests/_session_end.py): its __exit__ waits for the launch's reaper (wait_reaped, 30 s as a safety net) and for the session's processes to be gone, and fails, saying which are left, when the reaper does not finish. A unit test with no browser puts a stand-in process under a session token as the core registers the engine's tree: with the plain class it is alive when the close returns, with the new one the exit returns after the reaper has ended it. Another reads the files of the four trapped suites and fails on a session made with the plain class.

wrapper.unit.all.* min_tests: 1921 -> 1929 (Linux), 1922 -> 1930 (Windows).
2026-11-16 10:27:19 +01:00
feder-cr e3f57b536f pointer: motion never fails an action for what the engine answers, and never hides a bug of ours
Pointer.act, travel and wheel ended in `except Exception` so that motion would
never fail an action. It held for everything: a Pointer over actions with no
walk (a core older than the stroke) raised AttributeError on every point, the
error was swallowed with one warning and the click went out with no path.

They now catch `_PROBE_ERRORS`, the set the probes already use, completed with
what the connection raises while a path is on the wire: ProtocolError,
TargetClosedError and FrameDetached next to ContextDestroyed, EvaluationError,
ReplyTimeout, ProtocolException and TimeoutError. AttributeError, TypeError,
NameError and the like come out of the action.

The planner test that expected a RuntimeError out of plan_approach to be
swallowed now expects it to come out, and checks that an engine error still is
not.
2026-11-16 08:54:43 +01:00
feder-cr 6b64ae5379 ci: the whole unit suite is 1921 tests on Linux and 1922 on Windows, counted with the judge's selector after the guards' own cases 2026-11-16 08:45:46 +01:00
feder-cr 2017bd40b5 tests: the benches count a stroke's instants on their virtual clock
A stroke sends each command "at" an instant on time.monotonic and waits until
it. The pointer-server bench and the click-rhythm bench slept on a virtual
clock but left monotonic real, so every wait was made again at the end of the
stroke: a click slept twice, a path drifted by the dwell of each click and the
pacer drew 34 more events in session_a. The goldens were right.

- test_pointer_server: the core's time.monotonic is the virtual clock too.
- test_click_rhythm: a sleep advances a virtual monotonic; the 150 ms delay is
  compared with approx.
- pointer_golden_origin: the server's run uses the same clock and drops the
  stroke/at tags; --from-current OUT writes the current server's run of every
  session in the golden's layout (never over the golden) and says whether each
  is the golden's; the old-client run refuses with a message where the old
  client does not exist; the layout is LF, as the repository stores it.
2026-11-16 08:45:22 +01:00
feder-cr 8599018164 ci: add the whole unit suite of the wrapper to the candidate's required suites
wrapper.unit.all.linux and wrapper.unit.all.windows run `-m "not slow and not e2e"` over
the folder tests with the core of the candidate, deselecting the nine (Linux) and eight
(Windows) tests that depend on the environment. The checks of the list learn exactly what
these rows need: the folder `tests` only under that marker, `--deselect=<file>::<name>`
with the same file/name check as a node id, that marker only on a row starting with
`tests`, and a Windows-only row naming its Linux twin (mirror of windows_twin). Each has
cases for the legitimate use and the forbidden ones.
2026-11-16 08:43:22 +01:00
feder-cr 450ff5a235 The cursor's path leaves as one stroke: the pacer's events go to Actions.walk
Pointer asked the Pacer for the instant of each point, but every point left through actions.move, a lone command that waits for the
engine's reply. A slow reply stopped the path (a 2.6 s pause seen by the page, measured on a GitHub runner) and the points after it
were crowded together.

The approach, the walk before a Mouse.click, the wheel burst and the idle movement now hand their planned timeline to the core's
Actions.walk, which sends each point at its instant carrying stroke and at, without waiting for any reply, and collects the replies at
the end. The synchronous driver this module kept is gone: the pacer's loop is the core's. A lone mouse.down, mouse.up or one-step move
is still a single command.

Needs the core that has Actions.walk (the 65 pin).
2026-11-16 08:09:20 +01:00
feder-cr 185d907ca7 tests: an input stream is not born at its dispatch (its median) and not backdated beyond the declared latency (its youngest event); a late handler can only age events 2026-11-16 08:04:13 +01:00
feder-cr 71bd84b682 tests: every input event is born before its handler runs, and the typical one is as old as the declared latency; no bound on one event that a late handler ages 2026-11-16 07:56:12 +01:00
feder-cr 7a44cddede tests: the close-loop client makes its closing event before it hooks the removal of directories, which a launch on Windows calls too 2026-11-16 04:21:55 +01:00
feder-cr 4c402557a4 tests: the restored worker is judged after its own answer, a sentinel on the page's channel, not after a second of sleep; the debt of the clock check is one item 2026-11-16 03:57:56 +01:00
feder-cr 50dc88522d ci: wrapper.unit.udp is 259 tests and wrapper.e2e.page 122, the counts the candidate collected on both systems 2026-11-16 03:20:28 +01:00
feder-cr f299dece11 tests: the debt of the clock check is made again after the deadlines and the causal close test: four occurrences left 2026-11-16 03:20:28 +01:00
feder-cr 6b94fbc1d0 Merge commit '809e7e32' into release/0.53.0 2026-11-16 03:16:40 +01:00
feder-cr 5f44e8ff31 Merge remote-tracking branch 'origin/tests/deadlines-of-positive-waits' into release/0.53.0 2026-11-16 03:16:40 +01:00
feder-cr a6182819d7 tests: the iframe-crash test counts the tabs the engine's browsing contexts hold, not processes, and waits 30 s for its frame; the debt is made again 2026-11-16 02:50:43 +01:00
feder-cr 809e7e32a0 Make the close e2e causal: a sender the test keeps alive
The test compared the time from the browser's exit to the return of the
close with a limit, which fails under load without a defect. It now
keeps a fake sender of the shutdown pings alive itself (a process whose
command line the core takes for the sender, released by closing its
stdin), puts it in the launch's tree (the engine's process group on
Linux, the launch's job on Windows), and asserts that close() returns
while it is alive; then it releases it and waits for the reaper by its
condition, and asserts that no process and no profile are left.
2026-11-16 02:48:34 +01:00
feder-cr 4b439d4f8d tests: the deadlines that are the promise under test are reviewed entries (15 s for a call that answers at once, 10 s for a popup's page event), go_back's detector is its own timeout, and the debt is made again 2026-11-16 02:41:12 +01:00
feder-cr 1d417f6b3c tests: the e2e waits that must succeed take 30 s, a loaded runner is slower than the one they were written on 2026-11-16 02:39:13 +01:00
feder-cr fb7c4f49fd tests: the gateway helpers wait 30 s for the loopback upstream they connect to 2026-11-16 02:39:13 +01:00
feder-cr 96fcd28e6d tests: the web font probe waits for the engine to settle instead of sleeping 2 s, scopes its env to the launch, and waits 30 s 2026-11-16 02:39:13 +01:00
feder-cr e1d4bf423f tests: the numbering stub waits for nothing, and the page that arrives is waited for 30 s 2026-11-16 02:39:13 +01:00
feder-cr 610b33834f tests: the gotos of the networkidle and same-url tests wait 30 s 2026-11-16 02:39:13 +01:00
feder-cr ab15976bee tests: the stand-in is given 30 s to die and its group 30 s to be empty 2026-11-16 02:39:13 +01:00
feder-cr 22dfa2ba82 tests: the file chooser waits and set_files calls are 30 s 2026-11-16 02:39:13 +01:00
feder-cr 4ace173f0f tests: the popup waits of the ready-event test are 30 s 2026-11-16 02:39:13 +01:00
feder-cr a9ea8ed2df tests: the navigations of the eviction test wait 30 s for the document 2026-11-16 02:39:13 +01:00
feder-cr 1c7adcbc4c tests: the loopback connections of the test proxy wait 30 s, a loaded runner is slower than the one it was written on 2026-11-16 02:39:13 +01:00
feder-cr f9dd033c87 tests: give the positive waits of test_wait_for_function the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr 9ee819b796 tests: give the positive waits of test_ua_widget_not_selectable the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr c6573986a1 tests: give the positive waits of test_the_callers_code_is_not_counted_e2e the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr b0824a3160 tests: give the positive waits of test_service_workers_blocked the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr 5f5222d754 tests: give the positive waits of test_service_worker_controller_e2e the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr 763e086e4f tests: give the positive waits of test_route_post_data_e2e the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr 95ad3c0e28 tests: give the positive waits of test_oop_frame_geometry the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr 840a42ac6f tests: give the positive waits of test_networkidle_reaches_the_client_e2e the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr 70d9472d2d tests: give the positive waits of test_mouse the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr cc7597314c tests: give the positive waits of test_fission_strategy1_bench the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr ea76d25ded tests: give the positive waits of test_caller_world_handles_e2e the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr 2e230e7d36 tests: give the positive waits of test_a_popup_of_a_link_reaches_the_client_e2e the suite's 30 s deadline
A deadline under 30 s on a wait for something that must happen judges the runner, not the product; the assertions are untouched.
2026-11-16 02:39:13 +01:00
feder-cr 873104fd8d tests: give the positive waits of eleven e2e files the deadline of 30 s
Waits for something that must happen (a frame, a download, a url, an element, an
upstream connect) had deadlines of 0.5 to 20 s, which judge the runner. They are
30 s now, in the unit each caller reads. The deadlines that are the promise of the
product or a negative window (scroll_into_view_if_needed, the retry budget of an
action that must fail) are left as they are.
2026-11-16 02:39:13 +01:00
feder-cr 32bd517d76 tests: the shadow input page defaults to 30 s 2026-11-16 02:39:13 +01:00
feder-cr c41d60bcbb tests: the service worker tests give their gotos and waits 30 s 2026-11-16 02:39:13 +01:00
feder-cr c1eb4879a0 tests: the fragment goto test gives its gotos 30 s 2026-11-16 02:39:13 +01:00
feder-cr 8b0749ab02 tests: the superseded route tests give their gotos 30 s 2026-11-16 02:39:13 +01:00
feder-cr 68bb3220e6 tests: the resolver race gotos wait 30 s 2026-11-16 02:39:13 +01:00
feder-cr 0544eaa845 tests: the slow popup test gives the load of the popup 30 s 2026-11-16 02:39:13 +01:00
feder-cr 6f547766c4 tests: the nested frame tests give actions and navigations 30 s 2026-11-16 02:39:13 +01:00
feder-cr e030714570 tests: the ignore_https_errors test gives its goto 30 s 2026-11-16 02:39:13 +01:00
feder-cr 653f90c969 tests: the Accept-Language wire test gives its wait 30 s 2026-11-16 02:39:13 +01:00
feder-cr 2801b94897 tests: the request-kinds test gives its goto and its wait 30 s 2026-11-16 02:39:13 +01:00
feder-cr 0f48b9e40e tests: the lookup of who holds a port waits 30 s for ss/netstat 2026-11-16 02:39:13 +01:00
feder-cr 3c102d052a tests: the debt of the clock check is made again on the release branch: the rewritten second goto leaves it, the close test of the reaper enters it 2026-11-16 02:02:38 +01:00
feder-cr b7b2157d03 Merge branch 'tests/second-goto-replaces-the-first' into release/0.53.0 2026-11-16 02:02:13 +01:00
feder-cr aceda29a40 Merge commit '4eda90b8' into release/0.53.0 2026-11-16 02:02:13 +01:00
feder-cr 4f767c19b8 Merge commit 'c206d598' into release/0.53.0 2026-11-16 02:02:13 +01:00
feder-cr 394e0247a3 Merge remote-tracking branch 'origin/tests/no-third-party-reds-high' into release/0.53.0 2026-11-16 02:02:12 +01:00
feder-cr 2c6b25ee08 tests: a second goto that starts while the first changes process ends both gotos and one lands
Each goto returns with a commit or an error the engine tells; either may
win, as in stock Firefox. A goto that ends only at its timeout is the
defect. The server releases the held body after both have returned.
2026-11-16 01:57:34 +01:00
feder-cr 1a3c80d660 tests: a goto to a 204 or a 205 ends with the engine's error, it does not wait out its timeout 2026-11-16 01:32:27 +01:00
feder-cr 4eda90b8a4 Forget a session's reapers once its final reap has run
The registry of reapers per session token was emptied only by
wait_reaped, so a process that opens sessions without end (the server)
kept one entry per session, with its reapers and their trees.
final_reap now takes the reapers of its own snapshot out of the token's
entry after the last reap, in a finally; a launch registered under the
same token meanwhile keeps its reaper.
2026-11-16 01:17:12 +01:00
feder-cr 45fbe84b9f tests: the replaced-goto test of main stays in the debt of the clock check, waiting for the verdict on the product 2026-11-16 01:15:38 +01:00
feder-cr b579588a53 tests: a reason a person wrote on a debt item of the clock check stays while the occurrence is there 2026-11-16 01:15:38 +01:00
feder-cr 25c6ee06f6 tests: the decorators in the known-bad sources of the clock check start a string of their own, so no line reads as an address 2026-11-16 01:15:38 +01:00
feder-cr 86ea12a9bb tests: the comment of the WebRTC probe names what it is, not where it was copied from 2026-11-16 01:15:38 +01:00
feder-cr bcee6f8966 tests: the known-bad Marionette port of the clock check is not itself a fixed port to the Marionette guard 2026-11-16 01:15:38 +01:00
feder-cr e06ef0471e tests: the debt of the clock check is made again on main with the Marionette port per launch, and the known-bad port of the check is not a fixed port to the Marionette guard 2026-11-16 01:15:38 +01:00
feder-cr 0cc57a56b7 tests: closing one of four browsers is judged by where the loop's thread was and by the order of the answers, not by milliseconds
The three absolute bounds (held < 0.09 on the second control, held < 0.05 on the close, slowest < 2.0 on the other three) were
verdicts on the runner: a starved machine runs a short callback longer without any defect.

* the loop is held when the watcher saw its thread inside a step of the close that waits (shutdown, _join_workers, reap, op_close,
  wait_procs, rmtree, Thread.join); the control that holds the loop on purpose must be seen inside the function that holds it;
* a loop the machine did not schedule is charged no more than the longest stretch the same samples saw its thread run;
* the first removal inside the close waits (30 s at most) until every other browser answered a call that began after it did: a
  removal in a thread of its own is released by the answers, one on the loop only by the deadline; each other browser must also
  answer a call that began and ended inside the close. The seconds are printed and decide nothing.

The verdicts are pure functions in tests/_close_loop_verdicts.py, tried without a browser (on the real instrument, taken out of the
client script) in tests/test_the_close_loop_verdicts_see_the_defects.py. The three entries leave the debt of the clock check.
2026-11-16 01:15:38 +01:00
feder-cr aed3ef6858 tests: the clock check refuses a deadline under 30 s on a wait for something that must happen, and an absolute margin on a duration in a judge that reports
The rule `timeout` reads `timeout=` (milliseconds for the Playwright API, seconds for the standard library, the helpers and the driver), `set_default_timeout`, `set_default_navigation_timeout` and the default of a parameter named timeout; a window in which the call is expected to run out of time (pytest.raises, a swallowed timeout, a limit named NEGATIVE) is accepted by its shape. The rule `bound` also reads an `if` that reports a problem, so judge_visits (LOAD_MARGIN_MS) is seen. The occurrences are in the debt until each one is corrected.
2026-11-16 01:15:38 +01:00
feder-cr 7f6bc9c839 tests: every key is still held to the 40 ms bound (it is born and handled in one task); only the events that cross from the parent are judged on the median 2026-11-16 01:15:37 +01:00
feder-cr 95b8cd93de tests: the debt of the clock check holds only the nine occurrences other work corrects, every entry has the reason that makes it certain 2026-11-16 01:15:37 +01:00
feder-cr 287e5ae64c tests: the bound rule sees a limit that is a named variable or has a slack added, and the cpu-budget kind; the list is not made again yet 2026-11-16 01:15:37 +01:00
feder-cr 9aa734ba54 tests: the deadline of a wait for something that must happen is 30 s where it was 5, 8, 10, 15, 20 or 25 2026-11-16 01:15:37 +01:00
feder-cr 258a803f11 tests: a fixed pause before a read is a wait for the condition the read needs, with a deadline of 30 s 2026-11-16 01:15:37 +01:00
feder-cr 23eee4a1db tests: the channels of the juggler probe are asked at once and each has 30 s, not 3 s and 1.5 s one after the other 2026-11-16 01:15:37 +01:00
feder-cr c3b287fd8c tests: the time a connection took to open is judged only when the page itself was not stopped, and the age of an input is judged on the median of its stream 2026-11-16 01:15:37 +01:00
feder-cr e1aa41fbc8 tests: a PeerConnection of an e2e stays open until the road it was made for has been seen, it is no longer closed by a timer of the page 2026-11-16 01:15:37 +01:00
feder-cr 038a90f945 tests: the turn page says posted and its final status in one step, so a read at posted never sees PENDING 2026-11-16 01:15:37 +01:00
feder-cr 1dc5ea2a3f tests: the proof that a frame is in another process spins until one spin shows ticks, 30 s, and waits for the end of the spin instead of spin_ms + 800 2026-11-16 01:15:37 +01:00
feder-cr dbd490f023 tests: a function handed by name to wait_until, watch or awatch is the step of a wait with a deadline 2026-11-16 01:15:37 +01:00
feder-cr db0579faa9 ci: the unit job fetches main so the lists that may only shrink can be compared with it 2026-11-16 01:15:37 +01:00
feder-cr 0bbc3d1269 tests: a check that the e2e tests do not wait on clocks, share ports, write the environment or reach the world
Reads the e2e files and the helpers of tests/ with ast and refuses a fixed pause
(time.sleep, asyncio.sleep, wait_for_timeout) that is not the step of a poll
with a deadline, a page timer, an absolute upper bound on a duration, a literal
port, a write to os.environ, a real host or a pip install outside the files of
the round after a publication, a count of processes, and a conftest that does
not declare the exit of the lab. Occurrences are named by file, scope, rule and
nth, never by line.

tests/gates/e2e_clock_exceptions.json holds the reviewed entries (closed kinds,
a reason each) and the debt: every other occurrence, made again from the sources
by scripts/e2e_clock_exceptions.py --write. A stale item of either list is red,
and the debt may not hold an occurrence that main's does not.
2026-11-16 01:15:37 +01:00
feder-cr 4385d5cfe9 tests: the install and upgrade e2e run only in the round after a publication
test_release_e2e.py and test_upgrade_e2e.py install from the real index with
pip and uv, download the release from GitHub and walk the GitHub API: PyPI or
GitHub being down or rate limited reddened every pull request. The e2e tests
of those two files are now deselected from any run that does not name the file
(conftest.py, no new marker: the vocabulary is shared with the core), so
scripts/run_e2e.py, the Windows legs and the hunt do not collect them, and
user-install.yml, which names both, still does. A test collects and checks it,
and checks the wiring.
2026-11-16 01:15:37 +01:00
feder-cr 85e0084a35 tests: the pages and STUN servers of three e2e tests are the test's own, not example.com and a public STUN
The persistent-profile test loads its own page on loopback (the same origin in
both sessions). The WebRTC gather without a proxy asks a STUN server of the
test on this host's address, the gather behind a TCP-only proxy asks a number
nothing answers, and its page is the local one carried through the proxy; a
proxy or network that fails there is now a failure, not a skip.
2026-11-16 01:15:37 +01:00
feder-cr 0a96b63b13 tests: an e2e launch is told where it leaves from, it does not ask three services of the internet
A launch with no proxy asks the core for its egress address, and the core asks
api.ipify.org, icanhazip.com and checkip.amazonaws.com: a third party in the
222 launches that name neither timezone= nor proxy=. A session fixture in the
conftest (session scope, so that the module-scoped browsers are covered)
answers that question with the lab's exit, and uses the lab GeoIP database when
no leg set one. A question behind a proxy is left to what answered it before.
A test that must prove the discovery itself uses local_egress_echo: the real
function against an echo service on loopback.
2026-11-16 01:15:37 +01:00
feder-cr 853e24e31b Leave the teardown's final reap to the reaper of the launch
The last step of both teardowns ended the session's tree at once
(reap_session, grace 0). With the core's reaper, what is left at that
moment is the sender of the shutdown pings: it was killed and the
reaper's grace was for nothing.

_reaped.final_reap is the one place, called by launcher._teardown and
by its async twin: when the session's launches have a reaper the reap is
registered with reaper.then (once, after the last of them); without one
(older core, a launch that failed first) it runs at once as before.
2026-11-16 01:01:48 +01:00
feder-cr 3084365415 tests: the exchanges of the TURN road count the one connection that carried the question of the name, not every CONNECT after the birth
The count took every CONNECT made after the birth of the PeerConnection for a step of the road, so the page's own server and the
DoH connections the browser opens in parallel for names of its own turned a good road red (11 to 13 exchanges, the page DONE).

The FakeDoh now says, for each question, the number of the control connection of the gateway that carried the CONNECT it came on
(`FakeDoh.question_connections`, handed over by `DohGateway`, exact: the tunnel is a socket pair, there is no peer port to match). The
verdict counts the control connection that carried a question of the TURN name, the question and the two Allocate transactions as
before, and lists the other CONNECTs after the birth in its message as evidence that decides nothing.

Units: red on a second connection that carried the question and on a repeated question, green with four parallel strangers in the
window at any speed, and the number the DoH gives is the one the gateway logged, with and without a round trip.
2026-11-16 00:55:45 +01:00
feder-cr dfb7507d58 tests: the UDP chain by name is judged by an order (the Allocate comes while the later handshakes are held) and a count of exchanges, with no round budget on a clock
The verdict of the road of a TURN server written as a name compared the time between the first CONNECT to the DoH and the Allocate with
(rounds + 1) x the round trip, so a stall of the runner turned it red, and the number of rounds was an estimate. Two causal checks
replace it, and no duration is read:

- the test holds, with the new `Gateway.hold` (per control connection, by index and by what the connection asked for), the answer of
  every association handshake begun after the pool was ready; the TURN server has to answer the Allocate with credentials before the
  test lets them go. A handshake that waits for another leaves the road waiting for the test on any machine;
- the exchanges the gateway (`Gateway.requests`), the DoH and the TURN server (`TurnServer.transactions`, a retransmission is the
  same transaction) recorded from the birth of the PeerConnection to that Allocate are at most what the protocols ask for: one
  SOCKS5 control connection with its CONNECT (RFC 1928), one A question to the DoH (RFC 8484), two Allocate transactions (RFC 8656,
  RFC 8489): five, six with a user and a password (RFC 1929). One more is red.

Units, with no browser: red on handshakes in series and on one exchange more, green on the good road at any speed of the machine (every
stamp scaled up to 5000 times), and a plain client that walks the protocols spends exactly the five.
2026-11-16 00:50:25 +01:00
feder-cr 5fa2cf4e84 tests: the rate of a screencast is read on the engine's stamps of its frames, not on when a client that stalled heard them 2026-11-16 00:50:25 +01:00
feder-cr ed5a26debf tests: the goto timeout detects a page that moves, the screencast waits have deadlines of 30 s, the transport tests set the driver choice with monkeypatch 2026-11-16 00:50:25 +01:00
feder-cr 4da1d6204d tests: the compositing test keeps the GPU CPU-time bound on Windows and asserts the absence of a GPU process on Linux, with no absolute CPU bound of the parent 2026-11-16 00:50:25 +01:00
feder-cr d81c23ee83 tests: the UDP chain by name is judged by rounds of the gateway and the association it left on, not by the tick of the page or two launches 2026-11-16 00:50:25 +01:00
feder-cr 6576bc18ad tests: the serial-comparison guard knows the first-candidate test no longer compares two durations 2026-11-16 00:50:25 +01:00
feder-cr 12ec4bb086 tests: a unit test for the verdicts of the reworked e2e tests, with the red case of each 2026-11-16 00:50:25 +01:00
feder-cr 20dfb09179 tests: h3 visits wait for the QUIC connection of the browser, not for a fixed pause 2026-11-16 00:50:25 +01:00
feder-cr c42977b108 tests: the first candidate of a far gateway is judged with the handshake held, and the 701 has no ceiling 2026-11-16 00:50:25 +01:00
feder-cr 61fb9fb901 tests: the screencast arms wait for a number of frames and compare the rates of the frames that came 2026-11-16 00:50:25 +01:00
feder-cr 719b632fc2 tests: the compositing test starts to sample when the engine has a content process 2026-11-16 00:50:25 +01:00
feder-cr f953f575d5 tests: the service worker and the end of the processes of a closed context are waited for on their condition 2026-11-16 00:50:25 +01:00
feder-cr a6eac7776f tests: the screenshots of frames of other sites are taken again until the frame is painted 2026-11-16 00:50:25 +01:00
feder-cr 22843d256c tests: the mouse events are waited for until the last one expected, not for 0.4 s 2026-11-16 00:50:25 +01:00
feder-cr 7d7639da93 tests: the pause before the first key is judged on the browser's time stamps, not on the duration of the whole call 2026-11-16 00:50:25 +01:00
feder-cr 8cc5164019 tests: the key delay is read from the browser's own event time stamps 2026-11-16 00:50:25 +01:00
feder-cr f92d9f84f2 tests: the first datagram of a PeerConnection is judged by the association it left on, not by a number of milliseconds 2026-11-16 00:50:25 +01:00
feder-cr 2901769330 tests: the transport tests wait for the console, pageerror and dialog events, and the late element is shown after the absence check 2026-11-16 00:50:25 +01:00
feder-cr edb63b670d tests: a page that moves is replaced with no timer, so networkidle cannot race it 2026-11-16 00:50:25 +01:00
Federico Elia 4bb5b57ad7 Merge pull request #514 from oss-invisible/tests/no-third-party-reds-medium
tests: the medium- and low-risk e2e tests wait for conditions, and the workers share no port
2026-11-16 00:47:48 +01:00
feder-cr c206d5981a Merge remote-tracking branch 'origin/main' into tests/a-closed-context-resolves-through-its-proxy 2026-11-16 00:38:25 +01:00
feder-cr 8f5869d11a Hand the session's directories to the launch's reaper
invisible-core's Connection.close returns when the browser has exited and
the launch's reaper (conn.reaper) waits for the sender of the shutdown
pings, ends what is left and runs the steps given to reaper.then. The
server still ran SessionFiles.remove right after the shutdown, which waits
for the sender and the tree, so the close of the wrapper was as slow as
before. With a core that gives the launch a reaper the removal is now
registered with reaper.then once conn.close has returned; with an older
core it runs after the hooks as before.

_juggler/_reaped.py holds the hand-over and wait_reaped(token, timeout),
the internal wait the tests use. Tests: unit (fake connections with and
without a reaper), an e2e of the close time and of what is left after the
reaper, and the existing "after close no process is left" e2e waits for
the reaper first.
2026-11-16 00:23:25 +01:00
feder-cr e8fbc9171a tests: the test of the second goto that replaces the first keeps main's form until the verdict on the product; the strict one waits on its own branch 2026-11-16 00:14:01 +01:00
feder-cr 73f85763b2 tests: the replaced-goto test says which requests reached the server when it is red 2026-11-16 00:09:54 +01:00
feder-cr 4fe36b40ab tests: the dialog of the pointer test is collected by a plain function, which the client can tag as its handler 2026-11-15 23:21:48 +01:00
feder-cr f6aee7f595 tests: the second goto starts when the client heard the first one's response, not when the page committed a document that has only its start 2026-11-15 23:21:48 +01:00
feder-cr 6fc18b3d09 tests: the one starter of a browser is counted by identity, not by the size of a registry other tests of the worker share 2026-11-15 23:21:48 +01:00
feder-cr 10c54bc1fc tests: the HTTP/3 server serves QUIC on the UDP socket its picker held, and the probe-and-close picker is gone 2026-11-15 23:21:48 +01:00
feder-cr e11d7d0699 tests: the actions that are meant to fail get a 10 s budget, so the reason of the last attempt is read on a loaded runner 2026-11-15 23:21:48 +01:00
feder-cr e42c1b1788 tests: the scroll tests set the transport choice with monkeypatch, not by hand in os.environ 2026-11-15 23:21:48 +01:00
feder-cr 49fd6fc7c1 tests: the port picker has a variant that keeps the UDP socket, and a test shows the window of the probe one 2026-11-15 23:21:48 +01:00
feder-cr b6405aed5c tests: the process case calls a set of processes quiet after a count of equal reads, and the helpers of the popups file have unit tests 2026-11-15 23:21:48 +01:00
feder-cr bccaba8b8e tests: the CPU sampler's window ends at end(), with no sleep before its last sample 2026-11-15 23:21:47 +01:00
feder-cr 584e7b4ef2 tests: the DoH retry loop is a count of navigations, and the slow-load limit is measured at the goto 2026-11-15 23:21:47 +01:00
feder-cr 7477275f43 tests: the pipe-reader tests wait 30 s for local threads and judge a hang by a join, not a stopwatch 2026-11-15 23:21:47 +01:00
feder-cr 5dc9a8d0d8 tests: navigation tests no longer judge the speed of the machine
A goto that must be stopped or replaced is held by the server until the test
opens a gate after the call has returned (no clock); window.stop() is fired
when the server says the request arrived, not by a page timer; the second goto
waits for the first to commit on its site, not for 1 s. Absolute durations
narrower than the product's own timeout are gone: the timeout is the hang
detector. The click that opens a dialog leaves the dialog open until the call
has answered (the engine's 5 s bound raises).
2026-11-15 23:21:47 +01:00
feder-cr 106658e3b7 tests: the kept device list is judged by the engine's one declared wait, not by the page's clock on the later calls 2026-11-15 23:21:47 +01:00
feder-cr 6a3b564e29 tests: an ICE gathering is waited for until it says it is complete, not for a fixed 2.5 or 3 s 2026-11-15 23:21:47 +01:00
feder-cr 5f1d9526ec tests: the late popup is bounded by the server and by expect_popup, not by clocks of ours
The 25 s destination is reported after 24 s (the server's delay) and before expect_popup's own 45 s; the 40 s band is gone. The listener of the load is awaited for 30 s, and the handler's wait_for_load_state is judged by its own 10 s deadline instead of an absolute 8 s.
2026-11-15 23:21:47 +01:00
feder-cr 3e6ac4462c tests: the headed control window is waited for, not slept for
The control arm slept 1 s before counting the windows of the headed session on the interactive desktop. It now waits until one is there, with a deadline of 30 s.
2026-11-15 23:21:47 +01:00
feder-cr dc0bf4dcd3 tests: the held route is waited for with a deadline of 30 s
The handler was given 100 looks of 50 ms (5 s) to receive the image of the page. It now waits for it for 30 s.
2026-11-15 23:21:47 +01:00
feder-cr deace90f7a tests: the favicon window starts when the site has answered it
The 500 ms in which the client could be told of the favicon began at the release, not at the end of the answer. It now begins when the site has written the answer, awaited with a deadline of 30 s.
2026-11-15 23:21:47 +01:00
feder-cr d5ae243725 tests: the scrolled screenshot is taken once the page is where it was sent
300 ms after scrollTo stood for the scroll landing. The photograph is now taken when scrollY reads 1000, with a deadline of 30 s.
2026-11-15 23:21:47 +01:00
feder-cr a82d3e40d7 tests: the watcher is waited for until it has written its verdict
200 ms after goto stood for the first tick of the page's 50 ms watcher. The test now waits until the verdict and the control are written.
2026-11-15 23:21:47 +01:00
feder-cr 0388d00f45 tests: the reloaded page is given until the worker controls it
A fixed 500 ms after the reload decided whether the controller was set. It now waits for the controller with a deadline of 30 s; a page that never gets one is still red.
2026-11-15 23:21:47 +01:00
feder-cr beca4a5856 tests: the popup's document and its close are waited for, not slept for
The document test slept 500 ms before counting the request and the response, and the close test looked for 5 s. Each now waits for its condition with a deadline of 30 s; the short window left after it is only for a duplicate.
2026-11-15 23:21:47 +01:00
feder-cr b685183552 tests: the SPA test waits for its last route, not for 1 s
The page pushes /spa/later from a 50 ms timer after load; the test slept 1 s and then read the address. It now waits for the address with a deadline of 30 s.
2026-11-15 23:21:47 +01:00
feder-cr 9878cad989 tests: every wait of the strategy-1 bench has the deadline of a wait for something that must come, on the monotonic clock 2026-11-15 23:21:47 +01:00
feder-cr cebb7f8cb0 tests: the contexts and the deepest frame are waited for, not slept for
The named-world test slept 1 s and the too-deep test 1.5 s. The first now waits (30 s) until the three frames have a default and a utility context; the second until the last frame the client lists has an element that names no frame. The assertions stay.
2026-11-15 23:21:47 +01:00
feder-cr 4aecaf0043 tests: the frames of another process are waited for, not slept for
content_frame and evaluate waited 500 ms and then required a frame with the child origin; the dispatch_event test acted with a 4 s deadline on a button of another process; the hover test slept 400 ms before reading the frame's events. Each now waits for its condition with a deadline of 30 s, the assertions unchanged.
2026-11-15 23:21:47 +01:00
feder-cr c09cf08c17 tests: the page's change event is waited for, not slept for 300-400 ms
Four tests slept after set_files/set_input_files and then read #out. They now wait (30 s) until #out is not empty, then assert on its text exactly as before.
2026-11-15 23:21:47 +01:00
feder-cr b9c9139695 tests: the frames of the three sites are waited for, not slept for 1.5 s
The test slept 1.5 s after each load and then read every frame. It now waits (30 s) until the page lists exactly the three frame urls; the no-op wait_for_function on window.frames.length >= 0 goes with the sleep.
2026-11-15 23:21:47 +01:00
feder-cr 52bffd7fe3 tests: the responses are waited for, not slept for 300 ms
After each goto the test slept 300 ms and then indexed the responses it had heard. It now waits (30 s) until the client has heard the named ones, and says which are missing.
2026-11-15 23:21:47 +01:00
feder-cr 270e7a799d tests: the absence of a preflight is asserted after a sentinel, not after 2 s
The test slept 2 s and then required exactly three GETs. It now waits (30 s) until the server has seen both fetches, whose preflights come before them, then makes one same-origin request and waits for the client to hear it: events arrive in order, so everything the client was going to hear before it is in the list, and the sentinel is dropped before the count.
2026-11-15 23:21:47 +01:00
Federico Elia dd4e9b5d95 Merge pull request #507 from oss-invisible/tests/marionette-port-per-browser
tests: a Marionette port per launch, and the evidence when Marionette fails
2026-11-15 23:16:47 +01:00
Federico Elia 5c1f6a5cc4 record 0.52.1 as published (#506) 2026-11-15 21:36:01 +01:00
Federico Elia 57cfc78bb0 Merge pull request #508 from oss-invisible/tests/loop-held-only-while-busy
tests: a loop late in its selector is not held; only the time its thread runs counts
2026-11-15 21:35:54 +01:00
feder-cr b763a8320c Merge main: the networkidle test and Sites' request stamps are main's (#511) 2026-11-15 21:00:32 +01:00
Federico Elia 6a53aa2182 Merge branch 'main' into tests/a-closed-context-resolves-through-its-proxy 2026-11-15 20:59:02 +01:00
Federico Elia e384f731ac Merge branch 'main' into tests/loop-held-only-while-busy 2026-11-15 20:58:59 +01:00
Federico Elia edab7112f6 Merge pull request #509 from oss-invisible/tests/shelved-line-is-firefox-66
tests: the shelved engine line is firefox-66; its 15 tests wait for it
2026-11-15 20:58:42 +01:00
Federico Elia 91bccd23fa Merge pull request #511 from oss-invisible/tests/wait-for-conditions-not-clocks
tests: the e2e tests wait for a condition, not for a clock
2026-11-15 20:58:33 +01:00
feder-cr e82320fd52 tests: the identity parity test places the top's ticks against the spin window
It read the longest gap of the top's timer, which a loaded runner stretches
between two processes. The spinning iframe now tells the wall-clock window of
its spin and the top reports the time of each tick; strategy 1 needs one spin
with ticks inside it (up to six), strategy 0 none in any of them, with the
counts per spin in the message. Same helper as the Fission frame tests.
2026-11-15 20:10:49 +01:00
feder-cr b1091c9ebb tests: a frame is proved to be in another process by a tick inside its spin
The proof read a stall of the observer's timer, and a loaded Windows runner
stalls a timer between two processes for seconds. The frame now records the
wall-clock window of its spin and the observer the time of each tick; a tick
inside the window cannot happen in one process, whatever the load. The spin is
repeated (up to six) until one shows ticks inside it; a frame that shares the
process never does.
2026-11-15 20:07:32 +01:00
feder-cr 7bb5ae076e tests: the refused and the removed iframe are waited for, not slept for
The refused one slept 2.5 s and the removed one 5 s before reading the frame
list. Each now waits for its condition (the error page's frame with its
address; the iframe attached and detached with only the page left) with a
deadline of 8 s and 10 s, and the message lists what was seen over time.
2026-11-15 18:32:16 +01:00
feder-cr 36da827fa3 tests: networkidle is judged by the quiet the server saw, not by a 200 ms timer
The test assumed the frame's own timer and promise chain never leave half a
second without a request. It now stamps each request's arrival and end on the
server and asks what networkidle promises: nothing in flight and a quiet since
the last end when goto returned.
2026-11-15 18:29:32 +01:00
feder-cr 1dbf33ac0a tests: the content processes after a closed context are bounded by retail's pool
Retail Firefox with Fission keeps a pool of preallocated content processes
(3 on desktop, 1 up to 4 GB), refilled one at a time, so the count after a
closed context cannot be compared with the first one strictly. Five contexts;
each count is a wait for at most the first count plus the pool, with the counts
over time in the message.
2026-11-15 18:29:32 +01:00
feder-cr 6c73012fd4 tests: an iframe that goes to another site is waited for, not slept for
The first half of the test slept 1.5 s before reading the frame list; it now
waits for the first address (deadline 8 s, like the second half) and the
message lists the frame urls over time.
2026-11-15 18:29:32 +01:00
feder-cr 4a6317ec41 tests: the keepalive test waits for every request to end, not for 2 s
It waits until the four requests have begun and each has its end (deadline
15 s), and on failure lists every event (server, route, request, finished,
failed) with its time from the goto.
2026-11-15 18:29:31 +01:00
feder-cr e8ffdf8a2a tests: waits on a condition with a deadline, and what was seen while waiting
_waits.py polls a condition until it holds or a deadline passes and keeps the
values it saw, a timeline of events, the requests that began without an end,
the judgement of a networkidle from server stamps, and the pool of spare
content processes retail Firefox keeps. A unit file runs each on a fake clock,
for the red case and the green case of the e2e tests that use them.
2026-11-15 18:29:31 +01:00
feder-cr 08b32a8004 tests: the tick of the TURN page stops when the srflx arrives, before the POST
The verdict of the chain-by-name test asked the POST of /verdict to come back
inside the 2 s tick of the page. The tick now stops the moment the first srflx
arrives, so the test only asks whether the srflx came before the tick.
2026-11-15 18:29:31 +01:00
feder-cr b231f61c4c tests: a beacon sent as a proxied context closes resolves through its proxy (firefox-65)
A page's lookup that comes after its context is destroyed went to the machine's resolver on firefox-64: a sendBeacon on pagehide to a name never looked up, 10 of 10 on Linux and Windows (hunt 43733181674, Calling getaddrinfo with the context's userContextId and effectiveTRRmode 1). It is the road the OCSP request of a closing context took once (run 43717860248). The engine fix (juggler: an ended context with a proxy stays proxied for the resolver) is in firefox-65; the test is gated engine_at_least("firefox-65") and joins wrapper.e2e.context.sink (35 -> 36).
2026-11-15 17:30:08 +01:00
feder-cr cec6e28767 tests: the shelved engine line is firefox-66; its 15 tests wait for it
The next engine release is firefox-65 (the projection and the resolver of an ended context). The shelved line, whose tests were gated engine_at_least("firefox-65"), becomes firefox-66: without this the 15 tests would run against firefox-65 and fail for work that is not in it.
2026-11-15 17:17:28 +01:00
feder-cr 50dd052f4a tests: the second control runs 45 ms (a Windows watcher sleeps in 15.6 ms ticks); only those may count 2026-11-15 17:02:51 +01:00
feder-cr 9f2c21662e tests: the second control waits 300 ms and runs at 150 ms, away from Windows timer ticks 2026-11-15 16:46:43 +01:00
feder-cr 26e4fe6b1c tests: the pause of the second control is taken before the sentinel sleeps, not cleared after 2026-11-15 16:30:32 +01:00
feder-cr c3bca774b6 tests: a loop late in its selector is not held; only the time its thread runs counts
On a loaded Windows runner the candidate 43727128285 failed the four-browser close with 94 ms held and nothing on the loop's thread: the main thread waited in the selector, woke late and ran the pingers' queued replies, and the watcher charged the whole lateness to that moment. The watcher now counts only the part of a lateness after the loop's thread left the selector. A second control leaves the loop 125 ms late in its selector and then runs a 15 ms callback: it must not be charged (red on the old watcher, ~140 ms). The first control, the loop held on purpose for 400 ms, stays red. Bound unchanged, 50 ms.
2026-11-15 16:14:09 +01:00
feder-cr 7b8f1e70b2 tests: a Marionette port per launch, and the evidence when Marionette or networkidle fails
Two e2e tests went red for the first time on release/0.52.1 (run 43704738537, Windows part 2), green on the next
head, never red in the 305 e2e runs before. Their cause is open; this makes the next failure carry its evidence.

- No fixed Marionette port: three e2e files gave their browser 28431 and xdist runs them on different workers at
  once. `webfont_probe.marionette_port()` asks the OS for a free port per launch.
- A connection to Marionette that fails says what the engine says: per engine process its type, state and the ports
  it listens on; the parent's `MarionetteActivePort` (written by Firefox once Marionette listens) and the
  `marionette` lines of its `user.js`; and who listens on the port. The 10061 of the font test had nothing to read.
- The networkidle test of a frame of another site states, when it fails, every request of the scenario and the
  frame's load and timer, in ms from the networkidle the client was given (`Sites` records when each request
  arrived and was answered).

Unit tests (tests/test_the_marionette_helpers.py, red on the old code): the port is free when given, no test gives a
fixed port, a failed connection carries the diagnosis.
2026-11-15 14:08:07 +01:00
Federico Elia 1d3d149cb6 Merge pull request #496 from oss-invisible/release/0.52.1
Release 0.52.1
2026-11-15 13:00:30 +01:00
Federico Elia 5ee935268a Merge pull request #505 from oss-invisible/fix/linux-e2e-close-and-compositing
Linux: the virtual display stops off the loop, and an engine process is known by its executable
2026-11-15 12:27:28 +01:00
feder-cr 4416b088d7 Linux: the virtual display stops off the loop, and an engine process is known by its executable
Two red tests of the e2e Linux leg on release/0.52.1 (run 43701692047), each a real defect:

1. The async close called `time.sleep` on the loop's own thread: `_teardown` stopped the virtual display
   inline, and the stop waits for the Xvfb to exit (`Popen.wait`, a loop of sleeps on POSIX). Windows has
   no Xvfb, so only Linux saw it. The stop now goes off the loop like the start, through `_take_display`,
   the counterpart of `_plan_headless`, used by both teardowns (sync inline, async with `off_the_loop`).

2. The GPU-process test counted only the parent on Linux: `_cpu_by_type` kept processes NAMED firefox, and
   a Linux child names itself after its role ("Web Content", "Isolated Web Co", "forkserver", from
   /proc/<pid>/comm) while its executable is the firefox binary (WSL, firefox-64). An engine process is now
   known by its executable. Linux has no GPU process (software WebRender composites in the parent): the
   test says so and holds the parent to 3.5 s, from 20 runs on the ubuntu-latest runner (run 43707494271:
   parent 2.11 to 2.46 s, median 2.31; no GPU process in any run).

Red on the old code and green here, in WSL with the e2e: the loop test (['sleep'] on the loop's thread) and
the GPU test (seen: ['parent']). Two unit tests for the engine processes (19 in wrapper.unit.compositing,
was 17); the Linux child test is red on the old code.
2026-11-15 12:12:46 +01:00
Federico Elia 8516470e95 Merge pull request #504 from oss-invisible/tests/udp-bench-linux-close
tests: a closed fake STUN server wakes and ends its thread on Linux too
2026-11-15 11:34:25 +01:00
feder-cr f0c60c0f0c tests: a closed fake STUN server wakes and ends its thread on Linux too 2026-11-15 11:06:06 +01:00
Federico Elia 5994a6cfd8 Merge pull request #502 from oss-invisible/tests/udp-bench-robust
tests: the UDP bench survives a loaded Windows machine and its verdict says what it saw
2026-11-15 10:57:01 +01:00
feder-cr e7f1c85225 Merge remote-tracking branch 'origin/release/0.52.1' into tests/udp-bench-robust
# Conflicts:
#	ci/required-suites.json
2026-11-15 10:52:24 +01:00
Federico Elia 5d3ac3bc7c Merge pull request #501 from oss-invisible/tests/software-compositing-declared
tests: software compositing is declared (compositor, GPU-process CPU, page-readable bytes against a recorded reference)
2026-11-15 10:51:59 +01:00
feder-cr 39128592a4 Merge remote-tracking branch 'origin/release/0.52.1' into tests/software-compositing-declared
# Conflicts:
#	ci/required-suites.json
2026-11-15 10:45:27 +01:00
Federico Elia a973088192 Merge pull request #503 from oss-invisible/perf/close-off-the-loop
perf: the async close of an in-process browser does not hold the user's event loop
2026-11-15 10:44:29 +01:00
Federico Elia b2d424925a Merge pull request #498 from oss-invisible/perf/engine-born-in-the-job
A launch no longer scans the machine to bind the engine's tree: the core creates the engine inside its job
2026-11-15 10:44:19 +01:00
Federico Elia c489db7937 Merge pull request #499 from oss-invisible/perf/virtual-display-off-the-loop
perf: the virtual display of headless=True starts off the event loop
2026-11-15 10:44:09 +01:00
Federico Elia 0706164f58 Merge pull request #481 from oss-invisible/tests/bfcache-worker-contract-both-outcomes
tests: the worker/back-forward-cache test writes down what happened before it asserts and asserts the worker's contract for both outcomes of a goto
2026-11-15 10:44:04 +01:00
feder-cr a09233152c changelog: the close off the loop is #503 2026-11-15 10:20:22 +01:00
feder-cr 7cd92712ab perf: the async close of an in-process browser does not hold the user's event loop
Closing one of four browsers in one process stopped the loop that serves the
other three for as long as the close waited. Three waits ran on it:
`InProcessTransport.request_stop` ran `server.shutdown()` (the hooks that wait for
the engine's tree, and the removal of its directories), `wait_until_stopped`
joined the workers, and `_teardown` reaped the session's token.

Now the shutdown runs on a non-daemon thread ("juggler-shutdown") that settles the
stop when it ends; the joins and the reap go through the core's `off_the_loop`
(invisible-core 64.72.0). The sync path is unchanged. `BrowserDispatcher.op_close`
stays on its worker: the four workers belong to the server of one
InvisiblePlaywright, so its wait holds no other session's calls (the test shows the
other three answering).

Test: four real engines in one async process, one closes; the loop is held less
than 50 ms by the clock of its own thread (the instrument of the core's test), no
blocking step runs on its thread, the other three keep answering. Registered in
wrapper.e2e.page (115 -> 120).
2026-11-15 10:15:50 +01:00
feder-cr 2be9b6046a Pin invisible-core 64.73.0 for 0.52.1: software compositing declared, the engine born in its job, a close off the loop 2026-11-15 10:10:53 +01:00
feder-cr c43d787ce9 tests: the UDP bench survives a loaded Windows machine and its verdict says what it saw
The red of the far-gateway srflx test was unreadable under CPU saturation:

- FakeStun read with a socket that still reported ICMP port-unreachable (SIO_UDP_CONNRESET): the next recvfrom raised ConnectionResetError and `except OSError: return` ended the thread that answers, silently. It now turns the ioctl off, continues on a reset, and continues (not returns) on a failed sendto unless it is closing.
- The relay's inbound thread read out.getsockname() at every datagram, which fell on a closed socket at the teardown (WinError 10038, an unhandled thread exception). The port is read once and an OSError of the body ends the thread cleanly.
- The verdict of _gather_behind_a_coherent_gateway now carries the gateway's send errors, CONNECTs, accepted connections, associations, the datagram log with times and the UDP verdict the core declared for the proxy; a measure that is not coherent is said outright with the round trip. The outcome of the test is unchanged.

Each fix has a unit test that fails on the old code (registered in wrapper.unit.udp, 249 -> 258).
2026-11-15 09:53:43 +01:00
feder-cr f094102fab tests: the page-bytes reference of the core 64.71.0 on Linux and Windows, recorded by run 43661728392 (97 keys, all stable in 2 launches) 2026-11-15 02:11:53 +01:00
feder-cr 578763389d headless: one decision for the sync and the async start of the hidden display
`_resolve_headless` and `_resolve_headless_async` each carried a copy of the
decision (headless off, true headless, which display to build). `_plan_headless`
now makes it once and returns (pw_headless, display to start); the sync client
starts the display inline, the async one in a worker thread.

Test: the same inputs (headless False/True, INVPW_TRUE_HEADLESS set or not, a
platform with or without a display) give the same decision on both paths.
2026-11-15 00:19:45 +01:00
feder-cr 3a97b05708 async: the hidden display starts in a worker thread, not on the user's loop
`__aenter__` started the virtual display (an Xvfb on Linux: spawn, wait for
-displayfd) synchronously on the caller's event loop, with headless=True. Four
browsers in one process each froze the other three for ~75 ms per launch, far
more on a loaded host. The display is still created before the prefs are
composed (it is the hidden-headed surface the product promises); the async
path now awaits its start in a worker. A launch cancelled while the worker runs
releases the display when the worker ends. The sync path is unchanged.

Test: a stand-in display whose start takes 500 ms; a second browser on the same
loop is served within 100 ms (522 ms before), and a cancelled launch leaves no
display behind.
2026-11-15 00:08:14 +01:00
feder-cr 5fda215266 A launch no longer binds the engine's tree: the core creates the engine inside the job
InvisiblePlaywright._bind_process_tree called the core's JobObjectGuard.bind at
every launch (every process of the machine scanned, environment read, until a
second passes with nothing new: 12-29% of the launching thread on Windows). The
core now creates the engine inside the process's job object, so the tree is in
the job by construction and there is nothing to adopt. The method and its five
call sites are removed.

Needs the core release that carries engine_job / adopt_and_resume (the exact
invisible-core pin of the release that ships this). Tests, e2e on the real
engine: a launch makes no psutil.process_iter / Process.environ call; after
close() no process of the session is left; a client killed with TerminateProcess
leaves no engine process.
2026-11-14 23:13:46 +01:00
feder-cr b3eb6c3733 tests: the worker/back-forward-cache test asks for the commit order of a worker only of an engine that promises it (firefox-63)
Juggler f284ca703e (PageHandler._commitNow ends the workers below the frame before it announces the commit) is in firefox-63; the published firefox-62 does
not promise it, and main's e2e runs on both: run 43193233155 had Page.navigationCommitted before Page.workerDestroyed for [top-same-site-goto] on the published engine.
On an engine that does not promise the order the test still requires the worker to be told ended (it waits for it), and asserts the order where it is promised.
2026-11-14 19:34:09 +01:00
feder-cr 1d7204ffe6 tests: the worker/back-forward-cache test writes down what happened before it asserts, holds the cache's two host inputs still, and asserts the worker's contract for the outcome of a goto (restored, or built again)
The e2e of the hunt of 2026-11-12 was red once in 30 runs for [top-other-site-goto] with only 'the page was loaded again'. With the evidence
written before the assertion and the SHIPBFCache log, the cause is Firefox's: for a navigation the PARENT starts (goto, to the same site or another)
the parent's CanonicalBrowsingContext::AllowedInBFCache can find the navigation's own DocumentChannel as the single request of the old document's
loadgroup ('* requests in the loadgroup'): 15 of 56 goto sessions in a container on the candidate, never for the page's own navigation (location).

* the page must be cacheable before the test leaves it (every document has had its pageshow), and the lab fixes browser.sessionhistory.max_total_viewers and
  the low-commit-space thresholds so that the memory of the runner does not decide whether the cache holds;
* the evidence (__shown, the type of the navigation entry, the readyState, the protocol events since go_back) is written before the assertion;
* for a goto the test says which outcome happened and asserts the contract of THAT outcome whole: restored (same worker id once, no workerDestroyed, the page's
  count), or built again (the old worker ended once before the new commit, exactly one new worker with a new id, the only live one, answering 1);
  a restore the engine announced that the page did not see fails in both; the page's own navigation must restore. No repeat, no skip.

Unit tests (no browser): the evidence is written before the assertion and carried by the message, a reload is accepted only for a goto, the lab holds the
two host inputs, the test file has no repeat or skip.
2026-11-14 19:34:08 +01:00
456 changed files with 26302 additions and 20932 deletions

No files matched your search

@@ -6,7 +6,7 @@ body:
- type: markdown
attributes:
value: |
Use this when something detects the browser (Fingerprint Pro, CreepJS, BotD, reCAPTCHA, sannysoft, etc).
Use this when something detects the browser (Fingerprint Pro, a fingerprint consistency test page, BotD, reCAPTCHA, a basic bot-test page, etc).
Bugs in operations (clicks, navigation) go to the site/action template.
Browser failing to start goes to the launch failure template.
@@ -110,7 +110,7 @@ body:
id: full_report
attributes:
label: Full detector response
description: "FP Pro: JSON from /api/event/v4/. CreepJS: Smart Signals block. Optional."
description: "FP Pro: JSON from /api/event/v4/. Consistency test page: the report block with the failing checks. Optional."
render: json
validations:
required: false
+61
View File
@@ -111,7 +111,14 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y xvfb
# the fontconfig e2e trace the opens of the browser: strace is not in the runner image (setsid is, util-linux)
sudo apt-get install -y strace
sudo "$(which python)" -m playwright install-deps firefox
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one. BEFORE `fetch`, which makes the state present (it would download and generate it).
- name: The security state (a fixed directory of the repository)
shell: bash
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
- name: Fetch the published firefox binary
run: echo "FF=$(python -m invisible_playwright fetch | tail -1)" >> "$GITHUB_ENV"
- name: The protocol mirror agrees with the engine it is pinned to
@@ -131,6 +138,8 @@ jobs:
shell: bash
run: python scripts/ci_lab_geoip.py build
# test_release_e2e.py and test_upgrade_e2e.py (pip, uv, PyPI, the GitHub release) are NOT in this run or in the Windows legs below: tests/conftest.py leaves
# them out of every run that does not name their file, and user-install.yml (the round after the publication) names it. tests/_post_publication.py.
- name: Run the full e2e suite under a virtual display, without the root ones
# PYTHONUNBUFFERED, and it is not a nicety. Without it Python block-buffers
# stdout when it is a pipe, and this step printed NOTHING for 39 minutes
@@ -272,6 +281,32 @@ jobs:
if-no-files-found: warn
retention-days: 14
# The junit of every pass of the run (scripts/run_e2e.py writes one per pass, e2e-junit-*.xml, in the directory of the watchdog file) and of the two
# steps above that run alone (root, sandbox): what a red is read from, kept whether the run is green or red.
- name: Upload the junit of the run
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: e2e-junit-${{ github.run_id }}-${{ github.run_attempt }}
path: |
${{ runner.temp }}/e2e-junit-*.xml
${{ runner.temp }}/root-e2e.xml
${{ runner.temp }}/sandbox-e2e.xml
if-no-files-found: warn
retention-days: 14
# What the tests that measure save for a reader (the boxes of tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py:
# the two PNG files, the screenshot and a result.json per case), under RUNNER_TEMP/invpw-evidence, whether the run is green or red. Nothing there
# when no such test ran (an engine older than firefox-66 skips it), which is not a warning.
- name: Upload what the tests saved
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: invpw-evidence-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/invpw-evidence
if-no-files-found: ignore
retention-days: 14
# ``Control+A`` selects all in a field, on the PUBLISHED engine and the core this package pins, on Windows, where the keyboard of a real
# user is: the shortcut letter used to reach the browser as Control+Shift+A (invisible-core 63.66.0 fixes it). The e2e is red on the
# keyboard that held Shift for the capital A (tests/test_control_a_selects_all_in_a_field_e2e.py: 5 ways to press it x an <input> and a
@@ -296,6 +331,11 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install ".[dev]"
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one. BEFORE `fetch`, which makes the state present (it would download and generate it).
- name: The security state (a fixed directory of the repository)
shell: bash
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
- name: Fetch the published firefox binary
run: echo "FF=$(python -m invisible_playwright fetch | tail -1)" >> "$GITHUB_ENV"
- name: The keyboard shortcut selects all (the browser opens on the runner's desktop, as in e2e-hunt.yml)
@@ -331,6 +371,11 @@ jobs:
python -m pip install --upgrade pip
python -m pip install ".[dev]"
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one. BEFORE `fetch`, which makes the state present (it would download and generate it).
- name: The security state (a fixed directory of the repository)
shell: bash
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
- name: Fetch the published firefox binary
run: echo "FF=$(cd "$RUNNER_TEMP" && python -m invisible_playwright fetch | tail -1)" >> "$GITHUB_ENV"
# The GeoIP database made by the repository, as on the Linux run (no download, the same bytes every run).
@@ -379,3 +424,19 @@ jobs:
path: ${{ runner.temp }}/e2e-watchdog.log
if-no-files-found: warn
retention-days: 14
- name: Upload the junit of the run
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: e2e-junit-windows-${{ matrix.part }}-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/e2e-junit-*.xml
if-no-files-found: warn
retention-days: 14
- name: Upload what the tests saved
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: invpw-evidence-windows-${{ matrix.part }}-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/invpw-evidence
if-no-files-found: ignore
retention-days: 14
+168
View File
@@ -0,0 +1,168 @@
# fakeweb.yml - on the offline fake web (tests/fakeweb/), does our browser get the same outcome as stock Firefox, step by step?
#
# ONE QUESTION. The fake web is two small local sites (127.0.0.1 and localhost) whose every response is finite and made by the page of the test: no real
# site, no proxy, no request that leaves the runner. Profile P2 is one reused, routed page that loads the hard pages (beacons on pagehide, keepalive fetches,
# frames of another site removed or navigated away, requests the page aborts), each followed by a quiet canary. Profile P4 is the journey of a person over a
# multi-page site (17 steps: links, back and forward, a filter that changes the URL, a new tab, a download, a keyboard search, a sign-in), compared field by
# field with stock Firefox. Both profiles run in the SAME job as Playwright's own Firefox (scripts/playwright_pin.txt): stock first, ours second, one browser
# at a time, both driven by the stock Playwright client (scripts/run_fakeweb.py). The verdict is "the same outcome as stock", never a time: no step asserts a
# duration, and a stock Firefox that is not what tests/fakeweb/pages.json declares makes the leg red as a BROKEN CONTROL, not as a finding about ours.
#
# WHICH ENGINE. The published one (`python -m invisible_playwright fetch`), as e2e.yml. The candidate of the engine repository runs the same entry on its own
# binary (scripts/run_fakeweb.py --binary), and judges the four e2e tests of this fake web as the suite `wrapper.e2e.fakeweb` of ci/required-suites.json.
#
# WHEN. A pull request or a push to main that touches the fake web or this file (the journey and the hard pages are not a round for every change); again by hand
# with `workflow_dispatch`. Four legs, a profile on a system each (Linux under Xvfb, Windows); no leg is repeated or forgiven, and the ONE verdict of the workflow is the
# job `fakeweb verdict`: red unless all four legs are green (a skipped leg, for a core that is not on the index yet, is not green: nothing was measured).
name: fakeweb
on:
push:
branches: [main]
paths:
- 'tests/fakeweb/**'
- 'tests/test_fakeweb_*.py'
- 'scripts/run_fakeweb.py'
- 'scripts/fakeweb_p4_report.py'
- 'scripts/playwright_pin.txt'
- '.github/workflows/fakeweb.yml'
pull_request:
paths:
- 'tests/fakeweb/**'
- 'tests/test_fakeweb_*.py'
- 'scripts/run_fakeweb.py'
- 'scripts/fakeweb_p4_report.py'
- 'scripts/playwright_pin.txt'
- '.github/workflows/fakeweb.yml'
workflow_dispatch:
permissions:
contents: read
# A newer push to a pull request cancels the older run of THIS workflow on that pull request, and nothing else cancels (the same group as e2e.yml).
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
# The engine download goes through the release API with the token of the job (anonymous requests are the ones GitHub drops first).
env:
GITHUB_TOKEN: ${{ github.token }}
jobs:
core-on-index:
uses: ./.github/workflows/core-on-index.yml
walk:
name: fakeweb ${{ matrix.profile }} (${{ matrix.os }})
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- { profile: p2, os: linux, runner: ubuntu-24.04 }
- { profile: p2, os: windows, runner: windows-2022 }
- { profile: p4, os: linux, runner: ubuntu-24.04 }
- { profile: p4, os: windows, runner: windows-2022 }
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with: { fetch-depth: 1 }
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.11' }
- name: Install wrapper + test deps, and the stock Playwright client
run: |
python -m pip install --upgrade pip
python -m pip install ".[dev]"
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
- name: System deps (xvfb + Firefox runtime libs)
if: matrix.os == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb
sudo "$(which python)" -m playwright install-deps firefox
- name: Playwright's own Firefox (the control)
run: python -m playwright install firefox
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one. BEFORE `fetch`, which makes the state present (it would download and generate it).
- name: The security state (a fixed directory of the repository)
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
- name: Fetch the published firefox binary
run: echo "FF=$(cd "$RUNNER_TEMP" && python -m invisible_playwright fetch | tail -1)" >> "$GITHUB_ENV"
# The GeoIP database made by the repository (no download, the same bytes every run).
- name: The GeoIP database (made by the repository, same bytes every run)
run: python scripts/ci_lab_geoip.py build
- name: Profile P2, stock first and ours second, on a reused routed page
if: matrix.profile == 'p2'
run: |
PREFIX=""; [ "$RUNNER_OS" = Linux ] && PREFIX="xvfb-run -a"
$PREFIX python -u scripts/run_fakeweb.py --profile p2 --binary "$FF" --repetitions 10 --out fakeweb-p2.json
- name: Profile P4, stock first and ours second, three walks of the journey
if: matrix.profile == 'p4'
run: |
PREFIX=""; [ "$RUNNER_OS" = Linux ] && PREFIX="xvfb-run -a"
set +e
$PREFIX python -u scripts/run_fakeweb.py --profile p4 --binary "$FF" --repetitions 3 --out fakeweb-p4.json 2>&1 | tee fakeweb-p4.log
python scripts/fakeweb_p4_report.py journey fakeweb-p4.json > fakeweb-p4-summary.md
rc=$?
cat fakeweb-p4-summary.md >> "$GITHUB_STEP_SUMMARY"
cat fakeweb-p4-summary.md
case "$rc" in
0) echo "journey: green, ours equals stock on every step";;
1) echo "journey: RED, ours differs from stock on a step of a walk whose control is sound";;
2) echo "journey: RED, BROKEN CONTROL: stock Firefox is not as tests/fakeweb/pages.json declares (not a finding about ours)";;
3) echo "journey: RED, ours differs from stock, and a control is broken";;
4) echo "journey: RED, the runner wrote no report";;
*) echo "journey: RED, the report did not finish ($rc)";;
esac
exit "$rc"
- name: Profile P4, the types of the requests of stock and of ours (one traced walk each)
if: matrix.profile == 'p4' && always()
run: |
PREFIX=""; [ "$RUNNER_OS" = Linux ] && PREFIX="xvfb-run -a"
set +e
$PREFIX python -u scripts/run_fakeweb.py --profile p4 --binary "$FF" --repetitions 1 --trace --out fakeweb-p4-trace.json 2>&1 | tee fakeweb-p4-trace.log
python scripts/fakeweb_p4_report.py trace fakeweb-p4-trace.json > fakeweb-p4-trace-summary.md
rc=$?
cat fakeweb-p4-trace-summary.md >> "$GITHUB_STEP_SUMMARY"
cat fakeweb-p4-trace-summary.md
case "$rc" in
0) echo "request types: green, ours does what stock does";;
1) echo "request types: RED, ours differs from stock, see the summary";;
2) echo "request types: RED, BROKEN CONTROL: stock reported no sendBeacon (not a finding about ours)";;
*) echo "request types: RED ($rc), see the summary";;
esac
exit "$rc"
- name: Upload the numbers
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: fakeweb-${{ matrix.profile }}-${{ matrix.os }}-${{ github.run_id }}-${{ github.run_attempt }}
path: |
fakeweb-*.json
fakeweb-*.log
fakeweb-*.md
if-no-files-found: warn
retention-days: 14
# THE VERDICT of the workflow, the only one: green only when all four legs ran and passed.
verdict:
name: fakeweb verdict
needs: [core-on-index, walk]
if: always()
runs-on: ubuntu-24.04
steps:
- name: red unless every leg is green
run: |
echo "core-on-index: ${{ needs.core-on-index.result }}"
echo "walk (p2 and p4, linux and windows): ${{ needs.walk.result }}"
if [ "${{ needs.walk.result }}" != "success" ]; then
echo "RED: the four legs did not all pass (a leg that did not run measured nothing)"
exit 1
fi
echo "green: ours equals stock on the fake web, on both systems"
+12
View File
@@ -0,0 +1,12 @@
name: noreply-identity
# Pushes the gate does not see: branches other than main and tags. Pull requests and
# main go through the gate of tests.yml.
on:
push:
branches-ignore: [main]
tags: ["**"]
permissions:
contents: read
jobs:
noreply-identity:
uses: oss-invisible/core/.github/workflows/noreply-identity.yml@main
+2 -2
View File
@@ -164,7 +164,7 @@ jobs:
echo "::notice::invisible-core $WANT is on the index"
- name: install the package and its dev extras
# Its own step, BEFORE the arming below: install_hooks.py imports
# Its own step, BEFORE the arming below: `python -m invisible_core.hooks install` imports
# invisible_core, and the first version of this file installed inside the
# suite step, so the arming ran against a runner that had nothing
# installed and died on ModuleNotFoundError. ci.yml has had this order
@@ -188,7 +188,7 @@ jobs:
- name: arm the pre-push gates
# The suite asserts core.hooksPath is set and a fresh checkout has none.
run: python scripts/install_hooks.py
run: python -m invisible_core.hooks install
- name: the suite
# A tag push does not trigger the ordinary test workflow, which runs on
+331
View File
@@ -0,0 +1,331 @@
# real-sites.yml - on real pages, does the published wrapper get the same outcome as stock Firefox driven by stock Playwright, on the same machine, in the same window of time?
#
# ONE QUESTION. It does not measure the quality of an address or a percentage of blocks: a GitHub runner has a datacenter address and no proxy is used. Where stock Firefox
# is blocked as well, the cell carries no information and is written as such. It is red only where stock gets through and the wrapper does not.
#
# WHAT RUNS (per system, Linux under Xvfb with a window, and Windows; in a job everything in a row, one browser at a time):
# 1. two clean venvs: `invisible-playwright==<the version the index serves now>`, and Playwright at scripts/playwright_pin.txt with its Firefox;
# 2. the pass of stock over the whole list (scripts/run_real_sites.py), then the pass of ours;
# 3. only for the cells that differ in the first pass: two more passes of those sites, stock, ours, stock, ours;
# 4. the judge (scripts/judge_real_sites.py): the table, three numbers, the exit code. Its rule is in its own docstring and tests/test_real_sites_judge.py.
# The cells (JSON) and the summary are the artifacts of the run. The same conditions for both browsers: a window, one viewport, no proxy, the language of the runner.
#
# WHEN (never by hand, except to run a whole round again):
# * `workflow_run` of publish.yml, completed with success: the round after a publication, on the packages that just went out;
# * `push` to main and `pull_request` that touch the five files below: the round proves itself, on the packages published at that moment;
# * `workflow_dispatch`: to run a whole round again.
#
# VERSION. After a publication the version is the tag of the publish run (`head_branch` without its `v`); a run that is not of a `v*` tag makes the plan red. The other
# events read the version the index serves now.
#
# WHY PER PUSH. The admission judges a list when the list changes; the round measures at every push. A push that does not touch tests/realsites/sites.json does not run the
# admission again, or every push of the pull request would resample the real sites and could go red for a reason that is nobody's change. The plan decides it per push:
# a push is compared with the head it replaced; if that compare cannot be made (a forced push, no `before`, an API error) the admission runs, in doubt measure.
#
# ADMISSION. A push to a pull request that changes tests/realsites/sites.json runs the admission AND the round (14 jobs: the plan, 2 of the round, 10 passes of the admission and
# its report). The admission is stock alone, five passes per site and per system (a job per pass, so that a list of thirty sites stays inside the limit of a job). It is
# red only for a defect of the list, never for the luck of one site: an invalid list (a `min_informative` in the file is one), a pass that is missing, a site never good in
# any pass of a system that is not of the class protetta (a wrong marker, or a fixed block), more than 4 protetta, more than 20 sites. A site good in some passes stays,
# and the report gives its count per system ("4 of 5 on linux"): every real site has a rare failure on the side of stock, five passes cannot tell it from instability,
# and in the round it only removes information from that cell. The minimum of information is not sampled and is not in the file: the judge asks for half the sites,
# rounded up. Where stock does not find the marker, its cell in the artifact also holds the status, the title and the first 40 element ids of the page, to fix the marker
# in the same pull request; the judge ignores them.
#
# TOKEN. The token of the workflow is in three steps and nowhere else: the plan and the report of the admission (they call `gh`) and the install and fetch of the
# round (the engine is downloaded from GitHub; that step launches no browser). A step that runs the passes never sees it.
#
# No click and no handling of a consent wall anywhere: both browsers see what the page shows.
name: real-sites
on:
workflow_run:
workflows: [publish]
types: [completed]
push:
branches: [main]
paths:
- tests/realsites/sites.json
- scripts/run_real_sites.py
- scripts/judge_real_sites.py
- tests/test_real_sites_judge.py
- .github/workflows/real-sites.yml
pull_request:
paths:
- tests/realsites/sites.json
- scripts/run_real_sites.py
- scripts/judge_real_sites.py
- tests/test_real_sites_judge.py
- .github/workflows/real-sites.yml
workflow_dispatch:
permissions:
contents: read
pull-requests: read
env:
PYTHONUTF8: "1"
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
# Whether this run also admits a list, and the version of the package it tests, read ONCE so that both systems test the same one.
plan:
name: plan
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-24.04
timeout-minutes: 5
outputs:
admission: ${{ steps.plan.outputs.admission }}
version: ${{ steps.plan.outputs.version }}
steps:
- id: plan
shell: bash
env:
EVENT: ${{ github.event_name }}
PR: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
ACTION: ${{ github.event.action }}
BEFORE: ${{ github.event.before }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
admission=$(python3 - <<'PY'
import os
import subprocess
LIST = "tests/realsites/sites.json"
ZEROS = "0" * 40
def gh_files(endpoint, jq):
done = subprocess.run(["gh", "api", endpoint, "--paginate", "--jq", jq], capture_output=True, text=True, check=True)
return done.stdout.split()
def decide(event, action, before, head, repo, pr, files_of):
"""Does this run admit the list? Only when this push changes it. A push (synchronize) is compared with the head it replaced; a pull request that is
opened or reopened is judged on all its files. A compare that cannot be made (a forced push, no `before`, an API error) runs the admission: in doubt, measure."""
if event != "pull_request":
return False
if action == "synchronize":
if not before or before == ZEROS or not head:
return True
endpoint, jq = "repos/%s/compare/%s...%s" % (repo, before, head), ".files[].filename"
else:
endpoint, jq = "repos/%s/pulls/%s/files" % (repo, pr), ".[].filename"
try:
return LIST in files_of(endpoint, jq)
except Exception:
return True
if __name__ == "__main__":
e = os.environ
print("true" if decide(e["EVENT"], e.get("ACTION", ""), e.get("BEFORE", ""), e.get("HEAD_SHA", ""), e["REPO"], e.get("PR", ""), gh_files) else "false")
PY
)
if [ "$EVENT" = workflow_run ]; then
case "$HEAD_BRANCH" in
v*)
version="${HEAD_BRANCH#v}"
;;
*)
echo "::error::the publish run is of '$HEAD_BRANCH', not of a v* tag: the version of the package is not known"
exit 1
;;
esac
else
version=$(python3 -c 'import json, urllib.request; print(json.load(urllib.request.urlopen("https://pypi.org/pypi/invisible-playwright/json", timeout=60))["info"]["version"])')
fi
echo "admission=$admission" >> "$GITHUB_OUTPUT"
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "admission: $admission, invisible-playwright $version"
round:
name: round (${{ matrix.os }})
needs: plan
runs-on: ${{ matrix.os }}
timeout-minutes: 40
strategy:
fail-fast: false # one system failing must not hide the other's table
matrix:
os: [ubuntu-24.04, windows-latest]
env:
VERSION: ${{ needs.plan.outputs.version }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.12' }
- name: Linux runtime libraries for the browsers
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
# Two venvs that share nothing: what a user gets from the index, and what a user of stock Playwright gets. The wrapper is installed by its published version
# (the index may lag a few minutes behind a publication: only the install is asked again), then its engine is fetched the way a user fetches it.
- name: The two clean venvs
shell: bash
env:
GH_TOKEN: ${{ github.token }} # the fetch of the engine is a download from GitHub; nothing here opens a page
run: |
set -euo pipefail
if [ "$RUNNER_OS" = Windows ]; then BIN=Scripts; EXE=python.exe; else BIN=bin; EXE=python; fi
python -m venv venvs/ours
python -m venv venvs/stock
echo "OURS_PY=venvs/ours/$BIN/$EXE" >> "$GITHUB_ENV"
echo "STOCK_PY=venvs/stock/$BIN/$EXE" >> "$GITHUB_ENV"
OURS="venvs/ours/$BIN/$EXE"; STOCK="venvs/stock/$BIN/$EXE"
PIN=$(tr -d '[:space:]' < scripts/playwright_pin.txt)
"$STOCK" -m pip install --quiet --disable-pip-version-check "playwright==$PIN"
if [ "$RUNNER_OS" = Linux ]; then "$STOCK" -m playwright install --with-deps firefox; else "$STOCK" -m playwright install firefox; fi
for attempt in 1 2 3 4 5 6; do
if "$OURS" -m pip install --quiet --disable-pip-version-check "invisible-playwright==$VERSION"; then break; fi
if [ "$attempt" = 6 ]; then echo "::error::the index does not give invisible-playwright==$VERSION"; exit 1; fi
sleep 20
done
"$OURS" -m invisible_playwright fetch
# The pass of stock, the pass of ours, the cells that differ, and for those only two more passes of each in the order stock, ours, stock, ours.
- name: The passes
shell: bash
run: |
set -euo pipefail
mkdir -p cells
visit() { # browser, file of the cells, then what run_real_sites.py takes
local browser="$1" out="$2" py="$STOCK_PY"
shift 2
if [ "$browser" = ours ]; then py="$OURS_PY"; fi
if [ "$RUNNER_OS" = Linux ]; then
xvfb-run -a -s "-screen 0 1920x1080x24" "$py" scripts/run_real_sites.py --browser "$browser" --out "$out" "$@"
else
"$py" scripts/run_real_sites.py --browser "$browser" --out "$out" "$@"
fi
}
visit stock cells/stock-1.json
visit ours cells/ours-1.json
IDS=$(python scripts/judge_real_sites.py differing --sites tests/realsites/sites.json --stock cells/stock-1.json --ours cells/ours-1.json)
echo "cells that differ: ${IDS:-none}"
if [ -n "$IDS" ]; then
for n in 2 3; do
visit stock "cells/stock-$n.json" --only "$IDS"
visit ours "cells/ours-$n.json" --only "$IDS"
done
fi
- name: The judge
shell: bash
run: |
set +e
python scripts/judge_real_sites.py judge --sites tests/realsites/sites.json \
--stock cells/stock-*.json --ours cells/ours-*.json --summary cells/summary.md --result cells/result.json
code=$?
{
echo "### $RUNNER_OS: invisible-playwright $VERSION against stock Playwright $(tr -d '[:space:]' < scripts/playwright_pin.txt)"
echo
cat cells/summary.md
} >> "$GITHUB_STEP_SUMMARY"
exit $code
- name: The cells and the summary
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: real-sites-${{ runner.os }}
path: cells/
if-no-files-found: ignore
# One pass of stock over the list, on one system: five of them per system make the admission.
admit:
name: admit (${{ matrix.os }}, pass ${{ matrix.repeat }})
needs: plan
if: needs.plan.outputs.admission == 'true'
runs-on: ${{ matrix.os }}
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-latest]
repeat: [1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.12' }
- name: Linux runtime libraries for the browser
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
- name: Stock Playwright and its Firefox, then one pass
shell: bash
env:
REPEAT: ${{ matrix.repeat }}
run: |
set -euo pipefail
if [ "$RUNNER_OS" = Windows ]; then BIN=Scripts; EXE=python.exe; else BIN=bin; EXE=python; fi
python -m venv venvs/stock
STOCK="venvs/stock/$BIN/$EXE"
PIN=$(tr -d '[:space:]' < scripts/playwright_pin.txt)
"$STOCK" -m pip install --quiet --disable-pip-version-check "playwright==$PIN"
if [ "$RUNNER_OS" = Linux ]; then "$STOCK" -m playwright install --with-deps firefox; else "$STOCK" -m playwright install firefox; fi
mkdir -p cells
if [ "$RUNNER_OS" = Linux ]; then
xvfb-run -a -s "-screen 0 1920x1080x24" "$STOCK" scripts/run_real_sites.py --browser stock --diagnose --out "cells/stock-$REPEAT.json"
else
"$STOCK" scripts/run_real_sites.py --browser stock --diagnose --out "cells/stock-$REPEAT.json"
fi
- name: The cells
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: admit-${{ runner.os }}-${{ matrix.repeat }}
path: cells/
if-no-files-found: ignore
admission:
name: admission report
needs: admit
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: read
actions: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.12' }
- name: Which sites are the same five of five, and the minimum to write
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
gh run download "$GITHUB_RUN_ID" --repo "$GITHUB_REPOSITORY" --pattern 'admit-*' --dir admit
set +e
python scripts/judge_real_sites.py admit --sites tests/realsites/sites.json \
--os linux admit/admit-Linux-*/stock-*.json --os windows admit/admit-Windows-*/stock-*.json \
--summary admission.md
code=$?
cat admission.md >> "$GITHUB_STEP_SUMMARY"
exit $code
- name: The report
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: admission
path: admission.md
if-no-files-found: ignore
+27 -3
View File
@@ -160,6 +160,12 @@ jobs:
core-on-index:
uses: ./.github/workflows/core-on-index.yml
# Every commit and tag this change makes public must carry a GitHub noreply
# email (author, committer, tagger). The judge lives in oss-invisible/core and
# is read from its main, never from this branch.
noreply-identity:
uses: oss-invisible/core/.github/workflows/noreply-identity.yml@main
unit:
name: pytest (${{ matrix.os }}, py${{ matrix.python }})
needs: core-on-index
@@ -186,6 +192,12 @@ jobs:
steps:
- uses: actions/checkout@v4
# main, for the tests that compare a list of this change with the list of main (tests/test_the_e2e_tests_do_not_wait_on_clocks.py: the debt of
# the e2e tests only shrinks). The checkout is one commit deep; without this the comparison has nothing to read and the test says so.
- name: main, to compare the lists that may only shrink
shell: bash
run: git fetch --no-tags --depth=1 origin main:refs/remotes/origin/main
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
@@ -203,10 +215,10 @@ jobs:
# three repos that existed then made the assertion (two now, since
# invisible_firefox was deleted on 2026-08-18), but only the core's CI
# had this step, so both consumers went red on it. Do here what a
# developer does once. It also means install_hooks.py is exercised on
# developer does once. It also means `python -m invisible_core.hooks install` is exercised on
# every runner instead of only on the one machine that ever ran it by
# hand.
run: python scripts/install_hooks.py
run: python -m invisible_core.hooks install
- name: undefined names and duplicate definitions
# F821 (undefined name) and F811 (redefinition) only. Not a style pass:
@@ -222,6 +234,12 @@ jobs:
run: |
python -m ruff check --select F821,F811,F601 --no-cache --output-format concise .
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one.
- name: The security state (a fixed directory of the repository)
shell: bash
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
# The GeoIP database is made by the repository (scripts/ci_lab_geoip.py: the same bytes on every run, the sha256 in ci/geoip.json), never a
# site and never a licensed file: without STEALTHFOX_GEOIP_MMDB the core asks GitHub which database is the latest on every call
# (run 43211837926). The variable reaches every later step of the job.
@@ -343,7 +361,7 @@ jobs:
# exits 1 without saying which of five inputs went red is a gate somebody has
# to open five tabs to read.
gate:
needs: [core-on-index, unit, docs-api, english, claims, version, way-in, install-job]
needs: [core-on-index, unit, docs-api, english, claims, version, way-in, install-job, noreply-identity]
if: always()
runs-on: ubuntu-latest
steps:
@@ -357,6 +375,7 @@ jobs:
echo "way-in: ${{ needs.way-in.result }}"
echo "version: ${{ needs.version.result }}"
echo "install-job: ${{ needs.install-job.result }}"
echo "noreply-identity: ${{ needs.noreply-identity.result }}"
case "${{ needs.unit.result }}" in
failure|cancelled) echo "the suite did not pass"; exit 1 ;;
esac
@@ -381,6 +400,11 @@ jobs:
case "${{ needs.install-job.result }}" in
failure|cancelled) echo "the user-install job would not run on a release, or leaks"; exit 1 ;;
esac
# Unlike the checks above this one must be `success`: it runs on every
# event this workflow has, so a skip would mean the check never ran.
if [ "${{ needs.noreply-identity.result }}" != "success" ]; then
echo "a commit or tag of this change has an email that is not a GitHub noreply address"; exit 1
fi
echo "ok"
# Measured 2026-09-04: 0.10.0 was on the index while main sat on 0.10.0 with
+26 -1
View File
@@ -101,6 +101,28 @@ jobs:
- name: Test harness only
run: python -m pip install --upgrade pip pytest packaging uv
# ⛔ THE VERSION OF A LEDGER PULL REQUEST IS THE ONE IT ADDS TO PUBLISHED.json, NOT THE ONE THE TREE DECLARES.
# The ledger PR of a release is merged after this job is green, and the next release's tree can already be on main: ledger #534 recorded
# 0.56.0 while the tree said 0.57.0, which is not published until that ledger is merged (its tag asks for it), so a wait on the version of
# pyproject.toml could never end and the PR could never merge. The versions are compared as data: the ledger at the base of the pull
# request against the ledger at its head. Nothing added is an error (there is no release to check), and so is more than one (the job
# installs and launches one version). INVPW_E2E_VERSION then carries it to the wait, the install and the launch below, in every step.
# A scheduled or dispatched run has no pull request and no such version: it installs the latest, as before.
- name: the version this ledger pull request records
if: github.event_name == 'pull_request'
shell: bash
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
set -euo pipefail
git fetch --no-tags --depth=1 origin "$BASE_SHA" "$HEAD_SHA"
git show "$BASE_SHA:PUBLISHED.json" > "$RUNNER_TEMP/ledger-base.json"
git show "$HEAD_SHA:PUBLISHED.json" > "$RUNNER_TEMP/ledger-head.json"
version="$(python scripts/ci_ledger_added_versions.py --base "$RUNNER_TEMP/ledger-base.json" --head "$RUNNER_TEMP/ledger-head.json" --tree-pyproject pyproject.toml)"
echo "INVPW_E2E_VERSION=$version" >> "$GITHUB_ENV"
echo "::notice::this ledger pull request records invisible-playwright $version"
# PyPI does not serve a new version to pip the instant twine finishes, and
# this workflow runs on the ledger pull request, which the publish run
# opens seconds after the upload (it ran on `release:`, just as soon).
@@ -132,7 +154,8 @@ jobs:
python - <<'PY'
import os, subprocess, sys, tempfile, time, tomllib
dist = tomllib.load(open("pyproject.toml", "rb"))["project"]["name"]
version = tomllib.load(open("pyproject.toml", "rb"))["project"]["version"]
# The version the ledger pull request records (the step above), never the tree's: main may already declare the next one.
version = os.environ["INVPW_E2E_VERSION"]
deadline = time.monotonic() + 600
deadline = min(deadline, time.monotonic() + float(os.environ.get("INDEX_WAIT_SECONDS", "600")))
poll = float(os.environ.get("INDEX_WAIT_POLL", "15"))
@@ -188,6 +211,8 @@ jobs:
# rate-limited walk SKIPS, and a skip is not a check.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INVPW_E2E_SOURCE: ${{ github.event.inputs.source || 'index' }}
# INVPW_E2E_VERSION (set above on a ledger pull request, absent otherwise) is read by both tests: the release test adds exactly that
# version, the upgrade test goes from the one before it to it.
shell: bash
run: |
set -o pipefail # or the tee below would swallow pytest's exit code
+158 -5
View File
@@ -4,11 +4,161 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.58.0] - 2026-11-21
## [0.52.1] - 2026-11-14
### Changed
- Pins invisible-core 68.80.0 on the engine firefox-68 (Firefox 159.0).
- Every profile starts with the security state a retail Firefox has: the intermediate certificates, OneCRL and the CRLite revocation filters.
`invisible-playwright fetch` downloads them from Mozilla's service and has the engine build them once; every launch copies the result into its
profile. Filters ten days old or more are left out, as a retail Firefox does, with one warning that says to run `fetch`.
Same pin as 0.52.0 (invisible-core 64.71.0).
### Fixed
- `networkidle` waits for the end of the document request that is still arriving when the page is cut, instead of ending early.
- A navigation the page's process reports as aborted while the parent is still carrying its request now waits for that request, so a
`goto` no longer fails with a false abort.
- Behind a SOCKS5 proxy, WebRTC sockets on ports Windows reserves no longer take the proxy's UDP association from the sockets that work.
## [0.57.1] - 2026-11-20
### Fixed
- Pins invisible-core 67.79.0 (same engine, firefox-67). On Windows, two browsers launched together on an empty cache could fail with
«Access is denied» on the font list file the first browser held open: the file is now created once and never replaced or read back.
## [0.57.0] - 2026-11-20
### Changed
- Pins invisible-core 67.78.0 (same engine, firefox-67). The core keeps no value in memory between two calls: the seal, the identity of the engine,
the GPU tables, the time zones, the keyboard tables, the exit address and the UDP verdict of a proxy are read or measured each time they are needed,
so what a launch costs is visible where it is paid.
- `invisible-playwright fetch` looks for a newer list of intermediate certificates every time it runs (a small request; the list is downloaded only
when Mozilla changed it). A launch only reads the list on disk and starts no background check.
- `new_context(proxy=...)` measures the UDP exit of its proxy every time, instead of reusing a measurement of the same proxy from the last 30 minutes.
- A launch without a proxy asks for its exit address every time, instead of reusing an answer from the last 2 minutes.
- The UDP verdict the session measured at launch is handed to the browser's proxy command explicitly.
### Fixed
- `wait_for_load_state("networkidle")` and `goto(..., wait_until="networkidle")` on a new document count the quiet from that document's
commit, as Playwright does: the silence before the commit no longer counts toward its 500 ms.
## [0.56.0] - 2026-11-19
### Engine firefox-67
- A site that sends an incomplete certificate chain (its certificate without the intermediate that signed it) opens from the first second,
as it does on a Firefox that has been in use for days. Firefox completes such chains with the intermediate certificates Mozilla
publishes, which a fresh profile only downloads a minute or so after its start; the list is now declared by the core and written into
the profile before the first page, so every session has it from its start.
- The engine no longer downloads that list itself: no request for it leaves the browser, through the proxy or otherwise.
- The browser tells the client it is ready only once the list is written, so no page can be opened before it is in place.
### Changed
- Pins invisible-core 67.77.0 and with it the engine firefox-67. The core downloads the list from Mozilla's service once, verifies every
certificate against the hash Mozilla publishes for it, keeps it in its cache and asks again at most once a week, after the browser has
started, so a launch never waits for it; with no copy and no network the browser starts without the list and a warning is printed.
- `invisible-playwright fetch` also downloads the list, after the engine, so the first launch does not.
- The CI legs launch with a fixed, empty list of the repository (`ci/intermediates.json`), so no test asks Mozilla for anything.
## [0.55.0] - 2026-11-19
### Changed
- Pins invisible-core 66.76.0 (same engine, firefox-66): the core no longer carries its legacy API, and the wrapper no longer reaches any of it.
- `tests/conftest.py` takes the engine entry table from `invisible_core.seal.DEFAULT_ENTRY_REL`, and a test fails if a file of the wrapper imports a name the core removed.
- The workflows arm the pre-push gates with `python -m invisible_core.hooks install`.
### Removed
- The nine modules that only re-exported `invisible_core` (`invisible_playwright._geo`, `_headless`, `_proxy`, `_webgl_personas`, `config`,
`constants`, `download`, `prefs`, `_fpforge`) and `invisible_playwright._reaper`: import `invisible_core.<module>` (`invisible_core.process`
for the reaper). `resolve_session_timezone` is no longer re-exported from the package root.
- `INVPW_CURSOR_ENGINE=binary` and the fallback to the browser's own motion when no generator is found: the engine is the Python one, or `off`. The variable is strict: unset, `python` or `off`; any other value (`binary`, `none`, `false`, `0`...) is a `ValueError` that lists them.
- The test that scanned a driver bundle tree, which only the removed Node driver had.
- `INVPW_TRANSPORT=driver` and its refusal message: there is one transport.
- `scripts/install_hooks.py`: `python -m invisible_core.hooks install` (with `--check` to only report) does the same, from the core.
### Fixed
- The documentation no longer presents `INVPW_BINARY_PATH` as a variable of the library, which reads none; a binary you already have is passed
as `binary_path=`.
## [0.54.0] - 2026-11-18
### Engine firefox-66
- A screenshot on Linux draws text in the fonts the page used. The browser's main process rebuilds each font of a screenshot from its
file and asks fontconfig to confirm that file; it now shows the bundled fonts to fontconfig before it builds its font list, so the file
is known and kept instead of being replaced by a fallback font (screen and canvas were already right; only screenshots were wrong).
- A face of a font collection (`.ttc`) keeps its own index when the main process rebuilds it, so it is no longer drawn as another face of
the same file (Cambria Math, MS PGothic and NSimSun came out as Cambria, MS Gothic and SimSun). This is Mozilla's fix of bug 2077661,
carried as Mozilla wrote it until a Firefox release ships it.
- Windows was not affected.
### Changed
- Pins invisible-core 66.75.0 and with it the engine firefox-66.
### Added
- A test that draws text in each bundled family the identity declares (accents, a typographic apostrophe, Chinese, Japanese, Arabic,
Russian, and two faces that are not the first of their collection) and compares the screenshot, byte for byte, with the same text drawn
by the page itself into a canvas, on Linux and on Windows.
- A Linux test that a second launch reads the bundle from fontconfig's cache and does not scan the folder again, measured under strace,
with a test of the strace stand-in itself.
## [0.53.1] - 2026-11-16
0.53.0 was tagged but never published; its changes ship in 0.53.1. One of its tests read the page's address too early when the first of
two navigations wins; 0.53.1 corrects that test.
### Engine firefox-65
- Keys, clicks and the mouse path stay on their planned timing under load.
- A second `goto` that starts while a site is changing process no longer hangs.
- The isolated worlds of init scripts are always created.
- A worker comes back with its page from the back-forward cache.
- The names looked up as a context closes go through that context's proxy.
- `close()` returns when the browser has exited, and never interrupts it while it exits.
### Changed
- Pins invisible-core 65.74.0 and with it the engine firefox-65.
- The path of the cursor leaves as one stroke. The approach, the walk before a click, the wheel burst and the idle movement hand their
planned timeline to the core's `Actions.walk`, which sends each point at its planned instant on the client's own clock, without waiting
for the reply of the one before; the replies are collected at the end. Before, each point was a command of its own that waited for the
engine's reply, and a slow reply was a pause in the path that the page saw (2.6 s measured on a GitHub runner), with the points after it
crowded together. A lone `mouse.down`, `mouse.up` or one-step `mouse.move` is still a single command that waits for its reply, as in Playwright.
- `close()` returns when the browser has exited, and the removal of the session's directories and the last reap of its tree are left to the
reaper of the launch (invisible-core 65.74.0), instead of being done at once and waiting for the sender of the shutdown pings. A session
that is over is forgotten by the registry of reapers, so a long-lived server no longer keeps one entry per session.
- The download and upload folders of a session are removed by the reapers of its launches, after the tree has ended, and no longer on
the server's shutdown thread that the user's exit waits for (4 profiles removed together took up to 2.5 s on Windows). With no reaper
they are removed at once, as before.
### Fixed
- The cursor's motion never fails an action for what the engine or the page answers (a closed target, a detached frame, a refused or
unanswered command), and no longer hides a bug of ours: an error of our own in the path (an `AttributeError`, a `TypeError`) comes out of
the action instead of being swallowed with one warning and a click that goes out with no path.
### Removed
- `pytest-rerunfailures` from the `dev` extra. No run of this repository reruns a test (the e2e run refuses the plugin by name, `-p no:rerunfailures`).
### Tests
- The e2e tests wait for a condition with a deadline of 30 s, not for a clock, and the workers share no port: a Marionette port per launch,
the HTTP/3 server serves on the UDP socket its picker held. A test that is red now says what
it saw. (#507, #511, #514)
- The shelved engine line is firefox-66; its 15 tests wait for it. (#509)
- A loop late in its selector is not held; only the time its thread runs counts. (#508)
- A check that the e2e tests do not wait on clocks, share ports, write the environment or reach the world; the debt of that check only shrinks.
- The whole unit suite is a required suite of the candidate: 1988 tests on Linux and 1989 on Windows.
- The click and pointer benches count a stroke's instants on their virtual clock, and the key-delay test reads the browser's own event
time stamps. (#516)
- The e2e workflow uploads the junit of every pass of the run (Linux, and each Windows part), green or red.
## [0.52.1] - 2026-11-15
### Changed
- Pins invisible-core 64.73.0 (same engine, firefox-64). The compositor is now declared in software on every machine, as a
retail Firefox reports on a machine without a usable GPU, and never read from the host. Before, the hardware compositor
was declared over a software adapter, which cost about 6x the CPU in the GPU process.
- Windows: the engine is created inside a job of its own, so a launch no longer scans every process of the machine to bind
the engine's tree. (#498)
- Several browsers in one async program no longer slow one another down:
- `connect()` starts no thread on the event loop (#497).
- The virtual display of `headless=True` starts off the event loop (#499).
- Closing a browser waits for its processes and removes its profile without holding the loop that serves the others:
with four browsers in one process the loop was held for up to about 0.5 s per close, and is not held now (#503).
- Comments, the fork notes and one test message no longer point at scripts that were deleted (the transport comparison scripts and the prefs byte-parity gate: no round ran them). No behaviour changes. (#458)
### Added
- `page.expose_function`, `page.expose_binding`, `context.expose_function` and `context.expose_binding`, as in Playwright: the page calls a Python function and gets a promise (the value, a rejection when the function raised, an await when it is async). The page sees the function and nothing else (no name of ours on the window, no init script); an engine without `Page.addBinding` is refused with a clear sentence. Arguments and results cross as JSON. (#471)
@@ -18,8 +168,11 @@ Same pin as 0.52.0 (invisible-core 64.71.0).
- A context init script added after a page exists runs once in it, not twice. (#469)
- A CORS preflight (an OPTIONS request that no route holds) is no longer reported to the client, as in Playwright's own server: `page.on("request")`, `route` and a request counter hear of one request fewer for each preflighted fetch of the page. (#467)
### Changed
- Comments, the fork notes and one test message no longer point at scripts that were deleted (the transport comparison scripts and the prefs byte-parity gate: no round ran them). No behaviour changes. (#458)
### Tests
- Every test module is checked to leave no browser open (a census of the connection threads, which needs no package to run). (#497, #500)
- Software compositing is declared: the compositor in use, the CPU of the GPU process, and the bytes a page reads compared
against a recorded reference, on Linux and Windows. (#501)
- The UDP bench survives a loaded Windows machine, and its verdict says what it saw. (#502)
## [0.52.0] - 2026-11-14
+5243
View File
File diff suppressed because it is too large. Load diff
+8 -3
View File
@@ -16,6 +16,11 @@
This one runs on an anti-detect Firefox with an undetected fingerprint, compatible with your existing Playwright code.</h3>
</div>
<p align="center">
<a href="https://decodo.com/deals/residential-offer?utm_medium=affiliate&utm_source=Federico+Elia&promoter_id=15854270&fpr=7859773"><img alt="Decodo residential proxies, free trial (sponsored)" src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/decodo-residential-proxies-trial.png" width="560"></a><br>
<sub>Sponsored</sub>
</p>
![invisible_playwright - 5/5 detection suites passed](https://raw.githubusercontent.com/oss-invisible/playwright/7a8693c6b4386e9a84dd93bedc479ca8654482e1/docs/screenshots/hero.gif)
## How it works
@@ -257,7 +262,7 @@ organised into four sections instead of one flat list:
audio, network and WebRTC, the automation layer, AI agents, the detectors themselves
explained from source, and testing.
- **[Comparisons](docs/comparisons.md)** -
against Camoufox, Patchright, nodriver and playwright-stealth, and the case for
against Patchright, nodriver and playwright-stealth, and the case for
Firefox over Chromium generally.
- **[Integrations](docs/integrations/)** -
Scrapy, Crawlee, Robot Framework, CodeceptJS, test runners, Playwright MCP, and the
@@ -300,7 +305,7 @@ covers the frameworks that pick Chromium over CDP for you.
**On the Firefox side**
- **[Camoufox](https://github.com/daijro/camoufox)** - patches C++ too, wider surface, ships a fingerprint database instead of deriving one from a seed. [Comparison](docs/vs-camoufox.md).
- **Other patched Firefox builds** - some patch C++ too, with a wider surface and a fingerprint database instead of one derived from a seed. [How the stealth levels differ](docs/playwright-stealth-levels.md).
- **[LibreWolf](https://librewolf.net)** - a privacy-defaults Firefox to browse with, not to automate.
- **[arkenfox/user.js](https://github.com/arkenfox/user.js)** - hardening through preferences. Where a preference is enough, use it.
@@ -343,7 +348,7 @@ spoofed browser is usually caught. Source:
- The codec table is declared, so a Linux host does not answer a Windows question with Linux support: [codec fingerprinting](docs/codec-fingerprinting.md).
**Network**
- WebRTC offers one synthetic candidate carrying the proxy exit, instead of leaking the real address or offering none, which is itself a tell: [WebRTC ICE candidate spoofing](docs/webrtc-ice-candidate-spoofing.md), [does the WebRTC IP match the proxy exit](docs/webrtc-ip-match-proxy-exit.md).
- Behind a proxy, WebRTC's UDP goes through the proxy when the proxy can carry it, so the server-reflexive candidate is the proxy's exit, and otherwise no datagram leaves the machine at all; candidates are real, never patched in the page: [WebRTC ICE candidate spoofing](docs/webrtc-ice-candidate-spoofing.md), [does the WebRTC IP match the proxy exit](docs/webrtc-ip-match-proxy-exit.md).
- DNS resolves through the proxy, including when the proxy is not in the preferences: [does a proxy leak DNS](docs/does-a-proxy-leak-dns-doh-explained.md), [how to check for a proxy IP leak](docs/how-to-check-proxy-ip-leak.md).
- The timezone comes from the egress IP, resolved offline, so it matches the exit: [timezone and proxy mismatch](docs/timezone-proxy-mismatch.md), [offline GeoIP timezone](docs/offline-geoip-timezone-proxy.md).
+10 -5
View File
@@ -5,11 +5,16 @@
{"id": "wrapper.e2e.web", "giro": "G2", "os": ["linux", "windows"], "min_tests": 27, "exact": true, "tests": ["tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_http3_through_the_proxy_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The networkidle e2e with routes and the HTTP/3 e2e, split from wrapper.e2e.udp (about 260 s of 500 on Linux; the whole suite did not fit the 15 minutes of Windows)."},
{"id": "wrapper.e2e.doh", "giro": "G2", "os": ["linux", "windows"], "min_tests": 19, "exact": true, "tests": ["tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_ice_names_by_the_context_proxy_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "Linux needs root: the resolver trap of the file (ResolverTrap) points /etc/resolv.conf at a counting resolver on port 53. Su Windows il resolver trap non gira: l'asserzione sul resolver di sistema è l'unica omessa. Run it without xdist (port 53 is one per host). On the Linux leg the gate exports INVPW_REQUIRE_TRAP=1: a trap that cannot run or bind port 53 is a failure, not a skipped assertion."},
{"id": "wrapper.e2e.context.egress", "giro": "G2", "os": ["linux", "windows"], "min_tests": 14, "exact": true, "tests": ["tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "Taken from the minimal-engine port (branch tests/minimal-port) unchanged but for the removed engine gate: 12 = 6 kinds of page work (hints, image/fetch/WebSocket/EventSource, WebRTC STUN and TURN-udp by name, geolocation, a service worker with push, a page still loading when its context closes) x 2 schemes (no proxy at launch and a gateway on the context; a launch gateway and a different one on the context), and 2 = the TURN server named over TCP in those two schemes. EXPECTED RED on the published firefox-63: the 2 TURN-by-name cases (the lookup of the TCP socket takes user context 0; fixed by commits ac0214bff4 and 058edd6cc6 of firefox-64). The 12 have not run on any engine yet. Like wrapper.e2e.doh: the Linux leg runs as root for the resolver trap (INVPW_REQUIRE_TRAP=1); on Windows the DoH log and the gateway's CONNECTs are the sink."},
{"id": "wrapper.e2e.context.sink", "giro": "G2", "os": ["linux", "windows"], "min_tests": 35, "exact": true, "tests": ["tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "The behavioural half of the class gate 'nothing of a context leaves but through its proxy', with a witness at an address of this host (no root, no address on lo) and the engine's own resolver log as the native-lookup sink. 35 = 31 + the 4 OCSP cases; the 31 are 19 probes (fetch, WebSocket, stun, turn over UDP, turn and turns over TCP, each by name, by IP and by a .local name, behind SOCKS5 and behind an HTTP proxy where the road differs) + 3 controls (the same probe by IP with no proxy IS heard by the witness) + 1 control of the native sink. + 4 PeerConnections built from a torn-down window (a detached iframe, a closed popup; behind SOCKS5 and behind HTTP; defect B3: EXPECTED RED on firefox-63, green on firefox-64) + 2 controls of them (the same PeerConnection from an attached iframe, green on both). + 2 cases of two contexts alive at once (each with its own proxy and DoH, a TURN server over TCP by a different name in each; behind SOCKS5 EXPECTED RED on firefox-63 like turn_tcp-name-socks5, behind HTTP green on both). EXPECTED RED on firefox-63: turn_tcp-name-socks5, turns_tcp-name-socks5 (user context 0, fixed in firefox-64) and the three .local cases fetch-local-socks5, stun-local-socks5, stun-local-http (audit B4, also red on firefox-64 until decided). The Linux leg runs as root so the resolver trap is a second sink. Windows reads the same engine log (its getaddrinfo lines are in the parent process file under the sandbox: run 43574494194), with the no-proxy native control as its positive control. THE OCSP CASES (4): a TLS page whose leaf, signed by a lab CA the engine trusts (put in the profile by the engine's xpcshell, no ignore_https_errors), names its OCSP responder by a NAME (ocsp-<nonce>.lab.test) and by an IP; a context behind the gateway loads it and the request must go through the gateway, never be looked up natively, in user context 0, or reach the responder (2 cases, EXPECTED RED on firefox-63, green on firefox-64); the same page in a context with no proxy IS asked of the responder (control); a page of an issuer the engine does not trust makes no OCSP request (negative control)."},
{"id": "wrapper.e2e.context.sink", "giro": "G2", "os": ["linux", "windows"], "min_tests": 36, "exact": true, "tests": ["tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "The behavioural half of the class gate 'nothing of a context leaves but through its proxy', with a witness at an address of this host (no root, no address on lo) and the engine's own resolver log as the native-lookup sink. 35 = 31 + the 4 OCSP cases; the 31 are 19 probes (fetch, WebSocket, stun, turn over UDP, turn and turns over TCP, each by name, by IP and by a .local name, behind SOCKS5 and behind an HTTP proxy where the road differs) + 3 controls (the same probe by IP with no proxy IS heard by the witness) + 1 control of the native sink. + 4 PeerConnections built from a torn-down window (a detached iframe, a closed popup; behind SOCKS5 and behind HTTP; defect B3: EXPECTED RED on firefox-63, green on firefox-64) + 2 controls of them (the same PeerConnection from an attached iframe, green on both). + 2 cases of two contexts alive at once (each with its own proxy and DoH, a TURN server over TCP by a different name in each; behind SOCKS5 EXPECTED RED on firefox-63 like turn_tcp-name-socks5, behind HTTP green on both). EXPECTED RED on firefox-63: turn_tcp-name-socks5, turns_tcp-name-socks5 (user context 0, fixed in firefox-64) and the three .local cases fetch-local-socks5, stun-local-socks5, stun-local-http (audit B4, also red on firefox-64 until decided). The Linux leg runs as root so the resolver trap is a second sink. Windows reads the same engine log (its getaddrinfo lines are in the parent process file under the sandbox: run 43574494194), with the no-proxy native control as its positive control. THE OCSP CASES (4): a TLS page whose leaf, signed by a lab CA the engine trusts (put in the profile by the engine's xpcshell, no ignore_https_errors), names its OCSP responder by a NAME (ocsp-<nonce>.lab.test) and by an IP; a context behind the gateway loads it and the request must go through the gateway, never be looked up natively, in user context 0, or reach the responder (2 cases, EXPECTED RED on firefox-63, green on firefox-64); the same page in a context with no proxy IS asked of the responder (control); a page of an issuer the engine does not trust makes no OCSP request (negative control). THE CLOSED CONTEXT CASE (1, gated firefox-65): a beacon sent on pagehide as a proxied context closes, to a name never looked up, is resolved over the DoH through the context's gateway after the close; on firefox-64 it went to the machine's resolver every time (hunt 43733181674)."},
{"id": "wrapper.e2e.realness", "giro": "G2", "os": ["linux", "windows"], "min_tests": 32, "exact": true, "tests": ["tests/test_realness_behind_a_declared_exit_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "The realness check without a real proxy: six declared exits, the values a page reads, and the roads. Linux runs as root without xdist like the DoH suite (the resolver trap); on Windows the trap does not exist and the assertion on the system resolver is the only one omitted."},
{"id": "wrapper.unit.udp", "giro": "G1", "os": ["linux", "windows"], "min_tests": 249, "exact": true, "tests": ["tests/test_the_server_says_nothing_about_the_launch_counter.py", "tests/test_the_witness_picks_a_port_both_sockets_bind.py", "tests/test_preload_newtab_reaches_the_core_only_when_asked.py", "tests/test_the_resolver_trap_counts_its_own_users.py", "tests/test_the_doh_e2e_launch_on_a_virtual_display.py", "tests/test_the_realness_helpers.py", "tests/test_the_h3_line_helpers.py", "tests/test_the_fake_doh_delays_and_refuses.py", "tests/test_the_host_address_helper.py", "tests/test_the_udp_chain_helper.py", "tests/test_the_fake_doh_answers.py", "tests/test_doh_session_prefs_unit.py", "tests/test_the_leak_watcher_sees_a_direct_connection.py", "tests/test_the_http_proxy_helper_asks_for_credentials.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_the_network_declaration_reaches_the_engine.py", "tests/test_the_resolver_trap_is_required_by_the_gate.py", "tests/test_the_exit_of_a_context_is_discovered_through_its_own_gateway.py", "tests/test_the_witness_hears_a_direct_send.py", "tests/test_the_egress_sink_helpers.py", "tests/test_the_lab_ca_and_its_ocsp_leaf.py"], "marker": "unit", "needs_root": false, "note": "92 = 6+32+21+7+8+3+9+6. The leak watcher file defines exactly one of its two resolver-trap tests per host (7 everywhere), so no test is skipped. `exact`: min_tests is raised by hand when a test is added. The sink of the egress gate (tests/test_the_egress_sink_helpers.py, 20): the engine's log (the same on Linux and Windows) and the witness read on known inputs, and a blind log that must raise, never answer 'nothing'. The lab CA of its OCSP case (tests/test_the_lab_ca_and_its_ocsp_leaf.py, 17; tests/test_the_fake_doh_answers.py +1, the DoH serving a lab-CA leaf): the leaf's AIA, trusted and untrusted issuers, the responder, the xpcshell step."},
{"id": "wrapper.e2e.page", "giro": "G2", "os": ["linux", "windows"], "min_tests": 115, "exact": true, "tests": ["tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_popup_destinations_e2e.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_route_superseded_e2e.py"], "marker": "e2e", "needs_root": false, "note": "114 = 100 + the 14 of test_a_page_that_moves_on_e2e.py (a navigation the page overtook with location.replace ends; the engine fix 860ef8a6d9 is proved by it). 100 counted at the collection; was 96 = 10+32+16+34+4 before the popup tests of 6200bc2). A page is handed over when the engine says Page.ready; a popup reaches the client (link, noopener, window.open; own site and another; with and without a route; in-process and over launch_server) as Playwright's does; a superseded route. Needs the candidate binary, and the stock Playwright client of the dev extra."},
{"id": "wrapper.unit.udp", "giro": "G1", "os": ["linux", "windows"], "min_tests": 263, "exact": true, "tests": ["tests/test_doh_session_prefs_unit.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_preload_newtab_is_written_only_when_asked.py", "tests/test_the_doh_e2e_launch_on_a_virtual_display.py", "tests/test_the_egress_sink_helpers.py", "tests/test_the_exit_of_a_context_is_discovered_through_its_own_gateway.py", "tests/test_the_fake_doh_answers.py", "tests/test_the_fake_doh_delays_and_refuses.py", "tests/test_the_h3_line_helpers.py", "tests/test_the_host_address_helper.py", "tests/test_the_http_proxy_helper_asks_for_credentials.py", "tests/test_the_lab_ca_and_its_ocsp_leaf.py", "tests/test_the_leak_watcher_sees_a_direct_connection.py", "tests/test_the_network_declaration_reaches_the_engine.py", "tests/test_the_realness_helpers.py", "tests/test_the_resolver_trap_counts_its_own_users.py", "tests/test_the_resolver_trap_is_required_by_the_gate.py", "tests/test_the_server_says_nothing_about_the_launch_counter.py", "tests/test_the_udp_bench_survives_what_a_loaded_machine_does_to_it.py", "tests/test_the_udp_chain_helper.py", "tests/test_the_witness_hears_a_direct_send.py", "tests/test_the_witness_picks_a_port_both_sockets_bind.py"], "marker": "unit", "needs_root": false, "note": "The leak watcher file defines exactly one of its two resolver-trap tests per host (7 everywhere), so no test is skipped. `exact`: min_tests is raised by hand when a test is added. The sink of the egress gate (tests/test_the_egress_sink_helpers.py, 20): the engine's log (the same on Linux and Windows) and the witness read on known inputs, and a blind log that must raise, never answer 'nothing'. The lab CA of its OCSP case (tests/test_the_lab_ca_and_its_ocsp_leaf.py, 17; tests/test_the_fake_doh_answers.py +1, the DoH serving a lab-CA leaf): the leaf's AIA, trusted and untrusted issuers, the responder, the xpcshell step."},
{"id": "wrapper.e2e.page", "giro": "G2", "os": ["linux", "windows"], "min_tests": 130, "exact": true, "tests": ["tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_popup_destinations_e2e.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py"], "marker": "e2e", "needs_root": false, "note": "130 = 126 + the 4 of test_a_drag_keeps_its_buttons_pressed_e2e.py (a drag reaches the page with the button it holds: event.buttons is 1 on every mousemove of a left drag, 2 on a right one, 0 after the release; with and without humanize). The 126 before it: 116 + the 9 of test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py (four browsers in one process, one closes: the loop is never seen inside a step of the close, the removal of the profile is held still and reached on a thread of the reaper while the close has returned, the other three keep answering; one control holds the loop on purpose, the other leaves it late in its selector and must not be charged). 116 = 100 + the 16 of test_a_page_that_moves_on_e2e.py (a navigation the page overtook with location.replace ends; the engine fix 860ef8a6d9 is proved by it; 2 of them the strict networkidle cases, a document still arriving that moves). 100 counted at the collection; was 96 = 10+32+16+34+4 before the popup tests of 6200bc2). A page is handed over when the engine says Page.ready; a popup reaches the client (link, noopener, window.open; own site and another; with and without a route; in-process and over launch_server) as Playwright's does; a superseded route. Needs the candidate binary, and the stock Playwright client of the dev extra."},
{"id": "wrapper.unit.page", "giro": "G1", "os": ["linux", "windows"], "min_tests": 72, "exact": true, "tests": ["tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_page_number_follows_the_call.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_the_hand_over_of_a_popup_holds_under_concurrency.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py"], "marker": "unit", "needs_root": false, "note": "72 = 44 + 3+9+5+1+10 of the popup hand-over (24 counted at the collection before; was 20 = 3+8+1+8 before 6200bc2). The page dispatcher's wait for Page.ready and what it hands over; the drive gate goes through the core (the engine waits for the session's road)."},
{"id": "wrapper.e2e.compositing", "giro": "G2", "os": ["linux", "windows"], "min_tests": 3, "exact": true, "tests": ["tests/test_software_compositing_is_declared_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The engine DECLARES software compositing on every machine (core: the compositing entries of zoom.stealth.gfx.feature_status carry the VM decision, and on Windows gfx.webrender.software=true, gfx.webrender.software.d3d11=false). 3 = (1) the compositor read from a privileged context is 'WebRender (Software)' on Windows and on Linux (windowUtils.layerManagerType of each window: Troubleshoot.snapshot().graphics throws on this engine, `ext is null`, so it is not the route); (2) the GPU process uses under 1.5 s of CPU on the fixed 10-scene loop of one browser (Windows runner: 0.32 s declared, 2.7-4.2 s not, runs 43652292533 and 43642744101; on Linux it is held to the bound if a GPU process exists); (3) the 86 keys of the page-bytes probe plus the canvas 2D scenes (drawImage scaled with smoothing off/low/medium/high, text with linear/radial/conic gradients) equal tests/data/page_bytes_<os>.json, PNGs on decoded pixels. EXPECTED RED on the core 64.71.0 (tests 1 and 2 on Windows). The reference of Windows holds the 75 stable keys and 6 of the 11 PNG keys of run 43652292533; the five other PNG keys and the new canvas keys, and all of Linux, are written from the first run on the engine of the reference (the failure of test 3 prints RECORD-BEGIN ... RECORD-END with the entries to merge): a reference that is not complete is red, never skipped."},
{"id": "wrapper.unit.compositing", "giro": "G1", "os": ["linux", "windows"], "min_tests": 17, "exact": true, "tests": ["tests/test_the_page_bytes_reference_compares_decoded_pixels.py"], "marker": "unit", "needs_root": false, "note": "The helpers of wrapper.e2e.compositing on known inputs, no browser: the PNG compared on decoded pixels (another deBG chunk and compression are the same, one pixel is not, every scanline filter), the comparison with a reference (changed, missing and extra keys named, the entry to record), the type of an engine process and the CPU of a window, and the shape of the committed Windows reference."}
{"id": "wrapper.e2e.compositing", "giro": "G2", "os": ["linux", "windows"], "min_tests": 9, "exact": true, "tests": ["tests/test_software_compositing_is_declared_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The engine DECLARES software compositing on every machine (core: the compositing entries of zoom.stealth.gfx.feature_status carry the VM decision, and on Windows gfx.webrender.software=true, gfx.webrender.software.d3d11=false). 3 = (1) the compositor read from a privileged context is 'WebRender (Software)' on Windows and on Linux (windowUtils.layerManagerType of each window: Troubleshoot.snapshot().graphics throws on this engine, `ext is null`, so it is not the route); (2) the GPU process uses under 1.5 s of CPU on the fixed 10-scene loop of one browser (Windows runner: 0.32 s declared, 2.7-4.2 s not, runs 43652292533 and 43642744101; on Linux it is held to the bound if a GPU process exists); (3) the 86 keys of the page-bytes probe plus the canvas 2D scenes (drawImage scaled with smoothing off/low/medium/high, text with linear/radial/conic gradients) equal tests/data/page_bytes_<os>.json, PNGs on decoded pixels. EXPECTED RED on the core 64.71.0 (tests 1 and 2 on Windows). The reference of Windows holds the 75 stable keys and 6 of the 11 PNG keys of run 43652292533; the five other PNG keys and the new canvas keys, and all of Linux, are written from the first run on the engine of the reference (the failure of test 3 prints RECORD-BEGIN ... RECORD-END with the entries to merge): a reference that is not complete is red, never skipped. 9 = those 3 + the 6 families of tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py (from firefox-66, engine_at_least): a screenshot draws the text of Arial, Times New Roman, Consolas and Segoe UI, with accents, the typographic apostrophe, the euro sign, Chinese, Arabic and Russian, and of MS PGothic (face 2 of msgothic5_32.ttc: Japanese and Latin) and NSimSun (face 1 of simsun.ttc: Chinese), two faces that are not the first of their collection, with the same bytes as the content process drew them in a canvas (an SVG image with a foreignObject of the same markup), cut from the same page.screenshot, on both systems and with no threshold. EXPECTED RED on every engine that rebuilds the text in the parent with another font than the bundle (Linux: fontconfig answers DejaVu Sans), and skipped, hence red here, on an engine older than firefox-66. It saves the screenshot, the two boxes and a result.json under RUNNER_TEMP/invpw-evidence."},
{"id": "wrapper.e2e.fakeweb", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_fakeweb_p2_e2e.py", "tests/test_fakeweb_p4_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The fake web, offline: our browser on the hard pages (profile P2: a reused routed page reaches networkidle every time, also under a load of three other browsers; the other site is another process) and on the 17-step journey of a person (profile P4), each judged against what stock Firefox does, as tests/fakeweb/pages.json declares it. 4 = 3 + 1. Stock itself is held to that declaration, and compared with ours step by step, by scripts/run_fakeweb.py in .github/workflows/fakeweb.yml. Needs the candidate binary (STEALTHFOX_E2E_BINARY)."},
{"id": "wrapper.e2e.fontconfig", "giro": "G2", "os": ["linux"], "min_tests": 2, "exact": true, "tests": ["tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py"], "marker": "e2e", "needs_root": false, "linux_only": "Fontconfig exists only on Linux: the parent of the engine shows <GRE>/fonts to it (FcConfigAppFontAddDir) to rebuild a font from a path and a face index. On Windows DirectWrite opens the file from its path, with no folder to scan and no cache to read, so this test has no Windows counterpart.", "note": "2 = (1) the stand-in that runs the engine under strace stays in the engine's place, as the core launches it (the leader of a process group of its own): a fake engine with a child, no browser; the process the launcher holds lives as long as the fake engine, and the group killed holds strace and the child (the stand-in that exec'd setsid forked and exited 0 at once: candidate 44161687675); (2) the warm launch of the parent reads the bundle from fontconfig's cache and does not scan it again (from firefox-66, engine_at_least). Two launches under strace with the same XDG_CACHE_HOME of the test, the first cold and the second warm: the cold parent opens every font file of <GRE>/fonts (the folder as the disk lists it) before any page and fontconfig writes its cache; the warm parent does not open every one of them, and it opens a *.cache-* file of fontconfig (a few files are opened to be used, so the verdict asks about the whole folder, as a scan does). Scan and drawing are told apart by position: only what the parent opens before the first page counts (the opens that draw are written as after_startup). Evidence in RUNNER_TEMP/invpw-evidence/fontconfig-cache: the interval and the number of opens of the bundle, the names of the files of the bundle each launch opened before the first page, the size of the cache file, the VmRSS of the parent after about:blank and after a page with every family, and a third launch with gfx.bundled-fonts.activate=0 (the behaviour before), which is evidence only. Needs strace on the runner: without it both are red, not skipped. No threshold."},
{"id": "wrapper.unit.compositing", "giro": "G1", "os": ["linux", "windows"], "min_tests": 30, "exact": true, "tests": ["tests/test_the_page_bytes_reference_compares_decoded_pixels.py"], "marker": "unit", "needs_root": false, "note": "The helpers of wrapper.e2e.compositing on known inputs, no browser: the PNG compared on decoded pixels (another deBG chunk and compression are the same, one pixel is not, every scanline filter), the comparison with a reference (changed, missing and extra keys named, the entry to record), the type of an engine process, an engine process known by its executable and not by the name it gives itself (Linux), and the CPU of a window, and the shape of the committed Windows reference, and the box cut out of a screenshot (its pixels, a box outside the picture refused, written as a PNG and read back, two boxes told apart by a pixel that is named, the pixels that are not grey)."},
{"id": "wrapper.unit.all.linux", "giro": "G1", "os": ["linux"], "min_tests": 2178, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pin.py", "tests/test_pin_dicts_are_valid.py", "tests/test_pinning_doc.py", "tests/test_pointer_server.py", "tests/test_popup_adoption_unit.py", "tests/test_prefs_composition_arm.py", "tests/test_preload_newtabLine truncated
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 2179, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pin.py", "tests/test_pin_dicts_are_valid.py", "tests/test_pinning_doc.py", "tests/test_pointer_server.py", "tests/test_popup_adoption_unit.py", "tests/test_prefs_composition_arm.py", "tests/test_prefs_composition_arm_on_windows.py", "tests/tLine truncated
{"id": "wrapper.e2e.securitystate", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_security_state_engine_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The security state the core declares, against the engine: the engine launched directly in its generate mode makes what it is given (the contract's result, security_state/ with the bytes of the full filter and of the delta, the core's own validation of it); a normal launch declares no pref of the mode and re-imports nothing; a certificate that Mozilla's CRLite test data say is revoked in a delta is refused at the first navigation (SEC_ERROR_REVOKED_CERTIFICATE) while a valid one loads, and the revoked one loads when the ready directory has no data; a ready directory with no or an empty security_state/ starts. Certificates made on the run (a fresh root trusted in cert9.db by the engine's own xpcshell, Mozilla's default test key as the key of CN=int), servers on loopback, no network. Red on firefox-67 (no generate mode)."}
]
+12
View File
@@ -0,0 +1,12 @@
[
{"file": "tests/test_css_calc_is_windows_e2e.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 1, "wrapper.unit.all.windows": 1}},
{"file": "tests/test_math_sin_cos_tan_are_windows_e2e.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 1, "wrapper.unit.all.windows": 1}},
{"file": "tests/test_system_fonts_and_colors_are_windows_e2e.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 1, "wrapper.unit.all.windows": 1}},
{"file": "tests/test_webgl_dot_has_the_declared_gpu_s_bits_e2e.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 3, "wrapper.unit.all.windows": 3}},
{"file": "tests/unit/test_canvas_icc_refs.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 9, "wrapper.unit.all.windows": 9}},
{"file": "tests/unit/test_canvas_text_colors_refs.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 8, "wrapper.unit.all.windows": 8}},
{"file": "tests/unit/test_canvas_text_refs.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 7, "wrapper.unit.all.windows": 7}},
{"file": "tests/unit/test_compare_canvas_text_runs.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 3, "wrapper.unit.all.windows": 3}},
{"file": "tests/unit/test_fontconfig_criterion.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 5, "wrapper.unit.all.windows": 5}},
{"file": "tests/unit/test_theme_refusal_drop.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 3, "wrapper.unit.all.windows": 3}}
]
+6
View File
@@ -0,0 +1,6 @@
{
"comment": "The ready security state every job of ci.yml launches with (STEALTHFOX_SECURITY_STATE, set at the top of the workflow): a result with NO data (format 1, ok, no CRLite hashes, zero timestamps, no engine) and no security_state/ directory, so a launch copies nothing and no job asks Mozilla for anything or runs the engine's generate mode (the core neither downloads nor generates when the variable is set). To change it, change ci/security-state/securitystate-result.json and sha256 here in one commit; tests/test_ci_sets_the_security_state.py fails when they differ.",
"file": "ci/security-state/securitystate-result.json",
"sha256": "15bed64b8d0d0db9e6e5cceeec231bbca5300cdc6715280a647895dd6f6f14a4",
"bytes": 260
}
@@ -0,0 +1 @@
{"format":1,"ok":true,"error":null,"engine":{"version":"","build_id":""},"collections":{"intermediates":{"collection_timestamp":0},"onecrl":{"collection_timestamp":0},"cert-revocations":{"collection_timestamp":0,"channel":"default"}},"crlite_filter_hashes":[]}
+128 -50
View File
@@ -27,8 +27,9 @@ matter, and prints something like "Local IP" and "Public IP" with a green or red
badge. That summary hides exactly the distinctions you need while debugging, because
three very different underlying states can round to the same badge:
- A host candidate carrying a raw `192.168.x.x` LAN address. This is a real leak, and
it is *worse* than a stock browser, which hides that address by default.
- A host candidate carrying a raw `192.168.x.x` private address. A stock browser hides
that address by default, so this is *worse* than stock. (In this product it is the
home network the session declares, never an address read from the machine.)
- A host candidate carrying an obfuscated `<uuid>.local` name. This is the correct
state, and it is what a stock Firefox produces.
- A server-reflexive (`srflx`) candidate whose address is your proxy egress, with a
@@ -53,7 +54,8 @@ gets a collapsible block; expand it and the two things worth reading are:
address, and the timeline is the only view that shows arrival time.
You are reading for three things: that a host candidate exists and is masked, that a
server-reflexive candidate exists and points at the exit you expect, and that the
server-reflexive candidate points at the exit you expect (or is absent for a reason you
can name, see [the four proxy cases](#reading-a-proxied-session-the-four-cases)), and that the
timeline looks like a browser talking to a
[STUN](https://datatracker.ietf.org/doc/html/rfc8489) server rather than fabricating an
answer instantly.
@@ -66,7 +68,7 @@ list; the lines underneath show the exact shape of each one.
| State | Candidate line | Leak-site badge | Verdict |
|---|---|---|---|
| Leak | `typ host` with a raw `192.168.x.x` LAN address | "Local IP" / red warning | Real leak, worse than stock |
| Leak | `typ host` with a raw `192.168.x.x` private address | "Local IP" / red warning | Visible, worse than stock |
| Correct host | `typ host` with a `<uuid>.local` name | "No Leak", local IP shown as "-" | Shipped, correct |
| Correct srflx | `typ srflx` with your proxy egress address | contributes to "No Leak" | Correct exit |
| Suppressed | nothing gathered at all | "No Leak" | Detectable tell, a FAIL |
@@ -74,16 +76,18 @@ list; the lines underneath show the exact shape of each one.
Here is what each state looks like as a candidate line, so you can recognise it on
sight in the table.
**Leak (worst case).** The host candidate carries the machine's real LAN address:
**Leak (worst case).** The host candidate carries a raw private address:
```text
candidate:0 1 UDP 2122252543 192.168.1.24 51894 typ host
```
If you see a private `192.168.x.x`, `10.x.x.x` or `172.16-31.x.x` address on a `typ
host` line, WebRTC is handing out your internal network address. A stock browser does
not do this; it masks it. Seeing it means a masking setting is off, and you are now
more identifiable than a default install.
host` line, WebRTC is handing out a private network address. A stock browser does
not do this; it masks it. Seeing it means a masking setting is off (for example
`media.peerconnection.ice.obfuscate_host_addresses` set to `false`), and you are more
identifiable than a default install. The address is the home network the session
declares, not one read from the machine.
**Correct host.** The same candidate with the address replaced by a per-session
[mDNS](https://datatracker.ietf.org/doc/html/rfc6762) name:
@@ -97,39 +101,91 @@ as "No Leak" with the local IP shown as "-". This is the shipped state here: the
patched engine keeps host-address obfuscation on, so the host line is a `.local` name
and never a raw LAN IP.
**Correct srflx.** The server-reflexive candidate carries your public exit and a NAT
port:
**Correct srflx.** Behind a SOCKS5 proxy whose UDP relay works, the server-reflexive
candidate carries the proxy exit and a NAT port:
```text
candidate:1 1 UDP 1686052863 203.0.113.45 49731 typ srflx raddr 0.0.0.0 rport 0
```
Behind a proxy, that address must be the proxy egress, not your real public IP and not
a private address. The port should sit in the ephemeral NAT range and the priority
should look like a real `srflx` priority rather than a round, hand-picked number.
Getting the [priority and foundation right, not just the address](webrtc-ice-candidate-spoofing.md),
is what separates a candidate that survives inspection from one that only survives a
leak badge.
a private address. The candidate comes out of Firefox's own ICE code from a real STUN
reply, so the [port, priority and foundation, not just the address](webrtc-ice-candidate-spoofing.md),
are the ones a real `srflx` carries. If the proxy cannot carry the STUN request there
is no `srflx` at all; see the four cases below.
## Pairing it with about:config
`about:webrtc` shows you the result; `about:config` shows you the switches that
produced it. Open a second tab on `about:config` and filter on two prefixes.
produced it. Open a second tab on `about:config` and filter on `media.peerconnection`.
- **`media.peerconnection.*`** are the standard Firefox WebRTC prefs. The one that
governs the host state above is `media.peerconnection.ice.obfuscate_host_addresses`:
`true` gives you the `.local` name, `false` gives you the raw LAN IP. If
`true` gives you the `.local` name, `false` gives you the raw private address. If
`about:webrtc` shows a `192.168.x.x` host, this is the first pref to check.
- **`zoom.stealth.webrtc.*`** is where the product exposes its own WebRTC controls,
including the egress the synthetic `srflx` is built from and the IPv6 host
suppression. These are set per session by the launcher from the proxy you pass, so
in normal use you read them here to confirm the wrapper resolved the right exit,
rather than editing them by hand.
There is no pref that holds the proxy exit or an IPv6 switch to read here. What the
session did with the proxy shows in the candidate list and in the `icecandidateerror`
events, which the next section teaches you to read.
The workflow is: change one pref, reload the page that builds the connection, refresh
`about:webrtc`, and read the candidate that changed. One switch at a time keeps cause
and effect legible, which is the same discipline that makes a bisect a bisect.
## Reading a proxied session: the four cases
With a proxy set, no datagram ever leaves directly from the machine, and there is no
fallback to a direct send. What you see depends on whether the proxy can carry the
STUN request. Candidates always come from Firefox's own ICE code and from real STUN
replies; none is invented and no address is rewritten.
| Session | The STUN datagram goes | `srflx` | `host` | `icecandidateerror` |
|---|---|---|---|---|
| SOCKS5 proxy whose UDP relay works and exits from the same address as its TCP | through the proxy's UDP relay | present, equal to the proxy exit | mDNS names, UDP and TCP | none |
| SOCKS5 proxy that cannot carry UDP, or SOCKS4 | nowhere | absent | mDNS names, UDP and TCP | one `701` for the STUN request, after about eleven seconds, when gathering ends |
| HTTP or HTTPS proxy | nowhere (CONNECT carries no UDP) | absent | mDNS names, UDP and TCP | same as the row above |
| No proxy | directly from the machine, as in any browser | present when the STUN server answers: the line's real public address | mDNS names | none |
How to recognise each one from `about:webrtc` or from the `icecandidate` and
`icecandidateerror` events of your own `RTCPeerConnection`:
- **The relay carried it.** A `typ srflx` line whose address equals the address the
proxy exits from, and no error event. Behind a SOCKS5 proxy this is the only shape
in which a `srflx` appears.
- **The proxy does not carry coherent UDP.** Host candidates only, then a single `701`
`icecandidateerror` for the STUN request about eleven seconds after the offer, at the
moment gathering finishes, and no `srflx`. This covers a SOCKS5 proxy that refuses
UDP ASSOCIATE, a relay that never answers, a relay whose UDP leaves from an address
other than the TCP exit, and SOCKS4. An error that arrives at once instead of after
about eleven seconds points at a STUN server name that did not resolve, not at the proxy.
- **An HTTP or HTTPS proxy.** The same picture as the previous case: CONNECT carries
no UDP, so the STUN request goes nowhere and ends in one `701`.
- **No proxy.** A `typ srflx` line, present when the STUN server answers: the line's
real public address, as in any browser.
This is not the "suppressed" state from the table above. The host candidates are
there; only the `srflx` is missing, and the `701` tells you why.
Three things hold in every case:
- Host candidates are mDNS names (`<uuid>.local`), never an address of the machine.
The browser does not read the machine's network interfaces; the session declares one
plausible home network.
- No IPv6 candidate is produced, with or without a proxy.
- The names of STUN and TURN servers in `iceServers` are resolved by the browser over
DNS-over-HTTPS through the proxy of the context, not by the machine's resolver.
Without a proxy the system resolver is used, as in retail Firefox.
The decision is made by the library, not by you. Before launch, and before a context
that brings its own SOCKS5 proxy, it opens a SOCKS5 UDP ASSOCIATE, sends a STUN Binding
request through the relay and compares the address the STUN server saw with the proxy's
TCP exit. Only if a reply comes back and the two addresses are equal does the browser
send WebRTC's UDP through the relay; anything else is treated as a router that drops
UDP. No option forces UDP on. The measurement uses two public STUN servers by default;
to choose them, pass IPv4 literals, for example `udp_stun_servers=["192.0.2.10:3478"]`,
to `InvisiblePlaywright`. Each context uses its own proxy for WebRTC, so a context with
its own SOCKS5 proxy gets its own `srflx`.
## Driving the same session from Playwright
The manual read is for exploring. Once you know which candidate line matters, you want
@@ -151,7 +207,11 @@ with InvisiblePlaywright(seed=42, proxy=PROXY) as browser:
page.goto("https://example.com")
page.evaluate("""
async () => {
const pc = new RTCPeerConnection();
const pc = new RTCPeerConnection({
// Use a STUN server you can reach: with an unreachable one a 701 is
// expected in every case, and the cases cannot be told apart.
iceServers: [{ urls: "stun:stun.example.org:3478" }],
});
pc.createDataChannel('x');
await pc.setLocalDescription(await pc.createOffer());
}
@@ -164,7 +224,9 @@ with InvisiblePlaywright(seed=42, proxy=PROXY) as browser:
```
Then the same read as data, so a wrong candidate fails a check instead of a session.
This gathers the candidate strings the page itself would list and prints them:
This gathers the candidate strings and the `icecandidateerror` codes the page itself
would list, waits for gathering to finish (about eleven seconds when the proxy cannot
carry the STUN request), and prints them. Replace the STUN server with one you control:
```python
from invisible_playwright import InvisiblePlaywright
@@ -173,34 +235,49 @@ PROXY = {"server": "socks5://gate.example.com:1080", "username": "u", "password"
GATHER = """
async () => {
const pc = new RTCPeerConnection();
const pc = new RTCPeerConnection({
// Use a STUN server you can reach. With an unreachable one a 701 is expected in
// every case, and the cases cannot be told apart.
iceServers: [{ urls: "stun:stun.example.org:3478" }],
});
pc.createDataChannel("probe");
const lines = [];
const errors = [];
pc.onicecandidate = (e) => { if (e.candidate) lines.push(e.candidate.candidate); };
pc.onicecandidateerror = (e) => { errors.push(e.errorCode); };
await pc.setLocalDescription(await pc.createOffer());
await new Promise((r) => setTimeout(r, 3000));
await new Promise((r) => {
const cap = setTimeout(r, 25000);
const done = () => {
if (pc.iceGatheringState === "complete") { clearTimeout(cap); r(); }
};
pc.onicegatheringstatechange = done;
done();
});
pc.close();
return lines;
return { lines, errors };
}
"""
with InvisiblePlaywright(seed=42, proxy=PROXY) as browser:
page = browser.new_page()
page.goto("https://example.com")
candidates = page.evaluate(GATHER)
result = page.evaluate(GATHER)
candidates, errors = result["lines"], result["errors"]
host = [c for c in candidates if "typ host" in c]
srflx = [c for c in candidates if "typ srflx" in c]
for c in candidates:
print(c)
print("icecandidateerror codes:", errors)
# Assert the positive shape, not the absence of a leak.
assert host and all(".local" in c for c in host), "host must be an mDNS .local name"
assert srflx, "a proxied session must still produce a server-reflexive candidate"
assert not any(
p in c for c in host for p in ("192.168.", "10.", "172.16.")
), "no raw LAN address on a host line"
# A proxied session has exactly two shapes: a srflx from the relay (no error), or
# no srflx and a single 701 for the STUN request.
assert srflx or errors == [701], "no srflx must come with exactly one 701"
assert not any(":" in c.split()[4] for c in candidates), "no IPv6 candidate"
```
Because the identity is seed-derived, `seed=42` gives the same session every run, so a
@@ -210,10 +287,11 @@ exact browser that produced it](quickstart.md) instead of chasing a random draw.
## A before-and-after you can measure
The distinction is not theoretical. With host obfuscation off, a leak page reports the
host candidate as the real LAN address and shows the red "WebRTC exposes your Local IP"
host candidate as a raw private address and shows the red "WebRTC exposes your Local IP"
warning; the same page on the shipped baseline reports "No Leak" with the local IP as
"-", because the host line is now a `<uuid>.local` name and the only routable address
on the page is the proxy egress on the `srflx` line. Same session, one pref, and the
"-", because the host line is a `<uuid>.local` name and the only routable address
on the page, when the proxy's UDP relay carries the STUN request, is the proxy egress
on the `srflx` line. Same session, one pref, and the
difference is the whole point of reading candidates instead of badges.
Assert the presence of the right candidate, not the absence of a wrong one. A WebRTC
@@ -224,9 +302,10 @@ catches](how-to-test-bot-detection.md).
## Conclusion
`about:webrtc` turns WebRTC from a badge into a list you can read. It shows the host
candidate so you can confirm it is a `.local` name and not a raw LAN IP, the
server-reflexive candidate so you can confirm it is your proxy egress with a plausible
port and priority, and the gathering timeline so you can confirm the answers arrived
candidate so you can confirm it is a `.local` name and not a raw private address, the
server-reflexive candidate so you can confirm it is your proxy egress when the proxy
carries UDP (and its absence, with a single `701` after about eleven seconds, when it does
not), and the gathering timeline so you can confirm the answers arrived
the way a browser produces them rather than instantly. Pair it with `about:config` to
see the switches behind each line, drive the same read from Playwright to make it a
test, and change one pref at a time so every difference has a cause.
@@ -238,12 +317,14 @@ connections: the full ICE candidate list, each candidate's type and address and
priority, and the gathering timeline. It shows the detail a leak site summarises away.
**Why is my host candidate a 192.168 address?** Host-address obfuscation is off. A
stock Firefox emits a `<uuid>.local` name instead, and a raw LAN address is a real
leak. Check `media.peerconnection.ice.obfuscate_host_addresses` in `about:config`.
stock Firefox emits a `<uuid>.local` name instead, and a raw private address is
visible where stock hides it. Check `media.peerconnection.ice.obfuscate_host_addresses` in `about:config`.
**What should the srflx candidate show behind a proxy?** Your proxy egress address,
with a NAT-range port and a realistic priority. Not your real public IP, not a private
address, and not a suspiciously round priority value.
**What should the srflx candidate show behind a proxy?** When the proxy's UDP relay
carries the STUN request, your proxy egress address, with the port and priority of a
real `srflx`. Not your real public IP and not a private address. When the proxy cannot
carry UDP there is no `srflx`: you see host candidates and a single `701`
`icecandidateerror` after about eleven seconds.
**A leak site says "No Leak" but I still get flagged. Why?** "No Leak" can mean the
candidates are correct, or it can mean WebRTC was suppressed and gathered nothing,
@@ -254,9 +335,10 @@ and you can gather the same candidate strings programmatically with `page.evalua
over a real [`RTCPeerConnection`](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection),
which turns the manual read into an assertion.
**Why does an empty WebRTC section count as a failure?** Because a real browser behind
NAT always emits at least a host and a server-reflexive candidate. Emitting nothing is
not neutral; it is a shape no ordinary browser has, so assert presence, not absence.
**Why does an empty WebRTC section count as a failure?** Because a real browser always
gathers host candidates, and behind NAT a server-reflexive one as soon as its STUN
request is answered. Emitting nothing is not neutral; it is a shape no ordinary browser
has, so assert presence, not absence.
## Sources
@@ -265,10 +347,6 @@ not neutral; it is a shape no ordinary browser has, so assert presence, not abse
third-party summary.
- Mozilla Support, [Configuration Editor for Firefox](https://support.mozilla.org/en-US/kb/about-config-editor-firefox),
retrieved 2026-08-28, for `about:config`, read the same way.
- This project's WebRTC release gates and their per-event diagnostics, including the
incident where a negative-only check passed a fully blocked WebRTC section behind a
proxy, and the host-obfuscation fix that moved the host line from a raw LAN IP to a
`.local` name.
**See also:** [what actually leaks through a proxy](webrtc-leak-proxy.md),
[the srflx fields beyond the address](webrtc-ice-candidate-spoofing.md), and
+15 -16
View File
@@ -16,10 +16,10 @@ fingerprint into a Bot Score from 0 (human) to 100 (bot). Passing one layer of t
pipeline, even the hardest layer, does not mean you pass the rest.
A real, documented case makes that concrete, not theoretical. In April 2026 a
user of [Camoufox](https://github.com/daijro/camoufox), a separate open-source project
user of a separate open-source project
that also patches Firefox at the C++ level for automation, filed
[an issue](https://github.com/daijro/camoufox/issues/555) reporting that an
Akamai-protected site blocked their Camoufox session with a flat 403 while stock,
an issue reporting that an
Akamai-protected site blocked their patched-Firefox session with a flat 403 while stock,
unpatched Firefox driven through the same Playwright automation reached the page and a
solvable challenge. The reporter had already checked the one thing everyone checks
first, the TLS and HTTP/2 handshake, and it matched byte for byte. This page walks
@@ -115,7 +115,7 @@ It does not remove the other six.
Here is what the GitHub issue actually contains, read directly, not summarized
from memory.
The reporter, running Camoufox v135.0.1-beta.24 through Playwright 1.58.0 on Linux, was
The reporter, running that project's v135.0.1-beta.24 build through Playwright 1.58.0 on Linux, was
being blocked with a flat 403 by one specific Akamai-protected site, while the same
automated request pattern against the same site using stock Firefox through Playwright
returned a normal page and a solvable challenge. Before filing, the reporter had already
@@ -123,12 +123,12 @@ run the check this whole article leads with: they compared JA3, JA4, and Akamai'
HTTP/2 signature between the two browsers and found them identical, and confirmed the
HTTP headers matched except for the User-Agent version string. Their own conclusion,
stated in the issue, was that this "means detection is NOT TLS/HTTP2," and that
"something in Camoufox's C++ patches is being detected" further up the stack.
"something in the C++ patches is being detected" further up the stack.
The reporter also tested several other Akamai-protected sites in the same session: most
treated both browsers identically, either passing both or blocking both, which is itself
useful information, because it means the divergence was not a blanket Camoufox
signature, it was specific to one deployment's tuning.
useful information, because it means the divergence was not a blanket signature of that
build, it was specific to one deployment's tuning.
Working the problem, the reporter ruled out a content-blocking browser extension,
changing the reported OS, enabling the page cache, and matching window sizes by hand,
@@ -146,7 +146,7 @@ it caused the block, and nobody in the thread went on to confirm which one, or w
any one of them individually, was responsible.
What actually closed the issue was different from what anyone expected going in. Another
user suggested trying a newer Camoufox build, version 140 or higher from an unofficial
user suggested trying a newer build, version 140 or higher from an unofficial
fork rather than the mainline release the reporter had been running. The reporter tried
it, confirmed the previously-blocked site and the others now loaded normally, reopened
the issue asking for the fix to land in the mainline branch, and a third participant
@@ -174,7 +174,7 @@ that had nothing to do with the browser at all.
That lesson generalizes to any project taking this approach, and it does not stop at the
project this issue was filed against. This project also compiles Firefox from source and
sets its fingerprint at the C++ level rather than in JavaScript, for
[the same reasons Camoufox does](vs-camoufox.md): an injected override is a function
the same reasons that project does: an injected override is a function
whose source can be read, and a value decided below the JavaScript layer is not. That
shared decision is a real advantage over page-level spoofing, and it is not a guarantee
against a specific commercial detector's tuning on a specific deployment. This project
@@ -192,10 +192,10 @@ against that same session's history, not just evaluated once.
**Does a matching TLS/JA3/JA4 fingerprint mean I pass Akamai?** No. It means one input to
the score, out of roughly seven categories Akamai evaluates, agrees with a real browser.
The documented Camoufox case had a byte-identical network fingerprint and was still
The documented case had a byte-identical network fingerprint and was still
blocked.
**What actually happened in the Camoufox GitHub issue?** An older patched build was
**What actually happened in the GitHub issue?** An older patched build was
blocked by one Akamai-protected site while stock Firefox passed, despite matching
TLS/JA3/JA4/HTTP2 fingerprints. Switching to a newer patched build resolved it in
practice. No mechanism was confirmed in the thread.
@@ -217,8 +217,7 @@ the parts that are hardest to verify from outside: the JavaScript-collected brow
device fingerprint, behavioral telemetry across the session, and reputation tied to the
IP and cookie history, none of which a single clean test can rule in or out.
**See also:** [Playwright stealth vs Camoufox: two patched Firefoxes](vs-camoufox.md),
for how this project and Camoufox compare on everything else; [JA3 and JA4: why a TLS
**See also:** [JA3 and JA4: why a TLS
fingerprint cannot be patched](ja3-ja4-tls-fingerprint.md) and [HTTP/2 fingerprint: the
layer above the TLS handshake](http2-fingerprint-detection.md), for the two layers that
matched in the case above; and [How do websites detect bots?](how-do-websites-detect-bots.md),
@@ -226,8 +225,8 @@ for where a JavaScript-collected fingerprint sits among the other layers.
## Sources
- GitHub issue [`daijro/camoufox#555`](https://github.com/daijro/camoufox/issues/555),
"Akamai-protected sites block Camoufox but not stock Firefox via Playwright," retrieved
- A public GitHub issue on a patched-Firefox project,
"Akamai-protected sites block the patched build but not stock Firefox via Playwright," retrieved
2026-08-30, for the test results, the matched network fingerprints, the suspected
patches, the viewport inconsistency, and the resolution.
- Akamai's own documentation, [Detection
@@ -247,7 +246,7 @@ for where a JavaScript-collected fingerprint sits among the other layers.
---
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. The Camoufox issue above is someone else's bug
a Firefox patched at the C++ level. The issue above is someone else's bug
tracker and someone else's engine build; it is quoted here because it is the clearest
public evidence that this whole approach narrows a gap rather than closing one, and that
applies to this project exactly as much as it applies to theirs.*
+3 -3
View File
@@ -23,7 +23,7 @@ That is a real limit on what this page can say with a straight face. Arkose does
## What practitioner reverse engineering has converged on
Multiple independent writeups, none of them Arkose's own source, describe a broadly consistent picture of what the client-side script collects before a puzzle appears: device and browser fingerprint (screen resolution, installed fonts, navigator properties), canvas, WebGL and AudioContext rendering output, the same category of signal [CreepJS](creepjs-explained.md) and [BotD](botd-explained.md) read, and continuous mouse-movement telemetry once the puzzle itself is on screen.
Multiple independent writeups, none of them Arkose's own source, describe a broadly consistent picture of what the client-side script collects before a puzzle appears: device and browser fingerprint (screen resolution, installed fonts, navigator properties), canvas, WebGL and AudioContext rendering output, the same category of signal [a consistency checker](consistency-checker-explained.md) and [BotD](botd-explained.md) read, and continuous mouse-movement telemetry once the puzzle itself is on screen.
The mouse-movement layer is where the writeups get specific enough to be worth quoting carefully, with the caveat that this is reconstructed from the outside, not confirmed by Arkose: one practitioner account describes the script computing cursor acceleration ahead of a click, flagging a straight-line `mouse.move()` path (the kind a naive automation script produces) as an anomaly, and treating a press-to-release interval under roughly 50 milliseconds as evidence of programmatic input, on the reasoning that human physiology puts a real click closer to 70 to 100 milliseconds. None of these specific thresholds appear in Arkose's own public materials as retrieved for this page; they are practitioner reconstructions and should be weighed accordingly, the same caveat this corpus applies to reconstructed internals for [Kasada](kasada-explained.md) and [DataDome](datadome-explained.md).
@@ -39,7 +39,7 @@ Time pressure is part of the same mechanism by the same accounts: a stalled chal
Two different layers are worth separating cleanly here, because collapsing them is exactly the framing this page is built to avoid.
The **fingerprint layer**, canvas, WebGL, AudioContext, navigator properties, is the same category of check covered throughout this corpus: a genuinely real browser engine, patched below the JavaScript layer rather than overridden from a content script, produces these values honestly because it is not simulating them, it is generating them the normal way. That argument holds here exactly as it does for [CreepJS](creepjs-explained.md) and [PerimeterX](perimeterx-explained.md), and it says nothing puzzle-specific: it only affects whether the fingerprint half of Arkose's risk read looks honest or contradictory.
The **fingerprint layer**, canvas, WebGL, AudioContext, navigator properties, is the same category of check covered throughout this corpus: a genuinely real browser engine, patched below the JavaScript layer rather than overridden from a content script, produces these values honestly because it is not simulating them, it is generating them the normal way. That argument holds here exactly as it does for [a consistency checker](consistency-checker-explained.md) and another bot-detection service, and it says nothing puzzle-specific: it only affects whether the fingerprint half of Arkose's risk read looks honest or contradictory.
The **puzzle itself is a different kind of gate entirely**, the same structural point [made about Cloudflare Turnstile's checkbox tier](cloudflare-turnstile-explained.md): once risk scoring has decided a session needs a challenge, solving a 3D rotation puzzle is an interactive task, not a value a browser engine reports about itself. No amount of engine-level fidelity upstream makes that requirement disappear, because the requirement was never a fingerprint question in the first place. And the mouse-dynamics telemetry collected during the solve is a property of whatever is driving the pointer, human or scripted, [which has its own separate treatment in this corpus](mouse-dynamics-behavioural-biometrics.md), not a property of the rendering engine underneath.
@@ -61,7 +61,7 @@ The **puzzle itself is a different kind of gate entirely**, the same structural
**Why does Arkose escalate a stalled puzzle after about fifteen seconds?** By practitioner accounts, an unsolved challenge sitting past that window gets swapped or escalated rather than left open, which works against slow or hesitant automation the same way it works against a distracted human.
**See also:** [How Cloudflare Turnstile actually works](cloudflare-turnstile-explained.md) for the same fingerprint-versus-human-gate distinction at a vendor whose interactive tier is a click rather than a puzzle; [What are mouse-dynamics behavioural biometrics?](mouse-dynamics-behavioural-biometrics.md) for the pointer-telemetry layer in depth; and [How CreepJS decides you are lying](creepjs-explained.md) for the fingerprint-consistency argument this page leans on.
**See also:** [How Cloudflare Turnstile actually works](cloudflare-turnstile-explained.md) for the same fingerprint-versus-human-gate distinction at a vendor whose interactive tier is a click rather than a puzzle; [What are mouse-dynamics behavioural biometrics?](mouse-dynamics-behavioural-biometrics.md) for the pointer-telemetry layer in depth; and [How a consistency checker decides you are lying](consistency-checker-explained.md) for the fingerprint-consistency argument this page leans on.
## Sources
+3 -3
View File
@@ -65,7 +65,7 @@ Two things went wrong, and the second one is the interesting one.
## Silence is a trap
[CreepJS](https://abrahamjuliot.github.io/creepjs/) has a check called
A consistency checker has a check called
`hasFakeAudio`. It does not compare your hash to a database. It builds a buffer that
should be **silent**, renders it, and looks at whether anything is in it.
@@ -208,7 +208,7 @@ say so.
and [getFloatTimeDomainData()](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatTimeDomainData),
and [DynamicsCompressorNode.reduction](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/reduction),
retrieved 2026-08-28.
- [CreepJS](https://github.com/abrahamjuliot/creepjs), read 2026-08-28, for the
- A consistency checker, read 2026-08-28, for the
`hasFakeAudio` check and its silence-and-opening-samples tests described above.
- This project's own A/B measurement of the tampering score with the audio noise isolated
as the only variable, on one machine and one identity.
@@ -218,7 +218,7 @@ since the audio hash is one of the components that ID is made of,
[why headless browsers render different fonts](headless-fonts-differ.md)
and [your renderer string says NVIDIA, your pixels say software](renderer-string-vs-render.md),
which are the same "the honest answer describes your machine" problem on other
surfaces, and [how CreepJS decides you are lying](creepjs-explained.md).
surfaces, and [how a consistency checker decides you are lying](consistency-checker-explained.md).
---
+1 -1
View File
@@ -54,7 +54,7 @@ AWS is also explicit about a category it treats differently from everything abov
## What an engine answers honestly, and what a browser cannot touch
`SignalAutomatedBrowser`, `TGT_SignalBrowserAutomationExtension`, and `TGT_SignalBrowserInconsistency` are the rules a real, engine-level browser answers by construction: a genuinely real Firefox, patched below the JavaScript layer, not scripted from a content script, does not carry automation-framework tells, does not have a Selenium-style extension installed, and does not produce internally inconsistent browser-interrogation data, because nothing is faking any of those signals from the inside. That is the same argument this corpus makes for [BotD](botd-explained.md) and [CreepJS](creepjs-explained.md), applied to a managed rule group instead of an open-source script.
`SignalAutomatedBrowser`, `TGT_SignalBrowserAutomationExtension`, and `TGT_SignalBrowserInconsistency` are the rules a real, engine-level browser answers by construction: a genuinely real Firefox, patched below the JavaScript layer, not scripted from a content script, does not carry automation-framework tells, does not have a Selenium-style extension installed, and does not produce internally inconsistent browser-interrogation data, because nothing is faking any of those signals from the inside. That is the same argument this corpus makes for [BotD](botd-explained.md) and [a consistency checker](consistency-checker-explained.md), applied to a managed rule group instead of an open-source script.
Several rule families sit entirely outside what any browser engine can affect. `SignalKnownBotDataCenter` and the cloud-service-provider signal read the network origin, not the browser. The `TGT_VolumetricSession` and `TGT_TokenReuseIp/Country/Asn` families score session and token behavior across time and across requests, a property of how the automation is orchestrated (how many machines, how many networks, how fast) rather than of the browser rendering any one page. And `TGT_ML_CoordinatedActivity`, by AWS's own description, runs on aggregate traffic statistics across a site's whole visitor population, comparing against a baseline no single session's engine fidelity can influence.
+1 -1
View File
@@ -64,7 +64,7 @@ convincingly: the property has to be gone from the prototype, absent from a
a detector fetches a clean copy of `Navigator.prototype` from a fresh iframe and compares.
A partial delete that patches the obvious access but leaves a trace elsewhere is worse than
leaving the API alone, because now there is both a Firefox user agent and evidence of
tampering. This is the pattern CreepJS is built to catch: it does not ask what you report,
tampering. This is the pattern a consistency checker is built to catch: it does not ask what you report,
it asks whether the shape of your environment is internally consistent and whether anything
looks deleted.
+1 -1
View File
@@ -165,7 +165,7 @@ see.
release and read which detectors fired rather than only the verdict.
**See also:** [what sannysoft checks](sannysoft-explained.md), which is the older
list of the same kind, and [how CreepJS detects tampering](creepjs-explained.md),
list of the same kind, and [how a consistency checker detects tampering](consistency-checker-explained.md),
which takes the consistency idea considerably further.
---
+21 -21
View File
@@ -1,6 +1,6 @@
---
title: "Browser trust scores explained: what the number means"
description: "CreepJS trust, FingerprintJS confidence and reCAPTCHA v3 score measure different things: what each trust score means and why one green does not imply the rest."
description: "consistency-checker trust, fingerprinting-library confidence and reCAPTCHA v3 score measure different things: what each trust score means and why one green does not imply the rest."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 8
@@ -9,7 +9,7 @@ nav_order: 8
# Browser trust scores explained: what the number means
CreepJS trust, FingerprintJS confidence and a reCAPTCHA v3 score all look like the
consistency-checker trust, fingerprinting-library confidence and a reCAPTCHA v3 score all look like the
same kind of number, and they are not: one counts contradictions, one measures how
sure a match is, and one estimates behavioural risk. A high number from one says
almost nothing about what the next one will read, and treating them as interchangeable
@@ -22,12 +22,12 @@ number moved.
## Three numbers, three different questions
The three numbers answer three unrelated questions: CreepJS trust asks whether your
The three numbers answer three unrelated questions: consistency-checker trust asks whether your
values contradict each other, a FingerprintJS visitor ID asks whether you are the same
visitor as last time, and a reCAPTCHA v3 score asks how risky your behaviour and history
look. Line them up and the confusion evaporates:
- **CreepJS trust** is a consistency and lie count. It is high when nothing you report
- **consistency-checker trust** is a consistency and lie count. It is high when nothing you report
contradicts anything else you report and nothing looks tampered with. It is not a
rarity score, and being unusual does not lower it.
- **A FingerprintJS visitor ID** is a hash, and the thing next to it labelled
@@ -39,16 +39,16 @@ look. Line them up and the confusion evaporates:
| Number | The question it answers | What it reads | What moves it |
|---|---|---|---|
| CreepJS trust | Do my reported values contradict each other? | Descriptors, prototypes, stack traces, canvas and font surfaces | A patched or blocked probe, or two fields that disagree |
| consistency-checker trust | Do my reported values contradict each other? | Descriptors, prototypes, stack traces, canvas and font surfaces | A patched or blocked probe, or two fields that disagree |
| FingerprintJS visitor ID (+ confidence) | Am I the same visitor as before? | A hash of the browser's components, in a fixed order | Any one component changing changes the whole ID |
| reCAPTCHA v3 score | How risky do my behaviour and history look? | Interaction, cookies, storage and exit reputation, not the DOM | A warmed-up profile and realistic behaviour, not a cleaner fingerprint |
Different inputs, different outputs, different failure modes. The rest of this page is
one section per number, then why they do not move together.
## CreepJS trust: a lie count, not a rarity score
## consistency-checker trust: a lie count, not a rarity score
[CreepJS records a blocked probe as a lie](creepjs-explained.md) and walks
[a consistency checker records a blocked probe as a lie](consistency-checker-explained.md) and walks
descriptors, prototypes and stack traces looking for values that were patched after
the fact. Its trust figure goes up when the surfaces agree with each other and down
when one of them looks edited or refuses to answer.
@@ -106,18 +106,18 @@ none of which a fingerprint layer can supply.
The three numbers are independent, so a high score on one predicts nothing about the
other two. Put them side by side and the independence is obvious:
- You can score high on CreepJS trust and low on reCAPTCHA v3, because a perfectly
- You can score high on consistency-checker trust and low on reCAPTCHA v3, because a perfectly
consistent browser with no history is exactly what a consistent bot also looks like.
- You can have a stable, high-confidence FingerprintJS ID and still fail CreepJS,
- You can have a stable, high-confidence fingerprinting-library ID and still fail a consistency checker,
because a stable ID only means your components did not move, not that they are
telling the truth.
- You can pass reCAPTCHA v3 on a warmed profile and fail CreepJS, because behavioural
- You can pass reCAPTCHA v3 on a warmed profile and fail a consistency checker, because behavioural
reputation says nothing about whether a descriptor was patched.
They cross-cut. Each of the [five detector deep-dives in this set](how-to-test-bot-detection.md)
measures a different axis, and a green on one axis is not a green on the others. The
practical rule is to name which number you are looking at before you react to it,
because the fix for a low CreepJS trust (consistency) is not the fix for a low
because the fix for a low consistency-checker trust (consistency) is not the fix for a low
reCAPTCHA v3 score (history), and applying one to the other wastes days.
## A blocked probe lowers the score, it does not hide from it
@@ -129,7 +129,7 @@ is nothing here for it to punish.
Every one of those is counted against you, not for you:
- CreepJS records a blocked probe as a lie by name, so blocking lowers trust directly.
- A consistency checker records a blocked probe as a lie by name, so blocking lowers trust directly.
- A value that changes on every read is a tampering tell, and a per-call-changing
canvas or audio hash reads as randomisation rather than a real device.
- A missing signal is still a signal. An empty result where a real browser has data is
@@ -171,7 +171,7 @@ with sf as browser:
Reading the same value twice in one session is the cheapest consistency check there
is: if `first` and `second` disagree, something is randomising per call, which is the
exact tampering pattern that costs you CreepJS trust. Here they match, which is the
exact tampering pattern that costs you consistency-checker trust. Here they match, which is the
behaviour you want.
Now confirm it is stable across sessions too, which is what keeps a FingerprintJS ID
@@ -198,14 +198,14 @@ That reproducibility is what lets you attribute a score change to the one thing
changed. If you have not passed a seed, log `sf.seed` from the instance first so a run
that scored interestingly can be replayed exactly.
The honest boundary, again: this makes the CreepJS-style consistency axis and the
The honest boundary, again: this makes the consistency-checker-style consistency axis and the
FingerprintJS linkability axis controllable and repeatable. It does not warm up a
profile, and the reCAPTCHA v3 number will still start low on a session with no past no
matter how clean the fingerprint is.
## Conclusion
Three numbers, three axes. CreepJS trust counts contradictions and lies, a
Three numbers, three axes. consistency-checker trust counts contradictions and lies, a
FingerprintJS ID and its confidence measure whether you are the same visitor as before,
and a reCAPTCHA v3 score estimates risk from behaviour and history. Passing one is not
passing another, suppressing a signal lowers the two that read the DOM rather than
@@ -215,7 +215,7 @@ react to the number, and the contradictory results stop being contradictory.
## Short answers to the questions that lead here
**Is a CreepJS trust score the same as a reCAPTCHA score?** No. CreepJS trust counts
**Is a consistency-checker trust score the same as a reCAPTCHA score?** No. consistency-checker trust counts
internal contradictions and tampering; a reCAPTCHA v3 score is a 0.0 to 1.0 risk
estimate built mostly from behaviour and history. A high one does not predict the
other.
@@ -224,11 +224,11 @@ other.
this visitor ID matches the same visitor as before. It is about the reliability of the
match, not about whether the browser looks automated.
**I pass CreepJS but still get a low reCAPTCHA score, why?** Because reCAPTCHA v3 is
**I pass a consistency checker but still get a low reCAPTCHA score, why?** Because reCAPTCHA v3 is
mostly reading history and behaviour, and a fresh profile has neither. A clean
fingerprint does not supply a past, and past is what this score is missing.
**Does a rare fingerprint lower my trust score?** No. CreepJS trust is about
**Does a rare fingerprint lower my trust score?** No. consistency-checker trust is about
consistency, not rarity. An unusual but coherent identity can score perfectly; a common
but contradictory one scores badly.
@@ -237,14 +237,14 @@ recorded as a lie, and a value that changes per read is a tampering tell. Answer
every probe with a coherent value scores better than refusing.
**Which score should I optimise for?** The one your target actually uses. Optimise
consistency for a CreepJS-style check, a warmed profile and realistic behaviour for a
consistency for a consistency-checker-style check, a warmed profile and realistic behaviour for a
reCAPTCHA-style score, and decide whether you want the FingerprintJS ID to stay put or
change.
## Sources
- The three detectors named above, each with its own page in this set, read from their
own source rather than from a rendered verdict: [CreepJS](https://github.com/abrahamjuliot/creepjs)
own source rather than from a rendered verdict: a consistency checker
on tampering, [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) on
the hashed visitor ID and its confidence, and [reCAPTCHA v3](https://developers.google.com/recaptcha/docs/v3)
on the behavioural score, retrieved 2026-08-28.
@@ -252,7 +252,7 @@ change.
byte-identical canvas output within and across sessions, which is the property a
consistency check rewards.
**See also:** [how CreepJS decides you are lying](creepjs-explained.md) for the
**See also:** [how a consistency checker decides you are lying](consistency-checker-explained.md) for the
consistency axis, [why a fresh browser scores low on reCAPTCHA v3](recaptcha-v3-score.md)
for the history axis, and [how to test whether your browser is detected](how-to-test-bot-detection.md)
for the compare-against-a-stock-browser method that keeps these numbers honest.
+3 -4
View File
@@ -28,7 +28,7 @@ same contradiction: the list says Windows, the pixels say something else.
The fix that actually holds is upstream of the whole problem: ship the real font
files inside the browser, and read only from that bundle, on every platform. This is
the same direction Camoufox took first, and for the same reason - a real file produces
the same direction other patched Firefox builds took first, and for the same reason - a real file produces
real glyphs, real metrics, and a real hash, because nothing about it is simulated.
## One manifest, so three backends can't disagree with each other
@@ -218,12 +218,11 @@ and a script cannot change what the OS actually draws.
**Does this fix cost anything?** A larger binary, and a font list that's frozen at
build time rather than tracking whatever the real OS might add later.
**Is this the same thing Camoufox does?** The same direction - real files, not a
**Is this the same thing other patched Firefox builds do?** The same direction - real files, not a
filter - checked independently rather than assumed to work the same way underneath.
**See also:** [why headless browsers render different fonts](headless-fonts-differ.md),
for the detection side this architecture answers; [invisible_playwright vs Camoufox](vs-camoufox.md),
for where this approach sits relative to theirs; and
for the detection side this architecture answers; and
[WebGL renderer strings](webgl-renderer-strings.md), for the same shape of problem on
different hardware.
+2 -2
View File
@@ -61,7 +61,7 @@ lying around, and they exist whether or not the driver flag above was ever touch
JavaScript stealth plugins reach into built-ins to hide the first signal, and in doing so
they create the second: a redefined function whose `toString()` stops returning
`[native code]`, a property descriptor that a real engine never has, a global that only a
particular tooling stack defines. A tampering-oriented suite such as CreepJS does not ask
particular tooling stack defines. A tampering-oriented suite such as a consistency checker does not ask
what you report, it asks whether anything you report contradicts anything else, and a
built-in that has been rewritten is exactly that kind of contradiction. This is
[the native-code check](tostring-native-code-detection.md), and it is the reason stacking
@@ -190,7 +190,7 @@ rather than reading the score.
`navigator.webdriver` property and the automation flag behind it.
- This project's real API surface, `InvisiblePlaywright(seed=...)` and the returned
Playwright `Browser`, as documented in the quickstart and configuration pages.
- The public detection suites CreepJS, BotD, FingerprintJS, sannysoft and BrowserLeaks,
- The public detection suites (a consistency checker, BotD, an open-source fingerprinting library, a basic bot-test page and a raw-value inspector),
each of which reads one or more of the three signal families described above.
- This project's release gates, which assert the presence of a real-browser signal rather
than the absence of a wrong one, and separate browser tells from IP and behaviour.
@@ -63,8 +63,9 @@ Three separate limits, three separate ways this fails:
The download can be moved off the critical path with a cache directory, and the wrapper
supports exactly that: `INVISIBLE_PLAYWRIGHT_CACHE_DIR` points the engine at a path your
platform already caches between runs, and `INVPW_BINARY_PATH` skips the download entirely
when a compatible binary is already on disk (see [Configuration](configuration.md)). That
platform already caches between runs, and the `binary_path=` launch argument skips the
download entirely when a compatible binary is already on disk (see
[Configuration](configuration.md)). That
helps a persistent worker a great deal. It helps a stateless function much less, because
the thing a function does not keep is exactly the local disk those variables point at.
@@ -182,7 +183,7 @@ container is the right place to unpack the browser once and keep it warm, but it
fix your IP reputation, your account quotas, or your timing. You supply those.
**How do I avoid downloading Firefox on every invocation?** Bake it into the image at
build time, or point `INVPW_BINARY_PATH` at a binary already on disk. On a stateless
build time, or pass `binary_path=` for a binary already on disk. On a stateless
function neither fully helps, because the local disk does not persist between calls.
**What is the smallest thing that works?** A single long-lived worker: launch once inside
@@ -187,7 +187,7 @@ exit.
for clicks, but the pacing, typing rhythm and request volume come from your code. That
is the behaviour layer, and it is yours.
**Is a passing sannysoft or CreepJS result enough to be safe?** No. It means the
**Is a passing result on a basic bot-test page or a consistency checker enough to be safe?** No. It means the
browser layer is internally consistent and does not announce automation. The network
and behaviour layers are not in those tests at all.
@@ -197,9 +197,9 @@ and behaviour layers are not in those tests at all.
against a stock Firefox on the same machine and treat a suppressed signal as a
failure rather than a pass.
- The public detection suites named across this documentation set
([sannysoft](https://bot.sannysoft.com/), [CreepJS](https://github.com/abrahamjuliot/creepjs),
(a basic bot-test page, a consistency checker,
[BotD](https://github.com/fingerprintjs/BotD), [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs),
[BrowserLeaks](https://browserleaks.com/)), each read from its own source rather than its
a raw-value inspector), each read from its own source rather than its
rendered verdict, retrieved 2026-08-28.
**See also:** [how to test whether your browser is detected](how-to-test-bot-detection.md),
+1 -1
View File
@@ -220,7 +220,7 @@ fingerprinting probe.
same per-call mistake has the same consequence and where our own noise turned out to be
the thing being detected, [what sannysoft checks](sannysoft-explained.md), whose
canvas-in-iframe rows are a consistency test rather than a fingerprint test, and
[how BrowserLeaks reports the canvas and WebGL hash](browserleaks-canvas-webgl-hash.md).
[how a raw-value inspector reports the canvas and WebGL hash](canvas-webgl-readback-hash-explained.md).
---
@@ -174,7 +174,7 @@ per-call randomisation specifically fails; [how to make Linux and macOS report r
Windows fonts](bundled-fonts-cross-platform.md), for the same architecture applied to
fonts; [WebGL renderer strings](webgl-renderer-strings.md), for the adjacent
surface of what the GPU claims to be rather than what it draws; and
[how the BrowserLeaks canvas and WebGL hash is computed](browserleaks-canvas-webgl-hash.md),
[how the raw-value inspector canvas and WebGL hash is computed](canvas-webgl-readback-hash-explained.md),
for what that hash actually measures.
---
@@ -1,22 +1,22 @@
---
title: "BrowserLeaks canvas and WebGL hash, explained"
description: "The BrowserLeaks canvas and WebGL signature is a hash of a pixel readback, not your GPU. What it measures, and why one seed gives a byte-identical hash."
title: "The canvas and WebGL readback hash, explained"
description: "The canvas and WebGL signature a raw-value inspector shows is a hash of a pixel readback, not your GPU. What it measures, and why one seed gives a byte-identical hash."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 6
---
# BrowserLeaks canvas and WebGL hash, explained
# The canvas and WebGL readback hash, explained
The BrowserLeaks canvas and WebGL signature is a hash of the pixels a readback call
The canvas and WebGL signature a raw-value inspector shows is a hash of the pixels a readback call
returns, not a fingerprint of your GPU. It sits at the very end of the render pipeline,
which is why editing a reported renderer string never moves it, and why the only way to
control it is to control the bytes handed back at the readback boundary. Get that boundary
right and one seed produces a byte-identical hash on Windows and Linux alike.
BrowserLeaks shows you a canvas "signature" and a WebGL "signature" and treats each as a
stable identifier for your machine (see [what each BrowserLeaks panel tests](browserleaks-explained.md)
A raw-value inspector shows you a canvas "signature" and a WebGL "signature" and treats each as a
stable identifier for your machine (see [what each raw-value inspector panel tests](raw-value-inspector-explained.md)
for the wider tour). People read those short hex strings as a fingerprint
of the GPU, and then try to change the GPU to change them. That is the wrong layer. The
signature is a hash of one specific thing, and once you know which thing, the whole
@@ -26,7 +26,7 @@ This page is what the signature measures, where in the pipeline it is actually t
has to be true for two machines to produce the same one, and how to read both values
yourself against a stock browser.
## What BrowserLeaks calls a signature
## What a raw-value inspector calls a signature
The canvas test draws text and shapes into an off-screen canvas, then asks the page to
read the resulting pixels back out and hashes them. The WebGL test does the same with a
@@ -90,7 +90,7 @@ between Windows and Linux. The honest test is not "did the hash change", it is "
different hosts, same seed, produce the same hash to the byte".
Measured on this build, same seed on Windows and on Linux, read in the page the way
BrowserLeaks reads it: the canvas signature is `df2a9319` on both, and the WebGL signature
a raw-value inspector reads it: the canvas signature is `df2a9319` on both, and the WebGL signature
is `0df1d6f8` on both. Not close, identical.
| Signature | Windows | Linux | Match |
@@ -189,7 +189,7 @@ seeded one gives the same answer on a second machine and the stock one does not.
## Conclusion
The BrowserLeaks canvas and WebGL signatures are hashes of a readback, and the readback is
The canvas and WebGL signatures a raw-value inspector shows are hashes of a readback, and the readback is
the only place a page can observe a render at all. That single fact is what makes the
surface tractable: substitute the bytes at the readback boundary with a function of the
seed, and the signature becomes seed-determined instead of GPU-determined, byte-identical
@@ -200,7 +200,7 @@ byte on two different hosts, with zero cross-host failures across sixteen seeds.
## Short answers to the questions that lead here
**What does the BrowserLeaks canvas signature actually measure?** The hash of the pixels a
**What does the raw-value inspector canvas signature actually measure?** The hash of the pixels a
readback call returns, not any property of your GPU. It is downstream of the entire render
pipeline, which is why editing a renderer string does not move it.
@@ -225,10 +225,8 @@ signature is the pixels, the renderer string is a reported value, and both have
## Sources
- BrowserLeaks canvas and WebGL pages, read for how the signature is computed: a hash over
the bytes returned by a readback call
([browserleaks.com/canvas](https://browserleaks.com/canvas),
[browserleaks.com/webgl](https://browserleaks.com/webgl)).
- The canvas and WebGL pages of public raw-value inspectors, read for how the signature is
computed: a hash over the bytes returned by a readback call.
- This project's host-independence audit, which maps every path a host-dependent render
value can reach JavaScript and confirms the seeded hashes (`df2a9319`, `0df1d6f8`)
byte-identical on Windows and Linux, zero of sixteen seeds failing the cross-host check.
+1 -1
View File
@@ -41,7 +41,7 @@ AI Labyrinth was one early piece of a larger shift in how Cloudflare treats AI c
## What this means for a real, engine-level browser
This is worth being direct about, because it is a genuinely different kind of mechanism from everything else in this corpus: **AI Labyrinth is not a fingerprint check at all.** It does not read canvas output, WebGL parameters, TLS handshakes, or navigator properties. It is triggered by crawling behavior, following invisible links a normal rendering and interaction pattern never reaches, after a site's crawl preferences have already been ignored. There is no honest-engine argument to make here the way there is for [CreepJS](creepjs-explained.md) or [DataDome's device layer](datadome-explained.md), because nothing about being a genuinely real browser engine changes whether a crawling process follows every link it finds on a page, including invisible ones humans never see.
This is worth being direct about, because it is a genuinely different kind of mechanism from everything else in this corpus: **AI Labyrinth is not a fingerprint check at all.** It does not read canvas output, WebGL parameters, TLS handshakes, or navigator properties. It is triggered by crawling behavior, following invisible links a normal rendering and interaction pattern never reaches, after a site's crawl preferences have already been ignored. There is no honest-engine argument to make here the way there is for [a consistency checker](consistency-checker-explained.md) or a bot-detection service's device layer, because nothing about being a genuinely real browser engine changes whether a crawling process follows every link it finds on a page, including invisible ones humans never see.
`invisible_playwright` is browser-automation infrastructure, not a crawling framework, and this project makes no claim about how any particular scraping logic built on top of it handles hidden links or robots.txt. What is worth stating plainly: a scraper that respects a site's stated crawl preferences and does not follow invisible, `nofollow`-tagged links in the first place never encounters this mechanism at all. AI Labyrinth is aimed at crawlers that have already chosen not to do that.
+2 -2
View File
@@ -92,7 +92,7 @@ for custom WAF rules.
A matching TLS fingerprint is one input clearing, not a passed score. The same point is
made at length for a comparable vendor, where a byte-identical JA3/JA4/HTTP2 fingerprint
still did not stop a block on one deployment: see
[the documented Camoufox case](akamai-bot-manager-explained.md#the-case-that-shows-matching-fingerprint-is-not-passing).
[the documented patched-Firefox case](akamai-bot-manager-explained.md#the-case-that-shows-matching-fingerprint-is-not-passing).
Cloudflare's own ML engine is described the same way, as combining "headers, session
characteristics, and browser signals," never any one of those alone.
@@ -199,7 +199,7 @@ pipeline and a documented case where a matching network fingerprint was not enou
and JA4: why a TLS fingerprint cannot be patched](ja3-ja4-tls-fingerprint.md) and [HTTP/2
fingerprint: the layer above the TLS handshake](http2-fingerprint-detection.md) for the
network-layer inputs above; and [Browser trust scores explained](browser-trust-score-explained.md)
for why a Cloudflare bot score, a CreepJS trust score and a reCAPTCHA v3 score do not imply
for why a Cloudflare bot score, a consistency-checker trust score and a reCAPTCHA v3 score do not imply
each other.
## Sources
@@ -73,7 +73,7 @@ surface that reports the same underlying fact through CSS.
If your approach to fingerprinting is injecting JavaScript, this surface is a problem,
because there is nothing in JavaScript's gift to change here. You can redefine
`matchMedia` to lie about `color-gamut`, but redefining a built-in is itself one of
the loudest tells there is: [CreepJS](how-to-test-bot-detection.md) walks descriptors
the loudest tells there is: [a consistency checker](how-to-test-bot-detection.md) walks descriptors
and prototypes and records a patched built-in by name. And even if you patch
`matchMedia`, the pure-CSS path that applies a `@media (color-gamut: ...)` rule
without ever calling script is still resolving against the real value. You cannot
+1 -3
View File
@@ -1,6 +1,6 @@
---
title: "Comparisons"
description: "invisible_playwright against the closest alternatives at each layer - Camoufox, Patchright, nodriver, playwright-stealth - plus the engine question underneath all of them: Firefox or Chromium."
description: "invisible_playwright against the closest alternatives at each layer - Patchright, nodriver, playwright-stealth - plus the engine question underneath all of them: Firefox or Chromium."
has_children: true
nav_order: 4
---
@@ -28,7 +28,6 @@ browser. An engine-level patch changed the binary, so there is no lie left to re
| Tool | Browser | Patch layer | Language |
|---|---|---|---|
| invisible_playwright | Firefox | engine (C++) | Python |
| [Camoufox](vs-camoufox.md) | Firefox | engine (C++) | Python |
| [Patchright](vs-patchright.md) | Chromium | driver | Python, Node |
| [rebrowser-patches](vs-rebrowser-patches.md) | Chromium | driver (CDP `Runtime.enable`) | Node |
| [undetected-playwright](vs-undetected-playwright.md) | Chromium | driver | Python |
@@ -65,7 +64,6 @@ need rendering. Each page below states where the other tool covers more.
## Patched-engine, driver-patch and stealth-plugin tools
- [invisible_playwright vs Camoufox: two patched Firefoxes](vs-camoufox.md) - Both patch Firefox in C++; how each builds its fingerprint and whether a run replays.
- [invisible_playwright vs Patchright: driver vs engine](vs-patchright.md) - Patchright patches the Playwright driver on Chromium; this patches Firefox itself. Often you need both.
- [invisible_playwright vs rebrowser-patches: the same CDP fix](vs-rebrowser-patches.md) - Fixes the Runtime.enable CDP leak on Chromium; reaches neither Firefox nor fonts, GPU, canvas, audio.
- [undetected-playwright vs a patched Firefox binary](vs-undetected-playwright.md) - Hides Playwright's init-script and bindings tells; a patched Firefox closes the fingerprint layer.
+5 -2
View File
@@ -73,12 +73,15 @@ row is for a specific situation.
|---|---|
| `INVISIBLE_PLAYWRIGHT_CACHE_DIR` | Put the cache somewhere else - another drive, a shared location, a path your CI already caches. It holds the engine and this machine's state (the GeoIP database, the font manifest) |
| `INVISIBLE_PLAYWRIGHT_ENGINE_DIR` | Keep the engine apart from the state, for example on a read-only disk built once per release: `invisible-playwright fetch` with it set fills it, and a launch only reads it. The cache directory must still be writable |
| `INVPW_BINARY_PATH` | Point at a binary you already have, and skip the download |
| `STEALTHFOX_GITHUB_TOKEN` | A rate-limited or corporate network that refuses anonymous GitHub downloads |
| `INVISIBLE_PLAYWRIGHT_SKEW=allow` | Run a Playwright version outside the tested range anyway |
| `INVPW_CURSOR_ENGINE` | `python` (default), `binary`, or `off` |
| `INVPW_CURSOR_ENGINE` | `python` (default, same as unset) or `off`. Any other value stops the launch with an error that lists these two |
| `INVISIBLE_DOWNLOAD_DEADLINE` | Seconds allowed for one engine download, default `1800`. Raise it on a very slow link; `0` removes the bound |
A binary you already have is not an environment variable: pass it as
`binary_path=` to `InvisiblePlaywright(...)`. That route skips the download, and the
engine is still checked against the sealed build, so a different one is refused.
```bash
export INVISIBLE_PLAYWRIGHT_CACHE_DIR=/mnt/big/engines
```
@@ -1,20 +1,20 @@
---
title: "How CreepJS decides you are lying"
description: "CreepJS asks whether a browser is telling the truth, not just what it reports. Read from its own source: how it detects a lie and why spoofing scores worse."
title: "How a consistency checker decides you are lying"
description: "A consistency checker asks whether a browser is telling the truth, not just what it reports. Read from its own source: how it detects a lie and why spoofing scores worse."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 2
---
# How CreepJS decides you are lying
# How a consistency checker decides you are lying
Most fingerprinting tests ask what your browser reports. CreepJS mostly asks whether
Most fingerprinting tests ask what your browser reports. A consistency checker mostly asks whether
your browser is *telling the truth*, which is a different question and a much harder
one to pass by spoofing.
Read from the source on 2026-07-27 ([`abrahamjuliot/creepjs`](https://github.com/abrahamjuliot/creepjs),
`src/lies/index.ts` and the module layout) and not from the rendered page, because
Read from the source on 2026-07-27 (the open-source code of a public
consistency-checking test page: its tampering module and the module layout) and not from the rendered page, because
the interesting part is the method instead of the numbers it prints.
## The shape of it
@@ -39,7 +39,7 @@ anything else here, and nothing looks tampered with".
## How it finds tampering
Four techniques, all visible in `src/lies/index.ts` and [described in general
Four techniques, all visible in its tampering module and [described in general
terms elsewhere](tostring-native-code-detection.md).
**A pristine reference.** It creates fresh iframes and reaches into
@@ -67,7 +67,7 @@ a native one, shows up here without any cleverness.
**Blocking the probe is itself recorded.** Among the lie names in the source are
`client blocked phantom iframe` and `client blocked behemoth iframe`. If your
environment prevents CreepJS from creating its reference iframes, that prevention is
environment prevents a consistency checker from creating its reference iframes, that prevention is
written down as a lie.
That last one is the principle worth taking away, and it generalises far beyond this
@@ -105,12 +105,12 @@ remains exactly as hard as it was.
Run directly against a live Playwright-driven Chromium session with no stealth
layer of any kind applied - no injected patches, no engine-level work, nothing
this project or any comparable tool does. CreepJS's own headless module returned
this project or any comparable tool does. A consistency checker's own headless module returned
0% headless and 0% stealth, with a 25% "like headless" partial-similarity score
alongside them.
Worth stating plainly what that does and does not mean: it says
this one specific, directly-checked session did not trip CreepJS's headless
this one specific, directly-checked session did not trip a consistency checker's headless
heuristics that day, not that headless or automation detection in general is
solved, and not that every Playwright launch configuration scores the same way.
The rest of the report - the parts covered throughout this page, the lie
@@ -130,14 +130,14 @@ Two things worth doing when you open it:
## Short answers to the questions that lead here
**What does the CreepJS score actually mean?** Not "your fingerprint is rare". It means
**What does the consistency checker score actually mean?** Not "your fingerprint is rare". It means
nothing here contradicts anything else here, and nothing looks tampered with.
**Why does it detect my stealth plugin?** Four ways, and each is cheap: a pristine copy
of the built-ins from a fresh iframe, stack-trace inspection, descriptor and prototype
walking, and recording a blocked probe as a lie.
**Should I block CreepJS from creating its iframes?** No. Blocking is written down as a
**Should I block a consistency checker from creating its iframes?** No. Blocking is written down as a
lie, by name, in its source. Suppressing a signal is a signal.
**Why does more patching score worse?** Because every override is another candidate for
@@ -149,19 +149,19 @@ JavaScript layer there is no override to find and no seam to detect.
## Sources
- CreepJS's own GitHub repository, [`abrahamjuliot/creepjs`](https://github.com/abrahamjuliot/creepjs),
`src/lies/index.ts` and the module layout, read 2026-07-27, for the four
- The public source repository of a consistency-checking test page,
its tampering module and the module layout, read 2026-07-27, for the four
tampering-detection techniques and the lie names quoted throughout.
- MDN Web Docs, [`HTMLIFrameElement.contentWindow`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow),
[`Function.prototype.toString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString),
[`Object.getOwnPropertyDescriptor()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor),
and [`Object.getPrototypeOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf),
retrieved 2026-08-28, for the four native APIs CreepJS's tampering checks are built on.
retrieved 2026-08-28, for the four native APIs a consistency checker's tampering checks are built on.
- Mozilla's own [Fingerprinting wiki page](https://wiki.mozilla.org/Security/Fingerprinting),
retrieved 2026-08-28, for Firefox's `resistFingerprinting` mode, which CreepJS's own
retrieved 2026-08-28, for Firefox's `resistFingerprinting` mode, which consistency checker's own
`resistance` module identifies.
- This project's own testing: a live, unmodified Playwright-driven Chromium session run
directly against CreepJS's headless module, for the 0% headless / 0% stealth scores
directly against a consistency checker's headless module, for the 0% headless / 0% stealth scores
quoted above.
**See also:** [what sannysoft checks](sannysoft-explained.md), whose canvas-in-iframe test is the same idea in miniature, [the three levels](playwright-stealth-levels.md), and [AudioContext fingerprinting](audiocontext-fingerprinting.md), where its silent-buffer check is worked through in detail.
@@ -169,5 +169,5 @@ JavaScript layer there is no override to find and no seam to detect.
---
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright).
CreepJS is a release gate here. The lie names above are quoted from its source and
A consistency checker is a release gate here. The lie names above are quoted from its source and
not paraphrased, because the exact strings are what you will see in a report.*
Binary file not shown.

After

Width:  |  Height:  |  Size: 537 KiB

+1 -1
View File
@@ -71,7 +71,7 @@ The engine layer answers those questions before any page loads, which is why
this project patches Firefox at the C++ level instead of injecting scripts. The
same reasoning shows up when you compare
[a patched Firefox against a patched Chromium](firefox-vs-chromium-antidetect.md)
or against [another Firefox-based build](vs-camoufox.md): the durable difference
or against another Firefox-based build: the durable difference
is always where the patch lives, not the brand on the box.
## The layers the paid product adds: proxy and identity management
@@ -70,6 +70,12 @@ invisible_playwright resolves DNS through the proxy by default, so names and con
exit from the same place. There is no separate switch to remember: pass a SOCKS5 proxy
and the hostname goes to the exit, not to your local resolver.
WebRTC follows the same rule. With a proxy set, the names of STUN and TURN servers in a
page's `iceServers` are resolved by the browser over DNS-over-HTTPS, and that request
leaves through the proxy of that context (a context with its own proxy uses it), never
through your machine's resolver. The browser then connects to the address, not the name.
Without a proxy the system resolver is used, as in retail Firefox.
## Where DNS-over-HTTPS fits
DNS-over-HTTPS (DoH), standardized in
@@ -220,6 +226,10 @@ location is unchanged. It answers "is my lookup readable", not "where does my lo
the name and the connection exit from the same place. You just pass a SOCKS5 proxy the normal
way.
**Who resolves the name of a STUN or TURN server?** With a proxy, the browser, over
DNS-over-HTTPS through the proxy of that context. Without a proxy, the system resolver, as in
retail Firefox.
**How do I check for a DNS leak?** Positively, through the browser session and not on
localhost. Compare the exit IP the destination sees against the address a resolver-echo
service reports; if they disagree in location, you have a leak.
@@ -225,8 +225,8 @@ the clean IP.
- This project's release gates, including the WebRTC gate whose negative-only checks
once passed on a feature that was returning nothing, and the timezone derivation
that resolves the zone from the egress address.
- The public fingerprinting suites - CreepJS, BotD, FingerprintJS, sannysoft and
BrowserLeaks - read field by field before and after a VPN, which is where the
- The public fingerprinting suites - a consistency checker, BotD, an open-source fingerprinting library, a basic bot-test page and
A raw-value inspector - read field by field before and after a VPN, which is where the
"one field changed, the rest did not" observation comes from.
- [MDN: `Navigator.userAgent`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent),
[`Navigator.platform`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform)
@@ -131,7 +131,7 @@ invisible_playwright is a Firefox patched at the C++ level and driven by stock
Playwright, built to look like a real browser operated by a real person. That is why it
passes most detection checks that live in the browser: the fingerprint (GPU, canvas,
audio, fonts, screen, roughly 400 fields, seed-reproducible), the TLS handshake and the
driver layer all read as a genuine Firefox rather than an automated one. A CreepJS,
driver layer all read as a genuine Firefox rather than an automated one. A consistency checker,
BotD, FingerprintJS or sannysoft run reads it as an ordinary browser because at those
layers it is one.
@@ -71,7 +71,7 @@ If the identifier is a hash of canvas, WebGL, fonts, audio and TLS, then the onl
to present a different identity is to change those underlying values so they hash
differently, and to change them together so they still agree with one another. A canvas
that says one machine next to a font list that says another is not a new identity, it
is a contradiction, and [contradictions are what the tampering-focused suites look for](creepjs-explained.md).
is a contradiction, and [contradictions are what the tampering-focused suites look for](consistency-checker-explained.md).
That is a much harder thing to do than emptying a cookie jar, which is the reason a
cookie clear can never do it. The cleared browser still renders canvas the same way and
@@ -49,7 +49,7 @@ Windows `user_agent` to "look normal".
You have just built a contradiction. A consistency detector does not care that any
single value is plausible. It cares whether values that must agree, do.
[CreepJS is built specifically to catch that](creepjs-explained.md): a user agent
[a consistency checker is built specifically to catch that](consistency-checker-explained.md): a user agent
claiming Windows, sitting on top of a font set that only exists on Linux, next to a
GPU string that only exists in a datacenter. Each field is fine alone. Together they
describe a machine that cannot exist, and that is a cleaner signal than any single bad
@@ -184,7 +184,7 @@ Playwright `Browser`; every documented method works unchanged.
- The public consistency detectors named across this doc set, read from their own source
rather than from a rendered verdict.
**See also:** [what CreepJS actually checks](creepjs-explained.md),
**See also:** [what a consistency checker actually checks](consistency-checker-explained.md),
[why a container gives itself away regardless of the stealth layer](playwright-docker-detection.md),
and [keeping canvas and WebGL consistent across platforms](canvas-webgl-cross-platform-consistency.md).
+1 -1
View File
@@ -229,7 +229,7 @@ above, then compare the result against a stock browser on the same machine.
- This project's own sessions, enumerating `window` and `document` on a live
Playwright-driven Firefox rather than trusting a description of one.
- The public detection suites (CreepJS, BotD, sannysoft, FingerprintJS, BrowserLeaks),
- The public detection suites (a consistency checker, BotD, a basic bot-test page, an open-source fingerprinting library, a raw-value inspector),
each read from its own source for what it collects from the document.
- The Playwright, [WebDriver BiDi](https://www.w3.org/TR/webdriver-bidi/), and Juggler
protocol behaviour for where driver state lives relative to the page.
@@ -131,7 +131,7 @@ layer only.
What the patched browser handles: the fingerprint, the driver tells, and the TLS
handshake all read as a genuine Firefox. That is most of what a public detection
suite - CreepJS, BotD, FingerprintJS, sannysoft, BrowserLeaks - actually
suite - a consistency checker, BotD, an open-source fingerprinting library, a basic bot-test page, a raw-value inspector - actually
measures, and it is why a well-configured session passes most of those checks.
What it does not, and cannot, handle on its own:
+2 -2
View File
@@ -181,10 +181,10 @@ machine and network. If the manual visit is also challenged, it is the exit, and
they agree with each other rather than contradicting.
- The comparison method in the testing guide linked above, used to read the fingerprint
contribution to a score directly rather than trusting a verdict.
- Public detector suites ([CreepJS](https://github.com/abrahamjuliot/creepjs),
- Public detector suites (a consistency checker,
[BotD](https://github.com/fingerprintjs/BotD),
[FingerprintJS](https://github.com/fingerprintjs/fingerprintjs),
[sannysoft](https://bot.sannysoft.com/), [BrowserLeaks](https://browserleaks.com/)), each
a basic bot-test page, a raw-value inspector), each
read from its own source, retrieved 2026-08-28, for what a coherence check actually
inspects.
+1 -1
View File
@@ -51,7 +51,7 @@ Fastly's broader materials name additional categories without publishing the sam
## What an engine answers honestly, and what stays server-side
The headless-detection script's whole premise is that a headless or automation-driven environment behaves detectably differently from a real, rendering browser: missing APIs, timing that does not match real hardware, environment properties a genuine browser always has. A Firefox that is genuinely the engine it claims to be, patched below the JavaScript layer rather than scripted from a content script, answers that probe honestly because there is no simulated environment for the script to catch, the same argument this corpus makes for [CreepJS](creepjs-explained.md) and [BotD](botd-explained.md). The `CLIENTSIDE-COOKIE-VALID` signal in particular is close to a tautology for a real browser: a real engine that runs the script produces the cookie because it actually ran the script, not because anything faked having run it.
The headless-detection script's whole premise is that a headless or automation-driven environment behaves detectably differently from a real, rendering browser: missing APIs, timing that does not match real hardware, environment properties a genuine browser always has. A Firefox that is genuinely the engine it claims to be, patched below the JavaScript layer rather than scripted from a content script, answers that probe honestly because there is no simulated environment for the script to catch, the same argument this corpus makes for [a consistency checker](consistency-checker-explained.md) and [BotD](botd-explained.md). The `CLIENTSIDE-COOKIE-VALID` signal in particular is close to a tautology for a real browser: a real engine that runs the script produces the cookie because it actually ran the script, not because anything faked having run it.
What sits outside that: the server-side, pre-cache header and protocol analysis Fastly runs on every request regardless of JavaScript, which reads the connection and headers rather than anything a browser engine renders; the behavioral correlation "over time" Fastly's own materials describe, which is a property of the session and its history rather than the engine underneath any single request; and whatever Fastly's `BOT-ANALYSIS` signal and its underlying model actually weigh, which Fastly has not published in enough detail for this page to describe with confidence.
@@ -75,7 +75,7 @@ The failure modes are the opposite of emptiness:
says a different engine.
- **An over-eager patch that changes the function's signature or throws.** Anything that
makes `getGamepads` look overridden, non-native, or inconsistent with a fresh copy of
the built-in is exactly what tampering detectors like [CreepJS](creepjs-explained.md)
the built-in is exactly what tampering detectors like [a consistency checker](consistency-checker-explained.md)
look for.
The real invisible_playwright build does none of these. It behaves as stock Firefox
+5 -5
View File
@@ -1,6 +1,6 @@
---
title: "Detectors, Explained"
description: "How specific, well-known detectors actually work - sannysoft, CreepJS, BotD, FingerprintJS, reCAPTCHA v3 - read from their own source rather than reverse-engineered from behaviour."
description: "How specific, well-known detectors actually work - a basic bot-test page, a consistency checker, BotD, an open-source fingerprinting library, reCAPTCHA v3 - read from their own source rather than reverse-engineered from behaviour."
parent: "Guides"
has_children: true
nav_order: 6
@@ -18,13 +18,13 @@ whether a browser is telling the truth about what it claims to be.
## Named detectors and trust scores
- [What BotD actually detects, and what it does not](botd-explained.md) - what BotD's twenty detectors check, read from source: mostly engine truth, not automation.
- [How CreepJS decides you are lying](creepjs-explained.md) - CreepJS asks whether a browser tells the truth; how it detects a lie, from source.
- [How a consistency checker decides you are lying](consistency-checker-explained.md) - a consistency checker asks whether a browser tells the truth; how it detects a lie, from source.
- [What bot.sannysoft.com actually checks, row by row](sannysoft-explained.md) - which rows still mean something in 2026, which are relics, and the canvas check nobody reads.
- [What BrowserLeaks actually tests, surface by surface](browserleaks-explained.md) - canvas hash, WebGL, WebRTC, fonts, ClientRects; why a unique panel is not a fail.
- [BrowserLeaks canvas and WebGL hash, explained](browserleaks-canvas-webgl-hash.md) - the signature is a hash of a pixel readback, not your GPU.
- [What a raw-value inspector actually tests, surface by surface](raw-value-inspector-explained.md) - canvas hash, WebGL, WebRTC, fonts, ClientRects; why a unique panel is not a fail.
- [The canvas and WebGL readback hash, explained](canvas-webgl-readback-hash-explained.md) - the signature is a hash of a pixel readback, not your GPU.
- [Why a FingerprintJS visitor ID changes](fingerprintjs-visitor-id.md) - a visitor ID is a hash of 41 components; why it changes or stays.
- [reCAPTCHA v3 score: why a fresh browser scores badly](recaptcha-v3-score.md) - a fresh automated browser scores low even with a clean fingerprint. The reason is history.
- [Browser trust scores explained: what the number means](browser-trust-score-explained.md) - CreepJS trust, FingerprintJS confidence and reCAPTCHA v3 score measure different things; one green is not the rest.
- [Browser trust scores explained: what the number means](browser-trust-score-explained.md) - consistency-checker trust, fingerprinting-library confidence and reCAPTCHA v3 score measure different things; one green is not the rest.
- [How Cloudflare Turnstile actually works](cloudflare-turnstile-explained.md) - a signal-gathering decision engine, not a puzzle: non-interactive JS checks, proof-of-work, and a risk-scored escalation to a checkbox.
- [How DataDome's bot detection actually works](datadome-explained.md) - TLS/HTTP fingerprint, a JS device and behavior collector, and a cookie that remembers the verdict.
- [How Kasada's bot detection actually works](kasada-explained.md) - an obfuscated bytecode VM and a proof-of-work token that keeps renewing through the session.
+4 -4
View File
@@ -51,11 +51,11 @@ which is exactly why it is worth understanding on its own.
## WebRTC candidates and leaks
- [WebRTC leak with a proxy in Playwright and Selenium](webrtc-leak-proxy.md) - A SOCKS5 proxy does not stop a leak, and disabling WebRTC trades it for a detectable signature.
- [WebRTC IP that matches the proxy exit, by design](webrtc-ip-match-proxy-exit.md) - The server-reflexive candidate equals the exit IP, with the real NAT port preserved.
- [WebRTC IPv6 leak: why a proxy does not stop it](webrtc-ipv6-leak-proxy.md) - A SOCKS proxy carries only TCP, so an IPv6 host still emits its real global address.
- [WebRTC has no ICE candidates behind a proxy](webrtc-no-candidates-behind-proxy.md) - An empty candidate list reads as tampering: why residential proxies drop the UDP STUN needs.
- [WebRTC IP that matches the proxy exit, by design](webrtc-ip-match-proxy-exit.md) - Behind a SOCKS5 proxy whose UDP relay works, the server-reflexive candidate is the proxy exit; behind any other proxy there is none.
- [WebRTC IPv6 leak: why a proxy does not stop it](webrtc-ipv6-leak-proxy.md) - A stock browser sends WebRTC's UDP from the machine's own interface, outside the proxy, so an IPv6 host can still expose its real address; here no IPv6 candidate is produced.
- [No public ICE candidate behind a proxy](webrtc-no-candidates-behind-proxy.md) - Most residential exits cannot carry the UDP that STUN needs: without it there is no server-reflexive candidate, only `.local` host candidates and one gathering error.
- [WebRTC ICE candidate spoofing: the fields that give it away](webrtc-ice-candidate-spoofing.md) - Priority, foundation and arrival time are all checkable, not just the address.
- [about:webrtc: read your real ICE candidates](about-webrtc-debug-ice-candidates.md) - Tell a real LAN-IP leak from a masked .local host and a proxy-egress srflx line.
- [about:webrtc: read your real ICE candidates](about-webrtc-debug-ice-candidates.md) - Tell a real LAN-IP leak from a masked .local host and, behind a UDP-capable SOCKS5 proxy, a proxy-egress srflx line.
## TLS and HTTP fingerprint
+1 -1
View File
@@ -44,7 +44,7 @@ telling the difference before you ship a fix, not after.
- [Playwright detected as a bot on one site: a checklist](playwright-detected-as-bot.md) - a checklist that checks the free fixes first, before buying a better proxy on day one.
- [Why Does My Playwright Script Get Blocked?](why-does-my-playwright-script-get-blocked.md) - a four-layer diagnostic across fingerprint, IP reputation, rate and quota, and behaviour.
- [Why am I blocked with a clean fingerprint?](why-blocked-with-a-clean-fingerprint.md) - you pass CreepJS, BotD and sannysoft and still get blocked; how to isolate which of four layers is failing.
- [Why am I blocked with a clean fingerprint?](why-blocked-with-a-clean-fingerprint.md) - you pass a consistency checker, BotD and a basic bot-test page and still get blocked; how to isolate which of four layers is failing.
- [Why Playwright Works Locally but Fails in the Cloud](why-playwright-works-locally-fails-in-cloud.md) - the same script fails on CI because the exit IP moved from residential to datacenter, not because your code changed.
## Launch, process and preference problems
+2 -2
View File
@@ -33,7 +33,7 @@ how-tos, then how to test any of this without fooling yourself.
- [**AI Agents and Frameworks**](guides-ai-agents.md) - agent frameworks that drive a
browser, checked from source: which use Playwright, which are CDP/Chromium-only.
- [**Detectors, Explained**](guides-detectors-explained.md) - how well-known detectors
work - sannysoft, CreepJS, BotD, FingerprintJS, reCAPTCHA v3 - read from their own
work - a basic bot-test page, a consistency checker, BotD, an open-source fingerprinting library, reCAPTCHA v3 - read from their own
source.
- [**Scraping with Playwright**](guides-scraping-with-playwright.md) - practical
how-tos: blocked headless browsers, infinite scroll, proxy rotation, sessions behind
@@ -42,6 +42,6 @@ how-tos, then how to test any of this without fooling yourself.
check, and in what order, when automation is detected or a preference silently does
nothing.
Looking for a specific tool instead? [Comparisons](comparisons.md) covers Camoufox,
Looking for a specific tool instead? [Comparisons](comparisons.md) covers
Patchright, nodriver and playwright-stealth against this project, and the case for
Firefox over Chromium generally.
+2 -2
View File
@@ -159,8 +159,8 @@ real the engine underneath it is.
**See also:** [Beyond robots.txt: how sites actually block AI crawlers now](beyond-robots-txt-anti-crawler-mechanisms.md)
for the wider stack this trap sits inside, [how DataDome's bot detection actually
works](datadome-explained.md) for the behavioral-scoring layer that scores automation
code the same way, and [what BrowserLeaks actually tests, surface by
surface](browserleaks-explained.md) for the engine-level checks this page
code the same way, and [what a raw-value inspector actually tests, surface by
surface](raw-value-inspector-explained.md) for the engine-level checks this page
deliberately contrasts against.
---
@@ -116,7 +116,7 @@ contradiction that lowers the score.
Because the fingerprint, the engine behaviour and the driver layer all read as a genuine
Firefox, this design passes most detection checks that live in the browser. The canvas
produces a real hash that is stable across the session. The engine answers descriptor and
prototype probes the way a real Firefox does, so a [tampering-focused suite like CreepJS](creepjs-explained.md)
prototype probes the way a real Firefox does, so a [tampering-focused suite like a consistency checker](consistency-checker-explained.md)
finds nothing contradicting anything else. There is no
[`navigator.webdriver`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver),
no leftover automation global, no headless user agent for a [verdict tool like
@@ -194,7 +194,7 @@ stability pull against each other.
retrieved 2026-08-28, which defines the confidence score as one minus the
false-positive probability of an identification, not as a measure of how
automated the browser looked.
- [CreepJS](https://github.com/abrahamjuliot/creepjs) and
- A consistency checker and
[BotD](https://github.com/fingerprintjs/BotD) on GitHub, retrieved 2026-08-28,
the two detection tools named above, for what each one checks.
- This project's release gates, which assert that a value read twice in one session
+3 -3
View File
@@ -46,7 +46,7 @@ misunderstood. Detectors rarely block a value for being unusual. They block a
A user agent that says Windows, a WebGL renderer that says a software rasterizer, a
font list from a Linux server, a timezone three continents from the exit IP. Each of
those is plausible alone. Together they describe a machine that does not exist.
[CreepJS](creepjs-explained.md) is built almost entirely around this idea: it takes a
[a consistency checker](consistency-checker-explained.md) is built almost entirely around this idea: it takes a
clean copy of the built-ins, walks descriptors and prototypes, and records any place
where one answer disagrees with another - including a blocked probe, which it counts
as a lie rather than a blank.
@@ -201,10 +201,10 @@ in layer one rather than hiding anything.
Firefox on the same machine, which is how the four-layer split was measured rather
than assumed.
- The public detection suites named in these notes, each read from its own source and
given its own page in this set: [CreepJS](https://github.com/abrahamjuliot/creepjs),
given its own page in this set: a consistency checker,
[BotD](https://github.com/fingerprintjs/BotD), [sannysoft](https://bot.sannysoft.com/),
[FingerprintJS](https://github.com/fingerprintjs/fingerprintjs), and
[BrowserLeaks](https://browserleaks.com/), retrieved 2026-08-28.
a raw-value inspector, retrieved 2026-08-28.
**See also:** [the checklist for a site that blocks you](playwright-detected-as-bot.md)
for working the layers in order, [what the webdriver flag really proves](navigator-webdriver-explained.md)
+73 -49
View File
@@ -25,12 +25,11 @@ browser has it. Below is what to assert, where to run it, and runnable code.
The usual WebRTC leak check asks two questions. Does a candidate contain my LAN IP? Does
an IPv6 address appear? If both answers are no, it prints "no leak" and stops.
We shipped exactly that gate, and it cost us. It asserted the sensible negatives, the
host candidate does not expose the LAN address and zero IPv6 candidates appear, and it
passed run after run. Then someone opened the actual page behind a proxy and WebRTC was
returning nothing at all. Gathering was blocked, no candidates of any kind, and the gate
was green because a dead feature leaks nothing. Every negative assertion is satisfied by
a surface that never runs.
A check that only asserts the absence of the real address also passes on a browser that
gathers nothing. The sensible negatives, the host candidate does not expose the LAN
address and zero IPv6 candidates appear, are all satisfied by a WebRTC that returns no
candidates of any kind, because a dead feature leaks nothing. Every negative assertion is
satisfied by a surface that never runs, so assert the positive shape instead.
The failure generalises past WebRTC. "No real IP in the DNS log" is satisfied by DNS that
never resolved. "Timezone does not disagree with the exit" is satisfied by a timezone API
@@ -49,14 +48,19 @@ present for the check to pass:
- **A host candidate** whose address is a `<uuid>.local` mDNS name. A real Firefox
obfuscates the LAN address this way by default. A raw `192.168.x.x` here is a leak; an
absent host candidate is a broken browser.
- **A server-reflexive candidate** (`typ srflx`) whose address equals the proxy egress IP.
This is what a real machine behind NAT produces, and its address is what a remote peer
would see.
- **The server-reflexive candidate that the proxy allows.** Behind a SOCKS5 proxy whose UDP
relay works and exits from the same address as its TCP, expect a `typ srflx` whose address
equals the proxy egress IP. This is what a real machine behind NAT produces, and its
address is what a remote peer would see. Behind an HTTP or HTTPS proxy, SOCKS4, or a
SOCKS5 proxy that cannot carry UDP, expect no `srflx` at all, and one `icecandidateerror`
(701) for the STUN request when gathering ends, after about eleven seconds. No datagram
leaves the machine in that case, so an absent `srflx` is the correct state, not a leak.
- **The gathering completes.** The page finishes, not "Computing" forever.
A patched engine driven through stock Playwright produces this shape on its own: the host
candidate is masked to `<uuid>.local`, and the server-reflexive candidate carries the
proxy exit address, matching a real browser behind NAT rather than a suppressed one. Your
candidate is masked to `<uuid>.local`, and behind a SOCKS5 proxy whose UDP relay works the
server-reflexive candidate comes from a real STUN reply through that relay, so it carries the
proxy exit address. Your
job in a leak check is to confirm those values, not to hope for silence. For the full
account of why the standard "just disable WebRTC" advice fails this bar, see
[WebRTC leak with a proxy](webrtc-leak-proxy.md).
@@ -86,17 +90,17 @@ each one hides:
| Surface | Positive value to confirm | The false "no leak" it hides |
|---|---|---|
| WebRTC | Host masked to `.local`, server-reflexive equal to the egress, gathering complete | WebRTC gathered nothing at all |
| IPv6 | No global IPv6 candidate, while the v4 server-reflexive one still appears | Gathering never ran, so no v6 could appear |
| WebRTC | Host masked to `.local`, gathering complete, and with a UDP-capable SOCKS5 proxy a server-reflexive equal to the egress | WebRTC gathered nothing at all |
| IPv6 | No IPv6 candidate, while the `.local` host candidates still appear | Gathering never ran, so no v6 could appear |
| DNS | Resolution happens at the proxy exit, not your local resolver | DNS never resolved |
| Timezone and locale | Browser clock matches the exit country | Timezone API returned undefined |
- **WebRTC** is the loud one, covered above: host masked to `.local`, server-reflexive
equal to the egress, gathering complete.
- **IPv6** leaks past a v4-only proxy when the host has native IPv6 and a candidate carries
a global v6 address. The correct state here is that no global IPv6 candidate appears while
the v4 server-reflexive one still does. That is an absence you can only trust because the
v4 candidate proves gathering ran.
- **WebRTC** is the loud one, covered above: host masked to `.local`, gathering complete,
and the server-reflexive equal to the egress when the proxy carries UDP.
- **IPv6** leaks past a v4-only proxy in a stock browser when the host has native IPv6 and a
candidate carries a global v6 address. No IPv6 candidate is produced here, with or without
a proxy. That is an absence you can only trust because the `.local` host candidates prove
gathering ran.
- **DNS** should resolve through the proxy, not your local resolver. With a SOCKS proxy
this is the [remote-DNS behaviour](does-a-proxy-leak-dns-doh-explained.md); confirm
resolution happens at the exit rather than leaking your ISP's resolver. See
@@ -137,22 +141,34 @@ with InvisiblePlaywright(seed=42, proxy=PROXY) as browser:
iceServers: [{urls: 'stun:stun.l.google.com:19302'}]
});
pc.createDataChannel('probe');
const lines = [];
const lines = [], errors = [];
pc.onicecandidate = e => { if (e.candidate) lines.push(e.candidate.candidate); };
pc.onicecandidateerror = e => errors.push(e.errorCode);
await pc.setLocalDescription(await pc.createOffer());
await new Promise(r => setTimeout(r, 4000)); // let gathering finish
// Wait for gathering to end; the 25 s is only a safety net (a proxy that cannot
// carry UDP ends gathering, and delivers the 701, at about eleven seconds).
await new Promise(r => {
const cap = setTimeout(r, 25000);
pc.onicegatheringstatechange = () => {
if (pc.iceGatheringState === 'complete') { clearTimeout(cap); r(); }
};
});
pc.close();
return lines;
return {lines, errors};
}
""")
errors = candidates["errors"]
candidates = candidates["lines"]
host = [c for c in candidates if "typ host" in c]
srflx = [c for c in candidates if "typ srflx" in c]
# POSITIVE form: gathering must COMPLETE and produce both kinds.
# POSITIVE form: gathering must COMPLETE and produce what this proxy allows.
# This example assumes a SOCKS5 proxy whose UDP relay works: both kinds expected.
# Behind a proxy that cannot carry UDP, expect host candidates only (see below).
# An empty list here is a FAIL, not a clean pass.
assert host, "FAIL: no host candidate - WebRTC produced nothing"
assert srflx, "FAIL: no server-reflexive candidate - gathering blocked"
assert srflx, "FAIL: no server-reflexive candidate - this proxy carries no UDP, or gathering failed"
print("host :", host[0])
print("srflx:", srflx[0])
@@ -178,14 +194,22 @@ field:
assert host_addr.endswith(".local"), f"FAIL: host is a raw LAN IP: {host_addr}"
assert srflx_addr == egress, f"FAIL: srflx {srflx_addr} != egress {egress}"
# No global IPv6 candidate should appear, but only trust that because
# the v4 server-reflexive one above proves gathering actually ran.
assert not any(":" in address(c) for c in candidates if "typ srflx" in c), \
"FAIL: a global IPv6 candidate leaked past the proxy"
# No IPv6 candidate should appear, but only trust that because
# the host candidates above prove gathering actually ran.
assert not any(":" in address(c) for c in candidates), \
"FAIL: an IPv6 candidate leaked past the proxy"
print("egress confirmed inside the browser:", egress)
```
Behind a proxy that cannot carry UDP (an HTTP or HTTPS proxy, SOCKS4, or a SOCKS5 proxy
whose relay refuses, stays silent or exits from another address), the same page gives the
other correct shape: host candidates only, no `srflx`, and one `icecandidateerror` (701)
for the STUN request after about eleven seconds, which the script above sees because it
listens to `icecandidateerror` and waits for gathering to end (`errors == [701]`). Assert that `host` is non-empty, that no
candidate is a real address of your machine, and that `srflx` is empty. The library decides
this itself by measuring the proxy before launch, and no option forces UDP on.
Finally, confirm the browser clock follows the exit rather than your own machine:
```python
@@ -204,16 +228,17 @@ A proxy leak check is only as good as what it asserts. Written as a list of abse
will, sooner or later, hand a clean bill to a browser whose WebRTC, DNS or timezone is
simply dead, and a dead surface is a stronger tell than a leaky one because no real browser
has it. Confirm the real values instead: a `.local` host candidate, a server-reflexive
address equal to the exit, DNS through the tunnel, a clock that matches the country. Run it
address equal to the exit whenever the proxy carries UDP, DNS through the tunnel, a clock
that matches the country. Run it
through the proxy on a real page, repeat it, and read the screenshot. Do that and "no leak"
starts meaning what you wanted it to mean.
## Short answers to the questions that lead here
**How do I check if my proxy leaks my real IP?** Load a real page through the proxy, gather
WebRTC candidates in the browser, and assert the host candidate is a `.local` name and the
server-reflexive address equals your exit IP. Confirming the correct values beats checking
that the wrong ones are absent.
WebRTC candidates in the browser, and assert the host candidate is a `.local` name and, when
the proxy carries UDP, that the server-reflexive address equals your exit IP. Confirming the
correct values beats checking that the wrong ones are absent.
**My leak test says no leak. Am I safe?** Not necessarily. "No leak" is also what a dead
WebRTC, a failed DNS lookup, or an undefined timezone produces. Check that the surface
@@ -221,20 +246,24 @@ actually returned the right value, not just that it returned nothing bad.
**Should I just disable WebRTC to stop the leak?** No. A browser with WebRTC switched off is
a rare and detectable state. Real browsers gather candidates; the fix is to mask the LAN
address and route the reflexive candidate through the proxy, not to kill the feature.
address and send WebRTC's UDP through the proxy when it can carry it, with no datagram
leaving the machine otherwise, not to kill the feature.
**Can I test the leak on localhost?** No. Localhost bypasses the proxy, so you measured the
path you do not deploy. Load a remote page through the same proxy the job uses and confirm
the egress from inside the browser.
**Why does the WebRTC IP differ from my proxy IP?** If the server-reflexive candidate does
not equal your exit, either the proxy is not carrying the media path or the browser is
gathering on a real interface. If it is empty instead, gathering was blocked, which is a
separate failure.
**Why does the WebRTC IP differ from my proxy IP?** In a stock browser the server-reflexive
candidate is the line's real address: the proxy setting covers TCP, and ICE sends its UDP
from the machine's own interface. With this library a `srflx` is the proxy's exit or it is
absent. If it is absent, the proxy cannot carry UDP and no datagram left the machine, which
is correct for such a proxy. If there are no candidates at all, gathering was blocked, which
is a separate failure.
**Does an IPv6 address leak through an IPv4 proxy?** It can, when the host has native IPv6
and the proxy only carries v4. Confirm no global IPv6 candidate appears while the v4
reflexive candidate still does, so you know gathering ran.
**Does an IPv6 address leak through an IPv4 proxy?** In a stock browser it can, when the host
has native IPv6 and the proxy only carries v4. Here no IPv6 candidate is produced, with or
without a proxy. Confirm none appears while the `.local` host candidates still do, so you
know gathering ran.
**See also:** [WebRTC leak with a proxy](webrtc-leak-proxy.md) for why the standard fixes
fail, [when the timezone does not match the proxy](timezone-proxy-mismatch.md) for the
@@ -244,12 +273,8 @@ compare-against-a-real-browser method these checks sit inside.
## Sources
- This project's release gates, including the WebRTC gate whose negative-only assertions
passed a fully blocked WebRTC behind a proxy, and the positive-form check that replaced
it: host candidate as a `.local` name, server-reflexive address equal to the proxy exit,
gathering completing.
- The public leak and fingerprint pages read from their own output, including BrowserLeaks
for per-surface values and CreepJS for how a suppressed signal is recorded rather than
- The public leak and fingerprint pages read from their own output, including a site that shows your IP and WebRTC candidates
for per-surface values and a fingerprint test page for how a suppressed signal is recorded rather than
ignored.
- Playwright's documented [proxy configuration](https://playwright.dev/python/docs/network)
and `page.evaluate`, used unchanged.
@@ -257,6 +282,5 @@ compare-against-a-real-browser method these checks sit inside.
---
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The negative-only WebRTC gate
described here is a mistake this project made and then fixed, which is why the rule is
written in the positive form.*
a Firefox patched at the C++ level driven by stock Playwright. The rule is written in the
positive form because a list of absences cannot tell a working surface from a dead one.*
@@ -158,8 +158,8 @@ makes things worse.
This engine is built so that a fresh session produces a full, self-consistent desktop
fingerprint - GPU, audio, fonts, screen, hundreds of fields - that holds up against the
public tampering and consistency suites (CreepJS, BotD, FingerprintJS, sannysoft,
BrowserLeaks). When the fingerprint is already clean, a mid-scrape 403 is far more likely
public tampering and consistency suites (a consistency checker, BotD, an open-source fingerprinting library, a basic bot-test page,
a raw-value inspector). When the fingerprint is already clean, a mid-scrape 403 is far more likely
to be *behavior or rate* than *fingerprint*. It is the velocity, the request pattern, or
the exit address that got categorized, not the shape of the browser.
@@ -175,7 +175,7 @@ launched browser draws a fresh identity: a different GPU string, a different can
different audio device, a different screen, roughly 400 fields that will not match the tab
that opened it. Two tabs from one user action reporting two different machines is a
contradiction a consistency-oriented detector reads immediately, and
[CreepJS is built to notice exactly that kind of internal disagreement](creepjs-explained.md).
[a consistency checker is built to notice exactly that kind of internal disagreement](consistency-checker-explained.md).
A popup opened with `context.expect_page()` stays inside the same browser context, so it
inherits the same seed-derived fingerprint as the tab that spawned it. The GPU string, the
@@ -45,7 +45,7 @@ deciding and credited the browser for it.
**Whether "pass" means the same thing across tools.** This corpus's own [testing
methodology page](how-to-test-bot-detection.md) makes this point about testing your own
browser: sannysoft, CreepJS, BotD, FingerprintJS and BrowserLeaks each answer a different
browser: a basic bot-test page, a consistency checker, BotD, an open-source fingerprinting library and a raw-value inspector each answer a different
question, and "we pass every suite" is five different claims wearing one sentence. A
benchmark comparing two automation tools has the identical problem one level up. A "pass"
against a sitekey test page, a "pass" meaning no block occurred on a live production
@@ -73,10 +73,10 @@ cousins, not three separate engineering efforts arriving at the same answer.
## What a trustworthy report actually looks like, with a real example
A GitHub issue is not usually where you'd point someone for methodology, but
[`daijro/camoufox#555`](https://github.com/daijro/camoufox/issues/555), already covered
a public issue on a patched-Firefox project, already covered
in more depth in [how Akamai Bot Manager actually works](akamai-bot-manager-explained.md),
is a genuinely good example of what disclosure looks like in practice. The reporter named
exact software versions (Camoufox v135.0.1-beta.24, Playwright 1.58.0), the platform
exact software versions (the project's v135.0.1-beta.24 build, Playwright 1.58.0), the platform
(Linux), confirmed both arms shared the same IP, named the specific fingerprint fields
compared (JA3, JA4, Akamai's own HTTP/2 signature, all matched), and reported one
concrete, checkable inconsistency (a viewport reported as 1280x720 to the automation
@@ -114,14 +114,13 @@ need a formal badge, but the checklist behind it transfers directly:
- **A reproducible setup**, ideally a script or a repository someone else can run,
which is the practical form the ACM's "artifacts available" badge takes outside
academia.
- **The negative results included**, not just the wins. The Camoufox issue above is more
- **The negative results included**, not just the wins. The issue above is more
credible, not less, for reporting that most tested sites showed no difference at all.
## Reading this corpus's own comparisons with the same checklist
[This project's comparison pages](comparisons.md) try to apply some of this: [the
Camoufox comparison](vs-camoufox.md) has a section titled "Where I could not verify a
difference" that states plainly which claims about the other project's internals could
[This project's comparison pages](comparisons.md) try to apply some of this: the
comparison pages state plainly which claims about another project's internals could
not be checked against their own source, rather than filling the gap with an assumption
in this project's favor. That is a real attempt at the discipline above, and it is still
written by the maintainer of one of the two tools being compared. Read it, and every other
@@ -174,21 +173,19 @@ is not more trustworthy than a disclosed small one; it's just a bigger unverifia
**See also:** [How to test bot detection without a false pass](how-to-test-bot-detection.md),
for the companion question of testing your own browser rather than reading someone else's
published comparison; [the comparisons hub](comparisons.md), for this project's own
attempts, imperfect as any author's, to apply this standard to itself; and
[invisible_playwright vs Camoufox: two patched Firefoxes](vs-camoufox.md), for the
specific comparison that names what it could and could not verify.
attempts, imperfect as any author's, to apply this standard to itself.
## Sources
- ACM, [Artifact Review and Badging](https://www.acm.org/publications/policies/artifact-review-and-badging-current),
retrieved 2026-08-30, for the reproducibility/replicability distinction and the
disclosed-artifact badging framework the checklist above is adapted from.
- GitHub, [`daijro/camoufox` issue #555](https://github.com/daijro/camoufox/issues/555),
- GitHub, a public issue on a patched-Firefox project,
retrieved 2026-08-30, for the disclosed-methodology example: named versions, matched
IP and network fingerprints, a specific reported inconsistency, and included negative
results across other tested sites.
- This project's own [how to test bot detection without a false pass](how-to-test-bot-detection.md)
and [invisible_playwright vs Camoufox](vs-camoufox.md) pages, for the internal
page, for the internal
precedent this page holds itself to, including where each already discloses a limit
on what it could verify.
+22 -16
View File
@@ -11,8 +11,8 @@ nav_order: 4
To rotate proxies in Playwright, assign one proxy per browser session and keep it for
the life of that session, authenticate it on the path that carries its scheme, resolve
DNS through it, and derive the timezone, locale and WebRTC address from that session's
own exit IP so none of them contradicts the new address. Rotating the exit IP is the
DNS through it, and derive the timezone and locale from that session's own exit IP, with
WebRTC following the same proxy, so none of them contradicts the new address. Rotating the exit IP is the
easy half; making everything that must agree with the new IP actually agree with it is
the half that decides whether a rotated session gets flagged.
@@ -180,7 +180,7 @@ from the actual egress IP of that session's proxy, at launch, every time you rot
# default: each session's timezone follows its own proxy's exit, automatically
for proxy in proxies:
with InvisiblePlaywright(proxy=proxy) as browser:
... # this session's timezone, locale and WebRTC address all match this proxy
... # this session's timezone and locale match this proxy, and WebRTC follows it
```
Pin an explicit IANA zone only when you already know the proxy's country with more
@@ -192,20 +192,25 @@ with InvisiblePlaywright(proxy=proxy, timezone="America/New_York") as browser:
...
```
The same lookup that resolves the timezone also feeds the locale and the WebRTC public
address in this project, so the three cannot drift apart the way they do when a
rotation script sets the proxy in one place and the timezone in another, if it sets it
at all.
The same lookup that resolves the timezone also feeds the locale in this project, so the
two cannot drift apart the way they do when a rotation script sets the proxy in one place
and the timezone in another, if it sets it at all. WebRTC needs no such value: no address
is declared for it, and its candidates come from real STUN replies.
WebRTC is the other half of this and it fails in both directions.
[A SOCKS5 proxy carries TCP; STUN wants UDP](webrtc-leak-proxy.md), so on a browser that
does not handle this deliberately, the WebRTC candidate can name your real address
[A stock browser does not send WebRTC's UDP through the proxy](webrtc-leak-proxy.md),
even when the proxy could carry it, so the WebRTC candidate can name your real address
right next to the proxied one in the same session, which is a direct contradiction
rather than a subtle one. The instinctive fix, disabling WebRTC outright, trades that
for a worse tell: a session with zero ICE candidates is a browser announcing that
something intercepted it, which is its own signal and arguably a stronger one. The
goal when rotating proxies is not to make WebRTC silent, it is to make it agree with
the rest of the session, exit address included.
the rest of the session. Each launch measures its proxy: behind a SOCKS5 proxy whose UDP
relay works and exits from the same address as its TCP, STUN goes through the relay and
that session's server-reflexive candidate is its exit; behind any other proxy no datagram
leaves the machine and there is no server-reflexive candidate. A context with its own
SOCKS5 proxy gets its own. See
[SOCKS5 vs HTTP proxy](socks5-vs-http-proxy-browser.md) for how the decision is made.
## Conclusion
@@ -213,10 +218,10 @@ Rotate at the level of a visitor, one browser launch and one proxy per session,
request, unless the calls are genuinely stateless. Get SOCKS5 authentication onto the
path that actually carries it rather than the Playwright field that silently drops it,
and route DNS through the proxy rather than around it. None of that is the part that
gets a rotation script flagged. The part that does is leaving the timezone, locale and
WebRTC address behind when the IP moves: derive them from each session's own exit
instead of configuring them once, and a rotated session tells one consistent story
instead of several contradicting ones.
gets a rotation script flagged. The part that does is leaving the timezone and locale
behind when the IP moves, and a WebRTC that does not follow the proxy: derive the first two
from each session's own exit instead of configuring them once, and a rotated session
tells one consistent story instead of several contradicting ones.
## Short answers to the questions that lead here
@@ -257,8 +262,9 @@ for where proxy rotation sits among the other layers a block can come from.
- [Playwright timezone does not match the proxy IP](timezone-proxy-mismatch.md) and
[WebRTC leak with a proxy](webrtc-leak-proxy.md), both grounding the exit-consistency
section above.
- This project's own default of resolving timezone, locale and WebRTC exit address from
one lookup per launch, so a rotated session cannot have them disagree.
- This project's own default of resolving timezone and locale from one lookup per launch,
and of measuring the proxy's UDP before launch, so a rotated session cannot have them
disagree.
---
@@ -202,7 +202,7 @@ is not a subtle tell; it is a contradiction a first-party script finds in one li
is enough to serve you a challenge or a stripped page before any pricing loads.
This is where a real fingerprint earns its place and where it is not sufficient on its
own. Passing [CreepJS](creepjs-explained.md) means the browser is internally consistent
own. Passing [a consistency checker](consistency-checker-explained.md) means the browser is internally consistent
and does not announce automation, which this project's engine handles by deriving every
surface from one seed so the GPU, canvas, audio and font values all agree. But
consistency across the browser's own fields does not cover the browser against its exit.
@@ -66,7 +66,7 @@ with InvisiblePlaywright(seed=42, proxy=proxy) as browser:
Add to that list two things that are not in JavaScript at all: the
[`Accept-Language` header and its `navigator.languages` twin](accept-language-navigator-languages.md)
the requests actually carry, and the country of the IP the request left from,
which the browser also reports independently through WebRTC. And
which the browser can also report independently through WebRTC. And
[the geolocation API a page can query directly](geolocation-api-vs-ip-location-consistency.md)
has to fall in the same country too.
@@ -81,7 +81,7 @@ fed by:
| `Accept-Language` header | the HTTP request itself | egress IP |
| Number and date format | `Intl.NumberFormat`, `toLocaleString()` | egress IP |
| Geolocation country | the Geolocation API | egress IP |
| Reported network address | WebRTC | exit IP |
| Reported network address | WebRTC | exit IP (when the proxy relays UDP) |
| Exit IP country | the proxy exit | the anchor everything matches |
That is a set of surfaces, not a value. Geotargeting a region means every one of them has
@@ -95,8 +95,9 @@ is common enough to have its own page.
The design decision that makes this tractable is to stop treating region as configuration
and start treating it as a consequence of the proxy. By default the browser timezone is
auto-derived from the egress IP: the proxy exit if a proxy is set, otherwise the host's
own public IP. The same lookup that finds the egress country feeds the locale and the
address WebRTC reports, so those surfaces come from one answer and cannot drift apart.
own public IP. The same lookup that finds the egress country feeds the locale, and when the
proxy relays UDP the address WebRTC reports is that same exit, so those surfaces come from one
answer and cannot drift apart.
In practice that means the geotargeted scrape is the ordinary scrape. You set the proxy,
and the region surfaces follow it:
@@ -231,7 +232,7 @@ actually in the target country and diff the two reports field by field, which is
method described in
[how to test whether your browser is detected](how-to-test-bot-detection.md).
Remember also that WebRTC reports the exit country independently of all of this, so a
Remember also that WebRTC can report the exit country independently of all of this, so a
[WebRTC path that reports the wrong address or nothing at all](webrtc-leak-proxy.md) will
contradict a perfectly matched timezone. It is part of the same surface set, not a
separate concern.
@@ -82,7 +82,7 @@ visitors. It saw one visitor open eight tabs.
A separate identity is a separate machine, and a separate machine here is a separate
launch. Each `InvisiblePlaywright` launch derives its full fingerprint from its seed and
resolves its timezone, locale and WebRTC exit address from its own proxy, once, at launch.
resolves its timezone and locale from its own proxy, once, at launch, and sends WebRTC's UDP through that proxy or nowhere.
So the unit of parallelism is not the context, it is the browser:
```python
+1 -1
View File
@@ -141,7 +141,7 @@ Do not trust a blog snippet that claims to "bypass" closed shadow roots by monke
`Element.prototype.attachShadow` before the component runs. That works only if you can
inject before the page's own scripts, it changes observable behaviour the page can notice,
and it is exactly the kind of environment tampering that consistency checks like
[CreepJS](creepjs-explained.md) are built to catch. A quiet, real browser that reads what
[a consistency checker](consistency-checker-explained.md) are built to catch. A quiet, real browser that reads what
it can and leaves the rest is a better position than a loud one that reaches for
everything.
@@ -209,7 +209,7 @@ should also tell you what the demonstration does not cover.
Social platforms run the strictest detection of anywhere on the web. A seed-reproducible,
C++-level fingerprint driven by stock Playwright removes the automated-browser tell: the
engine answers CreepJS, BotD and the rest as an ordinary Firefox on ordinary hardware, and
engine answers a consistency checker, BotD and the rest as an ordinary Firefox on ordinary hardware, and
because the machine is derived from a seed it is internally consistent rather than a set of
plausible values that disagree with each other. That is what keeps a session from being
flagged the moment it starts scrolling a stranger's profile.
+10 -10
View File
@@ -31,10 +31,10 @@ most of why people get confused by contradictory results.
| Suite | Question it actually asks | What a pass proves |
|---|---|---|
| sannysoft | Are you an unmodified, old headless browser? | Table stakes only - nothing about a modern one |
| CreepJS | Are you lying about your environment? | Nothing here contradicts anything else here |
| A consistency checker | Are you lying about your environment? | Nothing here contradicts anything else here |
| BotD | Which engine are you really running? | A verdict, not a fingerprint |
| FingerprintJS | Can you be recognised again? | Linkability, not "looks human" |
| BrowserLeaks | What does one specific surface report? | A single value, not a score |
| A raw-value inspector | What does one specific surface report? | A single value, not a score |
**[bot.sannysoft.com](sannysoft-explained.md)** is a smoke test. Its main table
describes headless Chrome as it behaved around 2018, and every serious tool fixes
@@ -42,7 +42,7 @@ those on day one. Passing it proves you are not running an unmodified headless b
The interesting part is not the table: three canvas tests are also run inside an iframe
and compared, which is a consistency check instead of a fingerprint check.
**[CreepJS](creepjs-explained.md)** asks whether you are lying, not what you report. It
**[A consistency checker](consistency-checker-explained.md)** asks whether you are lying, not what you report. It
takes a clean copy of the built-ins from a fresh iframe, inspects stack traces, walks
descriptors and prototypes, and records a blocked probe as a lie by name. A high score
means nothing here contradicts anything else here.
@@ -56,7 +56,7 @@ of roughly forty-one components. It answers "can I be recognised again", which i
different question from "do I look automated". The commercial version adds signals the
open-source library does not have.
**[BrowserLeaks](browserleaks-explained.md)** is per-surface instead of a verdict:
**[A raw-value inspector](raw-value-inspector-explained.md)** is per-surface instead of a verdict:
WebRTC, canvas, WebGL, fonts. It is the one to reach for when you want to read a
specific value in place of a score.
@@ -79,10 +79,10 @@ So the rule, which applies to every surface and not just that one:
> **Assert the presence of the right signal, not the absence of a wrong one.** A page that
> comes back empty, blocked or still loading is a failure, not a pass.
Concretely: the WebRTC section must complete and show a host candidate and a server
Concretely: the WebRTC section must complete and show a host candidate and, when there is no proxy or the proxy relays UDP, a server
reflexive one. The canvas must produce a hash, twice, matching. The font list must be
non-empty and belong to the platform you claim. A suppressed signal is itself a signal,
and [CreepJS records blocking by name](creepjs-explained.md).
and [a consistency checker records blocking by name](consistency-checker-explained.md).
The same trap shows up one level down, inside a test itself rather than in what it
tests. [A cleanup-identification check once passed for exactly this reason](orphaned-browser-process-windows.md) -
@@ -187,8 +187,8 @@ will eventually tell you that a broken browser is fine.
## Short answers to the questions that lead here
**Which bot detection test should I use?** Several, because they answer different
questions. sannysoft as a smoke test, CreepJS for tampering, BotD for a verdict,
FingerprintJS for linkability, BrowserLeaks to read a specific surface.
questions. A basic bot-test page as a smoke test, a consistency checker for tampering, BotD for a verdict,
an open-source fingerprinting library for linkability, a raw-value inspector to read a specific surface.
**I pass every test and still get blocked. Why?** Because the suites do not see the TLS
handshake, your behaviour, or your address, and because a consistent browser on a
@@ -213,10 +213,10 @@ linked throughout.
## Sources
- The five public suites named above, each read from its own source rather than its
rendered output: [CreepJS](https://github.com/abrahamjuliot/creepjs),
rendered output: a consistency checker,
[BotD](https://github.com/fingerprintjs/BotD), [sannysoft](https://bot.sannysoft.com/),
[FingerprintJS](https://github.com/fingerprintjs/fingerprintjs), and
[BrowserLeaks](https://browserleaks.com/), retrieved 2026-08-28.
a raw-value inspector, retrieved 2026-08-28.
- This project's release gates, including the WebRTC gate whose negative-only assertions
produced the false pass described above, and the velocity flag that turned out to be
the harness.
@@ -103,13 +103,12 @@ build runner mounts a persistent volume, point
entirely - `fetch` checks the cached tree against the seal first and only
downloads if it does not match, so a warm cache makes the step nearly free.
The three environment variables that matter in a container build:
The two environment variables that matter in a container build:
| Environment variable | What it does | Documented in |
|---|---|---|
| `STEALTHFOX_GITHUB_TOKEN` | Authenticates the engine download when a CI runner or corporate network rate-limits or blocks anonymous GitHub downloads | [Configuration](configuration.md) |
| `INVISIBLE_PLAYWRIGHT_CACHE_DIR` | Points the binary cache at a path the build persists between runs, so a rebuild skips the ~238 MB download | [Configuration](configuration.md) |
| `INVPW_BINARY_PATH` | Uses a binary already baked into the image and skips the `fetch` step entirely | [Configuration](configuration.md) |
## Running headless in the container
@@ -170,8 +169,8 @@ actually has, which is the gap [the container detection
page](playwright-docker-detection.md) describes as the one thing a stock
setup cannot fix without help.
A fingerprinting test page such as [CreepJS](creepjs-explained.md) or
[BrowserLeaks](browserleaks-explained.md) will show the same thing from
A fingerprinting test page such as [a consistency checker](consistency-checker-explained.md) or
[a raw-value inspector](raw-value-inspector-explained.md) will show the same thing from
the outside: the same seed renders the same panel whether the browser
sits on your laptop or inside this container, because the font set
travels with the engine rather than being read off the box it happens to
@@ -223,8 +222,8 @@ container would answer with the container's own defaults instead, which
by field.
**Can I skip the download and bring my own binary into the image?** Yes,
set `INVPW_BINARY_PATH` to a binary already baked into the image and the
fetch step is skipped entirely. Covered in
pass `binary_path=` for a binary already baked into the image and the
fetch step is skipped entirely. The binary must be the sealed build; see
[Configuration](configuration.md).
**Do I need a real GPU for this to work in a container?** Not for the
@@ -238,14 +237,13 @@ is a rendering-quality question, not a detection one.
the detection-level page this tutorial complements.
- [Installation](installation.md) and the [CLI reference](cli-reference.md)
for the exact `fetch` behaviour and environment variables used above.
- [Configuration](configuration.md) for `INVISIBLE_PLAYWRIGHT_CACHE_DIR`,
`INVPW_BINARY_PATH` and `STEALTHFOX_GITHUB_TOKEN`.
- [Configuration](configuration.md) for `INVISIBLE_PLAYWRIGHT_CACHE_DIR`
and `STEALTHFOX_GITHUB_TOKEN`.
- Playwright documentation, [Docker](https://playwright.dev/python/docs/docker), for the
base image and its version tags, retrieved 2026-08-28.
- Docker Engine reference, [`docker run`](https://docs.docker.com/engine/containers/run/),
for the 64 MB default size of `/dev/shm` and the `--shm-size` flag, retrieved 2026-08-28.
- [CreepJS](https://github.com/abrahamjuliot/creepjs) and
[BrowserLeaks](https://browserleaks.com/), the fingerprinting test pages named above,
- Public consistency-checker and raw-value-inspector pages, the fingerprinting test pages named above,
retrieved 2026-08-28.
**See also:** [How to scrape without getting
@@ -218,7 +218,7 @@ separate and untouched by it.
as evidence that matching a browser's transport-parameter profile by hand is a real,
actively maintained engineering problem rather than a hypothetical one, retrieved
2026-08-28.
- [BrowserLeaks' QUIC client test](https://browserleaks.com/quic), a public page that reads
- A public QUIC client test page that reads
back a connecting client's QUIC transport parameters and HTTP/3 frames, the kind of
server-side read the "compact profile" described above refers to, retrieved 2026-08-28.
- This project's network-layer parity checks, which compare a session's negotiated
+1 -1
View File
@@ -40,7 +40,7 @@ Two things are worth being direct about. First, none of the specific field value
## What an engine answers honestly, and what does not touch a browser at all
The sensor's rendering and environment-consistency checks, canvas output, WebGL parameters, AudioContext behavior, navigator fields, are the same category [covered at length for CreepJS](creepjs-explained.md) and [PerimeterX](perimeterx-explained.md): a genuinely real browser engine, patched below the JavaScript layer rather than scripted from a content script, produces these values as an honest side effect of actually being that engine. There is no override to catch, because nothing overrode anything.
The sensor's rendering and environment-consistency checks, canvas output, WebGL parameters, AudioContext behavior, navigator fields, are the same category [covered at length for a consistency checker](consistency-checker-explained.md) and another bot-detection service: a genuinely real browser engine, patched below the JavaScript layer rather than scripted from a content script, produces these values as an honest side effect of actually being that engine. There is no override to catch, because nothing overrode anything.
That says nothing about the network-layer fingerprint, which depends on the TLS stack and the exit connection, not the rendering engine; nothing about Imperva's threat-intelligence feeds, which score reputation this project has no visibility into and no way to influence; and nothing about the CAPTCHA tier itself, which is a human-verification gate, not a fingerprint check, the same structural point made about [Cloudflare Turnstile's checkbox](cloudflare-turnstile-explained.md).
+2 -2
View File
@@ -17,7 +17,7 @@ the thing it describes, and several of them record something we got wrong first.
- **[Guides](guides.md)** - how detection actually works, in seven groups: browser
identity, canvas/WebGL/fonts/audio, network and WebRTC, the automation layer, AI
agents, the detectors themselves explained from source, and testing.
- **[Comparisons](comparisons.md)** - against Camoufox, Patchright, nodriver and
- **[Comparisons](comparisons.md)** - against Patchright, nodriver and
playwright-stealth, and the case for Firefox over Chromium generally.
- **[Integrations](integrations/)** - running this inside Scrapy, Crawlee, Robot
Framework, CodeceptJS, test runners and Playwright MCP, including which frameworks
@@ -49,7 +49,7 @@ ask whether two values that must agree, do. A user agent claiming one platform o
font set from another is caught by a comparison, not by a blocklist.
**Suppressing a signal is a signal.** A browser that refuses to answer is louder than
one that answers plainly, because refusing is rare. CreepJS literally records a
one that answers plainly, because refusing is rare. A consistency checker literally records a
blocked probe as a lie.
**Server tells are not automation tells, and they need different fixes.** A software
+2 -2
View File
@@ -45,7 +45,7 @@ export INVISIBLE_PLAYWRIGHT_CACHE_DIR=/mnt/big/engines
```
If you already have a compatible binary on disk and want to skip the download
entirely, point `INVPW_BINARY_PATH` at it instead. The full list of environment
entirely, pass it as `binary_path=` instead. The full list of environment
variables, including the ones for corporate networks and CI, is in
[Configuration](configuration.md).
@@ -76,7 +76,7 @@ against a sha256 shipped inside `invisible-core` every time it runs, not just on
first install, so re-running `fetch` is itself the verification.
**What if I already have a compatible binary, or `fetch` can't reach the network?**
Point `INVPW_BINARY_PATH` at a binary you already have to skip the download
Pass `binary_path=` for a binary you already have to skip the download
entirely. [Configuration](configuration.md) lists the other environment variables,
including the ones for corporate networks and CI.
+1 -1
View File
@@ -16,7 +16,7 @@ below are in that released version; the first needs 0.0.48 or newer.
`scrapy-playwright`'s own documentation already names this project in
[pluggable-browser-providers.md](https://github.com/scrapy-plugins/scrapy-playwright/blob/main/docs/pluggable-browser-providers.md),
alongside patchright and camoufox, and carries a worked provider example. That page
alongside patchright and other browser builds, and carries a worked provider example. That page
is the reference; this one explains which route to pick and what each one costs.
## Install
+33 -19
View File
@@ -85,11 +85,15 @@ measuring on its own.
The [WebRTC IPv6 leak](webrtc-ipv6-leak-proxy.md) and this one rhyme, and telling them
apart is the point.
- **WebRTC IPv6** is not a connection at all. WebRTC enumerates the host's network
interfaces locally and emits your global IPv6 as an ICE *candidate*. Nothing was
dialed; the address was read off the interface list and printed to the page. A SOCKS
proxy cannot stop it because there is no TCP to tunnel, and the pref
`media.peerconnection.ice.disableIPv6` no longer reaches the code that emits it.
- **WebRTC IPv6** is not a connection at all. A stock browser's WebRTC enumerates the
host's network interfaces locally and emits your global IPv6 as an ICE *candidate*.
Nothing was dialed; the address was read off the interface list and printed to the
page. A proxy setting does not stop it in a stock browser, because WebRTC's UDP is
sent from the machine's own interface rather than through the proxy (SOCKS5 does
define a UDP mode, UDP ASSOCIATE, but a stock browser does not use it for WebRTC),
and the pref `media.peerconnection.ice.disableIPv6` no longer reaches the code that
emits it. invisible_playwright does not read the machine's interfaces and produces
no IPv6 candidate, host or srflx, in any session, with or without a proxy.
- **Transport IPv6** is a real connection. A socket opened over IPv6 outside the proxy,
logged by the site as an ordinary request from your machine.
@@ -106,26 +110,34 @@ The cleanest fix is to remove the choice. If your proxy carries IPv4, deny the b
IPv6 for outbound name resolution so no connection can prefer a v6 path in the first
place.
- **Route DNS through the proxy.** invisible_playwright does this by default: DNS is
resolved at the proxy, not locally, so the browser never gets a local AAAA answer to
chase onto a direct IPv6 socket. That default closes the most common seam without you
touching anything.
- **Route DNS through the proxy.** In a stock Firefox, turn on remote DNS for the
SOCKS proxy (`network.proxy.socks_remote_dns`), so the browser never gets a local
AAAA answer to chase onto a direct IPv6 socket.
- **Disable AAAA resolution at the browser.** The public Firefox pref
`network.dns.disableIPv6` set to `true` makes Firefox stop doing IPv6 name lookups
host-wide, so every connection is IPv4 and matches an IPv4-only proxy. Note this is a
*different* pref from the WebRTC one above and it actually takes effect on the
transport path. If you drive `firefox.launch()` yourself, set it in
`firefox_user_prefs` alongside the SOCKS preferences from
`get_default_stealth_prefs(proxy=...)`.
transport path. If you drive Firefox yourself, set it in the profile's user prefs
alongside your SOCKS preferences. invisible_playwright needs no pref for this: the
browser does no AAAA lookups in any session.
- **Or match the proxy to the host.** The other honest answer is a dual-stack proxy: if
the exit carries IPv6 too, an IPv6 connection exits at the proxy and there is nothing
to leak. Forcing IPv4 is the fix when the proxy is v4-only; a v6-capable exit is the
fix when you would rather keep IPv6.
fix when you would rather keep IPv6. With invisible_playwright, a proxy whose TCP
exit is IPv6 is not measured as able to carry UDP, so the session behaves as if the
proxy could not carry UDP: no `typ srflx` candidate and one `icecandidateerror` 701
after about eleven seconds.
Pick removal of the choice (force v4) or coverage of both (dual-stack exit). What you
do not want is the middle state: an IPv6-capable host and a v4-only proxy with nothing
holding the browser to v4.
Two limits of invisible_playwright on the host side. With no proxy, on a machine that
has both IPv4 and IPv6, the page sees IPv4 candidates only; a retail browser on the
same machine would also show IPv6 candidates, and that is a known difference. A
machine that has only IPv6 and no proxy is not supported: the launch fails with an
error.
## Measure which family your proxy actually exposes
Do not assume, read it. The launch is a two-line change from stock Playwright, and
@@ -210,13 +222,15 @@ application answer, read from a request that rode the tunnel. The site's access
records the transport answer, which can be a different family if another connection
went direct.
**How do I force IPv4 through the proxy?** Route DNS through the proxy so no AAAA is
resolved locally (the default here), and set the public pref
**How do I force IPv4 through the proxy?** In a stock Firefox, route DNS through the
proxy so no AAAA is resolved locally, and set the public pref
`network.dns.disableIPv6` to `true` so Firefox stops doing IPv6 name lookups entirely.
invisible_playwright does no AAAA lookups in any session.
**Is this the same as the WebRTC IPv6 leak?** Same address, different layer. WebRTC
reads your IPv6 off the interface list without opening a connection; this is a real TCP
connection made outside the proxy. Fixing one does not fix the other.
**Is this the same as the WebRTC IPv6 leak?** Same address, different layer. In a
stock browser WebRTC reads your IPv6 off the interface list without opening a
connection; this is a real TCP connection made outside the proxy. Fixing one does not
fix the other.
**Does `media.peerconnection.ice.disableIPv6` help here?** No. That pref is about
WebRTC candidate gathering and no longer reaches even that path. For transport, the
@@ -228,7 +242,7 @@ rate limits or behaviour. Those need a clean proxy and human pacing, which you s
## Sources
- This project's proxy handling, which resolves DNS at the proxy by default so a local
- This project's behaviour, in which the browser does no AAAA lookups, so a local
AAAA record cannot steer a connection onto the host's IPv6, and the transport-answer
measurement above, read from inside the proxied browser rather than assumed.
- A read of standard Firefox proxy and DNS preferences (`network.dns.disableIPv6`,
+2 -2
View File
@@ -173,9 +173,9 @@ which is the entire point.
identity surface field by field against a stock browser rather than reading a single
string.
- The public detection suites this documentation set covers page by page, including
[CreepJS](https://github.com/abrahamjuliot/creepjs), [BotD](https://github.com/fingerprintjs/BotD),
A consistency checker, BotD,
[FingerprintJS](https://github.com/fingerprintjs/fingerprintjs), [sannysoft](https://bot.sannysoft.com/)
and [BrowserLeaks](https://browserleaks.com/), retrieved 2026-08-28, each of which
and a raw-value inspector, retrieved 2026-08-28, each of which
cross-checks self-reported values against measured ones.
**See also:** [why you should not set the user agent in Playwright](playwright-user-agent.md),
+2 -2
View File
@@ -63,7 +63,7 @@ agent does nothing for the renderer; a viewport override does nothing for the fo
new detector reads a field you have not thought about yet. You are always one signal
behind. Second, and worse, a patched value has to agree with every value you did not patch.
Spoof a high-end GPU string while the pixels are still drawn in software and you have
turned one tell into a contradiction, which [CreepJS](creepjs-explained.md) is built to
turned one tell into a contradiction, which [a consistency checker](consistency-checker-explained.md) is built to
catch. Overcorrecting is how a fix becomes a new fingerprint.
The reliable move is to stop treating "headless" as a list of holes to plug and start
@@ -196,7 +196,7 @@ it twice and disagree.
## Sources
- The classic headless signals as described on the public detector suites named in this set
(sannysoft, [CreepJS](creepjs-explained.md)), read from their own source rather than
(a basic bot-test page, [a consistency checker](consistency-checker-explained.md)), read from their own source rather than
their rendered verdict.
- This project's release gates, which run `headless=True` against those suites and compare
the fingerprint field by field against the headful run.
+2 -2
View File
@@ -61,7 +61,7 @@ An automated browser only reproduces that agreement if whoever built it thought
second API. A stealth layer that rewrites the WebGL renderer to say "Windows NVIDIA" and
does nothing to `navigator.gpu` now ships a machine whose two GPU stories were written by
two different authors, which is exactly the shape of tell that
[reading a specific surface's raw value](browserleaks-canvas-webgl-hash.md) is designed to
[reading a specific surface's raw value](canvas-webgl-readback-hash-explained.md) is designed to
expose.
## The failure mode: two GPU stories that disagree
@@ -218,7 +218,7 @@ pacing too.
**See also:** [WebGL renderer strings](webgl-renderer-strings.md) for the older half of
the pair, [why the WebGL parameters must be identical to a real machine](webgl-parameters-are-identical.md),
and [reading the canvas and WebGL hashes on BrowserLeaks](browserleaks-canvas-webgl-hash.md).
and [reading the canvas and WebGL hashes on a raw-value inspector](canvas-webgl-readback-hash-explained.md).
---
+6 -6
View File
@@ -10,7 +10,7 @@ nav_order: 25
# How Kasada's bot detection actually works
Kasada is a commercial bot-detection vendor used across retail, travel and ticketing
sites, and unlike BotD or CreepJS its client-side script is not open source. There is no
sites, and unlike BotD or a consistency checker its client-side script is not open source. There is no
source tree to point at. What follows is pieced together from public
reverse-engineering writeups, one archived proof-of-concept solver, and Kasada's own
description of its product, which is deliberately thin on mechanism. Where the sourcing
@@ -48,11 +48,11 @@ not, so this page can say the ruleset is broad and cannot say what any one named
specifically tests.
It also runs integrity checks that read as familiar to anyone who has looked at how
CreepJS works: cross-frame consistency between the top document and other frames,
a consistency checker works: cross-frame consistency between the top document and other frames,
whether the `navigator.webdriver` getter is the engine's real native getter or something
that has been moved onto the instance, and general window-property leak detection for
globals automation frameworks tend to leave behind ([the same lie-detection shape CreepJS
uses](creepjs-explained.md), independently arrived at). One technique kernel.sh describes
globals automation frameworks tend to leave behind ([the same lie-detection shape a consistency checker
uses](consistency-checker-explained.md), independently arrived at). One technique kernel.sh describes
that is less commonly written up elsewhere: "crash-and-capture" probes that deliberately
trigger a `TypeError` and then inspect the resulting `Error` object, its message text and
its stack-trace shape, against what the specific engine and version it claims to be would
@@ -169,7 +169,7 @@ reimplementation is built against one snapshot and has to be redone against the
writeup linked in Sources below is the most detailed public account this page found, and
it is worth reading directly rather than through a paraphrase.
**See also:** [How CreepJS decides you are lying](creepjs-explained.md), for the same
**See also:** [How a consistency checker decides you are lying](consistency-checker-explained.md), for the same
integrity-checking approach worked out against a tool you can actually read the source
of; [Function.prototype.toString and the native code check](tostring-native-code-detection.md),
for the specific native-getter argument Kasada's VM also relies on; and [what ASN and IP
@@ -200,7 +200,7 @@ network layer that sits entirely outside Kasada's client-side script.
---
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright).
Kasada does not publish a source tree the way BotD or CreepJS do, so this page leans on
Kasada does not publish a source tree the way BotD or a consistency checker do, so this page leans on
public reverse-engineering rather than our own release gates. Where the other detector
pages here say "read from source," this one says "read from someone else's afternoon of
decoding it," and names them.*
+3 -3
View File
@@ -60,7 +60,7 @@ on a real machine, cannot disagree.
A consistency-based detector does not need to know the "right" buildID. It only
needs to notice that this one is impossible given the rest of the identity. The
same logic that [CreepJS applies to every surface it can reach](creepjs-explained.md)
same logic that [a consistency checker applies to every surface it can reach](consistency-checker-explained.md)
applies here: it is not asking whether a value is unusual, it is asking whether
two values that should agree, do. A 2018 build date next to a 2026 everything-else
does not agree with anything, and a browser that reports it has told the page it
@@ -218,13 +218,13 @@ the year should be consistent with your version.
- [reCAPTCHA v3](https://developers.google.com/recaptcha/docs/v3), Google's
documentation for the continuous score that this project's A/B measured,
retrieved 2026-08-28.
- [CreepJS](https://github.com/abrahamjuliot/creepjs), the consistency
- A consistency checker, the consistency
detector named above, read from its own source rather than from its
rendered verdict, retrieved 2026-08-28.
**See also:** [what the reCAPTCHA v3 score actually measures](recaptcha-v3-score.md),
[how the user agent is derived rather than pinned](playwright-user-agent.md), and
[why CreepJS treats a contradiction as a lie](creepjs-explained.md).
[why a consistency checker treats a contradiction as a lie](consistency-checker-explained.md).
---
@@ -52,7 +52,7 @@ navigator.connection?.rtt // undefined
That last line is the one detectors actually run. `'connection' in navigator` is a
one-token check that returns `false` on every real Firefox and `true` on every real
Chromium. It costs nothing, cannot be argued with, and it is exactly the kind of
member-existence probe that suites like CreepJS and BotD lean on to decide which engine
member-existence probe that suites like a consistency checker and BotD lean on to decide which engine
you *really* are, regardless of what the user-agent string says.
So the failure mode is not "Firefox leaks connection data". Firefox has no connection
+8 -8
View File
@@ -1,6 +1,6 @@
---
title: "navigator.maxTouchPoints and pointer consistency"
description: "Why navigator.maxTouchPoints reads 0 on a spoofed desktop, why the pointer media queries must agree, and how CreepJS cross-checks the pair to catch a spoof."
description: "Why navigator.maxTouchPoints reads 0 on a spoofed desktop, why the pointer media queries must agree, and how a consistency checker cross-checks the pair to catch a spoof."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 18
@@ -14,7 +14,7 @@ pointer media queries have to agree with it: [`(pointer: fine)`](https://develop
`(any-hover: hover)` match, while [`(any-pointer: coarse)`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/any-pointer) is false. A
fingerprinter does not read either value on its own; it checks whether the two
agree, because they describe the same hardware through different code paths, and
CreepJS records a mismatch as a lie.
a consistency checker records a mismatch as a lie.
`navigator.maxTouchPoints` looks like a throwaway integer. It is one of the
cheapest cross-checks a fingerprinter has, because it does not live alone: it
@@ -23,7 +23,7 @@ completely different code paths inside the browser. Get them from two different
places and it is very easy to make them disagree.
This page is about that agreement. What the value should be on a desktop, which
media queries it has to match, how to read both from one session, why CreepJS
media queries it has to match, how to read both from one session, why a consistency checker
pairs them, and one boundary value in our own identity generation that once made
them contradict each other on exactly the machines where it mattered.
@@ -140,16 +140,16 @@ for seed in (42, 1000, 7777):
print(seed, touch, coarse) # every row: 0 False
```
## The consistency CreepJS is checking
## The consistency a consistency checker is checking
[CreepJS](creepjs-explained.md) does not ask whether your touch count is
[a consistency checker](consistency-checker-explained.md) does not ask whether your touch count is
unusual. It asks whether it contradicts something else you reported, and this
pair is one of its cleaner contradictions because the two values come from
different corners of the browser and a spoof that touches one often forgets the
other.
Concretely, a coarse `any-pointer` next to `maxTouchPoints: 0` is a
self-inconsistency, and CreepJS treats a self-inconsistency as a lie regardless
self-inconsistency, and a consistency checker treats a self-inconsistency as a lie regardless
of how ordinary each individual value looks. This is the same style of check
described in [how detection suites cross-reference fields rather than reading
them](how-to-test-bot-detection.md): the danger is never one odd number, it is
@@ -239,14 +239,14 @@ are now forced to agree for every identity.
- W3C, [Media Queries Level 4](https://www.w3.org/TR/mediaqueries-4/), retrieved
2026-08-28, for the `pointer`, `any-pointer`, `hover` and `any-hover`
interaction media features this page checks against the touch count.
- [CreepJS](https://github.com/abrahamjuliot/creepjs), retrieved 2026-08-28, read
- A consistency checker, retrieved 2026-08-28, read
from its own source, for how it records a self-inconsistent pair as a lie.
- This project's release gates, including the test that now asserts the shared
gate is active for every seed the identity pool can produce.
**See also:** [the CSS media-query surface](css-media-query-fingerprinting.md)
for the rest of what stylesheets can read about your machine,
[what CreepJS actually proves](creepjs-explained.md) before you trust a high
[what a consistency checker actually proves](consistency-checker-explained.md) before you trust a high
score, and [how to compare fields instead of reading verdicts](how-to-test-bot-detection.md).
---
+1 -1
View File
@@ -88,7 +88,7 @@ fingerprint on its own.
Two things follow. First, if you are presenting as Firefox, `navigator.oscpu` must be
present and it must name the same OS as everything else, because a real Firefox has it
and a real Firefox agrees with itself. Second, `navigator.oscpu` is one of the strings a
suite like [CreepJS](how-to-test-bot-detection.md) or a public detector reads directly,
suite like [a consistency checker](how-to-test-bot-detection.md) or a public detector reads directly,
so it is not an obscure corner - it is on the list of things that get compared.
An empty or missing `navigator.oscpu` on a browser claiming to be Firefox is the worst of
+5 -5
View File
@@ -119,7 +119,7 @@ browsers are indistinguishable on the check that usually catches a patched gette
A real audit checks a whole fingerprint, not one boolean: descriptor hygiene,
cross-surface consistency, rendering output, and behaviour. Open any of the public
fingerprinting test suites and look at what they collect -
[CreepJS](creepjs-explained.md), [BotD](botd-explained.md), [sannysoft](sannysoft-explained.md), fpscanner - and none of them
[a consistency checker](consistency-checker-explained.md), [BotD](botd-explained.md), a basic bot-test page, fpscanner - and none of them
stop at `navigator.webdriver`. They build a picture and then check whether the
picture is internally consistent.
@@ -168,7 +168,7 @@ because nothing was patched. What it does not change is anything about the
machine underneath.
**In the browser engine, before it ships.** Change the values in the C++ source
and rebuild. [Camoufox](vs-camoufox.md) does this for Firefox, and so does the project I maintain,
and rebuild. Other patched Firefox builds do this, and so does the project I maintain,
`invisible_playwright`. At this level there is no override to detect, because
there is no override: the engine simply reports the value you compiled in, through
the same native code path a normal build uses. `Function.prototype.toString` says
@@ -248,7 +248,7 @@ answering honestly.
`false` by default, specifically to match Gecko and WebKit.
- [MDN, `Function.prototype.toString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString),
retrieved 2026-08-28, for the native-code string a builtin getter returns.
- [CreepJS](https://github.com/abrahamjuliot/creepjs), retrieved 2026-08-28, one of the
- A consistency checker, retrieved 2026-08-28, one of the
public fingerprinting suites named on this page.
- [BotD](https://github.com/fingerprintjs/BotD), retrieved 2026-08-28, another of the
named public suites.
@@ -258,10 +258,10 @@ answering honestly.
fourth suite named on this page.
- [Patchright](https://github.com/Kaliiiiiiiiii-Vinyzu/patchright), retrieved 2026-08-28,
the named example of a driver-level fix on the Chromium side.
- [Camoufox](https://github.com/daijro/camoufox), retrieved 2026-08-28, the named example
- Public patched-Firefox projects, retrieved 2026-08-28, the example
of an engine-level Firefox patch this page contrasts with `invisible_playwright`.
**See also:** [the three levels a stealth tool can work at](playwright-stealth-levels.md), [what CreepJS does to catch an override](creepjs-explained.md), [the ChromeDriver `cdc_` variable](cdc-variable-explained.md) for the same problem in a different place, and [whether stock Playwright sets navigator.webdriver to true](does-playwright-set-navigator-webdriver.md).
**See also:** [the three levels a stealth tool can work at](playwright-stealth-levels.md), [what a consistency checker does to catch an override](consistency-checker-explained.md), [the ChromeDriver `cdc_` variable](cdc-variable-explained.md) for the same problem in a different place, and [whether stock Playwright sets navigator.webdriver to true](does-playwright-set-navigator-webdriver.md).
---
+1 -1
View File
@@ -227,7 +227,7 @@ the browser side; the IP and the behaviour are still yours to supply.
- This project's own realness gates, which read permission state as one field among many
cross-checked against a stock Firefox rather than as a standalone pass.
**See also:** [how CreepJS decides you are lying](creepjs-explained.md) for the same
**See also:** [how a consistency checker decides you are lying](consistency-checker-explained.md) for the same
truth-versus-report logic at scale, [resist fingerprinting the honest way](resist-fingerprinting.md)
for why a genuine state beats a patched one, and [the checklist for being detected on one
site](playwright-detected-as-bot.md) for where the browser layer sits.
@@ -69,7 +69,7 @@ Distinct is easy. Distinct *and* consistent is the part that matters, because a
detector does not score a single value, it cross-checks values against each other. A
browser that reports one platform in its user agent, a GPU string from a different
platform, and a font list from a third is not a new identity, it is a broken one, and
[CreepJS records that kind of contradiction by name](creepjs-explained.md).
[a consistency checker records that kind of contradiction by name](consistency-checker-explained.md).
Deriving every field from one seed is what keeps a given agent coherent. The canvas
hash, the WebGL vendor and renderer, the screen geometry and the audio context are
+4 -4
View File
@@ -107,7 +107,7 @@ uses, plus a behavioral layer most of them skip:
over many of them.
None of this is exotic. It is the same fingerprint surface [BotD](botd-explained.md)
and [CreepJS](creepjs-explained.md) read, applied by a vendor with a server-side
and [a consistency checker](consistency-checker-explained.md) read, applied by a vendor with a server-side
risk model behind it instead of a public score.
## The press-and-hold challenge
@@ -135,8 +135,8 @@ of a spoofed return value, `navigator.webdriver` is whatever the engine actually
reports, built-in functions really do say `[native code]` because nothing
patched them from JavaScript, and the TLS/HTTP2 stack is a real Firefox network
stack rather than an imitation of one. That is the same "do not lie in
JavaScript" property covered at length on [how CreepJS decides you are
lying](creepjs-explained.md), and it is why passing this class of check is mostly
JavaScript" property covered at length on [how a consistency checker decides you are
lying](consistency-checker-explained.md), and it is why passing this class of check is mostly
a question of being the real thing rather than performing it.
Three things sit entirely outside what any browser engine can reach, and no
@@ -210,7 +210,7 @@ product, which this page does not do.
PerimeterX's technology was folded into HUMAN rather than kept as a separate
brand.
**See also:** [how CreepJS decides you are lying](creepjs-explained.md) for the
**See also:** [how a consistency checker decides you are lying](consistency-checker-explained.md) for the
same "do not lie in JavaScript" property applied to a public tool,
[mouse-dynamics behavioural biometrics](mouse-dynamics-behavioural-biometrics.md)
for the input-telemetry layer in depth, and [ASN and IP reputation in bot
+3 -1
View File
@@ -85,7 +85,9 @@ or microphone access:
address, the mechanism specified in
[draft-ietf-mmusic-mdns-ice-candidates](https://datatracker.ietf.org/doc/draft-ietf-mmusic-mdns-ice-candidates/).
Both are switched off together when a permission is present.
Both are switched off together when a permission is present. In this library the address
that then becomes readable is the declared home-network address drawn from the seed, never
the machine's own.
The critical detail is that the check counts a **persisted** permission, not only an
active capture. Granting camera access once on an origin, in a directory you then reuse,
+1 -1
View File
@@ -125,7 +125,7 @@ install` run" question specifically for the engine this project ships. It does n
change how Playwright itself resolves executables for any other browser, and the same
environment mismatches above (wrong OS in a Docker build, a filesystem that resets
between CI stages, missing system libraries) apply identically to any browser process
launched in that environment, patched or stock. Pointing `INVPW_BINARY_PATH` at a binary
launched in that environment, patched or stock. Passing `binary_path=` for a binary
you already manage yourself skips the automatic download entirely if your deployment
already solves this problem another way.
+1 -1
View File
@@ -149,7 +149,7 @@ the same shallow-probe-versus-real-usage gap in a different context.
retrieved 2026-08-28: where Playwright itself defines and ships the Juggler protocol
for Firefox, apart from the Chromium DevTools Protocol path.
- An independently reported case of the same failure shape on a different Juggler-based
Firefox fork: [camoufox issue #653](https://github.com/daijro/camoufox/issues/653),
Firefox fork: a public issue on another patched-Firefox project,
retrieved 2026-08-28, where a Playwright 1.61 viewport field arrived undeclared in
the bundled Juggler schema.
+3 -3
View File
@@ -102,8 +102,8 @@ with a German timezone. The second one is the mismatch that
[the timezone page](timezone-proxy-mismatch.md) is entirely about, and the recommended
proxy pattern created it.
The same applies to the locale, and to the public address reported through WebRTC, which
[has its own failure mode behind a proxy](webrtc-leak-proxy.md).
The same applies to the locale. WebRTC, by contrast, uses the proxy of each context for its
UDP, and [has its own failure mode behind a proxy](webrtc-leak-proxy.md).
If you use per-context proxies, you have to set `timezone_id` and `locale` per context to
match each proxy's country, by hand, and keep that mapping correct. Nothing does it for
@@ -194,7 +194,7 @@ and [Playwright SOCKS5 proxy with authentication](playwright-socks5-proxy-authen
listed above: [MDN: hardwareConcurrency](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency),
[MDN: deviceMemory](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory).
- The surfaces listed above are each documented on their own page, linked in place.
- This project resolves the timezone, locale and WebRTC exit address from one lookup per
- This project resolves the timezone and locale from one lookup per
launch, which is why one identity is one launch here.
---
+7 -8
View File
@@ -73,8 +73,8 @@ normal.
Change the values in the browser's C++ source, compile, and ship the binary.
**Tools:** [Camoufox](vs-camoufox.md), and `invisible_playwright`, which I
maintain. Both are patched Firefox builds.
**Tools:** `invisible_playwright`, which I
maintain, and other patched Firefox builds.
**What it fixes:** the distinction between a spoofed value and a real one
disappears, because the engine reports through the same native code path a normal
@@ -141,7 +141,7 @@ Not by star count. By this order of questions:
about it. Level 1 shipped today beats level 3 abandoned in three months.
And whichever you pick, measure it yourself. Run one of the open test suites,
[CreepJS](creepjs-explained.md) or [BotD](botd-explained.md) or [sannysoft](sannysoft-explained.md), and read the whole report instead of the headline. The
[a consistency checker](consistency-checker-explained.md) or [BotD](botd-explained.md) or a basic bot-test page, and read the whole report instead of the headline. The
published comparisons in this space are mostly written by companies selling a
managed alternative, and the ones that are not are usually a single run on a single
machine from a single IP. Your setup is not their setup.
@@ -191,16 +191,15 @@ choosing, because the honest answer is usually lower than the marketing suggests
- rebrowser-patches' own GitHub repository,
[rebrowser/rebrowser-patches](https://github.com/rebrowser/rebrowser-patches),
read 2026-08-30, for the same CDP fix, reached independently of Patchright.
- Camoufox's own GitHub repository,
[daijro/camoufox](https://github.com/daijro/camoufox),
read 2026-08-30, for its own C++-level patching of a Firefox fork.
- The three test suites named above: [CreepJS](https://github.com/abrahamjuliot/creepjs),
- The public repositories of other patched-Firefox projects,
read 2026-08-30, for their own C++-level patching of a Firefox fork.
- The three test suites named above: a consistency checker,
[BotD](https://github.com/fingerprintjs/BotD) and
[sannysoft](https://bot.sannysoft.com/), read 2026-08-30.
- This project's own early fingerprint data, where the software-renderer GPU string
mistake described above was found.
**See also:** [how CreepJS detects tampering](creepjs-explained.md), which explains why level one has a ceiling, and [WebGL renderer strings](webgl-renderer-strings.md) for a surface no level reaches by lying.
**See also:** [how a consistency checker detects tampering](consistency-checker-explained.md), which explains why level one has a ceiling, and [WebGL renderer strings](webgl-renderer-strings.md) for a surface no level reaches by lying.
---
@@ -1,15 +1,15 @@
---
title: "What BrowserLeaks actually tests, surface by surface"
description: "What BrowserLeaks tests, surface by surface: canvas hash, WebGL, WebRTC, fonts, ClientRects. Why a unique panel is not a fail, and the miss it never flags."
title: "What a raw-value inspector actually tests, surface by surface"
description: "What a raw-value inspector tests, surface by surface: canvas hash, WebGL, WebRTC, fonts, ClientRects. Why a unique panel is not a fail, and the miss it never flags."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 7
---
# What BrowserLeaks actually tests, surface by surface
# What a raw-value inspector actually tests, surface by surface
BrowserLeaks is the tool people reach for when they want to see a number rather than
A raw-value inspector is the tool people reach for when they want to see a number rather than
read a verdict. It prints the raw value of each browser surface - the canvas hash, the
WebGL parameter block, the WebRTC candidate addresses, the installed font list, the
ClientRects geometry - each on its own page.
@@ -18,25 +18,25 @@ That design is its strength and the source of most of the panic it causes. It sh
everything and scores none of it. So the panel that lights up red and says "unique" is
the one everybody worries about, while the thing that actually gets a session flagged -
two panels that quietly contradict each other - is displayed in plain text and never
called out, because BrowserLeaks does not compare its own pages to one another.
called out, because a raw-value inspector does not compare its own pages to one another.
This page is what each surface measures, why "unique" is not the alarm it looks like,
and how to read the tool for the failure it will not point at.
## A raw-value inspector, not a scorer
BrowserLeaks reads each browser surface and prints its raw value; it does not judge whether the values are coherent. It shows the canvas hash, the WebGL block, the font list and how rare each is in its sample, but it never cross-checks one surface against another and never hands you a trust score. That is the distinction that makes it useful, and the one people miss.
A raw-value inspector reads each browser surface and prints its raw value; it does not judge whether the values are coherent. It shows the canvas hash, the WebGL block, the font list and how rare each is in its sample, but it never cross-checks one surface against another and never hands you a trust score. That is the distinction that makes it useful, and the one people miss.
[CreepJS asks whether you are lying](creepjs-explained.md): it takes a clean copy of the
[a consistency checker asks whether you are lying](consistency-checker-explained.md): it takes a clean copy of the
built-ins, walks descriptors and prototypes, and cross-checks every surface against
every other one, then hands you a single trust score. BrowserLeaks does none of that. It
every other one, then hands you a single trust score. A raw-value inspector does none of that. It
reads a value, hashes it if it is a bitmap, tells you how rare that exact value is in its
own visitor sample, and moves on to the next page.
That means two things. First, a "unique" result on any single BrowserLeaks page is a
That means two things. First, a "unique" result on any single raw-value inspector page is a
statement about rarity in their sample, not about whether your browser is coherent. A
perfectly real, perfectly consistent machine can be unique. Second, and this is the part
that matters, BrowserLeaks will show you a Windows font list on one page and a WebGL
that matters, a raw-value inspector will show you a Windows font list on one page and a WebGL
renderer that no Windows machine ships on another, side by side, both green, and say
nothing - because it has no page that reads both. The contradiction is on screen. The
tool just is not looking for it.
@@ -49,13 +49,13 @@ most of why people get confused.
- **Canvas.** Draws text and shapes to a `<canvas>`, reads the pixels back, and hashes
them. The hash is a fingerprint of how your specific GPU, driver and font stack
rasterize that exact drawing. It is not a property you can set; it is
[a readback of what the machine actually painted](browserleaks-canvas-webgl-hash.md).
[a readback of what the machine actually painted](canvas-webgl-readback-hash-explained.md).
- **WebGL.** Two things on one page: the
[`UNMASKED_VENDOR_WEBGL` / `UNMASKED_RENDERER_WEBGL`](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info)
strings, and a long block of numeric limits (max texture size, shader precision
ranges, supported extensions). The strings are the famous part; the numeric block is
the part that has to agree with them, and a disagreement is a contradiction a scoring
detector catches even though BrowserLeaks prints both without comment.
detector catches even though a raw-value inspector prints both without comment.
- **WebRTC.** Asks the browser to gather ICE candidates and prints the addresses it
finds. This is where a proxied browser can leak the real local address next to the
proxy exit, or [return nothing at all, which is its own tell](webrtc-leak-proxy.md).
@@ -100,7 +100,7 @@ randomized per call or collapsed onto the software default.
## The risk it shows but never flags: two panels that disagree
Here is the thing BrowserLeaks displays and will never point at, and it is the thing a
Here is the thing a raw-value inspector displays and will never point at, and it is the thing a
real scoring detector fails you on.
Every surface on the site carries an implicit claim about the same machine. The user
@@ -110,7 +110,7 @@ rasterization stack. On a real browser these all describe one coherent computer.
patched-together disguise they describe two or three different ones, and each individual
page still looks fine on its own.
BrowserLeaks will happily show you:
A raw-value inspector will happily show you:
- A user agent claiming Windows, and a font page missing the fonts every Windows install
ships.
@@ -120,19 +120,19 @@ BrowserLeaks will happily show you:
- A WebRTC page reporting a timezone-consistent exit, and a geolocation page a continent
away.
None of those triggers a warning on BrowserLeaks, because no page reads another page.
CreepJS would collapse your trust score on any one of them. This is exactly the gap the
None of those triggers a warning on a raw-value inspector, because no page reads another page.
A consistency checker would collapse your trust score on any one of them. This is exactly the gap the
comparison method in [how to test whether your browser is detected](how-to-test-bot-detection.md)
exists to close: the tool gives you the raw values, and it is on you to check that they
agree, because it will not.
The practical consequence: do not read BrowserLeaks page by page and tick each one green.
The practical consequence: do not read a raw-value inspector page by page and tick each one green.
Read the values across pages as a set and ask whether one machine could produce all of
them. That is the check the site skips.
## Reading BrowserLeaks with the product, twice and against a stock browser
## Reading a raw-value inspector with the product, twice and against a stock browser
The way to use BrowserLeaks well is to automate the cross-check it does not do: read the
The way to use a raw-value inspector well is to automate the cross-check it does not do: read the
same surface twice for stability, and read the surfaces together for coherence.
Switching from plain Playwright is a two-line change, and the returned object is a real
@@ -142,13 +142,17 @@ Playwright `Browser` with every standard method:
from invisible_playwright import InvisiblePlaywright
# seed fixed, so every surface is reproducible and a failing run can be replayed
# base URL of any public per-surface inspector you choose; the selectors below
# are placeholders, adapt them to that site's markup
INSPECTOR = "https://inspector.example"
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
# 1. Stability: read the canvas signature twice. A real GPU is deterministic,
# so these two hashes must be identical. If they differ, something is
# adding per-call noise, which is a tell in its own right.
page.goto("https://browserleaks.com/canvas")
page.goto(INSPECTOR + "/canvas")
first = page.locator("#canvas-hash").inner_text()
page.reload()
second = page.locator("#canvas-hash").inner_text()
@@ -156,17 +160,17 @@ with InvisiblePlaywright(seed=42) as browser:
# 2. Coherence: pull the WebGL renderer string and the font list, then check
# they tell the same story about one machine.
page.goto("https://browserleaks.com/webgl")
page.goto(INSPECTOR + "/webgl")
renderer = page.locator("#UNMASKED_RENDERER_WEBGL").inner_text()
print("WebGL renderer:", renderer)
page.goto("https://browserleaks.com/fonts")
page.goto(INSPECTOR + "/fonts")
print("fonts detected:", page.locator("#fonts-metrics-report").inner_text())
```
Two rules turn that from a screenshot into a test.
First, assert presence, not absence. A BrowserLeaks page that comes back empty, blocked
First, assert presence, not absence. A raw-value inspector page that comes back empty, blocked
or still spinning is a failure, not a clean pass - the WebRTC page returning no candidates
at all reads as clean to a naive check and as suspicious to a real detector.
@@ -180,7 +184,7 @@ other than the exit address is your candidate, whatever colour the panel is.
## Conclusion
BrowserLeaks is the right tool for reading a specific surface and the wrong tool for
A raw-value inspector is the right tool for reading a specific surface and the wrong tool for
deciding whether you are safe. It prints raw values page by page and scores none of them,
so the "unique" canvas panel that scares people is usually just real hardware behaving
normally, while the failure that actually matters - two panels describing two different
@@ -188,27 +192,27 @@ machines - is on screen in plain text with no warning attached.
Read it as a set, not a stack of independent verdicts. Check that each value is stable on
a re-read, check that the values across pages could all come from one computer, and diff
the whole thing against a stock browser. Do that and BrowserLeaks becomes a precise
the whole thing against a stock browser. Do that and a raw-value inspector becomes a precise
instrument. Read it panel by panel and it will scare you about the wrong number and stay
silent about the right one.
## Short answers to the questions that lead here
**BrowserLeaks says my canvas is unique - am I detected?** Almost certainly not.
**A raw-value inspector says my canvas is unique - am I detected?** Almost certainly not.
Uniqueness is the baseline for real hardware, which rasterizes in a way few other
visitors share. The tell is the opposite: a hash that changes every read, or one that
matches thousands of others exactly.
**Does BrowserLeaks give a bot score?** No. It is a raw-value inspector. It prints each
surface and how rare it is, but it never scores cross-surface consistency the way CreepJS
**Does a raw-value inspector give a bot score?** No. It is a raw-value inspector. It prints each
surface and how rare it is, but it never scores cross-surface consistency the way a consistency checker
does, so it cannot tell you whether your surfaces agree with each other.
**Why does BrowserLeaks look clean but I still get blocked?** Because it showed you values
**Why does a raw-value inspector look clean but I still get blocked?** Because it showed you values
that individually look fine and never checked that they describe one machine. A Windows
user agent with a Linux font list passes every BrowserLeaks page and fails a real
user agent with a Linux font list passes every raw-value inspector page and fails a real
detector.
**Which BrowserLeaks page matters most?** None alone. The value is reading them together:
**Which raw-value inspector page matters most?** None alone. The value is reading them together:
the canvas, WebGL, font and WebRTC pages have to tell the same story about one computer.
**How do I know if my canvas hash is randomized?** Load the canvas page twice. A real GPU
@@ -221,26 +225,18 @@ datacenter. You want a stable, hardware-shaped, unique value, not a popular one.
## Sources
- BrowserLeaks' own test pages named above, retrieved 2026-08-28:
[browserleaks.com/canvas](https://browserleaks.com/canvas),
[browserleaks.com/webgl](https://browserleaks.com/webgl),
[browserleaks.com/webrtc](https://browserleaks.com/webrtc),
[browserleaks.com/fonts](https://browserleaks.com/fonts),
[browserleaks.com/rects](https://browserleaks.com/rects) (ClientRects),
[browserleaks.com/tls](https://browserleaks.com/tls),
[browserleaks.com/ip](https://browserleaks.com/ip) (HTTP headers),
[browserleaks.com/geo](https://browserleaks.com/geo), and
[browserleaks.com/dns](https://browserleaks.com/dns), each read from its own page
rather than from a summary score.
- The per-surface test pages of public raw-value inspectors (canvas, WebGL, WebRTC,
fonts, ClientRects, TLS, HTTP headers, geolocation, DNS), retrieved 2026-08-28, each read
from its own page rather than from a summary score.
- This project's release gates, including the WebRTC gate whose absence-only assertions
passed a feature that returned nothing, and the seed-derived canvas readback checked for
stability across reads.
- [CreepJS's own source](https://github.com/abrahamjuliot/creepjs), for the cross-surface
trust score this page contrasts against BrowserLeaks' page-by-page raw values; the rest
- A consistency checker's own source, for the cross-surface
trust score this page contrasts against a raw-value inspector's page-by-page raw values; the rest
of the companion detector pages in this set, read from each tool's own behaviour.
**See also:** [how CreepJS scores the cross-surface consistency BrowserLeaks skips](creepjs-explained.md),
[what the canvas and WebGL hash actually measures](browserleaks-canvas-webgl-hash.md), and
**See also:** [how a consistency checker scores the cross-surface consistency a raw-value inspector skips](consistency-checker-explained.md),
[what the canvas and WebGL hash actually measures](canvas-webgl-readback-hash-explained.md), and
[the comparison method that catches contradictions no single panel flags](how-to-test-bot-detection.md).
---
+1 -1
View File
@@ -65,7 +65,7 @@ Nothing about Enterprise's extra machinery changes what a browser engine can hon
**Does a real browser engine answer Enterprise's assessment any differently than v3's?** No. Both sit on the same underlying score, and the reasoning that already applies to v3, engine realness clears fingerprint-level suspicion, not history-based suspicion, applies to Enterprise's score component unchanged. Account Defender is outside what any browser engine can address at all.
**See also:** [reCAPTCHA v3 score: why a fresh browser scores badly](recaptcha-v3-score.md) for the underlying scoring mechanism this page builds on, and [browser trust scores explained](browser-trust-score-explained.md) for how a reCAPTCHA-style score differs from a CreepJS-style consistency check.
**See also:** [reCAPTCHA v3 score: why a fresh browser scores badly](recaptcha-v3-score.md) for the underlying scoring mechanism this page builds on, and [browser trust scores explained](browser-trust-score-explained.md) for how a reCAPTCHA-style score differs from a consistency-checker-style consistency check.
## Sources
+1 -1
View File
@@ -55,7 +55,7 @@ claims and the hardware that drew this image are not the same hardware".
Everything else in a fingerprint is a value you can set. This one is an *output*.
A renderer string is a string. A [canvas hash](browserleaks-canvas-webgl-hash.md) is
A renderer string is a string. A [canvas hash](canvas-webgl-readback-hash-explained.md) is
the result of running a rasteriser over a shape, and to change it consistently you have
to change the rasteriser or the machine. That is why:
@@ -147,7 +147,7 @@ given block.
timing.** Those you supply: a clean proxy, human pacing, sane request volume. A stable
fingerprint does nothing about a hundred requests a minute from one exit.
- **Consistency still needs the exit to agree with the device.** The seed fixes the
browser's timezone, but a CreepJS-style consistency check compares that timezone
browser's timezone, but a consistency-checker-style consistency check compares that timezone
against your exit IP. If the proxy egresses on another continent, the two disagree and
you are flagged for a mismatch, seed or no seed. Let the timezone follow the egress IP,
or set it to match, as covered in [configuration](configuration.md) and in the
+1 -1
View File
@@ -155,7 +155,7 @@ machine derived from a seed, and leaves the mode off.
- This project's own default preferences, for the five values it sets to `false` and
why the seeded profile is used instead.
**See also:** [how CreepJS decides you are lying](creepjs-explained.md), whose `resistance` module exists to identify this mode, and [the three levels](playwright-stealth-levels.md).
**See also:** [how a consistency checker decides you are lying](consistency-checker-explained.md), whose `resistance` module exists to identify this mode, and [the three levels](playwright-stealth-levels.md).
---
@@ -211,7 +211,7 @@ That single package covers both the automatic virtual display and manual `xvfb-r
Firefox in headed mode, and refuses with an install hint when the package is absent.
- The project's fingerprint, TLS and driver patches, which are what clear the detectors
independently of the display mode, verified against the public detection suites
(CreepJS, BotD, FingerprintJS, sannysoft, BrowserLeaks).
(a consistency checker, BotD, an open-source fingerprinting library, a basic bot-test page, a raw-value inspector).
- Playwright's own [`Browser` class API](https://playwright.dev/python/docs/api/class-browser),
which every method on the `browser` object above implements unchanged.
@@ -108,7 +108,7 @@ is on the [installation](installation.md) page.
that path is one the cache action restores. On a corporate or rate-limited runner that
refuses anonymous GitHub downloads, `STEALTHFOX_GITHUB_TOKEN` lets the fetch authenticate;
both variables are documented in [configuration](configuration.md). If you already ship a
binary in the image, `INVPW_BINARY_PATH` skips the download entirely.
binary in the image, `binary_path=` skips the download entirely.
## The real limiting factor: the runner's IP
@@ -218,7 +218,7 @@ and none is needed.
## Sources
- This project's own CI runs and the documented environment variables
(`INVISIBLE_PLAYWRIGHT_CACHE_DIR`, `STEALTHFOX_GITHUB_TOKEN`, `INVPW_BINARY_PATH`) on
(`INVISIBLE_PLAYWRIGHT_CACHE_DIR`, `STEALTHFOX_GITHUB_TOKEN`) on
the [configuration](configuration.md) page.
- The exit-address reading taken from inside a headless runner job, compared against the
same script run from a residential connection.
@@ -100,7 +100,7 @@ This is not hypothetical fussiness. Fixed-interval access is one of the cheapest
things to measure on the receiving end - it needs no JavaScript, no challenge, just
timestamps you were already logging. It survives a proxy rotation, because rotating
the exit IP does not change *when* the requests come. And it is invisible to every
in-page test you can run against yourself: [sannysoft, CreepJS, BotD and BrowserLeaks
in-page test you can run against yourself: [a basic bot-test page, a consistency checker, BotD and a raw-value inspector
all read one moment](how-to-test-bot-detection.md) and have nothing to say about the
shape of a week.
+1 -1
View File
@@ -15,7 +15,7 @@ write-ups that rank for this topic.
The first is that a service worker is **state that outlives the thing you used to clear
state**. Clearing cookies does not unregister it. The second is that turning them off,
which several automation stacks do by default, removes a capability every real browser
has, and [suppression is its own signal](creepjs-explained.md).
has, and [suppression is its own signal](consistency-checker-explained.md).
This page is what partitioning changed, why a registered worker is stickier than a
cookie, what blocking costs, what a browser context does and does not separate, and how
+1 -1
View File
@@ -123,7 +123,7 @@ invisible_playwright is built to **look like a real browser driven by a real per
That is why it passes most detection checks: the fingerprint surface (GPU, audio, fonts,
canvas, screen - roughly 400 fields), the TLS handshake and the driver layer all read as
a genuine Firefox rather than an automated one. `navigator.webdriver` is absent, not set
to `false`. Against the public suites - [CreepJS](creepjs-explained.md), BotD,
to `false`. Against the public suites - [a consistency checker](consistency-checker-explained.md), BotD,
FingerprintJS, sannysoft - that is what moves a score.
What the swap does **not** touch:
Loaded 100 of 456 files, more files were not shown because too many files have changed in this diff. Show more