Compare commits

...
Author SHA1 Message Date
feder-cr 11db0d50b5 tests: characterize the declared WebGL parameters and the shader language on firefox-68 2026-11-21 20:52:05 +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 aa53d6ea06 tests: the page-bytes probe reads WebGPU features and limits by name
Array.from(adapter.features) and for-in over adapter.limits threw "Xray wrapping of iterators not
supported" in the page (run 43652292533), so the reference held an error string instead of the
adapter. Both are read by the names of the WebGPU specification (has, a property read). The
Windows reference drops gpu.webgpu.error; features and limits are recorded with the rest.
2026-11-15 01:54:44 +01:00
feder-cr 4b2fb63fe6 tests: software compositing is declared: the compositor, the GPU process CPU and the bytes a page reads
The core now declares software compositing on every machine (the compositing entries of the
feature-status table carry the VM decision; on Windows gfx.webrender.software=true and
gfx.webrender.software.d3d11=false). One e2e file, three tests, Linux and Windows:

1. windowUtils.layerManagerType of the engine's windows, read in chrome scope through Marionette,
   is "WebRender (Software)" (Troubleshoot.snapshot().graphics throws on this engine, so the
   provider's own two properties are read), and the declared table and prefs say so;
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);
3. the 86 keys of the page-bytes probe plus canvas 2D scenes added for the canvas blocklist
   (drawImage scaled with smoothing off/low/medium/high, text with linear/radial/conic gradients)
   equal tests/data/page_bytes_<os>.json, PNGs compared on decoded pixels (every PNG carries a
   per-launch deBG chunk).

The Windows reference is taken from run 43652292533 (75 stable keys, 6 of the 11 PNG keys); what it
lacks is recorded by the first run on the engine of the reference, whose failure prints the entries.
Registered as wrapper.e2e.compositing (G2, both systems, 3 tests) and wrapper.unit.compositing (G1,
17 tests, the helpers on known inputs).
2026-11-15 01:53:32 +01:00
Federico Elia 83afc6c8d5 tests: the leak census imports nothing of the package (#500)
The census answers from sys.modules, so the jobs that install pytest alone (version) do not import the core.
2026-11-15 00:39:24 +01:00
feder-cr 163315c114 tests: the leak census imports nothing when no starter could have been built, so it runs in jobs without invisible_core 2026-11-15 00:26:20 +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
Federico Elia 91e69710eb perf: connect() starts no thread on the event loop (#497)
The four workers of a connection are built on the loop and started by the connection's one thread starter, the same one the engine's reader uses.
2026-11-15 00:07:27 +01:00
feder-cr cf328bf481 perf: one ThreadStarter per connection, owned by the server
The previous commit gave each browser two starter threads (the
BrowserDispatcher's for the reader, the transport's for the workers). Now the
connection's server (dispatcher.Server) owns a single ThreadStarter, built on
first use (Server.thread_starter) and stopped once, in Server.shutdown, which
the transport's request_stop already calls.

The transport starts its four workers through it (start_built, with a
per-thread failure callback that ends the transport). BrowserDispatcher holds
a ThreadStarterLease on it instead of building a starter: start() while the
browser's connection lives, nothing after the connection's close listener ran,
the same semantics the browser's own starter had. A browser that never needs a
thread makes none.

Remote: remote._SharedServer is a Server, so the shared server owns the one
starter (one browser per served launch; contexts and clients come and go under
it, shutdown ends it). Several browsers launched under one local server share
the one thread, which is why the lease, not the starter, ends with a browser's
connection.

Measured, live threads per browser right after a launch (transport.connect, a
BrowserDispatcher over the unit fixture's engine, one adoption started):
65b7a3c: 6 (invpw-thread-starter x2, juggler x4); now: 5 (starter x1,
juggler x4). Same at 4 browsers: 24 -> 20. All gone after close.

Tests that built a Server and only closed the connection now shut the server
down; the fake servers of the transport tests derive from Server.
2026-11-14 23:54:52 +01:00
feder-cr 65b7a3c3bc tests: the census counts a ThreadStarter from its construction, not from its thread
ThreadStarter now begins its own thread without waiting for it
(_thread.start_new_thread running Thread.start), so right after the constructor
the starter can be in no threading.enumerate(). The census of live
"invpw-thread-starter" threads then saw 0 leaks where a module built 2 (Linux
runner, 3 of 3 jobs: the inner pytest passed). Not a rename, not a wrong
count: a census of threads cannot see a thread that has not begun.

Fix at the source of the count: ThreadStarter keeps the set of starters built
and not yet ended (open_starters()), and the census counts that. The "no
Thread.start on the caller" guarantee is untouched.

Test, red on the old census (Thread.start slowed to 300 ms: the census sees 0
right after the constructor, expected 1): the census counts a starter whose
thread has not begun.
2026-11-14 23:30:58 +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 05190ed5e9 comment: the starter is called ThreadStarter now 2026-11-14 22:52:58 +01:00
feder-cr cfbf1889a8 perf: one ThreadStarter, shared, for the reader and for the transport's workers
Replaces the second bootstrapper (_thread.start_new_thread running a loop that
starts the workers) with the ThreadStarter the engine's reader already uses, so
one mechanism lives in one place: src/invisible_playwright/_juggler/_threads.py,
imported by server.py and transport.py.

ThreadStarter's own construction no longer calls Thread.start on its caller
either: its thread is begun by _thread.start_new_thread running Thread.start, so
the wait for the starter to run happens on that raw thread. It is still a
threading.Thread named invpw-thread-starter (alive a moment after the
constructor returns). connect() builds the four juggler-N threads, queues them
with start_built() and returns; request_stop stops the starter; a start that
fails ends the transport.

Tests: the connect() test stays red on origin/main (1202 ms against the 50 ms
bound) and a new one covers building the starter with Thread.start slowed to
300 ms. The two tests that import the starter now import it from _threads.
2026-11-14 22:52:50 +01:00
feder-cr 2d2204898e perf: InProcessTransport.connect starts no thread on the event loop
connect() is a coroutine of the user's loop and Thread.start() blocks until
the new thread runs. Measured on Windows CI (py-spy, 4 browsers in one
process under CPU load), the 4 "juggler-N" starts held the loop ~200 ms per
launch, 4.4% of the main thread's wall time.

Shape: connect() only BUILDS the 4 Thread objects (so request_stop still
puts one sentinel per worker) and begins one bootstrapper with
_thread.start_new_thread, which returns once the OS made the thread and
waits for nothing. A threading.Thread for the bootstrapper would be one more
Thread.start on the loop, so it is not used. The bootstrapper starts the
workers. Messages sent before a worker runs wait in the queue, as send()
already relied on; replies are matched by id, so no ordering is lost.

Workers are not reduced: a blocking operation must not hold up the others,
and nothing in the code or tests proves fewer suffice. A start that fails
stops the transport instead of leaving calls waiting; wait_until_stopped
joins only workers that were started.

Test (red on old code: connect took 1202 ms vs the 50 ms bound with
Thread.start slowed to 300 ms): tests/test_connect_does_not_start_threads_on_the_loop.py.
2026-11-14 22:52:35 +01:00
feder-cr 384351d4a3 Release 0.52.1: expose_function/expose_binding, element screenshot, init script once, CORS preflight not reported 2026-11-14 21:23:50 +01:00
feder-cr a14da2127e Merge #468 into release/0.52.1 2026-11-14 21:23:24 +01:00
feder-cr b60b5c5e8c Merge #471 into release/0.52.1
# Conflicts:
#	CHANGELOG.md
2026-11-14 21:23:24 +01:00
feder-cr 252036e2fc Merge #470 into release/0.52.1
# Conflicts:
#	CHANGELOG.md
2026-11-14 21:23:23 +01:00
feder-cr 0f7a9a2905 Merge #469 into release/0.52.1
# Conflicts:
#	CHANGELOG.md
2026-11-14 21:23:22 +01:00
feder-cr 112467f5ad Merge #467 into release/0.52.1
# Conflicts:
#	CHANGELOG.md
2026-11-14 21:23:21 +01:00
feder-cr 22d8abc9ba Merge #458 into release/0.52.1 2026-11-14 21:23:12 +01:00
feder-cr a743dbbbf7 tests: the relay page waits for the frame it writes to
The two sibling frames load in two processes, in no fixed order. The top page
relayed the first frame's message at once, and when the second frame's document
was not there yet the message was lost, as it would be in any browser: one CI
run in three never saw the answer. The top now holds a message until the load
event of the frame it is for.
2026-11-14 21:23:11 +01:00
feder-cr f7873501e2 tests: the cross-site iframe proof reads the frame after the page's load, not its domcontentloaded
The domcontentloaded of a page says nothing about its frames: the url of a frame of another site is
the url of its navigation, which commits in the frame's own process, usually after it. Read straight
after a domcontentloaded goto the url was empty in 26 of 30 reads on firefox-62 and in 5 of 21 runs of
the test; after the load of the page it was there 30 of 30, on stock Firefox too. The test now goes to
the page with the default load and asserts the url with no wait.
2026-11-14 21:23:11 +01:00
feder-cr bcf47c7dde tests: the frame of B reads its own partition, not an empty one
The reverse half of the partition test expected an empty cookie string in the
frame of B inside A. The frame has its own partition, and the two cookies it
wrote earlier in the test are in it: what must be absent is what B wrote as a
top page. The first CI run showed it; the first half already passed there.
2026-11-14 21:23:11 +01:00
feder-cr fcfbed215e tests: site B's storage is partitioned between a frame of A and B as a top page (retail outcome)
The reference for what a page reads is retail Firefox, which partitions cookies and storage by
top-level site; Playwright's own Firefox has that off. The test now asserts that B opened as a top
page sees an empty document.cookie and a null localStorage item for what B wrote inside a frame of A
(context.cookies() still lists B's cookies), and the reverse.
2026-11-14 21:23:11 +01:00
feder-cr b0b4f02d7c tests: end-to-end tests for iframes under Fission, and a cross-site harness for the cross-origin file
New files hold the gaps of the frame tests, each with a proof that the frame is in another
process: the frame tree A > B > A > C, typing and waits, clicks under a transform and after
scrolling, screenshots; routes, exposed functions, init scripts, postMessage; dialogs,
downloads and popups started in a frame; workers, storage and special frames; history and
processes left behind by a closed context. tests/_fission_frames.py holds the three sites
(127.0.0.1, localhost, 127.0.0.2) and the process proof they share.

test_cross_origin_iframe.py now serves its iframes from localhost while the page stays on
127.0.0.1 (two ports of one host are one site and never crossed a process), and proves it.
2026-11-14 21:23:11 +01:00
feder-cr d842a35ffa page.expose_function / expose_binding and context.expose_function / expose_binding
All four were refused ("not wired", "no method 'exposeBinding'"). The page calls a Python function and gets a promise: the value, a
rejection when the Python function raised, an await when it is async.

The page sees the function and nothing else. One engine binding per exposed name (Browser.addBinding for a context, Page.addBinding for
a page), under a native name chosen per session. The engine puts the native function on the window of every document, present and future,
in every process, before any script of the page, and runs the binding's script. The script takes the native function off the window, keeps
it in a closure, defines the function (an ordinary function; its source says nothing of what it is for) and hands the engine the function
that answers a call. Answers go through Runtime.callFunction on it. No init script, no controller, nothing run by this server in the
documents.

An engine without Page.addBinding and the binding that hands its end over is refused with a clear sentence: there is no fallback to a name
on the window. The engine is read from its own files (protocol schema and Runtime).

Calls are announced to the client in order by one worker per page, started by the browser's thread starter (never on the reader), and not
before the client has been told the address of the document that called: a script that calls the function in its first lines ran before the
commit reached the client and named a frame with an empty url. A name nobody exposed here is answered with an error instead of leaving the
page's promise waiting.

Limit: arguments and results cross as JSON (undefined, functions and NaN arrive as null).

Tests: e2e (before the load and across a navigation, after the load, async and a Python error, source page/frame, not on another page, on
the context for a page that exists, a page to come and their frames, disposed; the window of a page with an exposed function has its name
more and no symbol more, in the top, in a frame of another site, in a nested one, after a navigation and after document.open(); name, length,
own properties, descriptor, prototype and place among the keys are those of a function the page defined; neither its source nor the stack of an
error raised from it names the driver; a worker gets nothing) and the refusal of an engine that lacks what the functions need.
2026-11-14 20:07:15 +01:00
feder-cr 1832ea6323 Locator.screenshot / ElementHandle.screenshot: a picture of the element
The wrapper had no `screenshot` on an element handle ("ElementHandle has no method 'screenshot'"). The element is scrolled in, its box is
read from the engine's content quads (the main frame's viewport space, whatever frame the element is in, across processes), the main
frame's scroll is added to reach document coordinates, and the page's own screenshot takes that rectangle, so the type, the quality and
the scale have one path. An element with no layout box (display: none, detached) answers "Element is not visible".

Tests: an element in view, one far below the fold, one inside a frame below that frame's fold, and the <iframe> element itself; the
element that is not there. The Fission frame tests for a frame of another site, a nested one and the <iframe> element (draft #468) pass:
4 of 4 (3 were red on main).
2026-11-14 20:07:12 +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
Federico Elia b14d1deacd docs: canvas page says what holds across OSes, not byte-identical hashes (#452) 2026-11-14 18:31:06 +01:00
Federico Elia 0aae7f73f1 e2e: the dot() vectors reach the page as float bits, so the zeros keep their signs (#434)
The vendored client sends every Python 0.0 as -0 (value == float('-0') is true for both zeros), so the 64 rows of zeros of both signs reached the page with the wrong signs and the Windows gate failed on those lanes only (dot2 21, dot3 10, dot4 6 of 4096, all at indices >= 4032; the random lanes all matched the chain).
2026-11-14 18:31:00 +01:00
feder-cr 1b974cd964 A context init script added after a page exists runs once, not twice
op_context_init_script registered the script on both sides: in the browser (Browser.setInitScripts, which the engine applies to every
page of the context, the pages already open included) and again in the own list of each open page. The comment said the open pages
do not re-read the context's list; they do. A page that existed when the script was added ran it twice in every later document; a
page opened afterwards ran it once, so any test that adds the script first passed. Found by the Fission frame tests (the document of
the top page saw ["init","init"]).

The script is registered once, in the browser, and removed from there. Test (e2e, hermetic): a page that exists before the script and
one opened after it each see ["init"], in the first document and in the next one. Red on the old code (['init', 'init']).
2026-11-14 16:06:13 +01:00
feder-cr 2c8bfa12da A CORS preflight is not a request the client hears of, as on stock Firefox
Playwright's own server drops an OPTIONS request that no route holds before the client can see it (ffNetworkManager
_onRequestWillBeSent: `if (event.method === "OPTIONS" && !event.isIntercepted) return;`). Ours reported it: a page with
preflighted fetches showed more requests than on stock Firefox, 10 OPTIONS a page on cnbc.com and 18 on scmp.com (three
pairs, our engine and Playwright's Firefox side by side), in page.on("request"), in a route and in any request counter.

The server drops the same requests now, at the place where the event is turned into a request of the client; the response and the
end of a dropped request find no request and are dropped with it.

Test (e2e): a page at one origin fetches another with a header that needs a preflight; the client hears the document and the two
fetches and no OPTIONS, with and without a context route. Red before.
2026-11-14 16:06:13 +01:00
feder-cr 8d48c4a472 Remove scripts that no test round runs
- scripts/check_unresolved_names.py: replaced by the ruff F821/F811/F601 step in .github/workflows/tests.yml.
- scripts/bench_transport.py: one-off measurement that asserts nothing.
- scripts/diff_protocol.py: needs the Node driver arm, which was removed.
- scripts/judge_both_transports.py: needs the Node driver arm, which was removed.
- tests/gates/prefs_byte_parity.py: compares with the removed driver's prefs writer.
- tests/gates/driver_prefs_rules.json: frozen rules for that comparison, nothing else reads it.

References to these files in comments, docstrings and THIRD_PARTY_FORK.md are reworded.
2026-11-14 16:00:58 +01:00
Federico Elia 9d217c4911 tests: the census counts its own server, and a module that leaves a browser open fails (#493)
* tests: the census of a closed context counts only its own server's objects

* tests: a module that leaves a browser open fails, and the unit tests that leaked close theirs

A BrowserDispatcher starts the thread "invpw-thread-starter" and stops it only when its connection's close listeners fire. A unit test that
builds one on a fake connection and never closes it left the thread alive, and with it the connection, the browser and every context for the
rest of the worker (23 files, 635 threads in one of them).

- tests/_browser_census.py, registered in conftest.py: a module-scoped autouse check. When the last test of a module has torn down, the live
  starters must be back to what they were before it (a short join: stop is asynchronous), else the module errors with "left N browser(s)
  open: close their connection". Module level, so a module-scoped browser is fine.
- tests/test_a_module_that_leaves_a_browser_open_fails.py: red on a module that leaks, green on one that closes and on one that shares a
  browser through a module fixture.
- the fake connections of the leaking files register themselves with closes_with_the_test(self) in their __init__; an autouse fixture ends
  them when the test ends with announce_closed(), the real path: it fires the close listeners the dispatcher registered. Nothing intercepts
  the starter, so a test that builds a browser on a connection it did not register still leaves the thread and the module check says so.
2026-11-14 14:25:14 +01:00
Federico Elia 45c7450b3e tests: the fake installer of the index wait counts its calls atomically (#495) 2026-11-14 14:00:41 +01:00
Federico Elia 9699a52df9 record 0.52.0 as published (#494) 2026-11-14 13:59:59 +01:00
Federico Elia 77d97d894d egress gate: OCSP of a context goes through its proxy; the Windows native sink is the engine log (#492)
* tests: the egress sink reads the engine log on Windows too, and the OCSP request of a trusted page is held to the proxy of its context

The native-lookup sink is the engine's own log on both systems (the getaddrinfo lines are in the parent process file under the sandbox of Windows and
Linux, run 43574494194): the Windows DNS-Client event-log sink is gone, a blind log raises BlindSink instead of answering nothing, and the suite
wrapper.e2e.context.sink now runs on Linux and Windows.

OCSP: a lab CA the engine trusts (put in the profile by the engine's xpcshell, no ignore_https_errors), a TLS page whose leaf names its OCSP responder by
a name and by an IP, a context behind the gateway that loads it (the request must go through the gateway and never be looked up natively, in user
context 0, or reach the responder), a no-proxy control that is asked of the responder, and an untrusted-issuer control that makes no OCSP request.
Expected red on firefox-63, green on firefox-64.

* tests: the OCSP cases let the engine trust the DoH of the context through the lab CA, so the page name resolves without ignore_https_errors

Run 43584815874: both OCSP cases behind the gateway failed with NS_ERROR_UNKNOWN_HOST before any handshake. The other cases accept the FakeDoh's self-signed
certificate with ignore_https_errors on the context; the OCSP cases cannot (it switches off the chain check, so no OCSP), so the DoH handshake was refused
(SSLV3_ALERT_BAD_CERTIFICATE at the gateway) and the name never resolved. FakeDoh.use_certificate lets the case serve a leaf of the lab CA for the DoH host,
which the profile trusts. Line endings of the touched files are back to those of main.

* required suites: wrapper.unit.udp is 249 (the DoH serving a lab-CA leaf)
2026-11-14 13:30:37 +01:00
Federico Elia e986a0b859 screencast: a frame that arrives while the start is being answered is held and acknowledged, not dropped (#491)
* screencast: a frame that arrives while the start is being answered is held and acknowledged, not dropped

The engine keeps one screencast frame in flight until the wrapper
acknowledges it (kMaxFramesInFlight is 1, and its heartbeat only repeats a
frame when none is in flight), so a frame the wrapper drops without an ack is
the last frame of the stream.

op_screencast_start stored the screencast id AFTER send("Page.startScreencast")
returned. The reader thread wakes the caller on the reply and goes straight on
to the next message, so a frame right behind the reply was handled while the
id was still None: dropped, never acknowledged, stream dead with start()
already returned.

The id, a "start in progress" flag and the frame that came in meanwhile are now
one state under a lock; the held frame is handed up and acknowledged once the
id is in. The ack uses the id the frame was accepted under, read once, and the
check-then-set in start/stop/detach is taken under the same lock.

tests/test_screencast_ack_race.py drives the engine's own flow control through
a reader thread shaped like Connection: 200 start cycles in 4 threads with
random gaps between reply and frame (84 of 200 stall on the old code, 0 on the
fix), stop in the middle of a frame, a refused start, and a page closed with a
running screencast.

Not reproduced in a real engine: 0 dead streams in about 1300 start cycles on
the old code, because the first frame comes at least 46 ms after the reply and
the window is only the time the caller thread takes to wake.

* tests: the hidden-desktop test serves its own page and says what the engine printed when no frame comes

It loaded https://example.com in both sessions; a gate does not use a real site,
so the page is served from 127.0.0.1 by the test. The checks are the same.

When no screencast frame arrives in 15 s, the assertion message now carries the
browser's lines that start with "screencast:" (the core keeps the last 200 lines
of the browser's output, Connection.output), so a failed run says whether the
engine could not start the capture or the frames did not reach the wrapper.

* tests: a screencast e2e that gets no frame says what the engine printed and how long each stream waited

The helper that reads the engine's "screencast:" lines out of the browser's
output moves to tests/_screencast_evidence.py, with a small Stream that keeps a
stream's frames and the time from the start reply to the first frame. The two
e2e in test_screencast.py (the JPEG of the whole window, and the higher rate
delivering more frames) and the hidden-desktop test now put both in the
assertion message when a stream delivers nothing.

A unit test covers the helper: only "screencast:" lines are kept, a lookup that
fails says so, and a stream with no frame says "never arrived".

* changelog: the screencast frame held during the start (0.52.0)
2026-11-14 12:31:30 +01:00
Federico Elia 64d86b4e8a Release 0.52.0: engine firefox-64 through invisible-core 64.69.0 (#490)
* tests: nothing of a context leaves but through its proxy (witness, engine log and nonce as the sink)

A context with a proxy and a session with none, one probe per road a page can
start: 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. The
sink is a witness at an address of this host (no proxy forwards to it), the
watcher, the engine's own resolver log and the resolver trap where it runs.
The Windows second sink is one function that raises until it is written.

Taken unchanged from the minimal-engine port: the page work of the proxied
context and the TURN-by-name reproducer (its engine gate removed: red on
firefox-63, as it is).

* tests: a PeerConnection of a torn-down window leaves only through the proxy of its context (B3)

A PeerConnection built from the window of a detached iframe or of a closed
popup had no proxy config on the engine firefox-63: direct UDP and TCP from
the host, ICE server names looked up in the default context. Four cases (both
windows, behind SOCKS5 and behind an HTTP proxy) build one with a STUN and a
TURN-over-TCP server by name and judge it with the sinks of the suite; two
controls build the same PeerConnection from an attached iframe. A dead window
that refuses the constructor or never gathers passes the egress assertions and
says so (printed, recorded as dead_window_outcome).

Expected red on firefox-63, green on firefox-64.

* tests: the isolated page moves on when the test says so, not 500 ms after its load

On a loaded Windows runner more than 500 ms passed between domcontentloaded and the first read, which then met the second page or the
move itself (2 rounds in 20 under four workers, runs 43435932449 and 43439508625). The page now moves right after the read on it, by its
own location.replace. Still red on the release before the fix: 0.42.0 with firefox-52 answers 'Cannot find object with id = id-10' in
5 of 5 runs on Linux and Windows, green on 0.51.1 (run 43451615354).

* tests: two contexts alive at once resolve their TURN names each through its own proxy and DoH

Two contexts of one browser, each with its own proxy and its own FakeDoh (a
zone that does not know the other's name), each with a PeerConnection kept
open whose TURN server over TCP has a different name. The port of a CONNECT
(one witness per context, same address) says which context it came from.
Each name must reach only the DoH of its own context through its own proxy,
none the machine's resolver, no CONNECT the other proxy, nothing a witness
direct. Behind SOCKS5 red on firefox-63 and green on firefox-64; behind an
HTTP proxy green on both.

* server: no thread is started on the engine connection's reader; one long-lived starter does it

Thread.start waits until the new thread runs, and the reader is the thread every event of the engine waits behind. Browser.attachedToTarget
(one thread per adoption, _spawn_adoption) and Page.fileChooserOpened (one thread to announce the chooser) started a thread from the
reader. They now hand a Thread that is only built there to the browser's _ThreadStarter, one daemon thread made with the browser, which
starts it. The starter starts threads and does not run the work: an adoption waits for the engine without a limit, and a worker that ran
it would hold every later adoption (and new_page) behind a slow popup. The adoption keeps its own thread and its name.

Test: the real dispatchers over a scripted connection, events delivered from a thread of their own, Thread.start recorded; red on the old
code (two starts from the reader). The Page.eventFired(load) case is skipped with a core that still starts a Timer for networkidle.

* tests: a session without a proxy declares the DoH provider and builtin-excluded-domains = localhost

The core declares network.trr.builtin-excluded-domains = "localhost" (core #261: behind a proxy a *.local name goes to DoH
through the proxy, not to the host's resolver). The unit test pinned the old set of two keys and was red in the engine
candidate 43471799366, which runs the core of main.

* tests: the load case of the reader rule lives in the core, where its fix is; the wrapper keeps its two cases, no skip

* tests: the first browser run of the two context suites, test errors fixed

wrapper.e2e.context.sink: every probe by name behind SOCKS5 (and the TURN names of
the window and two-context cases) never connected, because the lab answers every
name with the address of this host, an RFC 1918 one on a runner, and the engine's
DoH client drops such an answer unless network.trr.allow-rfc1918 is true. The lab
now declares it. turns: by IP is refused by the browser itself ("TLS requires
FQDN, not IP address"), so that case shows no CONNECT and keeps every egress
assertion. The firefox-64 expectations of the three *.local probes were stale
(green in the run).

wrapper.e2e.context.egress: the push case waits for the page to leave pending
(30 s) and says the step it reached (registering, registered, ready,
subscription-read). The direct DoH connection of closing-context_only is an
engine behaviour and its assertion is unchanged.

unit.udp min_tests 233 -> 236 (three new unit tests of the lab).

* tests: the push page asks for its subscription again until the parent's push service answers

The parent process listens for the push requests of a content process only once its
PushServiceParent exists, which a first-window idle task creates (BrowserGlue
PushService.ensureReady); a request sent earlier is dropped, not queued. The page
of the push case now repeats getSubscription every 2 s (up to 15 times) and the
message says how many asks it took. The assertion is unchanged.

* tests: revert the retry of getSubscription and the longer wait (a page that retries hides a request that is never answered); keep the stage diagnostics

* Revert "tests: revert the retry of getSubscription and the longer wait (a page that retries hides a request that is never answered); keep the stage diagnostics"

This reverts commit fbd376c4c4.

* tests: say why the push page asks again (silent start-up, lost Push:Registration, same in stock Playwright), with file:line and the bounded wait

* tests: a process that reads no seccomp filter while it starts is read again before it is judged

Firefox pre-launches content processes and a child installs its filter only after its
own start-up, so a process sampled during start-up reads Seccomp 0 (run 43523960399:
the newest tab process). A pid that does not read 2 is now read again for up to 10 s;
none is dropped, and one that is still 0 fails with the same message. Two unit tests
hold it (a late filter is accepted, a process that stays unfiltered is not);
unit.udp min_tests 236 -> 238.

* Release 0.52.0: pins invisible-core 64.69.0 (engine firefox-64)

* server: say nothing about the launch counter (core 64.69.0 has no pref for it)

From invisible-core 64.69.0 (engine firefox-64) the launch counter has no pref: the engine's address is built in and the
counter is mandatory, so the core has no USAGE_PING_* constants. The server imported them at every launch to refuse the
two prefs, which raises ImportError with core 64. The refusal and its test go; a new test asserts that a launch composes
no launch-counter pref and that the server has no refusal (red on the old server). wrapper.unit.udp: 238 -> 228 tests.

* tests: the keyboard rhythm tests run on a clock that moves with each sleep

invisible-core 64.69.0 sends each key at its planned time measured from the start of the action. The rhythm tests replaced
time.sleep with a recorder and left the clock still, so every later wait carried the earlier ones (13 waits for "hello"
instead of 9, the caller's 120 ms gap never seen). The fixture now stands a clock in the keyboard's place that advances by
each sleep, as the core's own test does; every assertion is unchanged.

* tests: the tests of the shelved line wait for firefox-65

Fifteen e2e files are gated on engine_at_least("firefox-64"), set on 11/11 when firefox-64 was the name of the shelved line
(canvas text and ICC from DirectWrite/ucrt work, ucrt Math and calc, the NVIDIA fma chain, WebGL blending, system fonts and
colours, WebCodecs H.264, no host fontconfig/Mesa/libavcodec). The engine released today as firefox-64 is the context/UDP
line and carries none of that work (nor does core 64.x carry its core half), so the gates opened and the tests failed. The
shelved line is now firefox-65; the gates follow it, as they did at 0.50.0.

* Release 0.52.0: pins invisible-core 64.70.0 (64.69.0 refused a page built on the connection's reader)

* memprobe: stamp and write a row under one lock so the file stays in time order

The tick thread and the thread that closes a context both call write().
The row was stamped in sample() before the lock was taken, so a slow
sample (USS on Windows, a big gc) let a later row be written first.
Adds a test that holds the first sample after its stamp and lets a second
writer overtake it.

* Release 0.52.0: pins invisible-core 64.71.0 (a key never reaches the page closer than the plan allows)
2026-11-14 11:08:43 +01:00
Federico Elia c3e0570e6d record 0.51.1 as published (#487) 2026-11-13 15:19:08 +01:00
Federico EliaandClaude Opus 5.5 fcacd9c33d Release 0.51.1 (#486)
* juggler: a popup's page is handed from its buffer to its dispatcher in one step, so no commit or load between the snapshot and the hook is lost (DRAFT)

What the client is told of a frame comes from the initializer (a snapshot of what the lifecycle knew when the frame dispatcher was made)
and from the lifecycle's announcements through a hook that the page installs at the end of its construction. An event the lifecycle heard
after the snapshot and before the hook was told to nobody: the commit of a popup's destination left the client's frame at about:blank for
good, and the DOMContentLoaded/load held in the same period were dropped with every held event that is not a Network.* one. Measured on
Windows with the in-process client and no route on the context: the popup "is at about:blank", or wait_for_load_state("load") times out.

_hear_lifecycle installs the hook and reconciles the frames in one step with the lifecycle's lock held: frames born or gone, the document a
frame committed, its load states; each difference is said once (a frame dispatcher now remembers the load states the client was told). A
commit also drops the load states said before the announcement for the document it replaces, so the replay after the `page` event is the
destination's and not the blank page's.

Tests: test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once (the destination's commit, DOMContentLoaded and load at every
placement among four points of the passage: 16 of 20 orders red on the code as it was; and the commit before or during the announcement:
2 of 2 red), green on this change. The fixtures of two white-box tests get the attributes the page now keeps.

* juggler: the hand-over of a popup's page gives back EVERY event held while it was built, in the order it arrived (DRAFT, 0.51.1)

The page's own listener holds the events of the period between its construction and the end of _install_events, and the hand-over gave
back only the Network.* ones: a console message, a pageError, a dialog, a crash or any other event that came in that period was dropped.
A dialog is the worst: alert() blocks the page until the client accepts it, and a client never told of it cannot. Every held event is now
delivered, whatever its kind, in the order it arrived and once (the events the lifecycle owns are also reconciled, which is idempotent).

Tests: one event of each family (console, pageError, dialog, crash) in this order at every placement among four points of the passage,
35 orders, 34 red on the hand-over as it was; each is told once and in order, the dialog is known to the page and the console message is in
its log; and accepting a dialog opened during the passage sends the engine the answer that unblocks the page (3 points).

* juggler: an event beyond the cap of the hold is counted and said once; a file chooser opened during the hand-over reaches the client; CHANGELOG (DRAFT, 0.51.1)

The hold of a page being built keeps at most HELD_CAP events (it bounds the memory of a page that never finishes building). The events beyond
it are counted and, when the hold ends, said once with their count in a RuntimeWarning, instead of vanishing.

Tests: the cap (a loss said once, with its count), and a file chooser opened at each of four points of the hand-over reaches the client with
the handle of its input element and its isMultiple (the scripted engine answers the three commands the chooser needs). The fixture of
test_a_closed_page_says_nothing gets the counter the page now keeps. CHANGELOG: Fixed, for 0.51.1.

* ci: every leg launches with a GeoIP database made by the repository (same bytes every run, no download, no licensed data); the release alone looks at the real one

scripts/ci_lab_geoip.py writes a MaxMind DB with the six networks of the realness exits and the fields the core reads (an ip_version 6 tree, the types libmaxminddb checks),
refuses to go on when its bytes are not the sha256 of ci/geoip.json, exports STEALTHFOX_GEOIP_MMDB to the job, and says in 'evidence' which file a launch ran with;
scripts/ci_verdict.py judge --geoip --geoip-pin turns a leg that ran without it, or with another, red. tests.yml, e2e.yml and webrtc-e2e.yml make it before pytest;
user-install.yml is left alone. publish.yml (the release) runs scripts/ci_real_geoip_check.py before the upload: the product's own download road, the lab database against the real
one for the six exits, every time_zone of the real database known to the runner.

* tests: the two white-box fixtures that build a PageDispatcher by hand get the attributes the hand-over now keeps

test_navigation_response.py and test_same_document_navigation.py build a PageDispatcher with object.__new__ and set by hand the
attributes the code under test touches; the hook of the lifecycle (_on_lifecycle commit, _hear_lifecycle) now reads _announce_lock,
_announced, _said_before_announcement, _frames and _told_attached, and the frame stubs need frame_id and told_states. They are not marked
unit, so the first full run (-m unit) did not reach them; the run without the e2e marker does. No assertion is touched.

* tests: ONE picker for 'the same number on TCP and UDP', used by the HTTP/3 server, the witness and the resolver trap (for 0.51.1)

tests/_ports.py has the sequence of numbers (the system's own pick, then numbers drawn below the ephemeral range, 200 tries) and the picker that keeps every refusal with its code. The HTTP/3 server
calls it (repos-2e's own copy of the loop is gone), the witness walks the same sequence instead of its own, and so does the resolver trap when its port is 0; a port asked for (53 on the root leg)
is tried once per address as before. The test that holds a port for the trap picks it with the picker too: its own system pick fell in a refused UDP block on a work machine (WinError 10013).
Unit tests with a fake socket layer that refuses a contiguous block of 200 UDP ports, for the server, the witness and the trap.

* tests: the hand-over of a popup under concurrency, five sequences (RED on 7d934a6: a load told twice, an event that overtakes the held ones, a frame created after the page's dispose, a frame made twice, a same-address commit not told)

Test only. A-D go green with the changes listed in the review (E not tried).

* juggler: the hand-over of a popup holds under concurrency (a load told once, the held events keep their order, a document at the same address is told, a closed page is not given frames or announced, one dispatcher per frame) (DRAFT, 0.51.1)

From the concurrency review of 7d934a6 (five sequences, tests/test_the_hand_over_of_a_popup_holds_under_concurrency.py):
- FrameDispatcher.emit tells a load state once; the replay after the announcement keeps one entry per (frame, state) even when the
  client knows it from the snapshot, and says it again on purpose.
- the hold ends only when a round finds it empty; the rounds are delivered outside the lock, so a live event never overtakes a held one.
- the reconciliation compares the place of the last commit, not only (url, name).
- _hear_lifecycle and _reconcile_frames do nothing on a closed page; announce() does not say `page` for a page closed before it.
- frame_for checks and creates under a recursive lock.
The five files of the hand-over are in wrapper.unit.page (62).

* juggler: the hold gives back in at most four rounds outside the lock, then the rest with the lock held (a page that prints in a tight loop cannot keep it open) (DRAFT, 0.51.1)

* juggler: a live event of the engine never overtakes the replay of the events a new page missed (the cause of the popups left at about:blank on engine 63) (DRAFT, 0.51.1)

The browser buffers the events of a session nobody reads yet and `PageDispatcher` is handed them (`replay`) after it subscribed its
lifecycle and injected script. The replay ran on the adoption thread while the engine's reader went on delivering live events to the same
subscribers: the destination's commit (live) fell into the middle of the replay of the popup's first events and the replay then brought
older ones after it - the initial about:blank (no id) and the navigationStarted of the same navigation. The lifecycle ended at about:blank
(a popup at about:blank), or had its navigation pending again (Execution context was destroyed). The second Page.frameAttached of every popup
in the traces of the proof is the replay: the engine sends each event once.

The reader takes a gate for each event of a session; the page takes it for "subscribe, then replay" as one step (BrowserDispatcher.events_gate),
with a bounded wait for the reader (5 s) so a holder that never lets go cannot stop the engine's stream.

Test: tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py, five stops of the replay, RED on the old code (the lifecycle
ends at about:blank), green with the gate. wrapper.unit.page 62 -> 67.

* juggler: the gate of the events belongs to the connection, looks the delivery up at each event, and bounds the hold, not each event (DRAFT, 0.51.1)

From the review of 80bc478:
- the wrapper froze the bound `dispatch_event` of the connection: a patch of the class made after the browser was built (the e2e fixtures that
  record the events) was bypassed. It looks the delivery up at each event, as the reader did.
- the 5 s bound was per event: a holder that never lets go made the reader pay 5 s for every event. After one timeout the reader delivers ungated
  for 30 s, and the connection records it (`handler_errors`).
- the gate is kept on the connection, so a second dispatcher over the same connection shares the one the wrapper takes.
Tests: a utility context created while the replay goes on is not undone by an older event (the injected script half), the class patch, the
hold bound; wrapper.unit.page 67 -> 71.

* juggler: a page that is being built waits at most 30 s for the gate of the events, and says it when it does not get it (DRAFT, 0.51.1)

From the reading of 15d1891 by repos-6b: the construction of a page waited for the gate with no bound, a new dependency on the reader. It now
builds without the gate after 30 s and warns. wrapper.unit.page 71 -> 72.

* tests: the 17 CodeQL alerts of PR 483 are fixed in the test code (TLS floor, exact host, own address, header from the dict's key, MD5 declared not for security)

py/insecure-protocol x11 (23-33): every client TLS context the fake servers' tests make sets minimum_version = TLS 1.2 (test_the_fake_doh_answers x7,
test_the_fake_doh_delays_and_refuses, test_the_h3_line_helpers, test_the_http_proxy_helper_asks_for_credentials, test_the_udp_chain_helper).
py/bind-socket-all-network-interfaces (37): the TURN stand-in listens on the address the browser is told to connect to, not on 0.0.0.0.
py/http-response-splitting (39): the Content-Disposition name is the dict's own key, found by comparison, nothing of the request is written back.
py/incomplete-url-substring-sanitization (38): the trap's description is compared whole, not searched for a host name.
py/weak-sensitive-data-hashing x3 (34, 35, 36): the TURN long-term credential key IS MD5(user:realm:password) (RFC 5389 15.4); the stand-in and its test
compute it with usedforsecurity=False. Whether CodeQL accepts that is seen on the next scan; no setting touched, no alert closed.

* tests: Control+A selects all in an input and a textarea, in-process and served to the stock client (e2e, red on the keyboard that held Shift for the capital A)

* ci: e2e.yml runs the Control+A e2e on Windows, on the published engine, as a job of its own (dispatchable alone with only=windows-control-a)

tests/test_control_a_selects_all_in_a_field_e2e.py (5 ways to press the shortcut x an <input> and a <textarea>, in-process and served to the stock
client) is red on the keyboard that held Shift for the capital A and was measured on Linux; the keyboard of a user is Windows. The new job
installs the wrapper (which pins the core of the release), fetches the published engine and runs that file on windows-latest with bash as the
shell, behind the same core-on-index gate as the Linux job: skipped with the reason in the summary until the core is on the index. The
workflow_dispatch input `only` lets it run alone (`windows-control-a`) without the 40 minutes of the Linux job.

* ci(install): the wait for the index asks both installers of the job (pip and uv), three rounds in a row, and a call that does not answer is a no

The job installs with two tools: the upgrade test with pip, the release test with uv (the README's way in). The wait asked only pip, so a green wait said nothing
about the page uv would be served, and one yes proves one request, not the next. Each round now asks `pip download` AND `uv pip compile` of
`invisible-playwright==X` (no cache, nothing installed); the job goes on after three rounds in a row in which both said yes (INDEX_WAIT_CONFIRMATIONS), 15 s apart,
a no starts the count again, a call that does not answer in 120 s (INDEX_WAIT_CALL_SECONDS) is a no; the bound of ten minutes is the same and the error says
which installer said no. The harness environment gets `uv` (a PyPI package: `python -m uv`), independent of the uv the release test installs in its own home.

Test: the script of the step runs with a pip and a uv that answer as plans say; red on the step of 299fc9f (8 of 10). The same remedy as invisible_core 2089b48.

* tests: the GeoIP check of e2e.yml anchors on the step's name on main ("..., without the root ones")

The rebase of the 0.51.1 stack over main (c70a396d, 3be9c0b) met the e2e step renamed by 0.51.0's root step; the database is
still made before it and verified after the root step.

* tests: the raw juggler e2e wait for Page.ready and the main frame, not a fixed 0.4-0.5 s

The Windows census of all the e2e (run 43307193708) and the recheck on 87a4e3b (run 43313222398) had 6-7 of these tests red
with "no frame: the page has not announced its main frame yet": on a Windows runner the page is announced after the sleep.
The page is the caller's when the engine says Page.ready, as Playwright hands it over (Lifecycle.wait_for_page_ready), and
then its main frame is there (wait_for_main_frame).

* ci: the sandbox e2e runs in a step that turns user namespaces on; the consecutive-port tests run serially; CHANGELOG for 0.51.1

The sandbox e2e (tests/test_the_socket_process_is_sandboxed_e2e.py) fails on a runner whose AppArmor refuses
user namespaces to a normal user. e2e.yml now leaves it out of the normal run by name (SANDBOX_FILES) and runs
it, after the run and the root step, in a step of its own that sets
kernel.apparmor_restrict_unprivileged_userns=0 first and refuses anything but exactly one passed test.

The two tests of test_declared_host_network_e2e.py that read a consecutive pair of host ports (N, N+1) carry
the wall_clock marker: the e2e run gives them the machine alone, so no other worker can take port N+1.

Each has a unit test that is red on the previous tree. CHANGELOG: the measured popup and Control+A results,
the test fixes, and the known issue this release fixes is removed.

* tests: no address is written out in the GeoIP lab table and its tests (built from numbers, as tests/_realness_support.py does); ci/geoip.json drops its unused network list

* tests: a DoH handshake the client dropped is not a refused certificate (Windows: ConnectionAbortedError 10053)

Windows census of 12/11 (run 43333574229): test_resolver_race_e2e[context_without_proxy_beside_a_proxied_one] read a
ConnectionAbortedError [WinError 10053], through the gateway of a context that HAS the certificate exception, as "a context
without the FakeDoh certificate exception used the DoH". A connection the browser drops before the handshake ends says
nothing about the certificate; only a TLS alert from the client (unknown CA, bad certificate) does. FakeDoh.certificate_refusals()
keeps those; the four e2e that judged every failed handshake (resolver race x2, context-only proxy, DoH under stress) judge the
refusals and still print every failure. Unit test red on the old FakeDoh (no certificate_refusals), green now.

* tests: the GeoIP lab database answers every public address that is not reserved with one declared record

A launch with no proxy asks the database for the runner's egress address, which is not known in advance (any provider, any region). With the six
exits alone the lab database ended those launches in 'egress IP not present in the geoip database' (run 43351424907: 495 errors of this one cause in
the e2e job, and 3 tests of the unit legs). The reserved ranges stay absent, as in the real database. Test red on the six-network database.

* tests: the two gather tests that compare a near and a far duration run alone, in the serial group

Run 43353896238 (Linux e2e, four workers): 765 passed, one failed with (350 - 84) <= 100, the host candidate of the far gather 266 ms after the
near one. The verdict is a difference of two wall-clock measures, which the e2e run gives the machine alone (wall_clock). A unit test reads the file and
refuses any test that compares a near and a far timing without the marker; it is red on the file as it was.

* tests: every suite of the gate and the e2e and unit tests of a pull request run on Linux and Windows, or say why not

Federico, 12/11: a test seen only on Linux proves nothing about the system the product imitates; where Windows behaves
differently the test adapts. A row of ci/required-suites.json names both systems, or a windows_twin, or a linux_only reason;
the jobs of e2e.yml that run scripts/run_e2e.py cover both runners between them; the unit job of tests.yml runs on both.
wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox are declared linux_only with their reason (the lab's exit address cannot
be held on the runner's adapter without taking the runner off the network; the sandbox twin needs a retail measurement).
Known-bad: the files of 12/11 (two Linux-only rows without a reason, e2e on ubuntu only) -> problems names each.

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

* ci: e2e.yml runs the e2e on Windows too, in four parts, without the linux_only suites

Before this, 562 of the 808 e2e had never run on Windows in any round (census of 12/11, run 43307193708, ~50 minutes in one
job). Four jobs "e2e (windows, part N)" on windows-2022, the published engine, scripts/run_e2e.py as on Linux; the sorted e2e
files split every fourth; the suites ci/required-suites.json declares linux_only are left out by reading the file, not by a
skip. scripts/e2e_is_green.py already reads every e2e check-run of the commit, so the release waits for the Windows parts too.
The root-step test finds the Linux run by its xvfb-run.

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

* ci: the unit tests run on Windows at both ends of the Python range (3.11 and 3.14), not on 3.12 alone

Federico, 12/11: every test on Linux AND Windows. Ubuntu keeps the whole range.

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

* ci: webrtc-e2e.yml goes (dispatch only, Linux only); its file runs in e2e.yml on Linux and Windows and in the gate

Its one test file, tests/test_webrtc_realness.py, is e2e: e2e.yml collects it on every pull request on both systems, and the
gate's wrapper.e2e.udp lists its UDP-line tests. A workflow that only a person can start is not a round; it is deleted, not
left off.

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

* ci: the Windows parts of e2e.yml launch with the repository's GeoIP database and verify it, as the Linux run does

tests/test_ci_workflows_build_the_geoip_database.py judges each leg of e2e.yml on its own (the Linux job, the Windows parts)
and no longer names webrtc-e2e.yml, which is gone.

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

* tests: the raw juggler e2e subscribe the page's Lifecycle and injected script on the attach, not after it

Windows CI of 13/11 (run 43373058301, e2e windows part 2): test_juggler_actions [engine-approach] waited 30 s and "the
engine never said Page.ready (frames seen: [])". The connection hands each event to the listeners of that moment
(EventListeners.dispatch_event copies the list); these tests built the Lifecycle from the test thread after polling for the
attach, so the page's first frameAttached and Page.ready, delivered in between, reached no one. Built in the attach
listener, on the reader thread, they are subscribed before the next event of the session.

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

* tests: the fake HTTP/3 server closes its event loop on its own thread (a loop left to the garbage collector hung Windows runs)

PR #486, e2e windows part 1, twice; the Windows hunt of 13/11 (run 43377799126) three runs of fifteen: a test of
test_http3_through_the_proxy_e2e.py stood for minutes and was killed by the timeout. The server had answered every call;
the test thread was in base_events.__del__ -> proactor_events.close -> windows_events.close -> _poll in all three dumps.
H3Server.close() stopped its loop and never closed it, so BaseEventLoop.__del__ closed it later on whatever thread the
garbage collector ran in, and the Windows proactor waited for ever for the UDP receive still pending on it. The loop is now
closed on its own thread after the QUIC server, and close() joins the thread. Unit test red on the old server, green now;
wrapper.unit.udp counts 222.

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

* tests: the late element is scheduled by the test, and the cross-origin button is waited for before it is counted

Windows CI of 13/11 (PR #486, run 43383366904), two reds of the tests themselves:
- test_juggler_transport::test_the_public_API_WAITS_for_an_element_that_arrives_late: the page's timer (800 ms from its
  load) had already added the element when the test first read it ("the element was already there"); the test now empties
  it and schedules it itself, 800 ms from its own read.
- test_cross_origin_iframe::test_cross_origin_iframe_frame_locator_resolves_button: Locator.count() does not wait, and the
  cross-origin document of the iframe, in its own process, loaded after the count (0 elements); the button is waited for first.

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

* Pin invisible-core 63.68.0 (the font-manifest cache on Windows, host environment, GeoIP once a day)

* tests: core 63.68.0 no longer declares gfx.webrender.all (a pref that does nothing)

* tests: a move with a button held carries buttons=1 and pressure 0.5 (core 63.68.0); the timed typing test runs in the serial group

* tests: the first-STUN-datagram timing runs in the serial group (419 ms under four parallel browsers on Windows)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 13:26:47 +01:00
Federico Elia fd104e231a Point every GitHub location at oss-invisible (#485)
* Point every GitHub location at oss-invisible

The repository and its companions moved to the oss-invisible organization:
invisible_playwright is now oss-invisible/playwright, invisible_core is
oss-invisible/core, invisible_playwright_mcp is oss-invisible/playwright_mcp
and firefox_antidetect_patch is oss-invisible/firefox_antidetect_patch.
README, docs, package URLs, release/counter scripts and the tests that pin
them now use the new locations. PyPI package names are unchanged.

* docs: keep one doc line as it is (the local name guard)

* Version 0.51.1: the files that go into the wheel changed since v0.51.0 (package URLs)

* CHANGELOG: the 0.51.1 heading the version bump needs
2026-11-13 03:05:06 +01:00
github-actions[bot]andfeder-cr 3be9c0bf39 record 0.51.0 as published (#484)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-11-12 22:21:13 +01:00
c70a396d94 Release 0.51.0: engine firefox-63 through invisible-core 63.66.0 (#483)
* docs: the agent links and the command name the repo as it is now

Two things were broken for a reader on main, not one.

Thirteen links pointed at github.com/feder-cr/AIHawk. GitHub redirects a
NAME to the OBJECT that carried it, not to the content: after the September
swaps that name belongs to invisible_dots, which has seven wiki pages, so
AIHawk/wiki/<page> lands on its wiki Home. It answers 200 with different
content, which means a reader who clicks does not find the page and a search
engine sees a soft-404 across about 150 indexed URLs.

Seven occurrences said `uvx aihawk`, a command that does not exist. One sat
in a front-matter description, which is the snippet search engines show, and
one in a block meant to be copied: `claude mcp add stealth -- uvx aihawk`.
The command is invisible-playwright-mcp, on PyPI at 0.70.16.

All eight link targets were checked one by one and resolve to themselves with
the page title, no redirect.

Three things stay as they are, which only reading them showed. The
`pip install invisible-playwright` line matches what this engine's own README
teaches for the library, so the page is consistent rather than broken.
CHANGELOG.md keeps the old name because a changelog entry says what was true
then. And the fixture in scripts/sync_article_pixels.py keeps it because it is
the deliberate wrong case, a pixel for ANOTHER repo.

One sentence went away instead of being renamed: "shipped inside AIHawk" made
sense when AIHawk was the larger product containing the server. The server and
the repository are now the same thing, so "shipped inside itself" was circular.

(cherry picked from commit d9c8e46dce)

* test: the docs name the MCP server's repository and command as they are now

feder-cr/AIHawk now leads to an unrelated repository and answers 200, which no
link checker reports; `uvx aihawk` does not exist. The README and docs/ are
read for both.

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

* tests: the Fission bench counts the processes that host a site, not every new content process

test_same_site_other_port_stays_in_process was red on the e2e of the 0.50.0 commit ("a same-site frame
started a process: [13443]"): the bench counted every `-contentproc ... tab` pid, and the engine starts a
preallocated content process to refill its pool whenever it gets to it. On Linux the engine names a content
process by its remote type (ContentChild::SetProcessName, prctl PR_SET_NAME): "Isolated Web Co" once it
hosts a site of strategy 1, "Web Content" while preallocated. Measured on firefox-62: a cross-site frame
renames a preallocated process and a new "Web Content" refills the pool; a same-site frame changes neither.
The two tests that count processes skip off Linux, where no process carries a name.

Unit test with the measured processes: 3 red on the old bench, 3 green here. e2e on firefox-62 (candidate
#6, Linux): the bench file 17 passed; the two counting tests 15 of 15 runs green.

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

* tests: a closed context is checked for the processes of its sites, not for every content process

test_closed_contexts_with_a_never_stopping_service_worker_leave_no_process was red on the e2e of the 0.50.0
tag ([2, 2, 2, 5, 5], 5 <= 2). Measured on firefox-62 (Linux), the test's own scenario 10 times with every
process named: no "Isolated Web Co" left after any close; the 3 more are "Web Content", the engine's pool of
preallocated processes filling up behind the closed contexts (5 runs of 10, new pids each time). Not a leak:
the count read the refill.

The helper of the bench moves to tests/_processes.py and both tests use it. The context test counts the
processes that host a site: at least one while the page is open (or the count proves nothing), none a few
seconds after `close` answers (the engine waits for them inside close and kills the ones that stay). Off
Linux it skips, as the bench's two counting tests do: no other system names the process.

Unit tests (tests/unit/test_processes_counts_sites.py) from the measured processes, the closed-context case
included. e2e on firefox-62 (candidate #6, Linux): the context test 10 of 10; run_e2e.py on the two files and
the unit test 18 passed. The old counter, same scenario: 5 of 10 runs would fail.

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

* Release 0.50.1: 0.50.0 with the process-counting e2e corrected (0.50.0 never reached the index)

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

* tests: the same-site control puts its frame in the shown page; CHANGELOG: 0.50.0's entry is 0.50.1's

The e2e of #451 saw a new "Isolated Web Co" once after a.test/plain -> a.test/same-site ([10878] -> [10878,
11208]). Not a process of an earlier test: it was created after the first read and only this worker's
descendants are counted. It is the top-level navigation: when the old document may enter the back-forward
cache, the browsing context is replaced (mReplaceBrowsingContext, dom/ipc/ProcessIsolation.cpp) and the new
one may be placed in another process of the same site (dom.ipc.processCount.webIsolated = 4). Measured on
firefox-62 (candidate #6, Linux): 0 of 30 runs alone (bfcache on and off), 0 of 57 under 4 workers. The test
was written for the frame, so the frame is now added to the page already shown and the top never navigates:
20 of 20 runs green.

0.50.0 never reached the index, so the changelog gate refused its heading; its entry now opens 0.50.1.

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

* UDP line: the e2e of the proxy for a context, the chain by name, the declared host network, and the wrapper that declares it

Squash of the local integration branch (one branch for the candidate):
- e2e behind a gateway with coherent UDP (the cost of a gather, two contexts, a proxy without UDP, TURN over TCP of a context,
  HTTP/3 through the proxy) and one hermetic SOCKS5 gateway helper under them;
- the whole UDP chain by name behind a gateway at 130 ms (hermetic);
- the declared host network e2e (interfaces, ports, two connections);
- the wrapper declares the host network from the session seed (no srflx, no UDP verdict, no host_ip any more);
- the integration test follows the declared network and the DoH of the session proxy.

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

* dev extra: aioquic, so the two HTTP/3 e2e run in the gate instead of being skipped by importorskip

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

* tests: networkidle through a served browser whose context routes every request, on a reused page

launch_server() plus a stock Playwright client, a context route that aborts image/font/media and continues the rest, a
page with sendBeacon, the same font twice, a frame of another site, a worker, redirects, requests the page cancels while a
slow route decides, 100 requests at once, and a slow client that answers concurrently (async). Every shape reaches
networkidle on firefox-62; one page reused for twelve addresses too. The leak that tf-fetch meets on real sites needs
end events the engine loses, which no local page produces: its deterministic red/green is in the core
(tests/test_networkidle_on_a_reused_page.py of invisible-core); this file guards the remote path end to end.

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

* server: the answer to a request the browser has already closed is not an error (Cannot find request), as stock sendMayFail

A page cancels requests while a route is deciding (a fetch aborted, an image replaced, an iframe removed, a beacon with
its document). The engine takes the request out of its held set at once and the late continue/abort/fulfill meets
"Cannot find request". Stock Playwright sends the interception commands as may-fail and tells the client nothing; ours
passed the error up, the client kept it as the error of the whole connection and raised it on the NEXT route command,
which was then never sent: its request stayed held in the engine, its handler failed too, and so on down the page. Seen
on a real news page: six held requests in a row, one a beacon, and networkidle never came.

RouteDispatcher._send now treats "Cannot find request" and a closed target as done (still disposed); any other protocol
error still reaches the client.

Tests: the e2e with a plain handler (no try) on a page that removes an iframe whose requests are held (red before: networkidle
never, 25 s; green after; the fetch and image shapes were green before too), and a static guard that every op of
RouteDispatcher (abort, continue, fulfill, redirect) goes through _send and that _send swallows exactly those two.

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

* tests: the stock Playwright client is required by the networkidle e2e (explicit failure, never a skip); the dev extra pins it

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

* tests: a page reached over IPv6 gathers host candidates on a machine declared without IPv6 (hermetic, [::1], no proxy)

Red on an engine before ddaf867f03: the gathering is empty. Needs the firefox-63 build to run: not run here.

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

* tests: the names of a proxied session go to DoH through the proxy (written ahead of the engine)

E2E for the contract of core-19/motore-18, plus the hermetic helpers they stand
on, which are unit-tested now: a hand-written DoH server (h2 and HTTP/1.1), a
SOCKS5 gateway and an HTTP proxy that hand the DoH CONNECT to it and tag each
query with their name, a connection watcher and a resolver trap. The e2e skip
without a binary and cannot be green before the engine that keeps the contract.
test_integration follows the core: no host_ip pref, no DNS gate switch, TRR mode 3.

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

* tests: the TURN name of the udp chain is resolved by the DoH through the proxy, not by the gateway

Chain is now a DohGateway (one SOCKS5 gateway in tests/): a CONNECT to the DoH goes to a FakeDoh whose zone is the TURN and
the page names, the datagram to TURN_IP goes to the TURN server by address (type 1), a name on the relay or a query to port 53
is dropped and recorded. DnsServer and the type-3 branch are gone. DohGateway takes the Gateway options (UDP relay, rtt) and
delays its tunnels by half the round trip like the base gateway. explain() lists what the DoH, the gateway, the TURN server and
the page saw, and says why.

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

* tests: the UDP line e2e need the engine that carries it (firefox-63); a missing websockets, aioquic or h2 is a failure, not a skip

The dev extra installs all three; a gate that skips for want of one proves nothing. main's e2e fetches the published engine 62, where the
declared network, the DoH through the proxy and the SOCKS5 UDP layer do not exist: those tests skip there and run on the candidate.

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

* tests: networkidle through a served browser whose context routes every request, on a reused page

launch_server() plus a stock Playwright client, a context route that aborts image/font/media and continues the rest, a
page with sendBeacon, the same font twice, a frame of another site, a worker, redirects, requests the page cancels while a
slow route decides, 100 requests at once, and a slow client that answers concurrently (async). Every shape reaches
networkidle on firefox-62; one page reused for twelve addresses too. The leak that tf-fetch meets on real sites needs
end events the engine loses, which no local page produces: its deterministic red/green is in the core
(tests/test_networkidle_on_a_reused_page.py of invisible-core); this file guards the remote path end to end.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
(cherry picked from commit 47182f0cd85fea08fc45e36f1c91d2d570722f14)
(cherry picked from commit e46f2dcf3eb361e6af0fedcdf6e1189f0ac330b6)

* server: the answer to a request the browser has already closed is not an error (Cannot find request), as stock sendMayFail

A page cancels requests while a route is deciding (a fetch aborted, an image replaced, an iframe removed, a beacon with
its document, the favicon of the page a goto just left). The engine takes the request out of its held set at once and the
late continue/abort/fulfill meets "Cannot find request" or NS_BINDING_ABORTED. Stock Playwright sends the interception
commands as may-fail and tells the client nothing; ours passed the error up, the client kept it as the error of the whole
connection and raised it on the NEXT route command, which was then never sent: its request stayed held in the engine, its
handler failed too, and so on down the page. Seen on a real news page: six held requests in a row, one a beacon, and
networkidle never came.

RouteDispatcher._send now treats "Cannot find request" and a closed target as done (still disposed); any other protocol
error still reaches the client.

Tests: the e2e with a plain handler (no try) on a page that removes an iframe whose requests are held (red before:
networkidle never; green after), and a static guard that every op of RouteDispatcher goes through _send and that _send
swallows exactly those two. The same defect was found a month earlier by richardpowellus (#351), with the favicon of the
previous page: his test is added in the next commit.

Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: the stock Playwright client is required by the networkidle e2e (explicit failure, never a skip); the dev extra pins it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
(cherry picked from commit 91223226f5bba25edff9af0e8b1fd6b5bfea2227)
(cherry picked from commit 612b18c02b95e9b5833d62b6595d4a0ff324aac2)

* tests: answering a route the next navigation already aborted does not raise (the case of #351: the favicon of the page just left)

Sixty sequential routed gotos on a loopback page: 4-12 of them failed on the old server, every failing continue_ being
the previous document's favicon, aborted by the next navigation while the route sat with the handler. Red on main (in-process
path), green with the fix of RouteDispatcher._send.

Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Release 0.50.1: pin invisible-core 62.64.0; CHANGELOG for the networkidle fixes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
(cherry picked from commit e63ef8e61ea42e7f8df7c1bde206f3bf86fc18f7)

* ci: the list of mandatory suites and its one judge (ci/required-suites.json, scripts/ci_verdict.py)

The list names three suites with the least number of tests each must collect (wrapper.e2e.udp 51,
wrapper.e2e.doh 8, wrapper.unit.udp 86). ci_verdict.py prints the pytest arguments of a suite and judges
its junit: a failure, an error, a skip, too few tests, a required file or node id that did not pass, and
a list that lost a suite, a minimum or a test against main are all red, each said with its reason.

The leak watcher's file defined a test that skipped on every host; the two resolver-trap tests now exist
one per host (collected, never skipped), so the unit suite allows no skip.

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

* tests: the DoH negative control does not skip where the resolver trap cannot run (Windows reaches the page by a name the system resolves by itself)

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

* ci: the verdict judge closes the holes a review found (main comparison, complete, exact counts, xunit2, commit, list validation, DoH trap)

- main: --main-required compares when the file is there; --main-has-no-list (the gate's declaration that main was checked
  out and has none) passes declared; a missing path without it is red. A failed download is no longer "main has no list".
- complete: every (suite, os) of the list reported a green result, no stranger, one commit, one binary per OS.
- exact: every row says whether collected must equal min_tests; the result json carries verdict green|red.
- the junit must be xunit2 (classname present, no file/line); the commit is --commit or git HEAD, never GITHUB_SHA;
  --binary is mandatory and must exist; --seal is read (it carries no sha256 of the binary: said, not compared).
- the list is validated by args, judge and complete (exit 2 with the reason); against main also exact, os, tests, marker.
- DoH e2e: with INVPW_REQUIRE_TRAP=1 a resolver trap that cannot run or bind is a failure, not a silent skip.

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

* tests: the DoH prefs follow the new split (the core declares the provider, the engine the state and the excluded names)

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

* tests: the git identity of the verdict test is a plain word

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

* A route answer the engine refuses is the engine's business, whatever its wording

The server took one wording ("Cannot find request") of an answer to a closed request as done and passed every other
protocol error up to the client. The engine also says "NS_BINDING_ABORTED
[nsIInterceptedChannel.resetInterceptionWithURI]" when the channel was cancelled while the answer was on its way: the
same event, and the client kept it as the error of the connection and raised it on its next route command.

Stock Playwright sends the three interception commands as may-fail and tells the client nothing, whatever the engine
says. So does RouteDispatcher._send now: every ProtocolError is swallowed, the route is disposed after it.

Tests: the static guard no longer allows a re-raise inside the handlers; a unit test feeds three wordings (red on the
old code for two of them).

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

* wrapper: every context carries the position the core declares for the session

The geo step is asked with the session seed (launcher, async_api, the served
browser, the default session) and the core's SessionGeo.geolocation_override()
(latitude, longitude, accuracy) becomes the standard `geolocation` context
option in _default_context_kwargs: the default context, each new_context /
new_page and each context of a remote client get Browser.setGeolocationOverride
through the existing path (server.py _apply_context_options). A geolocation given by the
caller wins; no coordinates, nothing is sent; the permission is never granted
here. Tests written ahead: tests/test_the_session_position_reaches_every_context.py.

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

* wrapper: a proxy given to a context declares its measured UDP exit (udp) in Browser.setContextProxy

The core measures where a SOCKS5 proxy's UDP leaves from and the answer is the optional
field `udp` of the proxy declaration. The wrapper hands it on:

- the launcher, the async launcher and launch_server pass the udp their geo step measured
  to configure_proxy(udp=), so it reaches Browser.setBrowserProxy;
- the server's launch (a client that composed no session) declares the proxy with what the
  geo step remembered, never coherent without a measurement;
- BrowserDispatcher._apply_context_options, the one place new_context(proxy=...) of the sync,
  async and remote clients ends in, measures the context proxy BEFORE Browser.setContextProxy
  is sent (the core discovers the TCP exit through it and measures the UDP beside it, once per
  proxy, cached by endpoint and a hash of the credentials) and the result goes in `udp`.

Tests: a recorder in place of the engine, the fake SOCKS5 gateway with a UDP relay and a STUN
server only the relay reaches, declared through STEALTHFOX_UDP_STUN_SERVERS.

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

* wrapper: the STUN servers are a launch parameter kept on the session (udp_stun_servers); the caller never declares udp

- InvisiblePlaywright(..., udp_stun_servers=None) (sync and async) and launch_server(...,
  udp_stun_servers=None) take "ip:port" IPv4 literals (None = the core's two public defaults;
  a name or a bad port raises ValueError naming the parameter) and keep them on the session.
  The launch's geo step uses them, and so does every later new_context(proxy=...): the server
  keeps the list on the browser it launches (the list rides to the server in the launcher's
  composed prefs like the session seed and is taken out before the profile is written), so the
  per-context call needs no new parameter. Nothing of it reaches the browser's environment,
  argv, prefs or pipe (tested).
- The proxy command is built by the core's context_proxy_command / launch_proxy_command: the
  `udp` field is the measurement, never what the caller wrote; configure_proxy(udp=) is gone
  and the launch's measure reaches Browser.setBrowserProxy through the core's per-proxy memory.
- The constructor-signature pin records the new keyword.

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

* tests: the e2e of the UDP relay hand the core the STUN server its gateway answers (udp_stun_servers), and the dropped-UDP cases expect the new behaviour

The core now MEASURES the UDP exit of a SOCKS5 proxy before declaring it; only `coherent`
makes the engine send UDP to the relay. A gateway of the tests that is not asked the right
way is declared `no` and its e2e would fail for a reason that is not the product's.

- _socks_servers: MEASURE_NUMBER (the fake STUN by a number of its own, so the measurement
  is told apart from the page's STUN_NUMBER), Gateway.measure_servers, silent_udp() (relay
  granted, STUN never answered -> unmeasured), relay_host on every factory.
- _udp_line (new): measure_servers, egress_by_proxy (the TCP exit of each gateway: a context
  proxy is measured against its own), declared_udp (what the launch measured; absent is not
  `unmeasured`), one place for every e2e.
- test_webrtc_realness: one launch helper behind a gateway; the relay tests, the two-contexts
  and the TURN-over-TCP tests use the exits of their own gateways; the dropped-UDP case is one
  helper with three roads (refused: no, another exit: no, never answered: unmeasured) that
  asserts the declared udp, no srflx, 701, and that the page's UDP never reached the relay.
- test_the_whole_udp_chain_by_name_e2e: the chain is told its own TCP exit (it was a
  documentation address the chain's UDP does not leave from, i.e. `no`) and asserts coherent.
- test_the_udp_line_helpers (unit): the real measurement of the core against each gateway
  and the chain; the helper's list is `ip:port` IPv4 literals the core takes.
- ci/required-suites.json: wrapper.e2e.udp 51 -> 53 (two new tests, listed by name).

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

* tests: HTTP/3 is judged on three visits of one page (h2, h3, h3 with UDP free; h2 three times without), as a retail Firefox reads them

Reference: retail 159 Linux, 15 of 15 each way (invisible_WebRTC captures/h3-fallback): with
UDP free the first visit is h2 and the second and third h3; with UDP dropped every visit is
h2 and the later loads are as fast as the first.

- _h3_server: the TCP side speaks HTTP/2 by ALPN (h2 library; HTTP/1.1 only for a client that
  offers nothing else), carrying Alt-Svc: h3; it answered HTTP/1.1 only, so the first visit
  could never read h2. One HTML document over TCP and QUIC; tcp_alpn recorded.
- test_http3_through_the_proxy_e2e: the retail method (one context, three gotos, a pause of 2 s
  after each load, nextHopProtocol of the navigation entry) on six roads: no proxy and a SOCKS5
  with coherent UDP -> h2,h3,h3 (QUIC through the relay, the server never sees this host);
  SOCKS5 that refuses UDP / leaves from another address / never answers (the declared udp is
  asserted) and an HTTP proxy -> h2,h2,h2, no QUIC at the server, no page datagram at the relay,
  visits 2 and 3 no more than 1.5 s slower than visit 1. An h3 on visit 1 is named as an error.
- _udp_line: expected_protocols / judge_visits (the sequence and the judgement, unit-tested).
- test_the_h3_line_helpers (unit): the server really negotiates h2, says Alt-Svc, answers the
  same document over h3; the judge names each mistake.
- ci/required-suites.json: wrapper.e2e.udp 53 -> 57 (the http3 file has 6 tests, was 2).

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

* A keepalive fetch is a request of the page for the client, in a real browser

e2e: the page sends a plain fetch, a keepalive fetch (cors and no-cors) and a beacon; the client must hear a `request`
for each and an end for each. Measured on the firefox-62 engine: the server received the keepalive fetches and the client
heard no `request` for them (stock Playwright's Firefox reports them). Red until the engine attributes the request to
its page.

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

* ci: the no-proxy gather is a required test of wrapper.e2e.udp (58 tests)

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

* tests: the descriptors of the spawn are asserted by running it, not by reading the core's source

test_the_spawn_keeps_the_two_hardwired_descriptors asserted that the source of the core's _spawn_posix contains
`pass_fds=(its_read, its_write, 3, 4)`. Core 62.64.0 starts the engine with posix_spawn and file actions, so the words are gone
and the test failed on every Linux unit suite although the behaviour is the same (and better).

The test now runs the spawn: a parent with nothing open on 3 and 4 and its pipes far from them launches a program that reads
fd 3 and answers on fd 4 (the contract of nsRemoteDebuggingPipe.cpp), and the answer must come back and the child must hold no
descriptor above 4 of the parent's. Same shape as the core's own test
(test_the_pipe_of_the_engine_reaches_its_fixed_descriptors). No skip: the file is already POSIX-only.

The other tests of the file do not read source text (checked: no getsource/inspect/read_text left).
Ran the parent program on Linux with core 62.64.0 (image tetra-invisible:run1b-final): pong:ping:0.

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

* tests: the fake DoH of the e2e uses a name that is not HSTS-preloaded (doh.gateway.test at 192.0.2.53), declared through extra_prefs

Firefox refuses certificate overrides for HSTS-preloaded/pinned hosts, so a self-signed fake for
mozilla.cloudflare-dns.com could never be accepted. The test now declares its own provider
(network.trr.uri, network.trr.bootstrapAddr) and counts every connection of the browser, including
the background traffic of the default context whose TLS fails by design, at the gateways.

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

* tests: the chain by name declares the FakeDoh's own provider (doh.gateway.test): the DoH of Mozilla is HSTS-preloaded and takes no override

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

* tests: the h3 e2e turn off Firefox's check of third-party roots (a self-signed test server stops HTTP/3 otherwise: measured)

The Alt-Svc is learned and the QUIC handshake of validation passes with the override, then Firefox closes the connection itself because the chain
ends in a root it does not know, and every visit stays h2. With network.http.http3.disable_when_third_party_roots_found off the three visits read
h2, h3, h3 (3 runs of 3, no proxy, on the engine of the first round).

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

* tests: the ICE server name of a PeerConnection is resolved in the context of its page, by the proxy of that context (red until the resolver carries the OriginAttributes)

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

* ci: the ICE-name e2e is part of wrapper.e2e.doh (11 tests)

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

* tests: the first datagram of a PeerConnection does not wait for a UDP association (red on the giro 2 binary: 396 ms)

The pool of UDP associations was warmed only in the process of the HTTP connections (the parent); the sockets of the PeerConnections
are made in the socket process, which found it empty and made its association from scratch: three answered steps before the first
STUN datagram. A gateway that answers every step after 130 ms makes it visible: on the giro 2 binary the first datagram leaves 396 ms
after the birth of the PeerConnection. The test asserts it leaves within 250 ms, and that an association was granted before.

The gateway of the tests now also keeps the wall-clock origin of its times and the instant of every accepted connection.

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

* A TURN server over TCP is connected to and waited for, direct and behind SOCKS5 (e2e)

A TCP stand-in for a TURN server on this machine's address accepts, reads and closes N ms after the accept; the page asks for a
TURN allocation over TCP. A retail Firefox connects, sends the Allocate request and hears 701 when the server closes (accept
at 48 ms, 701 and the gathering complete at 850 ms with N=800). The candidate engine never connected: no accept, no bytes, 701 within
9-28 ms with the gathering complete, direct and through the gateway alike.

Red on the firefox-63 candidate build; green expected with the engine commit that binds the wildcard of the declared family.

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

* ci: the warm-pool and the TURN-over-TCP e2e are required in wrapper.e2e.udp (61 tests)

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

* tests: the gather without a proxy and the ICE-name e2e wait for the engine that carries the UDP line

test_the_gather_is_real_without_a_proxy (in wrapper.e2e.udp) had no the_udp_line, unlike the other tests of its file, and the
ICE-name e2e (wrapper.e2e.doh) resolves a name through the proxy of a context, which the engine firefox-63 does. On an older
engine they skip with the reason; on the candidate (firefox-63-candidate) they run, so the exact lists of
ci/required-suites.json are unchanged. The networkidle e2e stays ungated: it needs no proxy and no UDP, and is fixed by the
Python of the core and the wrapper on any engine. Review finding 14.

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

* tests: the declared-network e2e no longer sets variables the engine does not read

STEALTHFOX_WEBRTC_PUBLIC_IP and STEALTHFOX_WEBRTC_DISABLE_IPV6 are not read by the engine or the core (the unit test of the
declaration bans them in the environment); the e2e set and deleted them and imported _FAKE_EGRESS only for that. Dead setup
that said the egress still feeds WebRTC. Review finding 27.

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

* tests: one helper for the address of this host, computed before any server starts, a host without a default route skips

this_host_address() and its two copies connected a UDP socket to 192.0.2.1 and raised OSError on a host with no default route;
in the chain it was evaluated as an argument after the TURN server, the resolver and the page were already listening, so the
test errored and leaked three listeners instead of skipping. The helper is now tests/_host_address.py (OSError => pytest.skip),
the chain asks it first, and the three copies are gone. Review finding 29.

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

* ProxyEgressNonVerificabile: the docstring says what goes unconfirmed (timezone and locale), not an address

The engine no longer declares an egress address (the host network is drawn from the seed); only the timezone and the locale are
decided from the egress. Reworded like ProxyEgressDrifted, with a test on the text that fails on the old wording. Review
finding 30.

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

* tests: a context that is the only proxy resolves its names by DoH through it (red while TRR stays mode 0 for context-only proxies, green with engine 9bff9cf8de)

A session launched with no proxy, a context made with its own SOCKS5 gateway, a page at a name only the FakeDoh can resolve: the
name must be asked to the DoH by that gateway, the page reached by address through it, nothing to the DoH directly and no
question about the zone to the resolver of the machine. Review finding 4 (the e2e that was missing).

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

* ci: the context-only-proxy DoH e2e (wrapper.e2e.doh, 12) and the host-address helper unit tests (wrapper.unit.udp, 97) are required

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

* The page dispatcher waits for Page.ready before the page is handed over (needs invisible-core with Lifecycle.wait_for_page_ready)

Same defect and fix as in the core's page (see the core commit): a goto sent right after new_page could meet the page's initial about:blank.
The pin of invisible-core moves with the core release that carries wait_for_page_ready.

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

* Pin invisible-core==62.65.0 (a page handed over when the engine says it is ready); changelog

The core that carries Lifecycle.wait_for_page_ready is invisible-core 62.65.0 (draft PR invisible_core#238), not on the index yet:
the pin check of this push is skipped on purpose (INVISIBLE_PIN_CHECK=skip).

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

* tests: the stand-in engine of the registry test says Page.ready, as the real one does (the page is handed over on it)

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

* tests: a context with a proxy resolves by DoH through it and a context without one never uses the DoH; the first navigation of a fresh context never asks the system resolver (written ahead of the engine)

The context-only test also asserts that the DoH log holds no name but the proxied context's, that no handshake failed and that the
default context's background lookups reach the system resolver (the trap, where it runs). New race test: eight contexts created
and navigated back-to-back, a launch-proxy variant, and a proxied context beside one without a proxy. The DoH e2e docstrings
follow the per-context rule.

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

* tests: the DoH of a proxied context when it is slow (2 s per answer) and when it refuses a name once; FakeDoh gains delay_s, delay_names and fail_first (written ahead of the engine)

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

* tests: the refused-once e2e shortens the DNS negative cache, so it measures a temporary block and not Firefox's 60 s failure cache

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

* tests: new_page and a popup are handed over only when the engine says Page.ready (red without the wait in PageDispatcher, green with it)

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

* ci: the resolver-race and DoH-under-stress e2e (wrapper.e2e.doh, 17) and the FakeDoh levers unit tests (wrapper.unit.udp, 110) are required

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

* tests: the refused-once e2e says what it measures and what it does not

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

* tests: the engine never reads the host's hosts file, with a proxy or without (MOZ_LOG per process, with a control)

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

* ci: the hosts-file e2e is required in wrapper.e2e.doh

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

* tests: h3 behind a proxy follows the definitive retail (never h3 at visit 1, h3 within 5 visits, h2 every visit without usable UDP)

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

* A page is built at once and announced when the engine says Page.ready (the wait inside the constructor held a popup's first request behind a page that did not exist yet, and lost its commit and load)

- PageDispatcher no longer waits in __init__; wait_until_ready() is called by the adoption between the construction and the announcement
  (context 'page' event, newPage answer). A detach while waiting ends the wait; a page that is not ready in time is disposed.
- The main frame's initializer carries what the lifecycle already knows (url, name, load states), as every other frame's does.
- Tests: unit (a popup exists and listens while it waits; what it does before its ready reaches its frame; red on 6a60dce) and e2e
  (a popup of a link, noopener or window.open reaches an in-process and a stock client of a served browser within 2 s, with and
  without a context route; 15 of 16 red on 6a60dce, 16 green).

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

* tests: the stand-in pages say wait_until_ready; the popup e2e reaches the stock client as the other served tests do

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

* tests: the popup reaches the client from another site too (a link, noopener, window.open: 16 more cases, in-process and through a served browser)

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

* A popup is reported on Page.ready as Playwright's is: no limit and no warning, with the address of the commit that came with the ready

- Stock Playwright 1.62 (measured): a 204 or a silent destination gives no page event, one that answers after 4 s gives it at 4 s with the
  destination already. The adoption of a popup waited 20 s and dropped it with a warning; now only a page a caller asked for
  (newPage) has the 20 s; a popup waits until the engine says Page.ready, the target goes away, or its context closes
  (BrowserDispatcher.end_waits_of), and says nothing.
- The ready and the commit of the document that made the page ready come in the same turn: the page is announced after a round trip to the
  engine (settle_events), so the frame reads the destination at the page event (3 of 4 slow popups said about:blank).
- In-process the slow popup arrived 0.9 s later than stock: it is the humanised click (1.1 s of pointer movement before the click returns),
  the popup arrives 4.02 s after the click in both modes.
- Tests: unit (limit None for a popup and 20 s for a requested page; a popup with no ready ends with its context and says nothing; the
  address at the page event is the commit's) red on b09d620; e2e (204 and silent: no event; 1.5 s: url is the destination; 25 s: reported
  then) in-process and through a served browser: the 25 s ones red on b09d620.

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

* A download started by a popup that is not announced yet is reported on its opener, as Playwright reports it

- Browser.downloadCreated names the tab the download came from. A tab opened for an attachment (a target=_blank link, a window.open) never gets
  a Page.ready and the engine closes it at once, so it is not among the announced pages and the download was lost: no download event
  anywhere (a21e1de had it, on the popup). Playwright's ffBrowser._onDownloadCreated reports it on the opener of a page that is not
  reported yet; so does this, from the opener recorded when the target was attached (BrowserDispatcher._openers). The abort of the
  navigation that became the download still goes to the page that owns the frame.
- Tests: unit (red on fbceeaf); the e2e of the destinations and of the popup matrix of the fake-web branch (73f1e8d): 16 + 34 cases against
  the reference measured on stock Playwright 1.62 - on fbceeaf 4 of the 16 were red (the download), now 50 of 50 green.

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

* ci: the page and popup suites of 0.50.1 are required (wrapper.e2e.page 96, wrapper.unit.page 17), wrapper.unit.udp counts 113 after the merge

* ci: the drive gate launches through the core (the engine waits for the session's road; bare Playwright never sends it); the declaration test does not resolve an engine

* A popup tells its listeners the load it reached before it was announced; an unannounced frame has no address of its own

- The popup is announced when the engine says Page.ready, which is when its document commits, so its domcontentloaded and load may be said
  before the client has the page: page.on('load') registered in the handler of the page event never fired (Playwright's does, measured by
  the independent run: destinations of 4 s and 25 s). FrameDispatcher.emit records those two states while the page is not announced and
  PageDispatcher.announce says them again right after the page event, in their order and under one lock; the first time they already set
  the state wait_for_load_state reads, so it returns at once. Only popups: a requested page is announced as before.
- The main frame is created with the address the lifecycle knows, '' if it has committed nothing (an attachment's empty tab), not
  about:blank: Playwright says '' there.
- Tests: unit (the two states after the page event, in order; red on 2f153c7); e2e: a listener registered in the handler of the page event
  hears the load of a slow popup, wait_for_load_state in the handler returns in under 2 s (in-process and a stock client over a served
  browser, window.open and link).

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

* tests: the first visit of the h3 e2e is h2 because the fixture has no HTTPS record (the retail read h3 first in 3 sessions of 15); the FakeDoh never serves type 65 and the tests assert it

* A popup whose target goes away while its page is being built is announced and closed, not waited for for ever

A download's empty tab is closed by the engine within milliseconds; on a loaded machine its page is still being built when the detach arrives.
_handle_detach recorded it as early (nobody in _building to tell) and the adoption then waited for a Page.ready that never comes: the
popup was never announced (test_popup_destinations_e2e, the download on the opener, failed once in a full suite run). The adoption now
looks at the early detaches when it registers the page as waiting.

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

* A command of the adoption that finds the target's session gone announces and closes the popup, as a detach before the ready does

The independent run on a quiet machine lost one link-into-attachment popup in a hundred: the engine closed the tab WHILE the adoption was
initializing it, answered 'cannot find session' to Page.setInitScripts, and the popup was discarded with a warning - no page event - where
Playwright's is announced and closed. PageDispatcher._build now treats an initialization command that fails because the target or its session
is gone (one test: _target_is_gone) as the same case: the page is built, flagged gone_while_building, and the adoption announces it and closes
it right after. Test: a fake engine answers 'cannot find session' to each command of the adoption in turn (parametrised): the page event and
the close arrive, no warning; red on b05741f for Page.setInitScripts.

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

* ci: the page and popup suites count the tests of release/0.50.1 6200bc2 (e2e.page 100, unit.page 24)

* ci: test_a_page_that_moves_on_e2e.py is required in wrapper.e2e.page (114): the e2e of the engine fix for a navigation the page overtook

* tests: the resolver trap says why it could not bind (the error of the socket)

* tests: the helper of the popup destinations does not shadow the browser fixture (ruff F811)

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

* tests: the resolver trap takes the first loopback address it can bind for port 53 (a hosted runner can hold 127.0.0.1:53) and writes that address in resolv.conf

* tests: two connections on one page are judged on the road they take, not on the clock of the machine

The test asserted a median of 30-55 ms, the time of a fast machine. On a GitHub runner the same healthy engine takes 67 ms (Windows) and
122 ms (Linux) and the gate was red on both: an absolute time is a verdict on the machine.

Every one of the five cold launches is now judged on what the machine cannot change:
* the data channel opens and echoes;
* each connection gathered a UDP host candidate named by mDNS (a run without UDP is the reserved-port failure: the socket could not bind and
  the connection fell back to TCP);
* the nominated pair, read from the browser's own statistics, is host to host over UDP at both ends (no road through TCP; a succeeded pair
  means the other connection's mDNS name was resolved);
* it opens in less than the responder's first retry (3 s): a name that does not come back opens only at the retry.
The time is printed beside the retail window, as a measure.

Run on the firefox-63 candidate engine: passes, [38, 39, 39, 73, 77] ms.

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

* tests: a caller that asks for the ICE in the content process, or for no socket process, gets the srflx through the relay all the same (the engine locks both prefs)

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

* ci: wrapper.e2e.udp counts 68 (the three ICE rows of test_webrtc_realness: default, content process asked, no socket process asked; the engine locks both prefs)

* tests: the popup tests do not fail on the machine's speed (no 2 s limit)

A runner with four workers delivered a popup in 2.013 s (the limit of the test was 2 s). The verdict of these tests is that the popup arrives with
its address and its load; the wait is generous (30 s) and the check of the time is gone. The wait_for_load_state of the handler is bounded by 8 s.

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

* tests: the popup tests do not fail on the machine's speed (no 2 s limit)

A runner with four workers delivered a popup in 2.013 s (the limit of the test was 2 s). The verdict of these tests is that the popup arrives with
its address and its load; the wait is generous (30 s) and the check of the time is gone. The wait_for_load_state of the handler is bounded by 8 s.

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

* tests: the fixtures that several e2e files share are in conftest.py, not imported from a sibling file (ruff F811, the lint of the tests job)

A fixture imported from a twin file and then named as a test argument is a redefinition: 60 F811 in the new tests of the UDP line, the
same error that turned the 0.50.1 CI red. The collection does not change: the same 2187 tests (1422 by default), the same setup plan
(fixture order and scope per test, compared with --setup-plan before and after).

- conftest.py: doh, gateway, trap, watcher, pages (DoH e2e), socks5_tcp_only, local_https_page (WebRTC e2e) and browser (the two-transport
  fixture of the popup tests). The heavy imports are inside the bodies, so a run without the e2e extras still collects.
- _doh_support.py (ZONE, Pages) and _socks_servers.py (Socks5TcpOnly, was _Socks5TcpOnly in test_webrtc_realness.py): the plain code the
  fixtures need, in support modules, not in a test file.
- The twin files keep what is not a test argument (the autouse _hermetic_session and the helpers, imported by name); the sibling files
  stop importing the fixtures. The four `# noqa: F811` of test_popup_destinations_e2e.py are gone: ruff passes with --ignore-noqa.

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

* tests: the trap-policy test reads the trap fixture in conftest.py (6b moved it there with the lint of the fixtures)

* The adoption of a target is one explicit state machine, proved over every order of the engine's events

Four patches of the same race (a detach before the ready, during the build, between the build and the wait, a command answered 'cannot find
session') and a fifth the exhaustive test found (a detach while the adoption waits for the main frame of a tab the engine never announced:
the wait went on for 20 s and the popup was discarded; this is the order the runner produced for the download popups: 3 of 4 lost).

- _Adoption: the single record of a target between its attach and its announcement: state (attached, building, waiting, announced), gone
  (set by the engine's detach AT ANY MOMENT), page, opener, context. It replaces _adopting, _building, _openers and _detached_early.
- Every wait of the adoption looks at gone (the main-frame wait polls it), every state change is one method (_enter_building, _enter_waiting,
  _enter_announced), a command that finds the session gone ends in the same place as a detach, a closing context takes away every adoption
  of it in any state (end_waits_of).
- Invariant: an attached target that is not a page a caller asked for gives the client exactly one page event, at its ready or at its
  disappearance (and its close right after), unless its context closed first.
- Test: test_every_order_of_the_events_of_a_popup_gives_one_page_event stops the adoption thread at six points of its own and delivers the
  engine's events (frame, commit, ready, detach, in every prefix) at every one of the eight moments: 635 orders, none sampled. Mutation
  check: without the gone-aware main-frame wait 24 orders break, without the tolerance of the command error 42, without the close after the
  page 374; without the early-gone check of _enter_waiting the adoption hangs.

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

* The adoption keeps a short trace per target and writes it where a popup is dropped or fails

The log of a CI run says that a popup was not announced and not in which order the engine's events came. Each target in flight keeps (in memory,
at most 60 short strings, nothing afterwards) what the engine said (frame, commit, ready, detach) and what the adoption did (building, waiting,
announced), with the milliseconds since the attach. It is written in the warning of a failed adoption, in the error the newPage waiter gets, in
the timeout of a requested page, and in browser._dropped (the last 16 targets dropped with their context).

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

* The WebGL determinism test says why the browser could not make a context

One run in 31 of the e2e on a loaded Linux runner failed this test with "reason='gl null'" and nothing else: getContext('webgl') gave the page null. The browser
says why in the `webglcontextcreationerror` event (statusMessage: the failure list, e.g. "tryNativeGL (FEATURE_FAILURE_EGL_LOAD_3)", "Initializing WebGL backbuffer
failed.", "GL error 0x505 occurred during OpenGL context initialization"), and each of the paths that can produce null on Linux in our engine writes a different one
(library not loaded, display not initialised, context not created, GL out of memory, backbuffer not allocated). The test reads the event and puts it in the
assertion, and tries webgl2 on a fresh canvas (the old canvas already had the failed type).

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

* tests: the same-site control of the Fission bench measures the frame, not the process pool

The control counted the processes that host a site between two reads, with the default pool of three preallocated content processes: a pool
process handed to a site after the first read moved the count without the frame having asked for anything ([63248] -> [63248, 63386] on a
four-worker runner; the same family as 5402da4, ff2123e and fef0bc5). The control now runs in a browser with dom.ipc.processPrelaunch.fission.number
at 0, where a process of a site appears only because a site needed one, and says so if the page of the site has no process to compare with.

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

* tests: the DoH e2e declare the exit the UDP measurement asks for; the gateway's page is reached by an address; e2e.udp is split in e2e.udp and e2e.web; the trap says who holds port 53

* tests: two connections on one page may nominate a peer-reflexive end; the road is what is judged

On the round 3 gate (Linux, run 43164943499) the nominated pair was host to prflx: the other connection's mDNS name was not resolved yet when its
connectivity check arrived, and the address the check came from is learned as peer-reflexive. That is the same direct local road, so the test accepts
host or prflx at each end, over UDP at both ends, and refuses what is a different road: a relay, a server-reflexive candidate (through the proxy or the
network), or TCP. The open time stays judged against the responder's first retry, and printed beside the retail window.

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

* tests: a port 53 that cannot be bound is redirected from 127.0.0.2 to a free port (iptables nat OUTPUT), the rules go with the trap

* tests: the resolver trap ends its threads before it closes its sockets, so its port is free for the next test (no more "Address already in use" on 127.0.0.1-8:53)

The answering threads sit in accept()/recvfrom(); on Linux a close() from another thread does not wake them and the kernel keeps the socket
bound until the call returns, which it never did: every trap left its address taken, and the eighth trap of a run found all eight taken
(reproduced here in a container: 19 DoH e2e, the 6 tests after the 8th trap are errors; alone, the same file passes). The loops now wake every
0.2 s to look at a flag; the teardown sets it, joins the threads, and then closes the sockets.

- test_a_closed_trap_gives_its_port_back_at_once (wrapper.unit.udp 139 -> 140): a trap on a free port is closed and a second one on the same
  port must bind 127.0.0.1 again; red on the old code on Linux.

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

* The download of a tab that is not announced yet is said after the page event of the tab

The tab opened for an attachment is announced when the engine takes it away, a few milliseconds after it says the download; the download
(reported on the opener) went to the client first, the popup after: the order the other way round from Playwright's, and a client that read
the popup the moment the download arrived found none on a one-CPU machine (the 4 download cases of GitHub, 3 of 4 red; the same on a one-CPU
container: 1, 0, 2 of 50 on a90dadc). The adoption holds the download on its record and says it right after the page event (never lost: also
when the tab is dropped or fails).

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

* tests: the discovery of the exit of a context stays covered now that the DoH e2e declare it away

The DoH e2e declare the exit the core asks for (their subject is the roads of the browser). The discovery itself keeps its own test: it goes
through the gateway of the context, by name, only to the services of the core, never through another context's gateway, and a gateway that
refuses them never makes the measurement say coherent. wrapper.unit.udp 140 -> 142.

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

* tests: the iptables fallback of the resolver trap is gone (the cause was the trap's own threads holding the port, fixed in 4933f8c); wrapper.unit.udp 141

* tests: the realness check without a real proxy - six declared exits, the values a page reads, and the judges

The manual check drove the browser through a paid proxy and compared what a page reads with the proxy's exit. This is the
same check against a local SOCKS5 gateway that declares its exit: a local site that tells a connection the gateway opened from
a direct one, FakeDoh for the names, and the core's own geo database as the truth for the zone and the country.

* test_realness_behind_a_declared_exit_e2e.py: one launch per exit (six, in six countries), read by five tests (the address a
  site sees and no connection past the gateway; nothing of the host in the WebRTC candidates and SDP; the names reach the gateway
  and not the system resolver; the zone, the offsets read two ways and a worker; the language of the page, a worker and the
  Accept-Language header against the exit's country), plus the vendored detection page loaded behind the gateway.
* _realness_support.py: the exits, ExitGateway (remembers the ports of the connections it opened), the site, the reads, the judges.
* test_the_realness_helpers.py: the judges and the gateway/site correlation held to golden reads, no browser.

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

* ci: the realness e2e (32) is a required suite, its helpers (24) join wrapper.unit.udp (165)

* A download is taken with the record's removal in one step, and the opener of a target not announced is remembered: no step of the adoption can lose it

The failure branch said the pending downloads BEFORE it removed the record: a download created between the two found the record, queued on it, and
nobody said it. Taking the pending downloads and removing the record are now one step under the browser's lock, in the three branches
(announced, dropped with its context, failed); the opener of a target that ended without being announced is kept for the last 16 targets, so a
download that comes after the record is gone is still said, on the opener. Test: the download is forced into the gap of the failing adoption
(red on 65f7580: said 0 times, now once).

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

* ci: wrapper.unit.page counts the popup-order test and the changed page tests of release/0.50.1 8049df3 (32)

* wrapper: the opener kept for the downloads of a target whose adoption failed lives until the engine detaches the target, and none is made for a target already detached; unit tests (unit.page 34)

* tests: the first datagram of a PeerConnection is judged with the session's UDP declared coherent, and the core's own probe is not counted as the engine's association

The giro 3 gate was red on this test: with a fixed time zone the core does not discover the TCP exit, so it cannot compare it with the UDP probe's mapped
address and declares the UDP of the proxy unmeasured; the engine then treats the proxy as a router that drops UDP, asks it for no association and sends
nothing (measured on the giro 3 Linux binary: the gateway saw ONE ASSOCIATE for the whole test, the core's probe; the layer was pushed on the PC's
socket and what was sent was dropped). The test gives the core the gateway's TCP exit as every e2e of the line does (egress_by_proxy), and it no longer counts
the probe's association (the first of the gateway, made before the browser exists) as one that was ready before the PeerConnection - it passed an
engine that asked for none. Green on the giro 3 Linux binary (run 43164943499).

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

* tests: the CONNECT helper of the HTTP proxy tests reads the answer one byte at a time, so the first bytes of the tunnel are not lost with the head; unit test (unit.udp 166)

When the far side wrote and closed at once, the 200 and the first bytes of the tunnel could reach the socket in one segment, and _connect_raw dropped everything after the blank line: the caller read the end of the stream instead of the data (run 43176569993, test_a_connect_to_loopback_is_relayed_and_one_that_would_leave_it_is_refused).

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

* tests: the chain by name allows loopback in ICE, because the lab's exit is 127.0.0.2 and a retail Firefox throws away an answer whose mapped address is loopback

The giro 3 gate was red on test_a_turn_srflx_by_name_arrives_through_the_relay_before_the_tick. Measured on the giro 3 Linux binary (strace of the socket
that talks to the relay + the gateway's own log): the gateway delivers the TURN server's 401 and then its success (type 0x0103) within 5 ms, the browser
reads both, answers the 401 with credentials, and never accepts the success: it retransmits the same Allocate 5 times in the 2 s of the page. The
success carries XOR-MAPPED-ADDRESS 127.0.0.2 (where the gateway's datagrams leave from, by design of the test) and nICEr rejects a loopback mapped address as
bogus (stun_client_ctx.cpp nr_stun_transport_addr_check) unless the ICE context allows loopback (turn_client_ctx.cpp; the flag is set from
media.peerconnection.ice.loopback in nricectx.cpp). The same TURN server answers a direct browser at a non-loopback address and the allocation completes in
60 ms, so the chain is sound. With the pref the chain test passes at 130 ms of round trip on the giro 3 binary; without it it fails at 0, 65 and 130 ms.

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

* tests: the comment of the first-datagram test says why the core's discovery of the exit fails in the lab (no echo service is reachable), not that a fixed time zone skips it

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

* tests: the DoH, stress and ICE-names e2e ask for a virtual display on a Linux machine that has none; unit tests (unit.udp 173)

Run 43176569993: 19 of 19 of wrapper.e2e.doh on Linux died at the launch with "no DISPLAY environment variable specified". Those files launched a headed browser without a screen (the runner has none, and the suite runs under sudo). The other e2e launch with headless=True, which is a headed browser on an Xvfb the wrapper starts itself. A machine with a display, and Windows, are left as they are.

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

* tests: the chain by name reads its srflx and its relay from the page with a gateway exit that is not loopback, and the loopback pref is gone

The exit of the lab is 198.51.100.9 (documentation, RFC 5737), held on lo with ip addr add for the length of the test; nICEr accepts it as a mapped
address (nr_stun_transport_addr_check rejects only wildcard, loopback and link-local), so the product's own setting is what is under test, not a pref that
is off in production. The page must read a srflx equal to the gateway's exit and the relay candidate of the TURN server it asked.
The file moves to a suite of its own, wrapper.e2e.udp.exit (Linux only, root): adding an address to an interface needs administrator and changes the network
of the host, so the Windows suite does not collect it (a skipped test would turn the verdict red). Chain takes exit_host; the TURN helper test runs for two exits.
Red on the old code: with the 127.0.0.2 exit and no pref the test fails at 0, 65 and 130 ms; green on the giro 3 Linux binary at 130 and 0 ms (container).

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

* tests: the DoH, stress and ICE-names e2e always launch on a virtual display (headless=True, as the UDP and realness e2e); the helper that looked at the display of the host is gone; unit tests (unit.udp 177)

A test does not behave differently by the display of the machine it runs on. Replaces the helper of 302af97.

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

* tests: the QUIC of the gateway test works on Windows: the relay leaves from the host's address, is told by its port, and a send that fails is said; unit tests (unit.udp 176)

On Windows the e2e read h2 on five visits and 'the server saw QUIC from []': the relay of the gateway sent from 127.0.0.1 to an address of its own
host (WinError 10051, nothing sends from loopback to the host's address there) in a timer that ignored every OSError, after logging the datagram as carried.

- the coherent gateway of the h3 test leaves from the host's address on every system (exit_host), and its fake STUN is bound there too (Windows sends
  neither from the host's address to loopback, 10049, nor the reverse); the relay is told from a client that came direct by the PORT it sends from
  (Gateway.exit_ports, H3Server.quic_peer_addrs); it forwards only to this host (forward_only_to): the browser's own QUIC to the Internet stays in the lab.
- Gateway._later records a send that raised (send_errors) and the report of the test shows it; the test asserts there is none.
- the relay's sockets turn SIO_UDP_CONNRESET off on Windows and a ConnectionResetError no longer ends the thread that reads.
- unit tests: a failing send is recorded and reported; a relay that leaves from the host's address reaches a server there, by a port in exit_ports and not
  one of a direct client; the fake STUN answers through it. Red on the old helpers (they have no exit_host/exit_ports/send_errors).

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

* tests: three e2e modules of the UDP line are bound to the engine that carries it, as the others are

test_networkidle_through_a_served_browser_with_routes_e2e.py (red on firefox-61 and 62: its engine fix, 0972db59da, is in the 63), test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py
and test_turn_over_tcp_is_tried_for_real_e2e.py (red before the UDP line) had only pytest.mark.e2e, so the e2e job of main, which fetches the PUBLISHED engine, would run them
against it. They now carry usefixtures(the_udp_line): they skip on an older engine and run on the candidate (REVIEW-63 #14). The collected counts do not change
(21, 1, 2); the ids stay in ci/required-suites.json, and a skip on the candidate is still red there.

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

* tests: the chain by name keeps its walk on Windows (exit of the lab on loopback, with the pref) beside the one without the pref (wrapper.e2e.udp.exit, Linux)

d41ea7e moved the whole file to the Linux-only suite. Now the file holds two tests: the walk with an exit that is not loopback and no pref (wrapper.e2e.udp.exit, Linux, root), and the walk with the exit on 127.0.0.2 and media.peerconnection.ice.loopback (wrapper.e2e.udp, Linux and Windows). Selected by node id; wrapper.e2e.udp 41 again; the notes of the two suites say why.

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

* request.resource_type agrees with the pinned driver: a beacon is `beacon`, a CSP report `cspreport`

The table that turns a Juggler cause into a Playwright resource type was a copy of the driver's and had gone stale: the pinned
driver (1.61, coreBundle.js ffNetworkManager) says `beacon` for TYPE_BEACON and `cspreport` for TYPE_CSP_REPORT; ours said `other`
for both. Measured on cnbc.com and scmp.com, our engine and Playwright's own Firefox side by side: the same POSTs (2 and about 8
per page) are `other` here and `beacon` on stock, so a client or a route filter that looks for beacons saw none.

Test (red on the old table): the driver's own table is read from the installed package and every cause it names must map to the
same type here; the next driver version that changes it fails the test, nothing is updated by hand.

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

* The old table test expects beacon for TYPE_BEACON, as the pinned driver says

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

* tests: the DoH session built by hand launches on a virtual display too, and a test reads every direct InvisiblePlaywright(...) of the DoH and realness files (unit.udp 181)

Run 43188313516: test_a_session_without_a_proxy_resolves_with_the_system_resolver died with "no DISPLAY environment variable specified": it builds its
session by hand (not through _launch) and was not covered. The new test parses the files of the two suites and fails on a construction without headless=.

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

* tests: the resolver trap counts the questions of the user that runs the test, by the owner of the socket (/proc/net), not by name; unit.udp 189

Run 43188313516: on a runner the agent of the runner asks for github.com, api.github.com and its orchestrator through the /etc/resolv.conf the trap
rewrites, and the trap blamed the browser (6 realness tests and 1 DoH test). A question whose socket belongs to another user is answered and
listed in trap.foreign, not counted. The owner is read on receipt, before the answer: measured on Linux, 3000 questions that wait for their answer,
0 unreadable; one that cannot be read counts as the browser's.

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

* tests: a loss is not a drop - behind a proxy that cannot carry the UDP of a PeerConnection, nothing of the browser reaches a witness direct (suite wrapper.e2e.udp.exit)

The e2e that check 'no srflx' cannot tell the fail-closed rule from a leak: at an address nothing routes a datagram sent direct arrives nowhere, exactly as a dropped one.
A witness (_witness.py: a STUN server and a TCP listener at 198.51.100.10, held on lo, reachable by the browser directly) hears who contacts it, and the gateways leave from ANOTHER
documentation address (the exit, 198.51.100.9; the test gateway's TCP now leaves from it too, opt-in: tcp_from_exit). In each fail-closed scenario - a SOCKS5 proxy that refuses UDP, one whose UDP
leaves from another address, one whose relay never answers, an HTTP proxy - the witness hears no datagram and no connection from a source that is not the exit; a send direct is red. The controls
that make the green mean something: the same page with no proxy IS heard by the witness (datagram and connection), and behind a coherent gateway the witness hears the exit only.
Proved in the container on the giro 3 Linux binary (green, 7 tests of the suite). The witness and the gateway's source binding have unit tests (192). Counts: wrapper.e2e.udp.exit 7, wrapper.unit.udp 192.

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

* launcher: preload_newtab, the option of the core that turns off the preloaded New Tab page

InvisiblePlaywright(preload_newtab=...) (sync, async and launch_server)
hands the core's option of the same name over, only when it is not None:
a wrapper paired with a core that does not know it cannot meet a
TypeError for a caller who never used it. None keeps the retail's
behaviour; False writes browser.newtab.preload false (no privileged-about
process); True says the retail's value aloud; a pref in extra_prefs wins.

Tests: the kwarg reaches the core only when asked and is a parameter of
every entry point; the e2e reads the process types from the engine's log
(MOZ_LOG=Process:5): privilegedabout exists by default and is absent with
the option, on every platform.

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

* ci: wrapper.unit.udp counts the three tests of preload_newtab (195); its e2e is in no suite until it has been seen green

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

* tests: the constructor signature knows preload_newtab; the witness takes TCP first (Windows excluded ranges); the preload_newtab e2e (seen green as root on Linux) joins wrapper.e2e.udp.exit (9)

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

* ci: wrapper.e2e.udp.sandbox (Linux, a normal user, the browser's sandbox on): the socket process and a tab process must have a seccomp filter, plus the three situations of the UDP line (a proxy with UDP, no proxy, a proxy without UDP with the ICE name by DoH)

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

* ci: the preload_newtab e2e moves to wrapper.e2e.udp (seen green on Windows, 10 runs of 10): udp 43, exit 7

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

* tests: the UDP witness binds TCP and UDP on one number even where the system's picks fall in a refused UDP range

Witness("127.0.0.1") failed with WinError 10013 in three unit tests of
wrapper.unit.udp on a Windows work machine, while the push before had passed
them. Windows hands out ephemeral TCP ports in sequence and keeps excluded
ranges of a hundred ports for UDP in the same zone: the witness asked the
system for a TCP port twenty times, got twenty consecutive numbers inside one
UDP range, and gave up.

Now each try binds TCP and then UDP on the same number, and if either is
refused both are released and another number is tried: the first is the
system's own pick, the others are drawn at random below both Windows'
dynamic range and Linux's ephemeral range, so they are not the next of a
sequence. 200 tries at most, then an error that names the address and the
last refusals. A port asked for is tried once and its refusal raised.

Test, red on the old code (2 of 3): a fake socket layer whose TCP picks are
sequential and whose UDP refuses 50000-50199. Real sockets on that machine,
20 runs of the witness tests each: old 19 of 20 green, new 20 of 20.

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

* ci: wrapper.unit.udp counts the three tests of the witness port pick (198)

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

* tests: the sandbox leg finds the tab processes (forked by the fork server, their argv has no 'tab' at the end): the kind comes from the last word, else from the Name in /proc/<pid>/status

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

* tests: the resolver trap counts the questions of the processes of the test (the socket's inode, the process that holds it, its parents), not of a user; a question of any other process is listed with its pid and command

Runs 43188313516 and 43211837926: on the runner the agent of the runner, as root like the browser under sudo, asks for github.com, api.github.com and its orchestrator
through the trap's /etc/resolv.conf, and a user filter cannot tell it from the browser (6 realness tests red). Measured on Linux, 40 questions of a descendant and
40 of an orphan process of the same user: 40 counted, 40 foreign, each with its pid and command. One whose process cannot be traced is judged by its user, one whose
socket is gone counts as the browser's.

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

* tests: the resolver trap counts the BROWSER (a browser process and what it starts), not the test process nor the core it runs: the core asks github.com for the latest GeoIP tag as root, the test says the browser asked

Measured on Linux: a process named firefox and its child counted 20 of 20 each; the test's own python and an orphan of the same user foreign 20 of 20 each.

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

* juggler: a download that finished before it was announced is finished

BrowserDispatcher._on_download_finished keeps the error of a download whose
artifact does not exist yet; a successful download has no error (None), and
_on_download_created popped it with a None default and tested `is not None`,
so the artifact was never marked finished and save_as, path and failure
waited forever. A module-level sentinel tells "nothing recorded" from
"finished with no error". The entry is also popped before the
unknown-context early return, so it no longer stays in the dict.

Tests: unit file (red on the old code for the success and the gone-context
cases) and a served-browser e2e with ten 300-byte and ten 1-byte downloads.

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

* juggler: an early download finish lives only as long as it can be read

The review of 6a50ad1 found three cases where an entry of _finished_early
stayed for the life of the browser: (a) a download announced while its
context was already closed, whose finish came after; (b) a finish after the
client released the artifact; (c) a finish of a uuid never announced.

The browser now keeps, per announced download, the context it belongs to,
until its finish or the end of that context. A finish whose download was
announced and whose artifact is gone writes nothing; only a finish of a
download not announced yet leaves an early entry, and those are bounded (64,
the oldest dropped first). The end of a context forgets its downloads that
never finished.

Tests, red on 6a50ad1 (4 of 10): (e) gone context, (f) released artifact,
(g) never-announced finishes are bounded, (h) the end of a context forgets.

NOT proven: that the engine ever sends a finish after the end of a context,
or a finish before the announcement. On one connection Juggler says a
download's creation before its end (TargetRegistry.js interceptDownloadRequest
then onDownloadComplete), so the early path is defensive. The e2e of tiny
downloads is a proof of use, not of the order; its docstring says so.

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

* Release 0.51.0: engine firefox-63, pin invisible-core 63.66.0; CHANGELOG for the UDP line

* Release 0.51.0: the README says what the launch counter is and how to turn it off; the CHANGELOG says what is known to be wrong (popups opened without a route, as measured)

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

* Release 0.51.0: the served launch cannot turn the launch counter off (a client's firefoxUserPrefs, bare or marked, are refused with the core's message); the history says it is no longer possible

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

* tests: the two tests that ask the resolver trap from the test process say that the test stands for the browser

Since fc10e257ca the trap counts only the questions of a browser process, found by the process that holds the socket in
/proc/net. That is only possible on Linux; on Windows every question counts, so the pre-push (Windows) stayed green
while test_the_trap_counts_a_query_it_is_sent_and_refuses_what_it_cannot_answer failed on Linux (republish run
43230437094, wrapper.unit.udp/linux: 1 failed, 218 passed): the test asks from its own python, which is not a browser,
and the question went to `foreign`. The same holds for the resolv.conf test of the root legs.

Both tests now pass is_browser=lambda pid: True. The trap itself is unchanged, so the realness leg judges the same code.

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

* tests: the HTTP/3 test server finds a port that TCP and UDP both bind where the system's picks fall in a refused UDP range

wrapper.e2e.web on the Windows runner (republish run 43230437094) failed three tests with "no port free for both TCP and UDP",
and the pre-push failed the same way on a work machine: Windows hands out ephemeral TCP ports in sequence and keeps excluded
ranges of a hundred ports for UDP in the same zone, so the old loop (fifty times the system's pick) got fifty consecutive numbers
inside one refused range. The first try is still the system's pick; the others are drawn at random below the dynamic range, as
the witness already does (same constants), and the refusals are named in the error.

Two tests with a fake socket layer (TCP picks 50000, 50001, ...; UDP refuses 50000-50199): the old loop is red on it, this one
finds a number outside the range; and a server that can bind nothing says so after a bounded number of tries. wrapper.unit.udp
goes from 219 to 221 tests (ci/required-suites.json).

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

* Release 0.51.0: the CHANGELOG and the README say only what is proven (counter: what the package refuses and whose repository counts; the real name of the async class; the popup numbers of the register; Windows memory only; addBinding out)

Markdown only. Following the fact check of the release texts: the launch counter is refused by the package's launcher and server
(not "not optional" for the engine alone) and counted in the engine's repository; preload_newtab names the async class by its real
path and keeps only the Windows numbers that have a saved run, with the engine they were taken on; the protocol mirror line about
Page.addBinding is out (not shown for the pinned engine); the differences section no longer claims a comparison run nobody saved;
the popup known issue states where, with which client, on which engines and with how much load it was seen, with the numbers of the
register, and that the correction is in 0.51.1.

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

* user-install: the wait asks pip, not the JSON page of the index, and fails saying what is missing; the upgrade test installs the version its listing named

Ledger #476 of 0.50.1: the Linux job failed in test_upgrade_e2e ("the upgrade did not move the wrapper", '0.49.1' != '0.49.1') three
minutes after the upload. The step that waits for the index had asked the per-version JSON endpoint, which answered; the listing of
`pip index versions` had 0.50.1; the `pip install --upgrade` that followed was still served the 0.49.1 page.

The wait now runs `pip download --no-deps --no-cache-dir invisible-playwright==X` (the client and the index the install uses), for at most
ten minutes, and ends in "::error::the index does not have X yet, after N minutes" instead of a warning and a run that fails later. The
upgrade test takes previous and latest from one listing and installs `WRAPPER==latest`. Four unit tests run the script of the step with a
pip that fails until its Nth call; the core's install_job gate still passes.

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

* tests: the fake pip of the wait test is a regular package, so the pip of the environment cannot shadow it

CI (runs 43196645121, 43196645144): 2 tests of the wait for the index failed on every Python of both systems. The shim was a directory with a
__main__.py and no __init__.py: a namespace package, which loses to the regular package `pip` of an environment that has one (a local uv venv
has none, so it passed there). The real pip ran, said "No matching distribution" for 9.9.9 and the shim was called 0 times. Reproduced in a venv with pip;
red without the __init__.py, green with it.

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

* tests: ask for the processes of a site by its name, never count between two reads

The e2e tests that looked at content processes compared the set of
"Isolated Web Co" processes before and after an action. The browser starts
processes of its own: the pool refill, and a process for a Mozilla site
(webIsolated=https://mozgcp.net) that the New Tab page starts about a second
after its own, with any page. Under load it was born between the two reads:
the same-site control was red in 14 of 30 runs of the whole e2e suite
([P] -> [P, P2]), the cross-site test could pass on that process alone, and
the service-worker test could read it as a process left behind.

With the test-only pref fission.processSiteNames a content process that hosts
a site is named by that site (http://a.test^u on Linux, cut at 15
characters). tests/_processes.py now returns the processes of one site by that
name; the bench and the service-worker test use it. Linux only, as before.

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

* tests: the popup process case has a browser that starts no process by itself, and asks by name on Linux

test_the_other_site_popup_runs_in_another_process counted every content process
between two reads, so a process the browser starts by itself (the pool refill,
the preloaded New Tab page and, in some countries, a process for a Mozilla
site) was taken for the popup's doing. It now has a browser of its own, on each
transport, with no preallocated processes and no preloaded New Tab page
(test-only prefs), so the count between two reads is the popup's. On Linux it
also asks by name that one of the new processes is the process of localhost.

It still runs on Windows, with no skip: the required suite wrapper.e2e.page
collects this file on both systems with an exact count, which is unchanged (34).

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

* tests: the popup process case runs its own browser in a thread of its own

The e2e of the previous commit failed at setup: the module's browser of the
matrix keeps a sync client open in the test's thread, and a second sync client
refuses to start inside its loop ("Sync API inside the asyncio loop"). The case
now opens its quiet browser in a thread with no loop and hands back its result
or its error. Same count of tests (34), still no skip on any system.

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

* Release 0.51.0: the CHANGELOG line of the process tests says only what is proven

Markdown only. The line that came with the end-to-end process tests carried a count of red runs and a cause of the extra
process that nothing saved; it now says that these are tests only and what they ask for.

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

* Release 0.51.0: pin invisible_core==63.67.0 (the protocol mirror agrees with the published engine); the popup known issue says what the correction measured

invisible-core 63.66.0 carried a protocol mirror that differed from the Protocol.js of the published firefox-63 (the e2e job's
`--check` said DRIFT: a header count and the `ref` of two optional points of Page.getFrameOrigin); 63.67.0 is 63.66.0 with the mirror
regenerated from that engine. The pin moves to it.

The popup known issue: both causes found are in the wrapper (the hand-over of a new page to the client, and the replay of a new
page's events while live ones are being delivered). The correction of the first alone lowers the red cases over 20 runs from 15 to 2
with the firefox-62 engine but only from 17 to 13 with the firefox-63 engine; the correction of the second is under test. No version
is promised.

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

* tests: the SOCKS5 proxy test uses the suite's gateway that carries the DNS-over-HTTPS (the old fake answered the DoH with nothing); the CHANGELOG says what a SOCKS5 proxy now receives

test_socks_still_goes_out_through_the_proxy_after_the_roads_were_merged was written for the road where the browser handed the
SOCKS5 proxy the NAME (socks_remote_dns). Since the DoH road (decision core-19) a browser behind a proxy asks the name to a
DNS-over-HTTPS server THROUGH the proxy (network.trr.mode 3, no fallback) and connects to the address it gets. Its fake accepted
every CONNECT and answered nothing to the DoH, so the name never resolved: `Page.goto: domcontentloaded not reached in 30s`
(on Windows the launch itself failed first: "could not discover the egress IP through the proxy: the proxy accepted the connection
and then never answered"), and its second assertion (the name reached the proxy) could not be true by design.

The test now runs on the fixtures `doh`, `pages` and `gateway` (the suite's SOCKS5 gateway that serves the DoH and relays the
loopback): the page loads, the DoH asked the name through the gateway, the page was reached by address, and the NAME never reached
the gateway. The fake and its fixture are gone (nothing else used them). Red on the old test and green three times on the new one,
on Windows, with the published firefox-63.

CHANGELOG [0.51.0], Changed: one sentence for what a SOCKS5 proxy now receives (addresses, not names) and what a proxy that cannot
carry HTTPS to the DoH server resolves (no name). Said for SOCKS5 only: for an HTTP proxy the e2e of the DoH keeps it as an
assumption that an http page's name still goes to the proxy.

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

* e2e.yml: the seven root e2e (wrapper.e2e.udp.exit) run in a root step as the gate runs them, and the run of the runner user leaves them out by name

Run 43262636367 of PR 483: the seven tests whose lab exit is 198.51.100.9 added to `lo` errored when collected as the runner user ("cannot hold ... needs root
and iproute2"). The new step copies the engine to /opt/ff and runs exactly those under `sudo -H -E env -u PYTEST_ADDOPTS -u XDG_RUNTIME_DIR INVPW_REQUIRE_TRAP=1`,
no rerun plugin, and reads its own junit: exactly 7 tests, no failure, error or skip. The full run gets --ignore/--deselect of the same tests (ROOT_FILES / ROOT_NODES),
so nothing is skipped silently and nothing runs twice.

Test: tests/test_the_root_e2e_run_in_the_root_step_and_nowhere_else.py reads the list from ci/required-suites.json and the workflow as text (no PyYAML); red on e2e.yml as it was.

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

* e2e.yml: the root e2e run AFTER the run of the runner user, and a diagnostic step says what root left behind

Run 43271443150 (PR 483): with the root step first, every launch of the run that followed waited for the browser's
readiness line until its timeout (46 stacks in connection.launch -> wait_for_ready) and the job was cancelled at 40
minutes; the same head without the step had 748 green. Now the root step comes after the full run
(if: success() || failure()), and the next step prints the files root left under the runner's home and /tmp,
/etc/resolv.conf and the addresses on lo (it decides nothing).

tests/test_the_root_e2e_run_in_the_root_step_and_nowhere_else.py now holds the order too: red on a5606dd's workflow
(the root step comes BEFORE the run of the runner user), green here.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
2026-11-12 19:55:32 +01:00
886 changed files with 52711 additions and 23377 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
+1 -1
View File
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Question or general discussion
url: https://github.com/feder-cr/invisible_playwright/discussions
url: https://github.com/oss-invisible/playwright/discussions
about: Usage questions, ideas, chat. Bugs and features still go in issues.
+275 -6
View File
@@ -6,8 +6,7 @@
# launched Firefox in true HEADLESS mode, which is content-process unstable on
# the hosted runners (eval-CSP / context-destroyed). The stealth wrapper instead
# launches Firefox HEADED on a real display; under `xvfb-run` (a virtual X
# server) that's exactly what we get on a headless CI box - stable, and the same
# thing webrtc-e2e.yml already relies on.
# server) that's exactly what we get on a headless CI box - stable.
#
# Secret-free, so it's safe in public CI: the binary is the PUBLIC firefox-9
# release (no token), and the webrtc e2e fake a local TCP-only SOCKS. The proxy
@@ -34,6 +33,15 @@ on:
- 'docs/**'
- 'LICENSE'
workflow_dispatch:
inputs:
only:
description: "Which job. `windows-control-a` runs only the Windows job of the keyboard shortcut (after the core of a release is on the index and its engine is published); `all` runs the whole workflow."
required: false
default: "all"
type: choice
options:
- all
- windows-control-a
permissions:
contents: read
@@ -75,7 +83,7 @@ jobs:
e2e:
name: e2e (linux, xvfb)
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
runs-on: ubuntu-24.04
timeout-minutes: 40
steps:
@@ -103,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
@@ -116,7 +131,16 @@ jobs:
# The generator moved into the core with the module it writes (0.30.0),
# so the check runs against the core this package installs.
run: python -m invisible_core.juggler._gen_protocol --check --binary "$(dirname "$FF")"
- name: Run the full e2e suite under a virtual display
# 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.
- name: The GeoIP database (made by the repository, same bytes every run)
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
# before the 40-minute timeout killed it on 2026-08-04: a run with no
@@ -132,9 +156,94 @@ jobs:
# the descriptors at the system level: whatever is captured is lost
# when the process is killed, which is exactly the case it exists for.
INVPW_TEST_WATCHDOG_FILE: ${{ runner.temp }}/e2e-watchdog.log
run: xvfb-run -a python -u scripts/run_e2e.py "$FF"
ROOT_FILES: tests/test_a_proxy_that_cannot_carry_udp_leaks_nothing_direct_e2e.py
ROOT_NODES: tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_before_the_tick
SANDBOX_FILES: tests/test_the_socket_process_is_sandboxed_e2e.py
# The root ones are left out by name and run in the step below, as root: here, as the runner user, they errored. The sandbox one is left out
# by name too and runs in its own step after them: it is red on a runner whose AppArmor refuses user namespaces to a normal user.
run: |
IGNORE=(); for f in $ROOT_FILES $SANDBOX_FILES; do IGNORE+=("--ignore=$f"); done
DESELECT=(); for n in $ROOT_NODES; do DESELECT+=("--deselect=$n"); done
xvfb-run -a python -u scripts/run_e2e.py "$FF" "${IGNORE[@]}" "${DESELECT[@]}"
# Runs ONLY if the step above fails, and before 2026-08-13 it could not
# THE ROOT SUITE, AS THE GATE RUNS IT (wrapper.e2e.udp.exit in ci/required-suites.json). Seven e2e need root: the exit of the lab is a documentation
# address (198.51.100.9) added to `lo` with `ip addr add`. Collected here as the runner user they ERRORED (run 43262636367: "cannot hold 198.51.100.9
# on lo (needs root and iproute2 on Linux)"), so the run above leaves them out by name (ROOT_FILES / ROOT_NODES) and this step runs them, and only
# them, the way the gate does: the engine copied to /opt/ff (the socket process execs inside a new user namespace, where the runner's 750 home is not
# readable), `sudo -H -E env -u XDG_RUNTIME_DIR` (Firefox refuses to run as root in a regular user's session), no rerun plugin. Nothing is skipped
# silently: the step reads its own junit and refuses anything but exactly that many tests, all passed.
# AFTER the run of the runner user, never before it (run 43271443150 of PR 483: with this step first, every launch of the run that followed
# waited for the browser's readiness line until its timeout, and the job was cancelled at 40 minutes; the same head without the step had 748
# green). Whatever root leaves behind (files under the runner's home or /tmp, /etc/resolv.conf, an address on lo) cannot reach a launch of the
# runner user any more; the step after this one prints what it left, and decides nothing.
# tests/test_the_root_e2e_run_in_the_root_step_and_nowhere_else.py holds the two lists, this step and the run above to the suite's list, and the order.
- name: The root e2e (wrapper.e2e.udp.exit), as root, as the gate runs them
if: success() || failure()
env:
PYTHONUNBUFFERED: "1"
ROOT_FILES: tests/test_a_proxy_that_cannot_carry_udp_leaks_nothing_direct_e2e.py
ROOT_NODES: tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_before_the_tick
ROOT_TESTS: "7"
run: |
sudo rm -rf /opt/ff
sudo cp -a "$(dirname "$FF")" /opt/ff
sudo chown -R root:root /opt/ff
sudo chmod -R go+rX /opt/ff
ROOT_FF="/opt/ff/$(basename "$FF")"
JUNIT="${RUNNER_TEMP}/root-e2e.xml"
sudo -H -E env -u PYTEST_ADDOPTS -u XDG_RUNTIME_DIR INVPW_REQUIRE_TRAP=1 "PATH=$PATH" INVPW_BINARY_PATH="$ROOT_FF" STEALTHFOX_E2E_BINARY="$ROOT_FF" python -m pytest $ROOT_FILES $ROOT_NODES -m e2e -o addopts='' -o junit_family=xunit2 -q -p no:cacheprovider -p no:rerunfailures -rs --junitxml="$JUNIT" || true
python - <<'PY'
import os, sys, xml.etree.ElementTree as ET
root = ET.parse(os.path.join(os.environ["RUNNER_TEMP"], "root-e2e.xml")).getroot()
suite = root if root.tag == "testsuite" else root.find("testsuite")
counts = {k: int(suite.get(k, 0)) for k in ("tests", "failures", "errors", "skipped")}
print("root e2e:", counts)
if counts["tests"] != int(os.environ["ROOT_TESTS"]) or counts["failures"] or counts["errors"] or counts["skipped"]:
sys.exit("the root e2e must be exactly %s tests, all passed: %s" % (os.environ["ROOT_TESTS"], counts))
PY
# THE SANDBOX E2E (wrapper.e2e.udp.sandbox), as the gate runs its first file: the browser WITH its sandbox, run by the runner user. On this runner AppArmor
# refuses user namespaces to a normal user (kernel.apparmor_restrict_unprivileged_userns=1), so the browser of every other step starts WITHOUT the sandbox
# of its socket and content processes, and tests/test_the_socket_process_is_sandboxed_e2e.py (which fails unless both have a seccomp filter) can only
# be green after the restriction is turned off. It is left out of the run above by name (SANDBOX_FILES) so that it cannot fail on a runner without the
# sysctl, and it runs here, after the run and the root step (whatever the sysctl changes cannot reach a launch of the run), as the runner user. Nothing
# is skipped silently: the step reads its own junit and refuses anything but exactly that many tests, all passed.
# tests/test_the_sandbox_e2e_runs_where_user_namespaces_are_on.py holds this step, the exclusion above and the order.
- name: The sandbox e2e (wrapper.e2e.udp.sandbox), with unprivileged user namespaces on
if: success() || failure()
env:
PYTHONUNBUFFERED: "1"
SANDBOX_FILES: tests/test_the_socket_process_is_sandboxed_e2e.py
SANDBOX_TESTS: "1"
run: |
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
JUNIT="${RUNNER_TEMP}/sandbox-e2e.xml"
xvfb-run -a env -u PYTEST_ADDOPTS INVPW_BINARY_PATH="$FF" STEALTHFOX_E2E_BINARY="$FF" python -m pytest $SANDBOX_FILES -m e2e -o addopts='' -o junit_family=xunit2 -q -p no:cacheprovider -p no:rerunfailures -rs --junitxml="$JUNIT" || true
python - <<'PY'
import os, sys, xml.etree.ElementTree as ET
root = ET.parse(os.path.join(os.environ["RUNNER_TEMP"], "sandbox-e2e.xml")).getroot()
suite = root if root.tag == "testsuite" else root.find("testsuite")
counts = {k: int(suite.get(k, 0)) for k in ("tests", "failures", "errors", "skipped")}
print("sandbox e2e:", counts)
if counts["tests"] != int(os.environ["SANDBOX_TESTS"]) or counts["failures"] or counts["errors"] or counts["skipped"]:
sys.exit("the sandbox e2e must be exactly %s tests, all passed: %s" % (os.environ["SANDBOX_TESTS"], counts))
PY
- name: What the root step left behind (diagnostic, decides nothing)
if: always()
run: |
echo "-- files owned by root under the runner's home and /tmp"; sudo find /home/runner /tmp -maxdepth 3 -user root 2>/dev/null | head -40 || true
echo "-- /etc/resolv.conf"; cat /etc/resolv.conf || true
echo "-- lo"; ip -4 addr show lo || true
# The leg ran with the pinned database, and the core never went past it to GitHub (tests/geoip_used.py wrote what it did).
- name: The leg ran with the pinned GeoIP database
if: always()
shell: bash
run: |
python scripts/ci_lab_geoip.py evidence --out "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" > /dev/null
python scripts/ci_lab_geoip.py verify --evidence "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" --used "$GEOIP_USED_OUT"
# Runs ONLY if the full run above fails, and before 2026-08-13 it could not
# exist: the hang was killed by the 40-minute ceiling, so the job came out
# `cancelled` and the following steps did not start at all. With
# `--timeout 420 --timeout-method thread` the process dies at 7 minutes and the
@@ -171,3 +280,163 @@ jobs:
path: ${{ runner.temp }}/e2e-watchdog.log
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
# <textarea>, in-process and served to the stock Playwright client). Same gate as the Linux job: it is SKIPPED, with the reason in the
# summary, until the core is on the index, and it runs unchanged after; `workflow_dispatch` with `only: windows-control-a` runs it alone.
e2e-windows-control-a:
name: e2e (windows, Control+A)
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
runs-on: windows-latest
timeout-minutes: 20
# `run:` blocks are PowerShell on Windows unless said otherwise (e2e-hunt.yml had a ParserError on its first launch there).
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 (the stock client is in the dev extra)
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)
env:
PYTHONUNBUFFERED: "1"
run: INVPW_BINARY_PATH="$FF" python -u -m pytest -m e2e -p no:cacheprovider -v tests/test_control_a_selects_all_in_a_field_e2e.py
# THE SAME e2e ON WINDOWS (Federico, 12/11: every test of the product runs on Linux AND Windows; where Windows behaves
# differently the test adapts to the system). Before this, 562 of the 808 e2e had never run on Windows in any round. The census
# of 12/11 (run 43307193708) took ~50 minutes in one job, so the files are split in four parts (the sorted list, every fourth
# file: a split that does not move when a file is added elsewhere). Left out, by name, are the suites ci/required-suites.json
# declares `linux_only` (the reason is on the row); tests/test_every_suite_runs_on_linux_and_windows.py holds both together.
e2e-windows:
name: e2e (windows, part ${{ matrix.part }})
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
runs-on: windows-2022
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
part: [1, 2, 3, 4]
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 (+ Playwright ONLY as a system tool)
run: |
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).
- name: The GeoIP database (made by the repository, same bytes every run)
run: python scripts/ci_lab_geoip.py build
- name: The files of this part, without the linux_only suites
run: |
set -e
python -m pytest --collect-only -q -m e2e -o addopts= -p no:cacheprovider 2>/dev/null | grep "::" | cut -d: -f1 | sort -u > "$RUNNER_TEMP/e2e_files.txt"
python - "${{ matrix.part }}" "$RUNNER_TEMP" <<'PY'
import json, os, sys
part, tmp = int(sys.argv[1]), sys.argv[2]
rows = json.load(open("ci/required-suites.json", encoding="utf-8"))
left_out = [t for r in rows if r.get("linux_only") for t in r["tests"]]
files = [l.strip() for l in open(os.path.join(tmp, "e2e_files.txt")) if l.strip()]
files = [f for f in files if f not in left_out]
mine = [f for i, f in enumerate(files) if i % 4 == part - 1]
nodes = [t for t in left_out if "::" in t and t.split("::")[0] in mine]
open(os.path.join(tmp, "e2e_args.txt"), "w").write("\n".join(mine + ["--deselect=" + n for n in nodes]) + "\n")
print("%d e2e files, %d left out as linux_only, %d in part %d, %d node(s) deselected"
% (len(files) + len([t for t in left_out if "::" not in t]), len(left_out), len(mine), part, len(nodes)))
PY
- name: Run this part of the e2e
env:
PYTHONUNBUFFERED: "1"
INVPW_TEST_WATCHDOG_FILE: ${{ runner.temp }}/e2e-watchdog.log
run: |
mapfile -t ARGS < <(tr -d '\r' < "$RUNNER_TEMP/e2e_args.txt")
python -u scripts/run_e2e.py "$FF" "${ARGS[@]}"
- name: The leg ran with the pinned GeoIP database
if: always()
run: |
python scripts/ci_lab_geoip.py evidence --out "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" > /dev/null
python scripts/ci_lab_geoip.py verify --evidence "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" --used "$GEOIP_USED_OUT"
- name: Close every Firefox left
if: always()
shell: pwsh
run: |
Get-Process firefox -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
"left: " + @(Get-Process firefox -ErrorAction SilentlyContinue).Count
- name: Upload the hang evidence
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: e2e-watchdog-windows-${{ matrix.part }}-${{ github.run_id }}-${{ github.run_attempt }}
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
+23 -4
View File
@@ -15,7 +15,7 @@ name: publish
# convention.
#
# BEFORE THE FIRST RUN, on PyPI: Manage project -> Publishing -> add a GitHub
# publisher with owner `feder-cr`, repository `invisible_playwright`, workflow
# publisher with owner `oss-invisible`, repository `playwright`, workflow
# `publish.yml`, environment `pypi`. Until that exists the upload fails with
# `invalid-publisher`, which is the correct failure: nothing has said this
# workflow may speak for this project. Revoke the long-lived token AFTER the
@@ -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
@@ -196,8 +196,27 @@ jobs:
# code no job has run.
run: python -m pytest -q
# The three checks on the REAL GeoIP database, and only here (the release): the legs of the pull requests and of the gates launch with the database that
# scripts/ci_lab_geoip.py makes (a few networks, the same bytes every run, no download), so what only the real one can show is looked at once per release:
# the product's own road (no variable, cold cache, the latest database downloaded), the lab database against it for the six exits, and every
# time_zone of the database known to the runner's tz database. See the docstring of scripts/ci_real_geoip_check.py.
real-geoip-database:
needs: already-published
if: needs.already-published.outputs.present != 'yes'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install the wrapper (its core comes from the index)
run: python -m pip install -e . maxminddb
- name: The real GeoIP database - the product's road, the lab database against it, every zone known
run: python scripts/ci_real_geoip_check.py
upload:
needs: [already-published, gate]
needs: [already-published, gate, real-geoip-database]
if: needs.already-published.outputs.present != 'yes'
runs-on: ubuntu-latest
environment: pypi # the trust relationship lives HERE, behind the gate
+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
+49 -10
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
@@ -173,19 +179,25 @@ jobs:
# untested until 2026-08-01, and the user who opened issue #51 was on
# 3.14. test_marker_vocabulary.py compares this list to the floor.
python: ["3.11", "3.12", "3.13", "3.14"]
# Windows runners are the scarce, 2x-cost, slow-to-schedule ones, and a
# burst of pushes queues them for a long time. Run the FULL Python range
# on ubuntu (cheap, fast) and cover Windows on 3.12 only - this is a
# pure-Python package, the OS-specific surface is tiny. The python LIST
# above stays complete so test_marker_vocabulary still sees every version.
# The FULL Python range on ubuntu; Windows on the two ends of the range,
# 3.11 and 3.14 (Federico, 12/11: every test on Linux AND Windows; the
# ends are where a version-specific difference shows first). The runners
# are free for this public repository; the account runs 20 jobs at once.
# The python LIST above stays complete so test_marker_vocabulary still
# sees every version.
exclude:
- { os: windows-latest, python: "3.11" }
- { os: windows-latest, python: "3.12" }
- { os: windows-latest, python: "3.13" }
- { os: windows-latest, python: "3.14" }
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,12 +234,33 @@ 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.
- name: The GeoIP database (made by the repository, same bytes every run)
shell: bash
run: python scripts/ci_lab_geoip.py build
- name: Run pytest
shell: bash
run: |
set -o pipefail # or tee would swallow pytest's exit code
pytest tests/ -v --tb=short -rs | tee tests-report.txt
# The leg ran with the pinned database, and the core never went past it to GitHub (tests/geoip_used.py wrote what it did).
- name: The leg ran with the pinned GeoIP database
if: always()
shell: bash
run: |
python scripts/ci_lab_geoip.py evidence --out "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" > /dev/null
python scripts/ci_lab_geoip.py verify --evidence "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" --used "$GEOIP_USED_OUT"
# This repo has the largest suite of the three and was the only one with
# no floor. pytest's exit code cannot distinguish "everything passed"
# from "the marker expression deselected everything", and `addopts`
@@ -328,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:
@@ -342,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
@@ -366,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
+77 -26
View File
@@ -94,12 +94,34 @@ jobs:
- uses: actions/setup-python@v5
with: { python-version: '3.11' }
# Only what the TEST needs. The package under test is installed by the
# Only what the TEST needs (and `uv`, for the wait below to ask uv, which the release test installs the package with). The package under test is installed by the
# test itself, into a venv it creates, from the index - installing it
# here as well would put a second copy on the path and the assertions
# would be reading the wrong one.
- name: Test harness only
run: python -m pip install --upgrade pip pytest packaging
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
@@ -109,43 +131,70 @@ jobs:
# 0.2.5. The job reported a forgotten publish that had happened two minutes
# earlier, which is the most expensive kind of red: it looks exactly like the
# real defect this workflow exists to catch.
# MEASURED AGAIN 2026-11-12 (0.50.1, ledger #476): the per-version JSON endpoint
# of PyPI answered at once, `pip index versions` listed 0.50.1, and the
# `pip install --upgrade` of the Linux job still resolved 0.49.1 (the Windows job,
# started later, was green). Those are three different pages of the index, and
# the job only needs the one pip installs from.
#
# Bounded at five minutes, so a genuinely forgotten publish still fails. The
# PER-VERSION endpoint is the authority; the aggregate `info.version` lags it
# by minutes and has its own trap, so this asks for the exact URL.
# So the question asked here is the INSTALLERS' own, both: the upgrade test installs with pip, the release test with uv (the README's
# way in), so each round asks `pip download invisible-playwright==X` AND `uv pip compile` of it (no cache, nothing installed), and the
# job goes on only after three rounds in a row in which both said yes, 15 s apart (one yes proves that one request saw the version, not
# that the next is served by the same node of the index); a no restarts the count and a call that does not answer in two minutes is
# a no. Bounded at ten minutes: a forgotten publish still fails, and it fails HERE, saying that the index does not have the
# version, instead of three steps later as a test that compares two versions.
#
# Only on the ledger pull request. A scheduled or dispatched run is not
# racing anything, and a wait there would hide a real absence behind five
# racing anything, and a wait there would hide a real absence behind ten
# minutes of polling.
- name: wait for the index to serve this version
if: github.event_name == 'pull_request'
shell: bash
run: |
python - <<'PY'
import json, os, sys, time, tomllib, urllib.error, urllib.request
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"]
url = f"https://pypi.org/pypi/{dist}/{version}/json"
deadline = time.monotonic() + 300
n = 0
# 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"))
need = int(os.environ.get("INDEX_WAIT_CONFIRMATIONS", "3"))
call_limit = float(os.environ.get("INDEX_WAIT_CALL_SECONDS", "120"))
asks = [
("pip", [sys.executable, "-m", "pip", "download", "--no-deps", "--no-cache-dir", "--disable-pip-version-check", "--quiet",
"-d", tempfile.mkdtemp(), f"{dist}=={version}"], None),
("uv", [sys.executable, "-m", "uv", "pip", "compile", "-", "--no-deps", "--no-cache", "--quiet"], f"{dist}=={version}\n"),
]
def round_says():
"""An empty string when every installer resolves the version, else what the first that did not said."""
for tool, command, stdin in asks:
try:
r = subprocess.run(command, input=stdin, capture_output=True, text=True, timeout=call_limit)
except subprocess.TimeoutExpired:
return f"{tool} did not answer within {call_limit:.0f} s"
if r.returncode != 0:
return f"{tool} said: " + ((r.stderr.strip().splitlines() or [""])[-1])
return ""
n = streak = 0
said = ""
while True:
n += 1
try:
with urllib.request.urlopen(url, timeout=30) as r:
if json.load(r).get("urls"):
print(f"::notice::{dist} {version} is on the index (attempt {n})")
sys.exit(0)
except urllib.error.HTTPError as e:
if e.code != 404:
print(f"::warning::index returned HTTP {e.code}; not waiting further")
sys.exit(0)
except OSError as e:
print(f"index unreachable ({e}); retrying")
if time.monotonic() >= deadline:
print(f"::warning::{dist} {version} still not on the index after 300s; "
f"running the checks anyway so a real absence is reported")
said = round_says()
streak = 0 if said else streak + 1
if streak >= need:
print(f"::notice::pip and uv resolve {dist} {version} from the index, {need} rounds in a row (attempt {n})")
sys.exit(0)
time.sleep(10)
if time.monotonic() >= deadline:
minutes = int(float(os.environ.get("INDEX_WAIT_SECONDS", "600")) // 60) or 1
print(f"::error::the index does not have {dist} {version} yet, after {minutes} minutes "
f"and {n} attempts, {streak} of {need} rounds in a row ({said})")
sys.exit(1)
time.sleep(poll)
PY
- name: Linux runtime libraries for the browser
@@ -162,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
-111
View File
@@ -1,111 +0,0 @@
name: webrtc-e2e
# Live WebRTC realness check against the shipped patched binary.
#
# Manual (workflow_dispatch) on purpose: it needs a firefox-N binary that
# carries the WebRTC fixes (synthetic srflx in genuine nICEr form + the
# default-route fallback behind a proxy). Run it after publishing such a
# binary - it is the release gate for "WebRTC looks real behind a proxy".
# On this Linux runner an engine older than firefox-35 never gets the synthetic
# srflx behind a SOCKS proxy (the wildcard default-route probe, fixed in
# firefox-35): test_not_blocked_behind_tcp_only_socks skips on it, naming that
# defect, and the floor below turns the skip red. From firefox-35 on, a
# missing srflx fails the test itself.
#
# No external proxy provider, no credentials: the "behind a proxy" condition is faked by an
# in-process TCP-only SOCKS5 server (refuses UDP ASSOCIATE) and the egress IP
# is injected as an RFC 5737 TEST-NET address. Fully self-contained.
on:
workflow_dispatch:
permissions:
contents: read
# Engine and GeoIP downloads go through the release API with this token.
# Anonymous requests share a 60-an-hour limit per runner address and are the
# ones GitHub drops first when it is degraded (2026-11-08: timeouts for
# unauthenticated users failed the gates three times). user-install.yml stays
# anonymous on purpose: it is the user's path.
env:
GITHUB_TOKEN: ${{ github.token }}
jobs:
# `pip install -e ".[dev]"` below resolves `invisible-core==N.M.0` from the
# package index, and the core is published BEFORE this package. This gate
# answers whether it is there yet; during that window the realness job is
# SKIPPED with the reason in the run summary rather than faked green, and
# once the core is up it runs unchanged. See
# .github/workflows/core-on-index.yml.
core-on-index:
uses: ./.github/workflows/core-on-index.yml
webrtc-e2e:
name: webrtc realness (ubuntu, py3.12)
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install package + dev extras
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Fetch the patched Firefox binary and expose its path
shell: bash
run: |
# NOT `echo "VAR=$(cmd)" >> $GITHUB_ENV`. echo exits 0 whatever the
# substitution did, so `set -e` never sees a failure and an EMPTY
# value lands in the environment. Both tests below then hit
# `pytest.skip("no patched binary")`, pytest exits 0, and the job is
# green having verified nothing - which is exactly what run #1 did.
set -euo pipefail
FETCH_OUTPUT="$(python -m invisible_playwright fetch)"
printf '%s\n' "$FETCH_OUTPUT"
BIN="$(printf '%s\n' "$FETCH_OUTPUT" | tail -n 1)"
if [ -z "$BIN" ] || [ ! -e "$BIN" ]; then
echo "invisible_playwright fetch returned '$BIN', which is not a" >&2
echo "file. Refusing to run a suite that would skip itself green." >&2
exit 1
fi
echo "STEALTHFOX_E2E_BINARY=$BIN" >> "$GITHUB_ENV"
- name: Run WebRTC realness e2e (xvfb for the headless Firefox)
run: |
set -o pipefail
sudo apt-get update && sudo apt-get install -y xvfb
xvfb-run -a pytest tests/test_webrtc_realness.py -m e2e -o addopts="" -v -rs | tee webrtc-report.txt
# Run #1 was GREEN with the headline assertion skipped: "1 passed, 1
# skipped", and the skipped one is the test this workflow's own header
# calls the point of the gate. pytest's exit code cannot tell that from a
# pass, and this file was the only one of four without a floor.
- name: Refuse a run whose main assertion did not execute
shell: bash
run: |
python - <<'PY'
import pathlib, re, sys
text = pathlib.Path("webrtc-report.txt").read_text(encoding="utf-8", errors="ignore")
passed = int((re.search(r"(\d+) passed", text) or [0, 0])[1] or 0)
skipped = int((re.search(r"(\d+) skipped", text) or [0, 0])[1] or 0)
if skipped:
print("these tests SKIPPED, so the gate verified less than it "
"claims:", file=sys.stderr)
for line in text.splitlines():
if line.startswith("SKIPPED"):
print(" " + line, file=sys.stderr)
if passed < 2 or skipped:
print(f"{passed} passed / {skipped} skipped - this gate exists for "
f"the synthetic-srflx assertion; a run that skips it is not "
f"a pass.", file=sys.stderr)
sys.exit(1)
print(f"{passed} tests ran, none skipped")
PY
+301 -18
View File
@@ -4,7 +4,289 @@ 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
### 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`.
### 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)
- `Locator.screenshot()` and `ElementHandle.screenshot()`: a picture of the element, as in Playwright, in the page, in a frame of another site and in a frame nested in it. (#470)
### Fixed
- 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)
### 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
### Changed
- Pins invisible-core 64.71.0 and with it the engine firefox-64. A request a page causes now leaves in the context of that
page, by that context's proxy and resolver: the name of a TURN server over TCP, the OCSP request of a certificate, the TLS
over a tunnel, the Safe Browsing completion of a page load. Nothing of a context with a proxy goes out DIRECT when a proxy
lookup fails or the context has just closed. On Linux the profile lock no longer looks up the machine's host name.
- Typing: each key is sent at its planned time measured from the start of the action, so a late reply no longer shifts the
keys after it, and the engine delivers each key at once with its event born the declared latency in the past. Measured
against stock Playwright Firefox, 20 runs per cell, slip of the last key against the plan (median): Windows 635 ms before,
6 ms now (stock 122); Linux 554 ms before, -5 ms now (stock 91).
### Fixed
- Screencast: a frame that arrives while the start of the screencast is being answered is held and acknowledged,
not dropped, so the stream no longer dies from its first frame (the engine keeps one frame in flight and waits for its
acknowledgement).
- No thread is started on the engine connection's reader any more (the adoption of a new page and the file chooser hand
their work to one long-lived starter). On Windows under load a Thread.start there held every event behind it; without
instrumentation, goto(..., wait_until="networkidle") on pages that replace themselves missed 1 in 1200 instead of 4.
### Tests
- The suites "nothing of a context leaves but through its proxy" (a witness of every direct arrival, the engine's resolver
log as the sink of native lookups), on Linux and Windows, including two contexts with their own proxies at once and a
PeerConnection of a torn-down window.
- Windows: the isolated-page test moves the page when the test says so instead of on a 500 ms timer; the sandbox test
reads again a process that is still starting.
## [0.51.1] - 2026-11-13
### Changed
- Pins invisible-core 63.68.0 (core fixes on the same firefox-63 engine: two sessions starting together on Windows no longer fail on the shared font-manifest cache; no MOZ_*, GL or toolkit variable of the host reaches the engine; GitHub is asked for the latest GeoIP database once a day, not on every launch; mouse moves carry the pressed buttons; a CORS preflight does not count for networkidle).
- The project moved to the oss-invisible GitHub organization: every GitHub link, the issue templates and the package URLs point to github.com/oss-invisible/playwright. The PyPI name and the import name do not change; the old addresses redirect.
### Fixed
- A popup (a `window.open` or a `target=_blank` link) could be handed to the client at `about:blank`, with the blank page's `load`, when it
was opened with no route on the context: the commit of its address, or its `DOMContentLoaded` and `load`, arrived while the page was being
handed from its buffer to its dispatcher and was told to nobody (`page.url` stayed `about:blank`, or `wait_for_load_state("load")` timed
out). Measured on Windows with the library's client in the same process, `test_popups_reach_the_client_e2e.py` x20 on 4 workers: 3 runs
red with the published firefox-62 engine and 11 with firefox-63. The page is now handed over in one step: what the client was not told is
said once, in order, and nothing the engine sent in that period is lost.
- The same hand-over dropped every event that is not a request: a `console` message, a `pageError`, a `dialog` (an `alert()` that opened
while the popup was being built blocked its page for good, because no client had been told of it and none could answer it), a `crash`, a file chooser. All
of them are given back now, in the order they arrived. The only bound left is the memory of the buffer (512 events): an event beyond it is
lost and a `RuntimeWarning` says how many, once per page.
- The hand-over holds when the engine's reader, the adoption and a close run at the same time: a `load` is told to the client once (not twice,
so `page.on("load")` runs once); an event the engine sends while the held ones are being given back waits for them (a response is never handled
before its request); a document committed at the same address as the previous one is told; a page closed while it was being adopted is not given
frames, and is not announced, after its `__dispose__`; one frame never gets two dispatchers.
- A popup could still be handed to the client at `about:blank` (or with its navigation pending again, and "Execution context was destroyed" in its
first evaluate) when the destination committed while the events the page had missed were being replayed to it: the engine's reader went on
delivering the live events to the lifecycle, and the replay then brought older ones after them. The page now subscribes its readers and is
handed the missed events in one step, with the delivery of the sessions' events held, so a live event never overtakes the replay.
With the three corrections together, on Windows with the library's client in the same process, under load: 680/680 and 256/256 popup cases
green (run 43261858525).
- `Control+A` selects all in an `<input>` and a `<textarea>` on Windows, on the published engine and the core this package pins: a new end-to-end
test (five ways to press the shortcut, in-process and served to the stock client), run by `e2e.yml` on Windows, 20/20 green (run 43262320744).
- Tests only: the e2e tests of the test servers take their ports from one sequence (no two servers draw the same one); the two tests that read a
consecutive pair of host ports run alone, after the parallel tests; the sandbox e2e (the browser's seccomp filter) runs in a step of its own that
turns unprivileged user namespaces on, and is left out of the normal run; every leg launches with a GeoIP database the repository builds (same
bytes every run, no download); the CodeQL alerts of the test code are fixed; the install job waits for the package index through both installers;
the raw Juggler tests wait for `Page.ready` and the main frame instead of a fixed time.
## [0.51.0] - 2026-11-12
### Changed
- Engine firefox-63 through invisible-core 63.67.0, which this version pins (63.67.0 is 63.66.0 with the protocol mirror regenerated from the published engine; the mirror of 63.66.0 differed from it). Behind a proxy: names are resolved by the browser's own
DNS-over-HTTPS through the proxy (not by the machine's resolver; checked with a resolver trap on Linux), WebRTC and HTTP/3 send
their UDP through the proxy's relay when its UDP was measured to leave from the same address as its TCP, and a proxy whose UDP
does not hold (including one whose UDP leaves from another address) is treated as a router that drops it (HTTP/3 falls back to
HTTP/2, ICE gathers no server-reflexive candidate). A proxy given to a context declares its own measured UDP exit. The interface
list WebRTC gathers is the network the session declares.
- Behind a SOCKS5 proxy the proxy now receives addresses, not names (the names are resolved by the DNS-over-HTTPS through it); a proxy
that cannot carry HTTPS to mozilla.cloudflare-dns.com resolves no name.
- A STUN server list can be given at launch (`udp_stun_servers`) for the measurement of the proxy's UDP.
- Every context carries the position the core declares for the session (the geolocation override of the context).
- The package's launcher and server refuse the two prefs that govern the launch counter, `invisible_firefox.usage_ping.enabled` and
`invisible_firefox.usage_ping.url`, in `extra_prefs` (and in the `firefoxUserPrefs` of a served launch). The engine counts launches with
an anonymous GET to the `usage-counter` release of the engine's repository (`oss-invisible/firefox_antidetect_patch`).
### Added
- `preload_newtab=False` turns off the preloaded New Tab page, on request only (`InvisiblePlaywright`,
`invisible_playwright.async_api.InvisiblePlaywright` and `launch_server`): by default the browser keeps it, as a retail Firefox does.
A retail Firefox keeps the New Tab page ready in a content process of its own; with the option it is not started. `None` writes
nothing, `True` says the retail value aloud, and a `browser.newtab.preload` in `extra_prefs` wins over it. Needs invisible-core
63.66.0 or later. Measured on Windows (run 43211271731), on an engine build of the firefox-63 candidate line (not the published engine), one
page of a site, five alternating runs: the browser's processes together take 448-454 MB as shipped and 231-239 MB with the option
(private memory 301-307 against 158-171 MB).
### Fixed
- A request the browser resumed and whose channel is replaced and cancelled before the replacement starts (a `fetch` with
`keepalive`, a beacon) is reported as failed, so it no longer keeps `networkidle` from arriving (engine firefox-63).
- A navigation the page overtakes (`location.replace`) ends, and the document that overtook it is told (engine firefox-63).
- A click in a frame under a CSS transform is mapped back to the point the frame shows, and a click in a frame scrolls the
element in even when its point is inside the main viewport (invisible-core 63.66.0).
- `request.resource_type` agrees with the pinned driver: a beacon is `beacon` and a CSP report is `cspreport` (it said `other`).
- A download whose finish is seen before its announcement is marked finished: `save_as`, `path` and `failure` used to wait for ever on it.
The early finishes the browser keeps are bounded (64) and forgotten with their context. (That the engine sends a finish before the
announcement is not proven; the path is defensive.)
- The opener kept for the downloads of a target whose adoption failed lives until the engine detaches the target, and none is
made for a target already detached.
- Tests only: the end-to-end tests that look at content processes ask for the processes of a site by its name and no longer compare two counts.
### Known differences from stock Playwright
What a script that drives the browser can observe, from the configuration of Playwright's own Firefox and of a retail Firefox (no
comparison run is saved). The result of a `window.open` (`null` or a window) is read by the page; the others are what the script sees.
- **A `window.open` from a script with no user gesture is blocked, as in a retail Firefox.** Playwright's own Firefox turns the popup
blocker off (`dom.disable_open_during_load` false in its `playwright.cfg`); a retail Firefox keeps it on, and so does this browser. So
`page.evaluate("window.open(url)")` returns `null` to the page and no `page` event comes; the same `window.open` from a click opens
the popup on both. To get stock's behaviour: open the popup from a click; or pass
`extra_prefs={"dom.disable_open_during_load": False}` for the session, knowing that a page then sees a browser that differs from a
retail Firefox.
## [0.50.1] - 2026-11-12
@@ -1174,7 +1456,7 @@ browser reads that decision.
`new_context` failed with `NS_ERROR_NOT_AVAILABLE`.
- **A routed request carries its body.** `request.post_data`,
`post_data_json` and `post_data_buffer` were None for every POST, in a route
handler and on the `request` event alike (feder-cr/invisible_core#90). The
handler and on the `request` event alike (oss-invisible/core#90). The
body is there whenever a route is set on the page or its context; without a
route it stays None, which keeps the engine from copying every POST body.
- **`go_back()` goes back over a page the script left without a gesture**,
@@ -2171,7 +2453,8 @@ browser reads that decision.
repository that builds and ships the engine. The engine's compiled default
says the same from the next build. Engines older than firefox-21 do not read
the pref and are not counted. To opt out of the ping, set
`invisible_firefox.usage_ping.enabled` to `False` in `extra_prefs`.
`invisible_firefox.usage_ping.enabled` to `False` in `extra_prefs`. (Since 0.51.0 this is no longer possible: the
counter cannot be turned off or redirected.)
- **The `browser launches` badge is back.** It was removed in 0.7.2 because the
counter behind it lived on a repository that had been deleted, so the badge
would have redrawn a frozen number every morning. The counter has lived on
@@ -2783,10 +3066,10 @@ browser reads that decision.
## [0.3.1] - 2026-07-13
### Fixed
- [#48](https://github.com/feder-cr/invisible_playwright/issues/48): Playwright 1.61 adds an `isMobile` field to the `Browser.setDefaultViewport` Juggler command that the FF150 binary does not accept, which kills the session. The range narrows from `>=1.40,<1.61` to the CI-tested 1.55.x (`>=1.55,<1.56`, single-sourced from `scripts/playwright_pin.txt`) so a fresh install always gets a compatible client. Widened again in 0.3.2, once `firefox-18` rebased onto Firefox 151.
- [#48](https://github.com/oss-invisible/playwright/issues/48): Playwright 1.61 adds an `isMobile` field to the `Browser.setDefaultViewport` Juggler command that the FF150 binary does not accept, which kills the session. The range narrows from `>=1.40,<1.61` to the CI-tested 1.55.x (`>=1.55,<1.56`, single-sourced from `scripts/playwright_pin.txt`) so a fresh install always gets a compatible client. Widened again in 0.3.2, once `firefox-18` rebased onto Firefox 151.
### Changed
- The patched-Firefox source repo is now `feder-cr/firefox_antidetect_patch` (it was `feder-cr/invisible_firefox`, a name the profile manager took over). Release notes, CI references and the release URLs the download tests mock all point at the new name; the binaries themselves are unchanged.
- The patched-Firefox source repo is now `oss-invisible/firefox_antidetect_patch` (it was `feder-cr/invisible_firefox`, a name the profile manager took over). Release notes, CI references and the release URLs the download tests mock all point at the new name; the binaries themselves are unchanged.
- The wrapper no longer injects the font-list / system-UI environment variables at launch: the binary ships its own font bundle and is self-contained on that front. The integration tests were adapted and the font-sampling tests dropped.
### Added
@@ -2836,7 +3119,7 @@ browser reads that decision.
## [0.1.8] - 2026-05-23
### Fixed
- [#20](https://github.com/feder-cr/invisible_playwright/issues/20): cross-origin iframes were unreachable from Playwright. `element_handle.content_frame()` returned `None`, `frame.evaluate()` threw cross-origin SOP errors, and `frame_locator(...).click()` timed out even with `force=True`. Root cause: FF150 defaults `fission.webContentIsolationStrategy=1` (`IsolateEverything`), which site-isolates every cross-origin iframe into a separate `webIsolated` content process even when `fission.autostart=False`. The parent's Juggler FrameTree then has a Frame placeholder with no docShell and no URL - every protocol op that needs to enter the iframe fails. Fix: pin `fission.webContentIsolationStrategy=0` (`IsolateNothing`) in the baseline prefs. The setting can be flipped back per session via `extra_prefs={"fission.webContentIsolationStrategy": 1}`.
- [#20](https://github.com/oss-invisible/playwright/issues/20): cross-origin iframes were unreachable from Playwright. `element_handle.content_frame()` returned `None`, `frame.evaluate()` threw cross-origin SOP errors, and `frame_locator(...).click()` timed out even with `force=True`. Root cause: FF150 defaults `fission.webContentIsolationStrategy=1` (`IsolateEverything`), which site-isolates every cross-origin iframe into a separate `webIsolated` content process even when `fission.autostart=False`. The parent's Juggler FrameTree then has a Frame placeholder with no docShell and no URL - every protocol op that needs to enter the iframe fails. Fix: pin `fission.webContentIsolationStrategy=0` (`IsolateNothing`) in the baseline prefs. The setting can be flipped back per session via `extra_prefs={"fission.webContentIsolationStrategy": 1}`.
### Added
- `tests/test_cross_origin_iframe.py`: 4 unit + 5 e2e regression sentinels for cross-origin iframe interaction. The e2e layer runs entirely offline against two local HTTP servers on `127.0.0.1` (two ports = two SOP origins) and covers `page.frames` URL tracking, `content_frame()`, `frame.evaluate()`, `frame_locator(...).locator(...)`, and end-to-end `dispatch_event("click")` for plain, sandboxed and titled iframes. A future FF upgrade or fingerprint A/B that flips the pref back to `1` will fail the suite before shipping.
@@ -2847,7 +3130,7 @@ browser reads that decision.
## [0.1.7] - 2026-05-21
### Fixed
- [#18](https://github.com/feder-cr/invisible_playwright/issues/18): Tab crash when running with `headless=True` on Windows on pages that trigger cross-process navigation. Two separate bugs that only manifested together: (1) the Chromium content sandbox at default level 6 puts content processes on `kAlternateWinstation`, but the wrapper hides the browser window on its own alt-desktop (`CreateDesktop` for headless on Windows). Mismatched desktops → cross-process navigations couldn't reparent windows → content process exits cleanly and Playwright fires `page.on('crash')`. (2) The canvas2d `getImageData` stealth spoof wrote to a read-only mapped `DataSourceSurface`. On GPU-backed canvases that memory is write-protected → segfault during the final `getImageData` at page unload. Wrapper now sets `security.sandbox.content.level=4` in the alt-desktop workaround set, and `firefox-7` ships the source fix that moves the noise to the JS array's writable backing buffer.
- [#18](https://github.com/oss-invisible/playwright/issues/18): Tab crash when running with `headless=True` on Windows on pages that trigger cross-process navigation. Two separate bugs that only manifested together: (1) the Chromium content sandbox at default level 6 puts content processes on `kAlternateWinstation`, but the wrapper hides the browser window on its own alt-desktop (`CreateDesktop` for headless on Windows). Mismatched desktops → cross-process navigations couldn't reparent windows → content process exits cleanly and Playwright fires `page.on('crash')`. (2) The canvas2d `getImageData` stealth spoof wrote to a read-only mapped `DataSourceSurface`. On GPU-backed canvases that memory is write-protected → segfault during the final `getImageData` at page unload. Wrapper now sets `security.sandbox.content.level=4` in the alt-desktop workaround set, and `firefox-7` ships the source fix that moves the noise to the JS array's writable backing buffer.
### Changed
- `BINARY_VERSION` bumped from `firefox-5` to `firefox-7`. `firefox-6` was rolled back when its partial fix turned out to be wrong (the iframe-burst hypothesis was a dead end; bisection in the evening found the real two-bug cause documented above).
@@ -2866,12 +3149,12 @@ browser reads that decision.
## [0.1.5] - 2026-05-20
### Fixed
- [#15](https://github.com/feder-cr/invisible_playwright/pull/15): `python -m invisible_playwright fetch` raised `RuntimeError: no SHA256 for firefox-150.0.1-stealth-linux-x86_64.tar.gz in checksums.txt` for every user because the parser kept the `*` binary-mode prefix that `sha256sum` writes in front of filenames. Now `.lstrip("*")` is applied to the key. Reporter + patch: [@LostBoxArt](https://github.com/LostBoxArt). Unrelated to the `firefox-N` binary; existing caches still work, only first-time fetches were broken.
- [#15](https://github.com/oss-invisible/playwright/pull/15): `python -m invisible_playwright fetch` raised `RuntimeError: no SHA256 for firefox-150.0.1-stealth-linux-x86_64.tar.gz in checksums.txt` for every user because the parser kept the `*` binary-mode prefix that `sha256sum` writes in front of filenames. Now `.lstrip("*")` is applied to the key. Reporter + patch: [@LostBoxArt](https://github.com/LostBoxArt). Unrelated to the `firefox-N` binary; existing caches still work, only first-time fetches were broken.
## [0.1.4] - 2026-05-20
### Fixed
- [#13](https://github.com/feder-cr/invisible_playwright/issues/13): every page that threw an uncaught JS error (e.g. bunny.net) crashed the Playwright client with `TypeError: Cannot read properties of undefined (reading 'url')`. Root cause: upstream Playwright Juggler added a required `location` field to the `Page.uncaughtError` event in the 2026-05-07 roll ([microsoft/playwright@c8604ec](https://github.com/microsoft/playwright/commit/c8604ecd97)); our fork was carrying the pre-roll schema in every `firefox-N` build. Fix matches upstream - Runtime.js builds the `errorLocation`, PageAgent.js forwards it on both worker and runtime error paths, Protocol.js declares the schema field. Reporter: [@dionorgua](https://github.com/dionorgua).
- [#13](https://github.com/oss-invisible/playwright/issues/13): every page that threw an uncaught JS error (e.g. bunny.net) crashed the Playwright client with `TypeError: Cannot read properties of undefined (reading 'url')`. Root cause: upstream Playwright Juggler added a required `location` field to the `Page.uncaughtError` event in the 2026-05-07 roll ([microsoft/playwright@c8604ec](https://github.com/microsoft/playwright/commit/c8604ecd97)); our fork was carrying the pre-roll schema in every `firefox-N` build. Fix matches upstream - Runtime.js builds the `errorLocation`, PageAgent.js forwards it on both worker and runtime error paths, Protocol.js declares the schema field. Reporter: [@dionorgua](https://github.com/dionorgua).
### Changed
- `BINARY_VERSION` bumped from `firefox-3` to `firefox-4`. JS-only change inside `chrome/juggler/`; `xul.dll` and `firefox.exe` are byte-identical to `firefox-3`.
@@ -2879,7 +3162,7 @@ browser reads that decision.
## [0.1.3] - 2026-05-19
### Changed
- `BINARY_VERSION` bumped from `firefox-2` to `firefox-3`. The new archives on both Windows and Linux are built from a clean clone of [feder-cr/firefox_antidetect_patch#stealth/150](https://github.com/feder-cr/firefox_antidetect_patch/tree/stealth/150) - the consolidated source-of-truth fork (renamed from `feder-cr/firefox`; the companion `feder-cr/firefox-stealth` patches repo was deleted, all patches now live as commits on top of `mozilla-firefox/firefox`).
- `BINARY_VERSION` bumped from `firefox-2` to `firefox-3`. The new archives on both Windows and Linux are built from a clean clone of [oss-invisible/firefox_antidetect_patch#stealth/150](https://github.com/oss-invisible/firefox_antidetect_patch/tree/stealth/150) - the consolidated source-of-truth fork (renamed from `feder-cr/firefox`; the companion `feder-cr/firefox-stealth` patches repo was deleted, all patches now live as commits on top of `mozilla-firefox/firefox`).
- The patched Firefox archive now ships the **proper C++ implementation** of `windowUtils.jugglerSendMouseEvent`, replacing the JS shim from 0.1.2.
### C++ fixes landed in this release
@@ -2890,7 +3173,7 @@ browser reads that decision.
- **C7 (partial)**: storage stub for `nsIDocShell.languageOverride`. Workaround `InvisiblePlaywright(locale="")` recommended until full BC FIELD port lands.
### Verified
- Both archives built from same source: feder-cr/firefox_antidetect_patch commit `68906f1f9c55`.
- Both archives built from same source: oss-invisible/firefox_antidetect_patch commit `68906f1f9c55`.
- Windows + Linux smoke suite green: launch, `ctx.new_page()`, `page.mouse.{move,down,up,click,wheel}`, `navigator.webdriver=false`, sannysoft 32/33 PASS.
- SHA256 published in `checksums.txt` on the `firefox-3` release.
@@ -2909,7 +3192,7 @@ browser reads that decision.
## [0.1.1] - 2026-05-18
### Fixed
- **Critical**: every `page.mouse.*`, `page.click(selector)`, `locator.click()`, `page.hover()`, `mouse.wheel()` failed on the patched Firefox 150 binary with `win.windowUtils.jugglerSendMouseEvent is not a function`. The Juggler JS was porting calls to a Playwright-specific C++ method that was never landed in the FF146→FF150 port; replaced with the Mozilla chrome-scope `win.synthesizeMouseEvent` helper which is present in FF150. Six call sites patched across `juggler/protocol/PageHandler.js` and `juggler/content/PageAgent.js`. Reporter: [@trob9](https://github.com/trob9) - [#9](https://github.com/feder-cr/invisible_playwright/issues/9).
- **Critical**: every `page.mouse.*`, `page.click(selector)`, `locator.click()`, `page.hover()`, `mouse.wheel()` failed on the patched Firefox 150 binary with `win.windowUtils.jugglerSendMouseEvent is not a function`. The Juggler JS was porting calls to a Playwright-specific C++ method that was never landed in the FF146→FF150 port; replaced with the Mozilla chrome-scope `win.synthesizeMouseEvent` helper which is present in FF150. Six call sites patched across `juggler/protocol/PageHandler.js` and `juggler/content/PageAgent.js`. Reporter: [@trob9](https://github.com/trob9) - [#9](https://github.com/oss-invisible/playwright/issues/9).
- `_linkedBrowser.scrollRectIntoViewIfNeeded()` is now guarded at both call sites in `PageHandler.js` (`dispatchMouseEvent` and `dispatchWheelEvent`) - the method is not present on the shipped FF150 `<browser>` element, so the unguarded call threw before the mouse event was dispatched.
### Added
@@ -2933,7 +3216,7 @@ browser reads that decision.
- SOCKS5 / SOCKS4 / HTTP / HTTPS proxy support with auth.
- Linux x86_64 and Windows x86_64 binary support.
[0.4.3]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.3
[0.4.3]: https://github.com/oss-invisible/playwright/releases/tag/v0.4.3
> The two oldest entries point at a COMMIT, not a tag: 0.1.0 and 0.1.1
> predate arriving on PyPI (the index starts at 0.3.5) and never had
> a tag. Creating one today is not harmless: `publish.yml` triggers
@@ -2941,8 +3224,8 @@ browser reads that decision.
> does not short-circuit, so a new tag could kick off a publish
> attempt. The commit is the same information without that risk.
[0.1.1]: https://github.com/feder-cr/invisible_playwright/compare/7a983e99c53fa1ec1a443651a4dd9de42258dc61...589c848e07a67c459969a2ddfb79851f48b10eff
[0.1.0]: https://github.com/feder-cr/invisible_playwright/commit/7a983e99c53fa1ec1a443651a4dd9de42258dc61
[0.4.4]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.4
[0.4.5]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.5
[0.4.6]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.6
[0.1.1]: https://github.com/oss-invisible/playwright/compare/7a983e99c53fa1ec1a443651a4dd9de42258dc61...589c848e07a67c459969a2ddfb79851f48b10eff
[0.1.0]: https://github.com/oss-invisible/playwright/commit/7a983e99c53fa1ec1a443651a4dd9de42258dc61
[0.4.4]: https://github.com/oss-invisible/playwright/releases/tag/v0.4.4
[0.4.5]: https://github.com/oss-invisible/playwright/releases/tag/v0.4.5
[0.4.6]: https://github.com/oss-invisible/playwright/releases/tag/v0.4.6
+7 -7
View File
@@ -4,9 +4,9 @@ Thanks for your interest in improving this project. Contributions are welcome vi
## Quick links
- **Bug or idea?** Open an [issue](https://github.com/feder-cr/invisible_playwright/issues/new/choose).
- **Bug or idea?** Open an [issue](https://github.com/oss-invisible/playwright/issues/new/choose).
- **Security issue?** Do **not** open a public issue - see [SECURITY.md](SECURITY.md).
- **The C++ patches** live in the companion repo [feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch) (branch `stealth/151`). Bugs in fingerprint spoofing usually belong there.
- **The C++ patches** live in the companion repo [oss-invisible/firefox_antidetect_patch](https://github.com/oss-invisible/firefox_antidetect_patch) (branch `stealth/151`). Bugs in fingerprint spoofing usually belong there.
## Scope
@@ -16,7 +16,7 @@ This repository ships the **Python wrapper** (`invisible_playwright`) around a p
- The CLI (`invisible-playwright fetch`, `invisible-playwright version`)
- Tests, docs, examples, packaging
The fingerprint, the engine download and the browser protocol client are shared by every wrapper and live in [invisible_core](https://github.com/feder-cr/invisible_core).
The fingerprint, the engine download and the browser protocol client are shared by every wrapper and live in [invisible_core](https://github.com/oss-invisible/core).
Out of scope (belongs in `firefox_antidetect_patch`):
@@ -30,8 +30,8 @@ To *use* the package you do not need any of this: see [Install](README.md#instal
The steps below are for working on the code, with [uv](https://docs.astral.sh/uv/).
```bash
git clone https://github.com/feder-cr/invisible_playwright.git
cd invisible_playwright
git clone https://github.com/oss-invisible/playwright.git
cd playwright
uv venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
uv pip install -e ".[dev]"
@@ -66,9 +66,9 @@ CI must be green before merge.
Before opening, please:
- Search [existing issues](https://github.com/feder-cr/invisible_playwright/issues) - the bug may already be tracked.
- Search [existing issues](https://github.com/oss-invisible/playwright/issues) - the bug may already be tracked.
- Reproduce on the **latest release** if possible.
- Confirm the issue is in the Python wrapper, not the patched Firefox itself. If a fingerprint is leaking or a detector flags the browser, open the issue at `feder-cr/firefox_antidetect_patch` instead.
- Confirm the issue is in the Python wrapper, not the patched Firefox itself. If a fingerprint is leaking or a detector flags the browser, open the issue at `oss-invisible/firefox_antidetect_patch` instead.
Include:
+7005
View File
File diff suppressed because it is too large. Load diff
+35 -25
View File
@@ -1,22 +1,27 @@
<div align="center">
<picture>
<source media="(max-width: 374px) and (prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-small-dark.gif">
<source media="(max-width: 374px)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-small-light.gif">
<source media="(max-width: 1239px) and (prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-phone-dark.gif">
<source media="(max-width: 1239px)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-phone-light.gif">
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-dark.gif">
<img alt="invisible_playwright, Playwright on an anti-detect Firefox. An animation: the two-line switch from Playwright, the fingerprint set inside the engine, a mouse that moves like a hand, and the bot tests it passes." src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-light.gif" width="100%">
<source media="(max-width: 374px) and (prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-small-dark.gif">
<source media="(max-width: 374px)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-small-light.gif">
<source media="(max-width: 1239px) and (prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-phone-dark.gif">
<source media="(max-width: 1239px)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-phone-light.gif">
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-dark.gif">
<img alt="invisible_playwright, Playwright on an anti-detect Firefox. An animation: the two-line switch from Playwright, the fingerprint set inside the engine, a mouse that moves like a hand, and the bot tests it passes." src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-light.gif" width="100%">
</picture>
<p align="center">
<a href="https://github.com/feder-cr/invisible_playwright/blob/badges/counters/launches_daily.csv"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Ffeder-cr%2Finvisible_playwright%2Fbadges%2Fdocs%2Fbadges%2Flaunches.json&style=for-the-badge" alt="browser launches"></a>
<a href="https://github.com/feder-cr/firefox_antidetect_patch/releases"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Ffeder-cr%2Finvisible_playwright%2Fbadges%2Fdocs%2Fbadges%2Fdownloads.json&style=for-the-badge" alt="engine downloads"></a>
<a href="https://github.com/feder-cr/invisible_playwright/stargazers"><img src="https://img.shields.io/github/stars/feder-cr/invisible_playwright?style=for-the-badge&logo=github&color=e8a317" alt="GitHub stars"></a>
<a href="https://github.com/oss-invisible/playwright/blob/badges/counters/launches_daily.csv"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Foss-invisible%2Fplaywright%2Fbadges%2Fdocs%2Fbadges%2Flaunches.json&style=for-the-badge" alt="browser launches"></a>
<a href="https://github.com/oss-invisible/firefox_antidetect_patch/releases"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Foss-invisible%2Fplaywright%2Fbadges%2Fdocs%2Fbadges%2Fdownloads.json&style=for-the-badge" alt="engine downloads"></a>
<a href="https://github.com/oss-invisible/playwright/stargazers"><img src="https://img.shields.io/github/stars/oss-invisible/playwright?style=for-the-badge&logo=github&color=e8a317" alt="GitHub stars"></a>
</p>
<h3 align="center">Playwright gets caught by anti-bots and captchas.<br>
This one runs on an anti-detect Firefox with an undetected fingerprint, compatible with your existing Playwright code.</h3>
</div>
![invisible_playwright - 5/5 detection suites passed](https://raw.githubusercontent.com/feder-cr/invisible_playwright/7a8693c6b4386e9a84dd93bedc479ca8654482e1/docs/screenshots/hero.gif)
<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
@@ -214,6 +219,11 @@ not carry raises, and the error lists the ones it does.
Full list of pinnable keys, how pinning interacts with the Bayesian sampler, and common patterns are in **[docs/pinning.md](docs/pinning.md)**.
### Launch counter
The engine counts launches with an anonymous GET to the `usage-counter` release of the engine's repository (`oss-invisible/firefox_antidetect_patch`) on GitHub. This package's launcher and server refuse the two prefs that govern it, `invisible_firefox.usage_ping.enabled` and `invisible_firefox.usage_ping.url`, in `extra_prefs`.
---
## CLI
@@ -234,14 +244,14 @@ invisible-playwright version # wrapper, core and engine versions, and where the
library. Two ways to use it without writing code, both one line: from an MCP client
you already have (Claude Code, Claude Desktop, Cursor),
`claude mcp add stealth -- uvx invisible-playwright-mcp`, see
[the MCP server page](https://github.com/feder-cr/invisible_playwright_mcp/wiki/mcp-server); or with an
[the MCP server page](https://github.com/oss-invisible/playwright_mcp/wiki/mcp-server); or with an
interface and a model included, needing only an OpenRouter key,
`uvx invisible-playwright-mcp ui --openrouter-key sk-or-...`, see
[invisible_playwright_mcp](https://github.com/feder-cr/invisible_playwright_mcp). Same engine underneath, and the second
[invisible_playwright_mcp](https://github.com/oss-invisible/playwright_mcp). Same engine underneath, and the second
is a client of the first.
All of it reads better, and is searchable, in
**[the wiki](https://github.com/feder-cr/invisible_playwright/wiki)**,
**[the wiki](https://github.com/oss-invisible/playwright/wiki)**,
organised into four sections instead of one flat list:
- **[Documentation](docs/documentation.md)** -
@@ -252,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
@@ -279,9 +289,9 @@ read from its own documentation or from confirmed reverse engineering:
**The other pieces of this one.** The engine is the middle of three, and the
two around it are how most people reach it:
- **[invisible_core](https://github.com/feder-cr/invisible_core)** - seed to
- **[invisible_core](https://github.com/oss-invisible/core)** - seed to
fingerprint to preferences, plus proxy and geolocation. This package pins it.
- **[invisible_playwright_mcp](https://github.com/feder-cr/invisible_playwright_mcp)** - this engine as an MCP
- **[invisible_playwright_mcp](https://github.com/oss-invisible/playwright_mcp)** - this engine as an MCP
server (`uvx invisible-playwright-mcp`, for any client that brings its own
model) and, in the same package, an interface with a model included, from
one command. The interface is a client of the server, with no private path
@@ -295,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.
@@ -319,7 +329,7 @@ Two rules hold across everything below. Every value is decided **before a page c
ask**, inside the browser, so there is no JavaScript shim to find. And every value
comes from **one profile**, so no two surfaces contradict each other, which is how a
spoofed browser is usually caught. Source:
[feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch).
[oss-invisible/firefox_antidetect_patch](https://github.com/oss-invisible/firefox_antidetect_patch).
**Identity**
- `navigator`, the user agent and the client hints are derived together, so they cannot disagree: [does Playwright set navigator.webdriver](docs/does-playwright-set-navigator-webdriver.md), [client hints and Sec-Fetch](docs/client-hints-sec-fetch.md).
@@ -338,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).
@@ -352,7 +362,7 @@ spoofed browser is usually caught. Source:
## License
MIT - see [LICENSE](https://github.com/feder-cr/invisible_playwright/blob/main/LICENSE). The patched Firefox binary is distributed under the MPL-2.0 (Firefox upstream license). The C++ patches against mozilla-central that produce that binary are at [feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch).
MIT - see [LICENSE](https://github.com/oss-invisible/playwright/blob/main/LICENSE). The patched Firefox binary is distributed under the MPL-2.0 (Firefox upstream license). The C++ patches against mozilla-central that produce that binary are at [oss-invisible/firefox_antidetect_patch](https://github.com/oss-invisible/firefox_antidetect_patch).
---
@@ -364,12 +374,12 @@ This project is for educational purposes only. It is provided as-is, with no war
<p align="center">
Built by <a href="https://it.linkedin.com/in/federico-elia-5199951b6">Federico Elia</a>
&nbsp;<a href="https://it.linkedin.com/in/federico-elia-5199951b6"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/linkedin.svg" alt="LinkedIn"></a>
&nbsp;<a href="https://it.linkedin.com/in/federico-elia-5199951b6"><img src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/badges/linkedin.svg" alt="LinkedIn"></a>
</p>
<p align="center">
<a href="https://github.com/feder-cr/invisible_playwright/actions/workflows/tests.yml"><img src="https://github.com/feder-cr/invisible_playwright/actions/workflows/tests.yml/badge.svg" alt="tests"></a>
<a href="https://github.com/feder-cr/invisible_playwright/blob/main/LICENSE"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/license.svg" alt="License: MIT"></a>
<a href="https://www.python.org/downloads/"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/python.svg" alt="Python 3.11+"></a>
<a href="https://github.com/feder-cr/firefox_antidetect_patch/releases"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/firefox.svg" alt="Firefox 159.0"></a>
<a href="https://github.com/oss-invisible/playwright/actions/workflows/tests.yml"><img src="https://github.com/oss-invisible/playwright/actions/workflows/tests.yml/badge.svg" alt="tests"></a>
<a href="https://github.com/oss-invisible/playwright/blob/main/LICENSE"><img src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/badges/license.svg" alt="License: MIT"></a>
<a href="https://www.python.org/downloads/"><img src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/badges/python.svg" alt="Python 3.11+"></a>
<a href="https://github.com/oss-invisible/firefox_antidetect_patch/releases"><img src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/badges/firefox.svg" alt="Firefox 159.0"></a>
</p>
+1 -1
View File
@@ -36,7 +36,7 @@ In scope:
Out of scope:
- Vulnerabilities in the patched Firefox source - report to [feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch/security/advisories/new)
- Vulnerabilities in the patched Firefox source - report to [oss-invisible/firefox_antidetect_patch](https://github.com/oss-invisible/firefox_antidetect_patch/security/advisories/new)
- Upstream Firefox / mozilla-central - report to Mozilla directly
- Third-party dependencies - report to those projects
+7
View File
@@ -0,0 +1,7 @@
{
"comment": "The GeoIP database every CI leg launches with (STEALTHFOX_GEOIP_MMDB): made by scripts/ci_lab_geoip.py, the same bytes on every run, no download and no licensed data. One record answers every public address that is not one of the lab's networks and not reserved (the runner's own egress address is not known in advance). To change it (a network, a field): change the table of the script and mmdb_sha256 here in one commit; `build` refuses to go on when they differ.",
"generator": "scripts/ci_lab_geoip.py",
"mmdb": "geoip-aio-all.mmdb",
"mmdb_sha256": "d02825fd0336afa72ad7b7573769f1d9efddea447133f99ae3008c56d5308929",
"mmdb_bytes": 2706
}
+20
View File
@@ -0,0 +1,20 @@
[
{"id": "wrapper.e2e.udp", "giro": "G2", "os": ["linux", "windows"], "min_tests": 43, "exact": true, "tests": ["tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_webrtc_realness.py::test_the_gather_is_real_without_a_proxy", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_declared_host_network_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_webrtc_realness.py::test_a_gateway_with_coherent_udp_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_of_its_own", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all"], "marker": "e2e", "needs_root": false, "note": "Needs the candidate binary (STEALTHFOX_E2E_BINARY) and the engine that carries the UDP line. 57 = 1+7+6+1+21 from the five files + 21 from the 10 UDP-line tests of test_webrtc_realness.py (parametrized). The chain by name is here in its variant with the lab's exit on loopback (127.0.0.2) and the pref `media.peerconnection.ice.loopback`, on Linux and Windows: the exit of the lab is loopback, and a loopback mapped address is thrown away by nICEr unless the ICE context allows it. The variant without the pref (an exit that is not loopback) is the suite wrapper.e2e.udp.exit, Linux only; the address added to the interface of the Windows runner is work of the release after firefox-63. The preload_newtab test (2) is here: seen green on Linux as root (Docker) and on Windows 10 runs of 10 (windows-2022, round 5 engine); it reads the engine's own process log."},
{"id": "wrapper.e2e.udp.exit", "giro": "G2", "os": ["linux"], "min_tests": 7, "exact": true, "tests": ["tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_before_the_tick", "tests/test_a_proxy_that_cannot_carry_udp_leaks_nothing_direct_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "Linux only, and not collected on Windows: the exit of the lab is a documentation address (198.51.100.9) added to lo with `ip addr add`, which needs root and iproute2; a mapped address in 127/8 would be thrown away by nICEr as bogus (stun_client_ctx.cpp nr_stun_transport_addr_check) and the pref that allows it is off in a product. The page reads a srflx equal to the gateway exit and the relay of the TURN server, the TURN name resolved by the DoH through the proxy, in the tick of 2 s. On the Windows runner of GitHub (administrator, the network of the runner) it could run too: not yet. A skipped test would turn the verdict red, hence a suite of its own. Its twin with the lab's exit on loopback and the pref stays in wrapper.e2e.udp on both systems, so that Windows keeps the walk of the chain by name.", "linux_only": "The lab's exit is a documentation address the host must hold besides its loopback (nICEr throws away a mapped address in 127/8). Linux holds it on lo as root; Windows takes no extra address on its loopback pseudo-interface, and adding it to the runner's adapter took the runner off the network (runs 43314251547 and 43334169682 died in the test step). A Windows twin waits for a way that leaves the runner's network alone."},
{"id": "wrapper.e2e.udp.sandbox", "giro": "G2", "os": ["linux"], "min_tests": 13, "exact": true, "tests": ["tests/test_the_socket_process_is_sandboxed_e2e.py", "tests/test_webrtc_realness.py::test_the_gather_is_real_without_a_proxy", "tests/test_webrtc_realness.py::test_a_gateway_with_coherent_udp_gives_the_page_a_srflx_born_through_its_relay", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_a_gateway_without_udp_resolves_the_ice_name_then_ends_in_701"], "marker": "e2e", "needs_root": false, "note": "The browser WITH its sandbox, run by a normal user, as on any Linux that allows user namespaces. On the Ubuntu 24.04 runner AppArmor refuses them to a user, so every other non-root suite runs a browser WITHOUT the sandbox of its socket and content processes; the gate turns the restriction off for this leg (sysctl kernel.apparmor_restrict_unprivileged_userns=0) and the first test fails unless the socket and a tab process have a seccomp filter (Seccomp: 2). The three situations of the UDP line: A (a proxy that carries UDP: the srflx born through the relay), B (no proxy: the gather is real), C (a proxy with no UDP: the ICE server name goes by DoH through the proxy and the gather ends in 701). No root and no resolver trap needed.", "linux_only": "It reads the seccomp filter of the socket and tab processes in /proc. The Windows twin reads the sandbox token of the same processes (integrity level, restrictions) and needs a measurement of the retail Firefox's tokens first; until then Linux only."},
{"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": 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": 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": 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":[]}
+1 -1
View File
@@ -9,7 +9,7 @@ sitemap: false
# docs/ source folder
This folder is the source the wiki is rendered from. Read it with search and
navigation in **[the wiki](https://github.com/feder-cr/invisible_playwright/wiki)**.
navigation in **[the wiki](https://github.com/oss-invisible/playwright/wiki)**.
`index.md` is what the site root actually serves. This file exists so the folder
still shows something sensible when browsed directly on github.com.
+129 -51
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
@@ -276,6 +354,6 @@ not neutral; it is a shape no ordinary browser has, so assert presence, not abse
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. Every candidate line in
this page is one I have read off about:webrtc while chasing a leak that a badge missed.*
+1 -1
View File
@@ -244,7 +244,7 @@ limits, or behaviour and timing, which you still have to supply.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The sensor surface
is the easy kind of honest: the correct answer is to report nothing, and the only
way to fail is to invent data a real desktop would never send.*
+1 -1
View File
@@ -218,6 +218,6 @@ slightly unusual.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The header and the array
come from one preference, which is exactly what an injection-only spoof gets wrong.*
+1 -1
View File
@@ -12,7 +12,7 @@ nav_order: 17
This page moved to the invisible_playwright_mcp wiki, where the agent-experience content now
lives:
**[Agent retry loops trip rate limits, not fingerprints](https://github.com/feder-cr/invisible_playwright_mcp/wiki/agent-retry-loops-rate-limits)**
**[Agent retry loops trip rate limits, not fingerprints](https://github.com/oss-invisible/playwright_mcp/wiki/agent-retry-loops-rate-limits)**
The one-paragraph version: an agent that retries and re-plans multiplies its
requests, and volume is scored server-side against your address and account.
+1 -1
View File
@@ -12,7 +12,7 @@ nav_order: 10
This page moved to the invisible_playwright_mcp wiki, where the agent-experience content now
lives:
**[The timing signal AI agents give off](https://github.com/feder-cr/invisible_playwright_mcp/wiki/ai-agent-timing-signal)**
**[The timing signal AI agents give off](https://github.com/oss-invisible/playwright_mcp/wiki/ai-agent-timing-signal)**
The short version it still owes you here: a think-act loop pauses for model
latency, and that pause repeats with a regularity no human produces. The
+1 -1
View File
@@ -274,6 +274,6 @@ identity.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. This page exists because eight separate articles all
concluding "does not fit" would have been worse for you than one that says why.*
+16 -17
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
@@ -246,8 +245,8 @@ for where a JavaScript-collected fingerprint sits among the other layers.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
a Firefox patched at the C++ level. The Camoufox issue above is someone else's bug
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
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.*
@@ -124,7 +124,7 @@ for the flag every CDP-driven fork inherits alike.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level, precisely because a Chromium fork does not
change the automation protocol underneath it. The page recommends switching
engines rather than skins for that reason, and says so plainly rather than
+1 -1
View File
@@ -77,7 +77,7 @@ This is the one detector in this whole corpus where the honest answer is: engine
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright), a Firefox
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright), a Firefox
patched at the C++ level. Anubis is the one detector here this project can actually read the source of, and
the honest conclusion is that engine-level realness has almost nothing to do with passing it: the puzzle
tests JavaScript execution speed, not fingerprint fidelity, and any real browser clears it the same way.*
+4 -4
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
@@ -77,7 +77,7 @@ The **puzzle itself is a different kind of gate entirely**, the same structural
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright), a Firefox
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright), a Firefox
patched at the C++ level. Arkose's own materials stop at category-level claims about its risk engine,
and this page stops there too for anything not independently corroborated. It does not describe, and
this project does not build, a way to solve FunCaptcha's puzzles for you.*
@@ -206,6 +206,6 @@ when every browser check comes back green.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The browser layer is the
part we can make perfect; the IP is the part only you can keep clean.*
+4 -4
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,11 +218,11 @@ 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).
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. The two scores above are our own A/B, on one
machine and one identity, with the audio noise as the only variable. The feature they
killed was one we wrote.*
@@ -221,6 +221,6 @@ the audio device sits in the order you should debug.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The audio device is one of
the machine tells no page-level plugin can reach, which is why it is solved in the engine.*
@@ -281,7 +281,7 @@ for the same total-budget thinking applied to a poll loop instead of a request r
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. The code arriving is the easy part; keeping the
browser that asked for it and the one that spends it as the same machine is the part
worth writing down.*
+1 -1
View File
@@ -143,6 +143,6 @@ checks when there is no way to avoid running it.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level, on why the safest login is usually the one that
never runs as automation at all.*
+1 -1
View File
@@ -266,7 +266,7 @@ session-reuse pattern this flow feeds into once the 2FA step is past.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. Generating a code from a secret you already
hold is arithmetic, not automation trickery; the browser's realness has nothing to
do with whether the math is correct, and the whole flow is worthless without a
+2 -2
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.
@@ -89,7 +89,7 @@ Several rule families sit entirely outside what any browser engine can affect. `
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright), a Firefox
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright), a Firefox
patched at the C++ level. AWS documents its Bot Control rules more specifically, by name and by
default action, than almost any other vendor in this corpus, which is why this page quotes rule
names directly rather than reconstructing them from outside reverse engineering.*
+1 -1
View File
@@ -222,6 +222,6 @@ for the order to debug in once something flags you.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The engine swap is the easy
half; the pacing and the exit are the half that decides the session.*
+3 -3
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.
@@ -94,7 +94,7 @@ Firefox build.
![One panel listing three values read from the patched engine, headless:
navigator.getBattery is undefined, navigator.vendor is an empty string, and
navigator.productSub is 20100101. A note says the bundled Firefox returned the same
values.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/battery-api-fingerprint-firefox-values.png)
values.](https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/img/battery-api-fingerprint-firefox-values.png)
`navigator.getBattery` is `undefined`, which is the answer to the title, and the bundled
Firefox returns the same thing.
@@ -211,7 +211,7 @@ and [how navigator.webdriver actually reads](navigator-webdriver-explained.md).
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The most robust fingerprint
field is the one a real browser genuinely produces, and sometimes the one it genuinely does
not.*
@@ -204,7 +204,7 @@ challenge layer that sits beside, not instead of, everything on this page.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. It answers the
browser-identity layer honestly; it does not touch a rate limit, an IP block, a
honeypot your own code walks into, or a site's decision to block a traffic category
+1 -1
View File
@@ -184,6 +184,6 @@ for where behavioural signals sit in the wider picture.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. The preference exists because the timeout described
above is real, and a test suite that hits it deserves a way back to the old behaviour.*
+1 -1
View File
@@ -256,6 +256,6 @@ for the compare-against-stock method this page leans on.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The protocol under
the driver is an implementation detail; the leaks were never on the wire.*
@@ -218,6 +218,6 @@ human is worth more than the seconds you save.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The speed is stock
Playwright; the tell is the part the speed guides leave out.*
+2 -2
View File
@@ -165,11 +165,11 @@ 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.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright).
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright).
We gate every release on BotD, so the detector names and the compared values above
come out of its source and not out of memory.*
+2 -2
View File
@@ -67,7 +67,7 @@ tool you picked.
## Where this project sits
[invisible_playwright](https://github.com/feder-cr/invisible_playwright) is
[invisible_playwright](https://github.com/oss-invisible/playwright) is
not a fifth entry on the list above competing for the same job. It answers a
different question: given that you have already picked Playwright's API
(unchanged, same code you would write against any Playwright browser), what
@@ -117,7 +117,7 @@ and [Firefox or Chromium for anti-detect automation](firefox-vs-chromium-antidet
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
which is not a competitor to any of the four tools above - it sits underneath
one of them. The page is organized around picking the right testing tool
first, because that decision is independent of the engine question it exists
+1 -1
View File
@@ -179,6 +179,6 @@ layer an extension lives at has a ceiling.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. This page exists because someone asked in our
discussions and got an answer about a different kind of extension entirely.*
+22 -22
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,14 +252,14 @@ 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.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The three numbers on this
page get conflated because they all look like a percentage; none of them are the same
percentage.*
+1 -1
View File
@@ -12,7 +12,7 @@ nav_order: 2
This page moved to the invisible_playwright_mcp wiki, where the agent-experience content now
lives:
**[browser-use getting blocked: what you can and cannot change](https://github.com/feder-cr/invisible_playwright_mcp/wiki/browser-use-getting-blocked)**
**[browser-use getting blocked: what you can and cannot change](https://github.com/oss-invisible/playwright_mcp/wiki/browser-use-getting-blocked)**
The unchanged short answer: browser-use exposes a real set of levers
(`executable_path`, `user_data_dir`, `proxy`, `headless`, `args`), all of
+4 -5
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.
@@ -239,6 +238,6 @@ different hardware.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level, including three separate font backends convinced not
to ask their host anything.*
@@ -232,7 +232,7 @@ for the compare-against-stock method that catches a VM tell a verdict hides.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. It presents one coherent
real-hardware persona to the browser-visible layer; the IP, the timing floor and the
pacing are still yours to supply.*
@@ -251,6 +251,6 @@ handle.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The clipboard opens for it
because the gesture is genuinely trusted, not because a value was faked.*
@@ -85,7 +85,7 @@ Linux container, because they are presented by the browser rather than read from
![Two panels listing three values. navigator.webdriver differs, true against false. The
AudioContext sample rate is 48000 Hz in both. navigator.platform is Win32 in
both.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/can-a-website-tell-you-are-on-a-server-values.png)
both.](https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/img/can-a-website-tell-you-are-on-a-server-values.png)
Three values from one page served from `127.0.0.1`. The audio sample rate is `48000 Hz`
in both browsers and the platform string is `Win32` in both, so neither of those two is
@@ -230,6 +230,6 @@ and the pacing still depend on where and how you run it.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. It fixes the machine tells a
server leaks in JavaScript; the datacenter IP and the pacing are still yours to supply.*
@@ -196,7 +196,7 @@ for the end-to-end version of this.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The seed-and-directory
pairing rule is one I wrote down after debugging a profile whose machine changed
overnight.*
@@ -196,6 +196,6 @@ and [when the timezone does not match the proxy](timezone-proxy-mismatch.md).
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The anonymity-set framing
is the one that keeps me from "fixing" a shared fingerprint that was doing its job.*
@@ -187,6 +187,6 @@ still on a distrusted IP.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The browser half is
what the patch does; the IP half is the one honest thing it cannot do for you.*
+3 -3
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.
@@ -201,6 +201,6 @@ rather than reading the score.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The honest boundary in the
last section is the one I most wish more of these pages drew.*
@@ -85,7 +85,7 @@ promised no leftover state, and it delivers that.
![Two panels listing three values. localStorage is available in both browsers, and both
report that the screen and the viewport differ, so neither looks like
resistFingerprinting is on. The canvas pixel hash differs between the two
panels.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/can-you-be-fingerprinted-in-incognito-mode-values.png)
panels.](https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/img/can-you-be-fingerprinted-in-incognito-mode-values.png)
Three values, read from one page served from `127.0.0.1`. `localStorage` is available in
both, which is the point of the section above: private mode is about state, and this
@@ -218,7 +218,7 @@ and [the TLS handshake no browsing mode can hide](ja3-ja4-tls-fingerprint.md).
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. Private mode clears what a
site stored on you; this project changes what the browser is, which is the axis private
mode leaves alone.*
@@ -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
@@ -208,6 +209,6 @@ signals no stealth layer touches.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The weight that keeps it out
of a small function is the same weight that makes it look real.*
@@ -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),
@@ -208,7 +208,7 @@ and behaviour layers are not in those tests at all.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. It is built to look like
a real browser, which is why it passes most checks and why it will never claim to make
you invisible.*
@@ -141,6 +141,6 @@ fingerprinting surface](measuretext-textmetrics-fingerprinting.md).
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. A canvas hash was never
really about the canvas; it was always about everything underneath it.*
+2 -2
View File
@@ -130,7 +130,7 @@ right value directly.
a seed report different canvas and WebGL readback hashes and even a different device
pixel ratio, while two sessions launched with the same seed report identical hashes and
identical
pixels.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/canvas-seed-vs-no-seed.png)
pixels.](https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/img/canvas-seed-vs-no-seed.png)
Four sessions above, one page served from `127.0.0.1`, hashes computed inside the page
so the numbers and the picture come from the same run. The two unseeded sessions
@@ -289,7 +289,7 @@ last step is to pin the identity so a failure is reproducible.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The seed is the same
lever whether you are hiding rotation or reproducing a bug: pin it and the machine
stops moving.*
+3 -3
View File
@@ -137,7 +137,7 @@ instead of staying bounded.
![Two panels listing three values. The canvas pixel hash differs between the bundled
Firefox and the patched engine. The measureText width is 115.65 px in both, and both
report that the screen and the viewport differ.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/canvas-fingerprint-noise-values.png)
report that the screen and the viewport differ.](https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/img/canvas-fingerprint-noise-values.png)
One page served from `127.0.0.1`, three values, two browsers. The canvas pixel hash
moves and the text width does not: `measureText` returns `115.65 px` in both.
@@ -220,10 +220,10 @@ 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).
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. The solid-fill guard exists because we shipped
without it.*
+25 -21
View File
@@ -1,17 +1,20 @@
---
title: "Canvas and WebGL fingerprints, identical across OSes"
description: "Canvas and WebGL fingerprints identical across Windows and Linux: intercept readback, not the render, so one seed produces a byte-identical hash on every OS."
title: "Canvas and WebGL fingerprints across OSes"
description: "Canvas and WebGL fingerprints across Windows and Linux: 2D canvas is drawn on the CPU, noise is projected only when WebGL and WebGPU pixels are read back, and it depends only on the seed."
parent: "Canvas, WebGL, Fonts and Audio"
grand_parent: "Guides"
nav_order: 9
---
# Canvas and WebGL fingerprints, identical across OSes
# Canvas and WebGL fingerprints across OSes
A GPU-backed render surface can't be read from or written to directly and safely, so
the fix intercepts the one place JavaScript can actually see the result instead - the
same seed then produces a byte-identical canvas and WebGL hash on Windows and Linux.
same seed then gives the same noise on Windows and Linux. 2D canvas is drawn on the CPU, so it
does not depend on the GPU; the noise is projected only when WebGL and WebGPU pixels are read back.
Text and GPU raster can still differ slightly between the two OSes, and the PNG container is left
as a stock Firefox writes it.
[Why headless browsers render different fonts](headless-fonts-differ.md) and
[how to make Linux and macOS report real Windows fonts](bundled-fonts-cross-platform.md)
@@ -92,17 +95,18 @@ for the same reason: nothing about it resembles noise added on top of a real sig
| Additive per-call noise | Perturbs a fraction of pixels on top of the real render | Two reads in one page differ; the real render's font/GPU signature still shows through; the noise has a high-frequency shape a single read can flag |
| Full substitution | Replaces pixels with a pure function of the seed and the pixel position, with zero input from the render underneath | Must leave low-entropy buffers untouched so it does not break legitimate canvas reads |
## The proof: byte-identical hashes, not just "looks similar"
## What was checked, and what was not
Rendered the same seed's canvas (text plus a gradient) and WebGL scene (a
high-entropy draw) on Windows and on Linux, hashed both in-page. The hashes matched
byte for byte on both platforms. Run against a commercial fingerprint scanner across
multiple seeds, zero failures on either OS.
high-entropy draw) on Windows and on Linux, hashed both in-page, and ran a commercial
fingerprint scanner across multiple seeds. What holds: the noise is a pure function of
the seed and of the pixels it is applied to, so two reads of the same bytes give the same
result, and the 2D path does not depend on the GPU.
That is a stronger claim than "produces a plausible fingerprint." It's the same
identity, provably, regardless of which OS is actually running underneath - which is
what makes a seed a real, portable identity instead of a value that happens to look
right on the machine it was tested on.
What is not claimed: that every byte matches between a Windows and a Linux host. Text
pixels follow the host's rasteriser on Linux, and GPU raster can differ by one level
between drivers. Whether two profiles with the same font can be linked by the way they
rasterise has not been measured.
## What this generalises to, and where the edges still are
@@ -121,8 +125,8 @@ a fact that becomes true once and stays true.
The render was never the reachable surface. Content only ever sees a canvas or a
WebGL scene through a handful of readback calls, and putting the substitution there
instead of in the renderer is what makes a seed portable: the same identity produces
the same bytes on Windows and on Linux, because nothing about either host's actual
rendering pipeline reaches the output.
the same noise on Windows and on Linux, because the noise comes from the seed and not from
the host's rendering pipeline.
The tradeoff is honest rather than free - the fix covers only the readback paths it
enumerates, and a masking-safe design still has to leave genuinely low-entropy canvas
@@ -131,10 +135,10 @@ fingerprinting.
## Short answers to the questions that lead here
**Can canvas and WebGL fingerprints be made identical across operating systems?** Yes,
if the interception happens at every point content can read the result rather
than at the render itself, which is the part that can't be touched directly on a
GPU-backed surface.
**Can canvas and WebGL fingerprints be made the same across operating systems?** The
noise can: it is applied where content can read the result, from the seed, rather than at
the render itself, which can't be touched directly on a GPU-backed surface. The pixels
underneath still differ slightly between hosts for text and GPU raster.
**Why substitution instead of adding noise to the real render?** Noise on top of a
real image still carries the host's own rendering signature underneath it.
@@ -162,7 +166,7 @@ content can observe, not at the source - applied to a different surface.
retrieved 2026-08-28, the enumerable set of readback calls this page's interception
point covers.
- This project's own render-readback interception work and its cross-platform
validation (same-seed byte-identical hashes on Windows and Linux, multi-seed
validation (same-seed hashes on Windows and Linux, multi-seed
results against a commercial fingerprint scanner).
**See also:** [canvas fingerprint noise](canvas-fingerprint-noise.md), for why
@@ -170,12 +174,12 @@ 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.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. The same-seed check here once passed while the
render was actually broken: a Linux canvas with text came back holding 11994 distinct
colours where Windows gave 16, and identical bytes for two different strings.*
@@ -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.
@@ -239,6 +237,6 @@ signature is the pixels, the renderer string is a reported value, and both have
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The two hashes above are
real measurements, reproduced to the byte on two operating systems from one seed.*
+1 -1
View File
@@ -200,6 +200,6 @@ layer has to be built differently rather than patched afterwards.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. Firefox-based, so `cdc_` was never our problem,
but the general shape of it is everybody's.*
+1 -1
View File
@@ -110,7 +110,7 @@ and [WebRTC leak with a proxy](webrtc-leak-proxy.md).
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The table above
exists because "the proxy isn't working" and "the site is blocking me" get
treated as the same sentence far more often than they are the same problem.*
+1 -1
View File
@@ -254,6 +254,6 @@ in both directions.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. This is the argument for the engine choice that we
find most convincing, and it is the one most comparisons leave out.*
+1 -1
View File
@@ -209,7 +209,7 @@ the same argument from the other end,
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. Running a real Firefox means the Client Hints
question answers itself, which is the kind of advantage you only get by not lying in the
first place.*
+1 -1
View File
@@ -183,6 +183,6 @@ and [waiting for a specific API response](wait-for-specific-api-response-playwri
---
*From [invisible_playwright](https://github.com/feder-cr/invisible_playwright).
*From [invisible_playwright](https://github.com/oss-invisible/playwright).
The three-arm table is our own run and the test page is printed above so you
can reproduce it rather than take our word for it.*
+2 -2
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.
@@ -80,7 +80,7 @@ This is worth being direct about, because it is a genuinely different kind of me
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright), a Firefox
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright), a Firefox
patched at the C++ level. This mechanism has nothing to do with browser fingerprinting, so this page has
nothing to claim about engine realness one way or the other, honestly: a scraper that respects a site's
crawl preferences and does not chase invisible links never triggers it in the first place.*
+3 -3
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
@@ -233,7 +233,7 @@ each other.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level and driven by stock Playwright. Bot Management's actual
score never reaches the client that earned it; what this page can speak to is the half of
the pipeline a real browser engine touches, and it stops exactly where that half stops.*
+1 -1
View File
@@ -248,7 +248,7 @@ detail.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level and driven by stock Playwright. This page describes
a mechanism, not a workaround: the product does not solve captchas or click Turnstile's
interactive tier for you, and any tool that claims to defeat Cloudflare wholesale is
+1 -1
View File
@@ -193,7 +193,7 @@ and [Playwright in Docker](playwright-docker-detection.md), which are the rest o
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. The joint sampling is the same decision made for
audio, storage quota and antialiasing, and for the same reason: independently sampled
dimensions contradict each other.*
@@ -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
@@ -209,7 +209,7 @@ and [screen sizes that give a headless machine away](screen-size-headless-tells.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The color-gamut and
colorDepth disagreement is one I would rather find in my own diff than have a page find
for me.*
@@ -205,7 +205,7 @@ for reading the JSON the page already fetches.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The browser is for the
fingerprint-gated fetches, httpx is for the unguarded bulk, and telling them apart is the
whole job.*
+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.
@@ -12,7 +12,7 @@ nav_order: 6
This page moved to the invisible_playwright_mcp wiki, retargeted at the question people
actually search:
**[Claude computer use detected as a bot](https://github.com/feder-cr/invisible_playwright_mcp/wiki/claude-computer-use-detected-as-bot)**
**[Claude computer use detected as a bot](https://github.com/oss-invisible/playwright_mcp/wiki/claude-computer-use-detected-as-bot)**
The core of it, kept here in brief: a coordinate-clicking agent never
generates the DOM-automation tells, so `navigator.webdriver` advice mostly
+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,25 +149,25 @@ 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.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright).
CreepJS is a release gate here. The lie names above are quoted from its source and
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright).
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.*
@@ -200,6 +200,6 @@ rather than a free pass.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. CSP enforcement is the
browser's own security layer, unaffected by fingerprint patching in either direction.*
+1 -1
View File
@@ -188,6 +188,6 @@ seam looks like, and
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. We would rather document the missing field than
publish an integration guide for a seam that is not there.*
+1 -1
View File
@@ -139,6 +139,6 @@ for the reproduction discipline that caught the two wrong fixes here.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level, on a bug that took two wrong committed fixes before
the actual cause was reproduced.*
+1 -1
View File
@@ -223,6 +223,6 @@ platform tell that no script controls, and
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. The system-colour palette is pinned here because a
commercial detector was hashing it and catching the host operating system through it.*
+1 -1
View File
@@ -298,7 +298,7 @@ and [the checklist for when one site detects you](playwright-detected-as-bot.md)
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright).
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright).
DataDome does not publish its scoring model or the full list of what its
collector checks, so this page draws a line between DataDome's own
documentation and outside reverse engineering everywhere that line exists,
+1 -1
View File
@@ -225,7 +225,7 @@ driver layer is the one this page is about.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level. All four fixes are in this project's engine and
driver, and the fourth one was found by controlled experiment after the first three did
not fully close it.*
Binary file not shown.

After

Width:  |  Height:  |  Size: 537 KiB

+2 -2
View File
@@ -66,7 +66,7 @@ families against two different fallbacks. Segoe UI, Calibri, Cambria and Tahoma
present against both fallbacks. Consolas reads absent against the monospace fallback
and present against the serif one. An invented control family reads absent
everywhere. All three browsers return the same
answer.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/font-presence-probe-three-arms.png)
answer.](https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/img/font-presence-probe-three-arms.png)
Run that exact function over ten families with `monospace` as the fallback, on Windows,
and Consolas comes back **absent**. Consolas is installed. It is also what `monospace`
@@ -293,7 +293,7 @@ and [why headless browsers render a different font set](headless-fonts-differ.md
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The font set is the
same on every host by construction, which is the only reason this probe answers
the same way whether the process runs on a laptop or a container.*
+1 -1
View File
@@ -194,6 +194,6 @@ pass the number as text, `"1.25"`, not as a bare float.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The dead dpr write in this
page is one we shipped ourselves, and only caught by reading the value back.*
@@ -95,7 +95,7 @@ because shaping is the same in-tree library on both. None of that is Selenium
or Playwright; it is what the engine and the machine underneath either of them
report. Choosing between the two frameworks does not move any of those 58
families. This project exists because of that gap:
[invisible_playwright](https://github.com/feder-cr/invisible_playwright) is
[invisible_playwright](https://github.com/oss-invisible/playwright) is
Playwright's own API, unchanged, driving a Firefox patched at the C++ source
rather than the stock build - same protocol and auto-waiting Playwright always
had, different browser underneath. It does not touch Selenium's side of this
@@ -151,7 +151,7 @@ for the engine question once you have picked a framework.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. This page compares
frameworks, not engines - the engine question is a separate page, linked above,
because conflating them is the most common mistake in this comparison.*
+2 -2
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
@@ -227,6 +227,6 @@ cannot substitute for them.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The engine layer
is the part I can hand you; the clean IP is the part you still have to bring.*
@@ -208,6 +208,6 @@ and [testing detection without fooling yourself with a verdict](how-to-test-bot-
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. It hides that a script is
present; the pacing is still yours to get right.*
+11 -1
View File
@@ -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.
@@ -249,7 +259,7 @@ closed.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The default that keeps DNS and
the connection exiting together is the whole point of this page; the reputation of the exit is
still yours to bring.*
@@ -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)
@@ -248,6 +248,6 @@ the network layer neither a VPN nor a fingerprint fix reaches from JavaScript.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The fingerprint half is
what it controls; the clean IP and the human pacing are still yours to supply.*
@@ -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.
@@ -203,7 +203,7 @@ pacing and quotas you respect.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The browser is built to
look real; the exit IP is still yours to choose, and a chain changes who can trace it,
not what the site scores.*
@@ -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
@@ -205,7 +205,7 @@ the layer that no amount of cookie clearing or JavaScript ever reaches.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. Every session gets a
distinct, self-consistent fingerprint from its seed, which is the thing a cookie clear
was always trying and failing to be.*
@@ -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,12 +184,12 @@ 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).
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The server-OS mismatch in
this page is a mistake I shipped before I built the thing that fixes it.*
@@ -200,7 +200,7 @@ for the layer just above it.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The handshake is
real because the browser is real; the exit and the pacing are still yours to get
right.*
+2 -2
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.
@@ -240,6 +240,6 @@ and [how to test whether your browser is detected](how-to-test-bot-detection.md)
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The DOM check above is one
I run against a real session before repeating any claim about what a page can see.*
@@ -212,6 +212,6 @@ and [the checklist for being detected on one site](playwright-detected-as-bot.md
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
a Firefox patched at the C++ level driven by stock Playwright. The flag reads false
because the browser's own code returns false, not because a script overwrote it.*
Loaded 100 of 886 files, more files were not shown because too many files have changed in this diff. Show more