Compare commits

...
Author SHA1 Message Date
feder-cr 27f0501cea tests: the proof of the hidden-display pointer test is an outcome after a count of frames, not a clock window 2026-12-02 11:47:28 +01:00
feder-cr 585acedecc tests: a page on the hidden display sees no pointer or mouse event before the test's first input, and its first event is the one that input makes 2026-12-02 11:44:49 +01:00
feder-cr 05149cb8c8 Merge branch 'e72/r6-pwwidth' into e72/r6-wrapper 2026-12-02 08:49:39 +01:00
feder-cr 95bcd4d1c3 tests: the password-mask extraction test is listed among the tests that hash a file, and the page it hashes is a pinned fixture (-text) 2026-12-02 08:49:29 +01:00
feder-cr 4afd02e305 Merge branch 'e72/r6-b2' into e72/r6-wrapper 2026-12-02 08:48:00 +01:00
feder-cr 570d9997ad Merge branch 'e72/r6-twinctl' into e72/r6-wrapper
Unit rows re-summed: +9 cases of the popup move-to extraction test (first and later popup positions), 4586 + 9 = 4595 linux, 4598 + 9 = 4607 windows.
2026-12-02 08:48:00 +01:00
feder-cr 0eff758320 tests: each phase of the popup move/resize test expects what retail reads in the position the phase has in the browser's life (phase 1 the first popup, phase 3 a later one), from the popup-move-to capture of four launches
Retail Firefox 159.0 at a real 150% opens the first popup of a browser one device pixel narrower than every popup after it (inner 499, outer 514, against 500 and 515), and moveTo(99999, 0) stops at 766 for it and 765 for a later one. The old expected values of phase 1 came from rounds
that ran resizeBy(0, 0) in a LATER popup (500, then 501), while the test runs phase 1 as the FIRST popup the browser opens (nothing is opened before it: launch_case, new_page, goto, then the three phases in this order, each popup closed before the next).

The capture (RetailCaptures hunt/popup-move-to, run 46833539990, commit 8a78d95c461c84d9c11fcbd0596b120bbcb102f4; runs 46832090474 and 46821521582 read the same except the one value below) has per display case four launches: a the test's order, b phase 3 alone, c a throwaway
popup opened and closed first and then the three phases, d phase 2 alone, so every phase is read as the first popup of a browser and as a later one. scripts/extract_retail_popup_move_resize.py writes ci/retail-popup-move-resize.json from it (cases[case][phase][first|later],
the launches each reading came from, the sha256 of every raw.json checked against its meta.json, popups of one position that disagree fail the extraction) and cross-checks the window-geometry rounds against it. The test reads only: MOMENTS is phase 1 first, MOVE_TO is
phase 3 later; no assertion changed.

Old and new expected values: phase 1 at scale 1.5 was inner 500x400, outer 515x478 before and inner 501 after resizeBy(0, 0); it is now inner 499x400, outer 514x478 before and after. Scales 1, 1.25 and 2 and phase 3 (moved 13,13; moved_to 765,0; outer 515 at 1.5) are unchanged.

The "501 after resizeBy(0, 0)" case is not asserted any more because this test never opens a non-first popup with resizeBy. It is not lost: launch c (resizeBy(0, 0) in the second popup of its browser) reads 500 then 501 at 1.5 in runs 46832090474 and 46833539990, and the extraction
fails if the old rounds' readings are reproduced by no position (they are, by later, in all four cases).

Unit tests (red on the old script, green after): 26 -> 35 in test_the_retail_popup_moves_and_resizes_are_extracted_from_the_capture_not_typed.py; ci/required-suites.json wrapper.unit.all.linux 4564 -> 4573 and wrapper.unit.all.windows 4576 -> 4585.
2026-12-02 08:42:21 +01:00
feder-cr 6bb7df2ba3 tests: TEMP evidence, a listener made by another script world and the page's own throwing listener, and what window.onerror is told, run on retail and on ours, side by side
On candidate 46792115974 (linux.3, windows.3) the two listener cases of
test_a_page_function_called_by_the_client_sees_only_page_frames_e2e.py fail: the error of the
listener the client's evaluate registered never reaches window.onerror, the page's own does.
This test registers the same listener from the default sandbox of Marionette's ExecuteScript on
retail Firefox 159 (not wrappedJSObject.eval, which is the page's realm) and from the client's
evaluate on ours, fires it by a real click on the page's trigger, and saves per case (Error,
throw 5) whether window.onerror was called and what it was told, with the page's own listener as
control. It asserts nothing about ours.
It is the third file of the row wrapper.e2e.stock_twin.tooltip (min_tests 6) and a named exclusion
of the whole-suite rows (30).
2026-12-02 07:36:17 +01:00
feder-cr 71ddb27003 Merge branch 'e72/r6-b2' into e72/r6-wrapper 2026-12-02 07:26:52 +01:00
feder-cr 1509415d7a Merge branch 'e72/r6-pwwidth' into e72/r6-wrapper
Unit rows re-summed: 4558 + 6 (twin control) + 14 (popup move-to extraction) + 8 (password-mask extraction) = 4586 linux; 4570 + 28 = 4598 windows.
2026-12-02 07:26:51 +01:00
feder-cr 0072328944 Merge branch 'e72/r6-twinctl' into e72/r6-wrapper 2026-12-02 07:26:21 +01:00
feder-cr 197a3e4f49 tests: phase 3 of the popup move/resize test expects what retail reads in its own order (the third popup of one launch, moveBy(10, 10), moveTo(99999, 0)), extracted from the popup-move-to capture with every raw.json checked against its meta.json sha256, not from rounds that ran resizeBy(0, 0) first 2026-12-02 07:12:56 +01:00
feder-cr f0b83b089c tests: the retail window of a twin is sized by the content area of ours plus its frame read in device pixels, and only the inner equality is the hard control
The control was wrong against its source. size_by_content took the retail frame as outerWidth/outerHeight less innerWidth/innerHeight and demanded retail outer == asked. outerWidth and
outerHeight are whole CSS pixels (Firefox nsGlobalWindowOuter::GetOuterSize returns RoundedToInt(GetSize() / CSSToDevScale), nsGlobalWindowOuter.cpp:3573 in the engine tree), innerWidth and
innerHeight are fractional, so the frame read that way is off by up to half a CSS pixel, and a content area of an odd number of device pixels at a scale of 2 (558.5 CSS = 1117 device) has no
outer size that reads back as asked. Candidate 46792115974: linux dpr2.0 asked outer [800, 558.5], answers outer [800, 559] and inner [800, 558.5] = ours; windows dpr1.25 asked [1548.4, 829.2],
answers [1549, 830]; linux dpr1.25 and dpr1.5: the frame from the whole outer less the fractional inner made the retail inner 0.4 and 0.33 CSS smaller than ours (a real mismatch).

RetailSession.set_inner_size reads the window frame in device pixels in one chrome script (nsIBaseWindow.getSize less the content area times the scale) and sets the window to ours' inner
size plus that frame (CONTENT_JS). run_retail_twin keeps the inner equality as the hard control (BROKEN CONTROL when the inner sizes differ); the outer readback is no longer a condition.
Nothing about ours changes. Unit tests: the odd device height at dpr2.0 is not broken when inner is equal, an inner that differs is broken; red on 674ba823, green here.
Unit rows: +6 tests (4564 linux, 4576 windows).
2026-12-02 06:50:50 +01:00
feder-cr b165ac7e90 tests: TEMP evidence, the plant and the page's own read of the getters of the handle test run on retail and on ours, side by side
The control of test_a_client_call_on_a_handle_reads_none_of_the_getters_the_page_planted fails before
any client call on candidate 46792115974 (linux.3, windows.3): properties off the prototype chain
count 1, properties on it count 0. This test runs the same pages and the same plant and read on retail
Firefox 159 (Marionette) and on ours, and saves per property the count, where it is defined before
and after the plant, and a second read, in the evidence folder. It asserts nothing about ours.
It is the second file of the row wrapper.e2e.stock_twin.tooltip (min_tests 5) and a named exclusion of the
whole-suite rows (29).
2026-12-02 06:50:39 +01:00
feder-cr c1c0a84214 tests: a password field of 40 characters is as wide as on retail Windows (the engine masks with U+25CF, not '*'), the retail width extracted from the capture by a script
- test_a_password_field_is_as_wide_as_on_retail_windows_e2e.py: the page of the retail capture, byte for byte (tests/data/password_mask_page.html), read in the product launch (seed 4, scale 1): the scrollWidth of a password field of 40 x "a" in Arial 16px must equal the retail value, on Linux and Windows. Red where the widget layer masks with '*' (249 px against 387 px).
- scripts/extract_retail_password_mask.py writes ci/retail-password-mask.json from the capture (result.json and meta.json, sha256 checked, page sha256 checked); nothing is typed.
- test_the_retail_password_mask_width_is_extracted_from_the_capture_not_typed.py: the extraction on a small sample, known-bad captures refused, the e2e test holds no number (8 unit cases).
- ci/required-suites.json: the e2e in wrapper.e2e.suite.linux.3 (394) and windows.3 (297); the unit file in wrapper.unit.all.linux (4566) and windows (4578).
2026-12-02 06:49:05 +01:00
feder-cr 674ba82359 tests: the login list not open before the click on #user ends, or before the press on #pass, is a broken control, not a finding about ours 2026-12-02 06:32:59 +01:00
feder-cr 7ee01460c3 tests: the login autocomplete case is launched with signon.rememberSignons true, as a default Firefox, since -marionette sets it false, and its failure message prints the pref 2026-12-02 06:32:13 +01:00
feder-cr 476da7c8d0 Merge commit 'eb052e74397795bf8588be1d6e72f8034fb87e06' into e72/r5-wrapper 2026-12-02 06:30:35 +01:00
feder-cr eb052e7439 tests: the fontconfig rules of the host enter through /etc/fonts/local.conf, since the core owns XDG_CONFIG_HOME
The test of the fontconfig rules (E1) injected each launch's rules through $XDG_CONFIG_HOME/fontconfig/fonts.conf and held the precondition that
XDG_CONFIG_HOME reached the engine (/proc/<pid>/environ). The core now points XDG_CONFIG_HOME and XDG_CONFIG_DIRS of the engine at empty folders of
its own, so that route no longer reaches the engine.

Now each launch writes its rules to /etc/fonts/local.conf with sudo (the e2e job runs on ubuntu-24.04 runners with passwordless sudo: e2e.yml
already uses it) and puts the original file back, or removes it if there was none, when the launch ends. The positive control stays: fc-match on
the host, in the environment of the test process, must obey each rule, or the launch fails. The engine-environment precondition is replaced by that
control. Every pixel assertion is unchanged: same launches, canvases, families, sizes and hashes compared with launch 1, plus the system-ui
assertion. Same three tests, same ids.

Why this is not a weakened test: the source of the test changed, not its bar. The test's route (the user's XDG config folder) is no longer a
route a host can use on the new engine, because the core owns that variable; the system-wide file is where a host can still put a rule, and the
test reads the same effect there. The check that the rule is in force in fontconfig itself is kept as the host control, and a rule fontconfig
does not apply still fails the launch.

The row note of ci/required-suites.json and the docstring of the host-files test say how it is now.
2026-12-02 03:25:15 +01:00
feder-cr c8b3b086fa tests: the datalist twin runs in the leg of the dnd twin (a 2-minute leg), so no new leg is needed in the series' gate matrix 2026-12-02 00:59:07 +01:00
feder-cr 5e4adfbcfa tests: a press outside the open list of a datalist ends as on stock Firefox (stock twin, 4 scales, list open asserted in chrome on both) 2026-12-02 00:57:28 +01:00
feder-cr f73432d5ed tests: the timer the client's evaluate starts in the timer-callback frames test is a reviewed stimulus (the callback's stack and caller are what it asserts), debt 0 2026-12-02 00:13:55 +01:00
feder-cr 03dde48c06 tests: a click on the password field under the open login autocomplete list reaches the page and opens no tab
The login list (#PopupAutoComplete) opens by itself on a username field and covers the field below it. Stock Playwright sends the press to the page through it; an engine whose door lets the list take part put the press on its insecure-login warning row, which opens a tab. The e2e opens the list with a click on #user (read from the chrome, so the case cannot pass for nothing), clicks #pass, and asks for the whole click and the focus on #pass and for the number of pages to stay as it was. Three scales; added to linux.2 (460 to 463) and windows.2 (324 to 327).
2026-12-02 00:12:26 +01:00
feder-cr e9d4f95d54 tests: the listeners of the client's evaluate are fired by the page when the test clicks a trigger, not from a timer of the page 2026-12-01 23:51:09 +01:00
feder-cr 728bcbe5d7 tests: print the launcher registry values and the Firefox Launcher event log entries when the first-launch test fails
Diagnostic output only: the assert expressions are unchanged, the evidence is
appended to their messages. It never raises.
2026-12-01 23:19:01 +01:00
feder-cr 633b72bbcf Merge branch 'e72/fontconfig-candidate' of https://github.com/oss-invisible/playwright into e72/r5-wrapper
# Conflicts:
#	ci/required-suites.json
2026-12-01 23:17:20 +01:00
feder-cr 516edfc15c tests: the retail window of the select and tooltip twins gets the content area of ours plus its own frame, not the outer size of ours
Ours is a real window with the frame of a Windows window; the retail reference has the frame of its own system, so the same outer size gave a different content area and both
legs ended BROKEN CONTROL (candidate run 46711902888: Linux outer 1936x1040 -> retail inner 1936x1040 against ours 1920x1032; Windows at 2.0 retail inner 805x561 against ours 800x558.5).
run_retail_twin now asks the outer size of ours, reads the retail frame (outer less inner) and asks ours' inner size plus that frame; a fractional size is set from chrome scope in
device pixels. The inner-equality control and the outer check are unchanged. Unit rows: +8 tests (4528 linux, 4540 windows).
2026-12-01 22:40:20 +01:00
feder-cr a3e647bf2f tests: the page-bytes reference holds Windows 11's Highlight and SelectedItem, rgb(0, 120, 212)
Source: retail capture run 46676225172 (windows-2025 10.0.26100.33828): retail Highlight and SelectedItem rgb(0, 120, 212); GetSysColor(COLOR_HIGHLIGHT) #0078D4; Control Panel Colors Hilight 0 120 212; aero.theme 0XC40078D4. The core declares it since core PR 376.
2026-12-01 22:39:24 +01:00
feder-cr fee389c299 ci: the unit rows count the 30 cases of test_fontconfig_host_files_criterion.py (4529 linux, 4541 windows)
Source: the file's own collected cases (pytest --collect-only: 30), added to the rows of 029eb855 (4499, 4511); candidate run 46711856312 collected 4529 and 4541, the rows had been raised by 25.
2026-12-01 22:39:18 +01:00
feder-cr db40654e73 tests: the popup move/resize test expects what retail reads (inner width 501 after resizeBy(0, 0) at 150%), extracted from four capture rounds, not typed 2026-12-01 22:32:47 +01:00
feder-cr 1c8c1bcbe7 tests: the retail numbers of the maximized-window popup test are extracted from the capture by a script, not typed (outer width at scale 1.5 was 514, retail reads 515) 2026-12-01 22:04:32 +01:00
feder-cr 8805cb8978 tests: the control of the import() case runs from an inline script, so its referrer is the document as the evaluate's 2026-12-01 19:56:59 +01:00
feder-cr 185c386b79 tests: a non-Error thrown by a listener of the client's evaluate and an import() of its code name no location of its world and ask like the page's own 2026-12-01 19:56:05 +01:00
feder-cr bee003ef27 tests: a violation the client's evaluate causes and an error thrown by a listener it registered name no location of the client's world 2026-12-01 19:53:12 +01:00
feder-cr 4ba9c5e4e4 tests: the atoms, sent raw, call nothing of the page's wrapped methods and getters, or are seen with page frames and a null caller only 2026-12-01 19:48:40 +01:00
feder-cr 365f7da7e3 tests: a page function called by the client's evaluate, a timer it starts and a click it makes see only the page's own frames in their stacks, and a thrown error still reaches the client 2026-12-01 19:47:03 +01:00
feder-cr b60a2a89c5 tests: an exposed function reads the getters of its argument as the page's own clone does, and a client call on a handle reads none of the getters the page planted on what each PageAgent block reads 2026-12-01 18:56:42 +01:00
feder-cr 27374a6a8f tests: the page's own Error.prototype message and stack getters are not read when an evaluate throws or rejects, and the client still gets the message 2026-12-01 18:44:17 +01:00
feder-cr d667c6b55d tests: the page's own RegExp and Date Symbol.hasInstance are never called while the client listens to console events, in linux.3 and windows.3 2026-12-01 18:40:49 +01:00
feder-cr 2df8b8f773 tests: the host's fontconfig reaches neither the text pixels nor the screenshot, and no fontconfig file of the host is opened (Linux e2e)
- test_the_host_fontconfig_rules_do_not_reach_the_text_pixels_linux_e2e.py: rules in the user's own fontconfig config (rgba none and bgr, lcdfilter none, embeddedbitmap off, autohint, hintfull without antialias, a strong system-ui prepend) leave the pixel hashes of the opaque and the default canvas, and system-ui's family and widths, as they are with no rule; fc-match proves each rule is in force.
- test_no_fontconfig_file_of_the_host_is_opened_and_the_screenshot_draws_the_bundle_linux_e2e.py: with poisoned caches in HOME and XDG_CACHE_HOME, no browser process opens /etc/fonts, a fonts.conf or a fontconfig cache, and the screenshot of a bundled face equals the content's drawing.
- test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py keeps its ids and asserts the 72's engine: no fontconfig cache is written or read. It retires after the 72's release.
2026-12-01 13:14:43 +01:00
feder-cr 029eb855e7 headless: the server API never starts the browser with -headless; headless=True is a real window on the hidden display 2026-12-01 11:43:58 +01:00
feder-cr eed0facf61 headless: INVPW_TRUE_HEADLESS is retired and refused at launch
The product always runs a real browser window on a hidden display. Setting the variable now stops the launch (sync, async and the server) with a clear error, before the network, a display or a browser starts. The true-headless branch of _resolve_headless is gone.
2026-12-01 11:43:57 +01:00
feder-cr 063222b682 tests: screen.left, screen.top, screen.availLeft and screen.availTop read 0 at every scale, on both systems 2026-12-01 11:43:44 +01:00
feder-cr 675ca17161 wrapper: a page or context made with no_viewport=True is not pinned to the declared viewport, as in Playwright; the declared geometry is merged by one helper for the launchers and the served browser, and the engine gets no default viewport for it 2026-12-01 11:43:43 +01:00
feder-cr 7b5a7fd182 tests: the main window with no viewport reads the retail inner and outer sizes at every scale, on both systems 2026-12-01 11:43:43 +01:00
feder-cr 685db8ffb7 tests: a click on a page element under an open notification panel reaches the page (the door must not hit-test an arrow panel); the select rollup file counts three more on each system 2026-12-01 11:07:53 +01:00
feder-cr ca6f2bef5b tests: an e2e test fails when its browser writes that a release went on without its press handled 2026-12-01 11:07:53 +01:00
feder-cr 4ebb18c26a ci: the unit rows count the persona cover's screen-size test (one more on each system) 2026-12-01 10:14:54 +01:00
feder-cr 6017f94910 tests: every fixture whose bytes a test pins is -text, so Windows checks it out byte for byte; a check holds every pinned fixture to it 2026-12-01 10:14:25 +01:00
feder-cr 62d623a816 udp: a command that waits answers from a thread of its own, so four proxied contexts leave the transport workers free 2026-12-01 07:45:59 +01:00
feder-cr e1ef053355 udp: a context proxy being measured holds up no other command of the served browser 2026-12-01 07:15:00 +01:00
feder-cr 2ea8c602e5 udp: one exit cache per served browser, as the core's browser keeps one 2026-12-01 07:13:06 +01:00
feder-cr 3ebc864346 tests: an e2e test fails when its browser writes the expired popupshown wait
A tee in front of the core's reader of the browser output matches the engine's warning line; the conftest installs it for every e2e test and the teardown fails naming the line. The unit rows go up by the five tests of the new file.
2026-12-01 06:09:59 +01:00
feder-cr e5798ba80c tests: a press and a release at once on a select reach the page as retail does, and the contextmenu of a right click follows its release
The select case is the second press of the retail double click with nothing between the press and the release; the suite minimum of the two rows that hold the file goes up by the three scales.
2026-12-01 06:09:46 +01:00
feder-cr f0a2a8d304 popups: a popup the engine did not pin is told no viewport, and the hand reads its window when it plans
page.viewport_size of a popup under the declared default is None, as for a
page whose viewport is not emulated. The size the hand plans inside is read
from the window at the time of use, since a popup can still change size after
its first script. A size the client sets on the popup pins it again.
2026-12-01 06:09:33 +01:00
feder-cr 7cc5a4494a popups: a popup that names no size is left to its own window under the declared viewport, and pinned to one the user chose
The session marks the viewport of its defaults as the core's; a viewport the
user passes replaces it. The server sends the mark to the engine as
isDeclaredDefault of Browser.setDefaultViewport and never to the client. A popup
the engine did not pin tells the client the size its window has.

Tests: unit for the mark, the engine command and the size a popup is told; an
e2e case for a popup with no size under a user viewport. Both are in the suite
rows.
2026-12-01 06:09:33 +01:00
feder-cr 6b5f5c78a0 tests: the webgl ranges are checked as Float32Array of the page's own realm, with DEPTH_RANGE as the control 2026-12-01 06:09:33 +01:00
feder-cr 9437e06399 persona cover: the screen size test reads the formula from the core's screen profile, not from a copy of the taskbar 2026-12-01 05:22:07 +01:00
feder-cr 2d0620e33e persona cover: the screen size in device pixels is derived from the screen dimension
zoom.stealth.screen.device_width and device_height are the panel's work area plus the taskbar
(the core declares the screen as the whole panel and the work area as the screen minus the
taskbar). They were left unclassified, so every recompute of the cover stopped. A test checks
the formula over many seeds and scales.
2026-12-01 05:20:52 +01:00
feder-cr 6aebe0eb15 ci: the crash-record parser of the known-defects judge says it moves to the core, and the list says it is read from main once main holds it
The parser lives in one place next to the core's matcher after S1, fetched by sha, so the series and the wrapper share it. The list of the wrapper under test is read only until the wrapper's main holds the first row; then it comes from main, so a branch cannot excuse its own crash.
2026-12-01 02:45:08 +01:00
feder-cr 039c2e8bdc ci: the wrapper's list of known Mozilla defects holds D31, the FSBroker crash at the exit of a -backgroundtask process of Firefox 159
ci/mozilla-defects.json has the one row seen in run 46539190316 (process
backgroundtask, phase exit, thread FSBroker, the MOZ_CRASH reason, no frames:
the top frames are libc's and an unsymbolized libxul address, which depend on
the runner), for Firefox 159.0 to 159.*. The core's matcher accepts the file
for 159.0 and 159.0.1 and refuses it for 160.0. Four cases check that and that
the A/A judges the core of the real run with this list; the unit suites count
them (4443 on Linux, 4455 on Windows).
2026-12-01 02:36:33 +01:00
feder-cr c4d5ffe903 ci: the cores a browser leaves are judged against the known Mozilla defects with the core's matcher; the A/A reports a matched crash by its D<n> and is not red
scripts/ci_crash_evidence.py: every core the probe finds becomes a crash record
(process from the `Core was generated by` line, with the cut-line rule; thread
from gdb's header or %e of the core's name without its instance number; frames
of the crashing thread; the MOZ_CRASH reason; phase exit or run from the moment
the launch began to close the browser, recorded in the launch entry before the
original close runs). exit_problems judges the cores of a launch whose parent
ended with 0 with the core's main matcher (MOZILLA_DEFECTS_CHECKER, else
fetched once from main by sha) and the wrapper's ci/mozilla-defects.json for the
Version= of the application.ini beside the binary. The judge is closed: no
matcher, no API, no list or no version keeps every core red and says why. A
launch whose parent did not end with 0, a minidump, a core with no record and a
caller that does not say whether its measurements are complete (None) stay red
exactly as before.

scripts/ci_ab_oracle.py: only the A/A control (the two dumps of the published
engine) judges; its measurements are complete when the dump ended with 0 and
every asked visit has its result and no tab died (visits_complete). A matched
crash is a note, printed and kept in diff-a-a.json.

Tests: test_known_mozilla_defects_in_crash_evidence.py (64 cases, the real gdb
text of the FSBroker core and a copy of the matcher with its sha256); both
unit suites count them (4439 on Linux, 4451 on Windows).
2026-12-01 02:35:59 +01:00
feder-cr 73add864d3 tests: a popup with a position and no size opens normal at the stored size, at the retail position, at the four scales
window.open with left=100,top=100 and with left=5000,top=5000 from a maximized
main window whose state is stored: the popup reads the retail inner and outer
sizes and screenX, screenY (Firefox 159 on Windows, measured), in its first
script and at load. The two suite rows holding the file count eight tests more.
2026-12-01 02:04:38 +01:00
feder-cr 49838e1df3 tests: a popup of a maximized main window reads the retail inner, outer and visual viewport sizes for six feature strings at the four scales 2026-12-01 00:55:58 +01:00
feder-cr 66530eadba tests: a stencil mask wider than the stencil bits reads back whole, the four masks after each write on a fresh WebGL1 context 2026-11-30 23:50:35 +01:00
feder-cr 49f9ac900c tests: a press or a wheel with a popup open follows the platform's rollup, no popup outlives its page, the WebGL ranges are Float32Array
A real press, release, double click, right press, wheel turn or item press while a select dropdown, a datalist list or the page context menu is open reaches the page as retail Firefox 159 on Windows measured it, at the scales 1, 1.25 and 1.5, in the top document and in a frame of another site. Closing a page with a dropdown, a context menu or a datalist list open leaves no popup open and no browser element with pointer-events changed. The declared aliased line width and point size ranges are Float32Array of the page. The two new files are in the second whole-e2e rows of each system (447 on Linux, 318 on Windows).
2026-11-30 21:07:32 +01:00
Federico Elia a0d7c627a6 Merge pull request #633 from oss-invisible/ledger/0.61.0
record 0.61.0 as published
2026-11-30 16:52:48 +01:00
feder-cr 704fd5f98c record 0.61.0 as published 2026-11-30 12:28:40 +00:00
Federico Elia 262937350f Merge pull request #632 from oss-invisible/release/0.61.0-firefox-71
release 0.61.0: engine firefox-71, core 71.85.0
2026-11-30 10:01:32 +01:00
feder-cr 50cda456cb release 0.61.0: pins invisible-core 71.85.0 (engine firefox-71), the core release whose proof reads main's retired tests; persona seeds and the gate lock for that core 2026-11-30 02:39:56 +01:00
feder-cr ce913bbf4b release 0.61.0: pins invisible-core 71.84.0 (engine firefox-71); persona seeds and the gate lock for that core 2026-11-30 00:40:08 +01:00
feder-cr a6fe4ea53b release 0.61.0: version and changelog (engine firefox-71, core 71.84.0) 2026-11-29 22:29:07 +01:00
feder-cr 34f02cdcdc ci: the unit suites count the five cases of the drag twin's frame rule (4375 on Linux, 4387 on Windows) 2026-11-29 22:02:46 +01:00
feder-cr a3ff6087f1 tests: the move with a button down starts outside the context menu that the right click left open
Juggler closes a menu on a press only, as the platform does, so the context menu of "frame right click" is still open at the next action. Its first move, to (300, 200), lay over the menu and the page never saw it, on retail or on ours. The points of "move with button down" are now left of and above the right click's point, inside the iframe and on its button; the press of the action closes the menu. The expected event list is unchanged.
2026-11-29 19:59:52 +01:00
feder-cr d7b0cb8638 tests: the dropdown test waits for the trusted mouseup and click that the page gets after a release the parent handled alone
A release that the parent handles in chrome (the select dropdown is open) is answered without the content ack. On retail the page then gets a trusted mouseup and click on the select, dispatched by SelectChild after the parent's Forms:MouseUp, asynchronously. The pages of the stays-open test record both on the select, and the test waits for them in the page's own log with the deadline of the file (never assuming they arrived when the call returned), in the top document and in the frame of another site. What the tests already assert is unchanged. The negative control (popup hidden between the press and the release) does not wait for them.
2026-11-29 19:59:52 +01:00
feder-cr 66a682cfe6 tests: the back-forward cache bench leaves the page when the frame's report request is over, not when the server has recorded it
The frame page /shown sent its pageshow report with a fetch, and the test left the top as soon as the server had recorded the report. The response was still on its way, the fetch was still in the frame's load group, and Firefox refuses the back-forward cache for a page left with a request in flight (BFCacheStatus::REQUEST, CanonicalBrowsingContext::AllowedInBFCache): both reports came with persisted=false. Stock Firefox does the same, and the product never promised the cache for a page left like that.

The page keeps the request in window.__sent; the test waits in the frame until it settles (the request is over, so the frame's load group is empty), then leaves. The sequence is a helper with the condition to leave on ("finished" or "recorded"). The server fixture gets a knob that holds the first pageshow response for 2 s after recording it, and a new e2e runs the sequence with the knob on: the old sequence (leave on "recorded") with the knob is the red case, which runs on the candidate; the new one is green.

e2e rows: wrapper.e2e.suite.linux.2 419 to 420 and wrapper.e2e.suite.windows.3 276 to 277 (+1 each).
2026-11-29 19:59:23 +01:00
feder-cr 1717c2063c tests: the drag twin declares the top's leave into an in-process frame and the dropEffect of the frame drop
In the drop in a frame of another site, two fields of the top document depend on stock's frame
being in its own process model: the top's dragleave whose element under the cursor is the frame
(stock's event manager fires a leave at the body when the cursor enters the subdocument; retail
with the frame out of process and ours have none), and the dropEffect of the top dragend (the
frame's drop result, which crosses processes). Before the comparison they leave top.once for
top.into_frame and top.dragend_effect, both declared IN_PROCESS_FRAME, so the event lists line up
and the rest of the top is still compared. In the drop in the top document the record is compared
whole, dragend's effect included. split, compare, recorded and verdict take the kind of the drop.

The frame page of the twin was served raw with height:100%%, an invalid length, so body had height
0 and the twin read html where retail reads body; it is height:100% now.

The unit test of the twin gets the leave under the frame in its frame fixture, a case with stock
leave and copy against ours without it and move (green, recorded as declared), and the same
dragend effect difference in the top drop (red).
2026-11-29 19:56:25 +01:00
feder-cr 5ea88e57d5 tests: a select dropdown stays open after the release, and a context menu closes on the next press with no input call hanging
Menus are closed by the platform on a press outside them and on the wheel (nsWindow::DealWithPopups), not on a release or a move. Per place (select of the top document, select of a frame of another site): press, wait for the popup to be open, release, and the state read over the next second must be open at every look; a chrome hidePopup between the press and the release is the negative control and must read closed. The pages and reads are those of the select twin, imported.

One more e2e for the case an unguarded call in the input path was there for: a chrome context menu that captures the mouse. A right click opens the chrome context menu, then moves across the page, a left click elsewhere and a move again must each return (each duration is in the message of a failure), and the menu is closed after the press of that click.

Red on an engine whose input closes menus on a release or a move: the dropdown reads closed after the button went up. e2e rows: wrapper.e2e.suite.linux.2 414 to 419 and wrapper.e2e.suite.windows.2 286 to 291 (+5 each).
2026-11-29 16:47:15 +01:00
feder-cr b7ef739d56 tests: the intersection twin does not compare the box of a frame that is fully out of view with stock
In Mozilla's code a fission frame scrolled fully out of view reads an empty boundingClientRect: DOMIntersectionObserver.cpp 792-794 returns early when there is no in-process root frame, after the transform chain HitTestingTreeNode.cpp 298-328, BrowserChild.cpp 3751-3778 and UnitTransforms.h 343-351; Mozilla's own web-platform meta (cross-origin-iframe.sub.html.ini) marks that step FAIL under fission. Stock's frame is in-process, so it reads the rectangle. The declared list of the twin now has the box of the steps all above and all below (in-process frame in stock); the box of the steps where the frame is in view and every other field stay compared, and the retail capture decides the declared ones.

Red on the old list: the declared-list test and the two out-of-view tests fail with nothing declared. unit.all rows: +13 (Linux 4370, Windows 4382).
2026-11-29 16:39:04 +01:00
feder-cr 23548f5822 tests: the select twin records the window's activation and focus at the click
For each select the record now has, before the click and right after it: chrome Services.focus.activeWindow === win, win.document.hasFocus(), the browsing context's isActive (win.gBrowser.selectedBrowser.browsingContext.isActive), the top content document's hasFocus() and visibilityState, and the driver's ack of the click when it keeps one. A popup that does not open for a window that was not active is then told apart from a popup at the wrong place. A read that fails is recorded and never raised.

Red on the old code: the six new tests and the existing ones that use the fake chrome fail without the read. unit.all rows: +6 (Linux 4357, Windows 4369).
2026-11-29 16:27:40 +01:00
feder-cr 5f58bdf808 tests: a field that depends on stock's frame being in-process is recorded, not compared with stock
Stock Playwright's Firefox sets fission.webContentIsolationStrategy=0, so its cross-site frame shares the top's process, and its drag is Juggler's synthetic one (no OLE loop). A field that depends on either is not what stock reads, and the retail capture decides it.

_stock_twin.split_differences splits the differences of a twin by a declared list per twin (a pattern of canonical paths and one of two reasons: in-process frame in stock, synthetic drag in stock); a declared field that differs is recorded (recorded_differences in the report) and a field that is not declared and differs is red.

The drag twin declares the buttons, drag at the source (count and presence), the dragend point less the last drag, and in the frame effectAllowed, dropEffect and mozSourceNode; routing, targets, client points, rel, types, trusted, the input source and the effects of the top document stay compared. The intersection twin has the list and declares nothing yet (moving boundingClientRect is one line).

Red on the old code: the new tests fail at their import of the declared list and of split_differences. unit.all rows: +43 (Linux 4351, Windows 4363).
2026-11-29 16:26:35 +01:00
feder-cr e0273aac56 tests: the retail driver's synthesized input reaches a frame in another process
SEND_JS called Window.synthesizeMouseEvent without isAsyncEnabled. With the webidl default (false) the event goes through widget->DispatchEvent and never through APZ (nsContentUtils.cpp 10552-10560 at FIREFOX_159_0_RELEASE), has no layers id, and EventStateManager::DispatchCrossProcessEvent falls back to the top process (EventStateManager.cpp 2199): a frame in another process never got the move or the click. The options now carry isAsyncEnabled: true, Mozilla's own mechanism (EventUtils.js asyncEnabled).

A static check reads every synthesize call of code that runs on retail or stock Firefox and is red when its options literal lacks isAsyncEnabled: true. Red on the old SEND_JS (two tests of the file), green on the new.
2026-11-29 16:22:44 +01:00
feder-cr 622f0d3eaf tests: the drag twin records every drag event the page reads, for a drop in a frame and for a drop in the top document
The twin of the drag kept a few numbers (the count of dragstart, the drop target and the client
point of the drop, the end point less the last drag point) and only for a drop in a frame of another
site. A dragenter at the wrong element, an empty dataTransfer, a dropEffect of none or an untrusted
event read as the same as stock's, and a drop in the top document was not covered at all.

Now both pages keep every event they hear (dragstart and drag at the source; dragenter, dragover,
dragleave and drop where the drag goes; dragend at the source) with its type, target id, the id of
the element under the cursor, client and screen points, buttons, mozInputSource,
dataTransfer.types, effectAllowed, dropEffect, mozUserCancelled, whether mozSourceNode is null and
isTrusted, plus the count of drag events at the source and the dragend point. The same test does
the drag twice on a fresh page, once ending in the frame and once in the top document, on stock
and on ours, and the verdict prints both records whole.

Ours is compared with stock exactly in every field that is the same on every machine; in one CSS
pixel in a client point (the tolerance the drop point already had); and through the relation of the
screen point to the client point, because screenX/Y is where the window stands (real on stock,
declared on ours). The counts of dragover and of drag events are recorded and not compared: retail
fires both from a timer (OLE calls DragOver periodically, and nsNativeDragTarget fires drag at the
source each time). What is compared is that drag fired at the source at least once on both sides.

Regression test (54 tests, no browser, fake pages): red on the old files (the module of the record
does not exist and the old twin has no DROPS or recorder), and red on each mutation of the
comparison. In the two unit rows: 4250 -> 4304 on Linux, 4262 -> 4316 on Windows (collect-only on
the row's files). The e2e row keeps its 4 tests.
2026-11-29 14:16:39 +01:00
feder-cr e0e620e8d5 tests: a select twin that fails says where it clicked and what the geometry was, and every case leaves its numbers
The steps of the select twin said "the dropdown did not open after a click on the select of the
frame document" and nothing about the click, so a red case at one display scale could not be told
from a wrong point, a wrong scale or a window that moved. Now, for each select, every failure of the
steps carries: the click point (CSS, and the point the driver sent with its unit and its device
point), the scales record, the select's box in its own document and the frame element's box in the
top document, mozInnerScreenX/Y of the top and of the frame, and the popup's state after the click,
at the deadline and at a second look. The verdict of the twin prints both browsers' records whole.
The same record is written for every case, red or green, to
$RUNNER_TEMP/invpw-evidence/popup-diagnostics/<case>-<browser>.json, the folder the jobs upload, so
a green run leaves the numbers to compare with a red one. A read of the diagnosis that fails is
recorded in the record and never replaces the finding.

The drivers keep the point they sent (last_click), and the retail driver reads a frame through
Marionette and is back in the top document when the read ends or fails.

Regression test (13 tests, no browser, a fake driver): red on the old files (11 of the 13 fail on
the old steps and drivers, the module of the record does not exist). In the two unit rows: 4237 ->
4250 on Linux, 4249 -> 4262 on Windows (collect-only on the row's files, not OS-specific).
2026-11-29 11:09:11 +01:00
feder-cr a7f84eded4 tests: the intersection twin routes the page of its frame again, and a check reads every page a test asks the fake sites for
The frame of the intersection twin is sites.url("B", "/io") and nothing routed B /io: the route was
dropped in an earlier commit and _register did not get it back. The fake sites answer an unrouted
path with a 404 and an empty body, so the frame had no #t and IntersectionObserver.observe threw.
_register routes B /io (FRAME_IO, which was defined and unused) again.

Regression test (9 tests, no browser): in every test module that builds Sites(), each
X.url(site, path) and each wait_frame/frame_of that names a site and a path has an X.route for it
in the same module; a computed part of a path is a wildcard on both sides; one exemption (the
expected scope of a service worker, compared and never requested) is listed with its reason and is
itself red when no call uses it any more. Red on the old file: the module without the route reads
B /io asked and not routed (two lines: the page of A and the frame lookup), and a snippet of the same
shape; green with the route. In the two unit rows: 4228 -> 4237 on Linux, 4240 -> 4249 on Windows
(collect-only on the row's files: 4240 before, 4249 after).
2026-11-29 11:01:13 +01:00
feder-cr 06c2428572 tests: the retail twin sends its input with Window.synthesizeMouseEvent, and a check reads every chrome call against Mozilla's sources
The four cases of wrapper.e2e.stock_twin.tooltip died on the engine candidate with "win.windowUtils.sendMouseEvent is not a function": Firefox 159 has no
nsIDOMWindowUtils.sendMouseEvent, its chrome input is Window.synthesizeMouseEvent. SEND_JS of the retail reference now calls
win.synthesizeMouseEvent(type, x, y, {button, clickCount, modifiers, inputSource}, {ignoreRootScrollFrame, isDOMEventSynthesized}), with Mozilla's own field names
and the same offsets (CSS pixels of the browser window).

Static check, no browser: scripts/extract_mozilla_chrome_api.py reads nsIDOMWindowUtils.idl and Window.webidl at the release tag into ci/mozilla-chrome-api.json
(path, tag, commit and sha256 of each source; what only our engine tree has is listed apart under "ours"). tests/test_the_chrome_calls_of_the_tests_exist_in_firefox.py
scans the strings of every test and script for windowUtils.<name>, .synthesize<...>( and the keys of the dictionaries those calls pass: a name that no Firefox
has is red, a name only our engine has is red in code that runs on retail or stock Firefox. Red on the old SEND_JS (sendMouseEvent is not in 159), green on this
one. The extractor has its own unit test on a small IDL and WebIDL sample.

Both files join wrapper.unit.all.linux and wrapper.unit.all.windows, min_tests raised by 18 each (12 + 6).
2026-11-29 10:40:14 +01:00
feder-cr 3e082e07d7 tests: the stack watchdog's log lands in the evidence folder that every job uploads
INVPW_TEST_WATCHDOG_FILE is set only by the wrapper's own e2e workflow, so a run of the gate
wrote the stacks of a hung test to the temporary folder, which nothing uploads, and they were
gone with the runner. With RUNNER_TEMP set and no file named, the log is now
$RUNNER_TEMP/invpw-evidence/watchdog/e2e-watchdog.log, inside the folder the gate keeps as
"what the tests saved"; a named file still wins, and off a runner nothing changes.

Regression test (5 tests, red on the old files: the module does not exist and conftest.py
opens the temporary folder). In the two unit rows: 4205 -> 4210 on Linux, 4217 -> 4222 on
Windows (not OS-specific).
2026-11-29 08:59:28 +01:00
feder-cr 3366497f7d tests: the twins open their page before they ask Marionette for a session
The wrapper launches the engine with -silent, so there is no window at start-up, and
Marionette's WebDriver:NewSession is answered only when the browser's start-up ends, which
only a window ends. run_retail_twin and _on_ours created Chrome() before browser.new_page(),
so the session never got its answer and the socket timed out after 300 s (every retail twin
and every stock twin of the engine candidate).

Chrome now takes the page of the launch as a required argument, so the wrong order cannot be
written, and both twins open the page first. scales() reads that page.

Regression test (red on the old files, 4 of 9 fail): an ast scan of every test and script
refuses a function that asks for a session before its first new_page; the scan is itself
proved on the old order; a fake Marionette that answers NewSession only once a window exists
shows _on_ours and run_retail_twin get their answer. In the two unit rows: 4196 -> 4205 on
Linux, 4208 -> 4217 on Windows (9 tests, not OS-specific).
2026-11-29 08:59:28 +01:00
feder-cr aaf5863598 ci: the host oracle takes each side's own install folder as that side's own package, and the row of the graphics probe is out of the file
Engine final candidate (run 46227711139), ab_host on Linux, two defects of the harness:

1. DIFF on invisible_core/branding/official/branding.zip: <published set venv>/site-packages/... on the published side, <hostedtoolcache python>/site-packages/... on the candidate's.
   Each side's engine reads the branding of ITS OWN core, in the folder that core is installed in, and since the control side is the published set (0b23228e) the two folders
   differ. The classifier knew one own package, the folder of the engine. It now also knows the install folders of the python that runs the side (ci_ab_host.install_folders:
   sysconfig's purelib and platlib, the link and the real folder; the side's launch runs in that side's python), in the same class `package`, so the same read is the same
   file of the package on both sides and no path is named. Anything else stays the host's and red: the other side's folder, the python's own library under the same prefix,
   a sibling folder that only starts with the same text, any path declared nowhere.
2. FAIL the declared difference 'gfxtest-69' ... is stale, remove it: the published engine is the 70, which no longer spawns gfxtest either. ci/ab-host-expected.json declares nothing.
   The mechanism of a declared `proc` difference is tested with the row as a row of the tests' own (tests/_ab_host_declared.py), and a test takes the run's case as data: a row that
   does not show is red as stale, in the wording of the run, and the same run is green against the empty file.

tests/test_ab_host.py (+10, 9 of them red on the old classifier): the pair of the run is the same package on both sides and no difference; each of five reads outside a side's own
install folder is a difference; the install folders of a process; the stale row. tests/test_ab_oracle.py: the new helper is one of the host oracle's files for a pull request.
wrapper.unit.all.linux 4196 and wrapper.unit.all.windows 4208 (+11).
2026-11-29 08:59:28 +01:00
feder-cr dfd35bb47e ci: the page oracle's A/B allows the differences a release is known to make, declared per os, seed, dpr and leaf, and is red on a row that does not show
Engine final candidate (run 46227711139): ab_oracle was red on Linux and Windows on the same 24 differences, all of them the bar of a main window above the content.
Seed 6 at 1.25: the bar is 106 device px as retail Firefox 159 measures it, the published engine's core said 107; the candidate's core rounds the bar once on the sum in app units
(window_frame.chrome_height_device). Seed 63 at 1.5: the work area is under 720 CSS px, so retail chooses the compact density by itself (browser.js gUIDensity) and the bar is
73 CSS px, not the normal 85 (constants.ui_density, window_frame.chrome_height_device(1.5, 'compact')).

- ci/ab-oracle-expected.json (ab-oracle-expected/1): 48 rows, one per os x seed x leaf of those 24 (Linux and Windows read the same), each with exactly id, os, seed, dpr, leaf,
  published, candidate and reason (the retail source, the core function that produces the value, what the leaf is).
- scripts/ci_ab_oracle.py: the A/B (run, run_ab, compare) allows a difference only when a row matches it exactly (os of the leg, seed, dpr, leaf and both values); any other
  difference is red, and so is a row that does not show in the run (stale: "remove it", the wording of the host oracle). The rows apply to the A/B only: the A/A is judged without
  them. A row of a visit the run did not make (another shard or seed set) is not judged. The rows name no tag: when the published set moves to the release that holds the work, the two
  sides agree, every row is stale and the check forces them out. compare takes --leg (default: this machine's).
- tests/test_ab_oracle_declared_differences.py (16, red on the old judge) with the 24 DIFF lines of the run as data: the old judge is red on them and the new one green with the
  rows; an undeclared extra difference, another value than the row's, another seed, dpr or os, are red; a stale row is red; the A/A ignores the rows; the file's keys and rows.
  tests/test_ab_oracle.py: the fake pages of its tests have no rows (a fixture), the leg of one test is a real leg, and the file of the rows is one of the oracle's files for a pull request.
- wrapper.unit.all.linux 4185 and wrapper.unit.all.windows 4197 (+17: the 16 tests and the case of the new file in the oracle's pull-request file list).
2026-11-29 08:48:49 +01:00
feder-cr 76c33a9e0a tests: the stock browser and the retail reference of the twins get a display from the wrapper's mechanism
The engine gate runs the stock twin rows' pytest without xvfb-run (only wrapper.e2e.suite.* rows get it), and the docstrings said the browsers drew on "the display of the job".
Ours gets a display of its own from the wrapper (make_virtual_display, started per session), so ours drew and stock and retail died on Linux with
"no DISPLAY environment variable specified" (wrapper.e2e.stock_twin.intersection, all four cases).

_stock_twin.OwnDisplay starts the core's make_virtual_display() on Linux (1920x1080x24 Xvfb, access control on), one per launch, and gives the browser's environment its
DISPLAY and XAUTHORITY (the Wayland variables removed), stopped after the browser, also when the launch fails. Stock gets it through the env of p.firefox.launch, the retail
reference through its Popen env. On Windows nothing is made: a stock client cannot be spawned on another desktop. The docstrings of _stock_twin, _retail_reference and the
select and tooltip twins say what is true.

test_the_stock_and_retail_browsers_get_a_display_from_the_wrapper.py (4 tests, red on the old code) is in wrapper.unit.all.linux and wrapper.unit.all.windows, min_tests +4 each.
_fake_stock_playwright.py is the recorder both unit files of the stock twin share.

The exact counts of the two unit rows are corrected by 2: since the published-set commit the two rows were 2 below the real collect (the new published-set.yml workflow adds one case to
test_ci_linux_legs_read_no_mirror.py and one to test_ci_windows_temp_is_on_d.py, which are parametrized by workflow file, and that commit counted only the 36 tests of its own file).
wrapper.unit.all.linux is 4168 and wrapper.unit.all.windows is 4180, as the run of the engine's final candidate collected (4160 and 4172) plus the 8 of the two commits above.
2026-11-29 07:44:35 +01:00
feder-cr ce6db02d36 tests: the stock twins get layout.css.devPixelsPerPx as the string ours gets
The pref is a string pref of Firefox. The stock client sends user prefs through Browser.enable and Playwright's Juggler sets a number with setIntPref, so
the float of the case failed every stock twin launch on Windows with NS_ERROR_UNEXPECTED [nsIPrefBranch.setIntPref], a broken control on all four cases.
Stock now gets the scale from _window_origin.scale_pref, the form the core declares for ours (str(profile.screen.dpr)).

test_the_stock_twin_gets_the_display_scale_as_ours_does.py records the stock launch and compares it with ours composed by the core for each of the four cases
(4 tests, red on the number the old code passed); it is in wrapper.unit.all.linux and wrapper.unit.all.windows, min_tests +4 each.
2026-11-29 07:32:38 +01:00
feder-cr a1711b9802 ci: the published set is installed from published/ only, by hash, checked with pip check, and verify names the file installed
The wheelhouse's own folder holds the candidate's wheels of invisible-core and invisible-playwright,
built from core_ref and wrapper_ref; at an equal version they have the file names of the published
ones. With real pip, two --find-links and --require-hashes take the first local file of a name and
fail on a hash mismatch, they do not choose by hash.

- install: the gate lock's dependencies from the wheelhouse, then the two published wheels from
  <house>/published ONLY (one --find-links per pip call, --no-deps, by the hashes of
  ci/py-lock/published.txt), then pip check over the venv with the set's python: red, with what pip
  reports, when a requirement of the published wheels is not met. The wheel of each package is
  chosen by the sha256 the lock holds (a file with the name and another hash is refused, naming both)
  and recorded with the digest of its package files in <venv>/published-set.json.
- verify: reads that record and the disk. It names the file installed (wheel name, sha256), is red
  when that sha256 is not one the lock holds (naming both), and when a file of the package on disk is
  not, byte for byte, the wheel's. A version says nothing of which file is installed.
- tests (real pip, offline, wheels made with zipfile): the same name and version in the house root
  (the candidate's) and in published/ installs the published one and verify is green; a venv holding
  the candidate's wheels is red naming the file, its sha256 and the lock's; a record that says
  published over candidate bytes is red; a lock naming neither is red; a published wheel requiring
  what the house lacks is red at pip check, the normal house green. 42 tests in the file (+6), the
  rows of the whole unit suite raised by 6.

Red on the old install: the real-pip same-name test fails with pip's "THESE PACKAGES DO NOT MATCH
THE HASHES FROM THE REQUIREMENTS FILE" on the candidate's wheel of the same name (8 of the 42 fail
on the previous script).
2026-11-29 05:52:46 +01:00
feder-cr c4dbbe8faf ci: the stock twin row is four rows, one file and one leg each
The row wrapper.e2e.stock_twin (4 files, 20 tests) ran past the 25 minutes of a leg. It is now wrapper.e2e.stock_twin.dnd (4 tests),
.select (4), .tooltip (4) and .intersection (8), each with the file, the marker, the systems and stock_firefox of the old row, and the old note split by file.
The table of leg fields, the accounting of the e2e suite and the retail reference's messages name the new rows.
2026-11-29 03:54:02 +01:00
feder-cr b916990a33 e2e: a popup moved to the far right stops where retail's does, the capture's numbers per case
The phase ran moveBy(10, 10) and moveTo(99999, 0) in one popup and expected availLeft + availWidth - outerWidth, which is not retail's clamp:
Mozilla's CheckSecurityLeftAndTop uses the outer width rounded by its edges (CSSIntRect::Round), then the device rounding and the read-back.
The phase now runs the sequence of the retail capture (popup_move_resize, retail-window-geometry, Firefox 159.0) and expects the screenX and screenY
retail read after each call, per case, with the derivation for scale 1.25 written next to the table.
2026-11-29 03:50:11 +01:00
feder-cr 0b23228eb8 ci: the control side of every A/B oracle is the published set, as a user installs it
Engine candidate 5 (run 46208549074): ab_oracle, ab_network and ab_host were all red on a BROKEN
CONTROL. The published engine (labelled firefox-68, a tag written in the harness, when firefox-70
was the last published) was launched by the CANDIDATE's core, which no longer declares
zoom.stealth.screen.popup_position, and the engine refuses a launch whose declarations its core does
not emit (rule 7). A pairing no user has.

The control is now the set a user gets: the last invisible-playwright on the index, the
invisible-core it pins exactly, the engine that core's seal pins, in a venv of their own.

- ci/py-lock/published.txt: the set as a hash lock (every file of the two versions, the requirements
  each declares); scripts/ci_published_set.py makes it (resolve), compares it with the index (check),
  installs it offline over the gate's lock from the run's wheelhouse (install) and verifies what the
  venv imports (verify); fetch/tag run BY the set's python: its own core fetches its own engine.
- .github/workflows/published-set.yml: daily and on a pull request that touches the lock, red when
  the committed lock is not the index's last release.
- ci_ab_oracle, ci_ab_host, ci_ab_network: the published side runs in the set's python
  (INVPW_PUBLISHED_PYTHON) with an environment that carries nothing of the candidate's job
  (PYTHONPATH, VIRTUAL_ENV, its seal, its pin switches); the candidate side is unchanged. No tag is
  written in a harness file: the label and the file names (dump-<N>.json, ...) come from the seal of
  the set. A candidate without a set is refused, never run against its own core.
- ci_poison_host: the by-product files are named for the tag of the set as well.
- tests/test_ci_published_set.py (36, in wrapper.unit.all.linux and .windows): the defect on fake
  cores and a fake engine that refuses as rule 7 (red on the old harness with that refusal), the
  three seams, the lock on known-bad inputs, the resolver on synthetic index documents, the install
  commands, no tag written in a harness file.

Red on the old harness: the defect test fails with "stealth: zoom.stealth.screen.popup_position is
not declared by the core candidate-core (rule 7)" on the scripts of df491f2e. The regression
registry of the wrapper is not on this base: its row follows with the registry.
2026-11-29 03:40:21 +01:00
feder-cr df491f2e67 Merge commit '8e342a1378e9da0a8e6340411f42dbe66c39a5ed' into candidate/wrapper-71-final 2026-11-29 01:48:12 +01:00
feder-cr 8e342a1378 tests: the e2e stack watchdog holds the GIL (a Python thread), not faulthandler's dump_traceback_later, whose GIL-free copy of every thread's frames crashed the Windows part 3 worker
Five workers of the Windows part 3 of the e2e died, all on tests/test_fakeweb_p4_e2e.py::test_the_journey_leaves_every_page_only_once_its_noise_is_done, which runs 122-171 s with about 50 threads. tests/conftest.py armed faulthandler.dump_traceback_later(150 s, repeat=True) for every e2e test: a C thread that copies the frames of every thread WITHOUT the GIL (_Py_DumpTracebackThreads, documented "for debug purpose only ... after a segmentation fault, at fatal error") while the process keeps running and the other threads keep changing their frames. Two full dumps of a crashed worker show the process dead inside dump_frame, called from faulthandler_thread, reading a frame another thread was changing.

tests/_stack_watchdog.py is the same watchdog as a Python daemon thread: one per process, reused by every test; arm(nodeid, threshold_s, period_s, file) and cancel(); past the threshold, and then every period until cancelled, it writes "Timeout (h:mm:ss)!" and the frames of every thread (sys._current_frames(), holding the GIL, threads named from threading.enumerate()) to the same e2e-watchdog.log, in the format of faulthandler's dump; nothing to stdout or stderr; nothing after cancel() returns. Known limit, in the module: a thread that never releases the GIL keeps it from writing, which is pytest's faulthandler.enable() at the death of the process. tests/conftest.py calls it in place of dump_traceback_later and cancel_dump_traceback_later (setup, teardown, unconfigure).

Tests (all in the rows of wrapper.unit.all.linux and wrapper.unit.all.windows, min_tests 4061 -> 4116 and 4073 -> 4128, counted with the selector of the judge):
- tests/test_no_file_arms_a_gil_free_thread_dump.py: no .py of tests/, scripts/ or src/ calls faulthandler.dump_traceback_later, or dump_traceback with all_threads true or defaulted (ast, through any import form); pytest's faulthandler_timeout is set in no pyproject, pytest.ini, setup.cfg, tox.ini, conftest string, script string or workflow line (parsers, not text). Red on the conftest of 03425bb8, naming tests/conftest.py and the line, with how to fix and the rule; each form has its known-bad and its green twin. The only exclusion is norecursedirs of pyproject.toml.
- tests/test_the_stack_watchdog_writes_every_thread_after_its_threshold.py: in a child python, a blocked call gets the header and the stack of every thread, a test cancelled before its threshold leaves no dump, nothing is written after cancel (judged on the bytes of the file, waiting on the second test's first dump), the second test reuses the thread.
- tests/test_a_gil_free_thread_dump_kills_a_busy_process_and_the_stack_watchdog_does_not.py: 32 threads churning frames; dump_traceback_later at 1 ms ends the child with a crash status (red on the old mechanism), the new watchdog at a 1 ms period lets it run 6 s (60 times longer) and writes its dumps.
2026-11-29 01:20:27 +01:00
feder-cr 03425bb898 ci: every pytest process of a Windows e2e job clears SEM_NOGPFAULTERRORBOX, so a crashing worker reaches the LocalDumps
#629 sets WER LocalDumps for python.exe in each Windows e2e job, and a crashing pytest-xdist worker still left no dump. The pytest controllers of the runner are born with the
error mode 0x0003 (SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX), every child inherits the mode of its parent, and a process with SEM_NOGPFAULTERRORBOX (0x0002) never
invokes Windows Error Reporting, so no worker crash reached LocalDumps.
https://learn.microsoft.com/windows/win32/api/errhandlingapi/nf-errhandlingapi-seterrormode

The "Windows Error Reporting keeps a full dump..." step of each Windows job now also exports INVPW_WER_DUMPS=<the dumps folder> to $GITHUB_ENV. tests/conftest.py calls
tests/_wer_error_mode.py in pytest_configure (the controller and every xdist worker run it): when that variable names an existing folder on Windows, the process clears bit
0x0002 of its error mode and keeps the others, and appends "pid <n> error mode born 0x.., now 0x.." to invpw-evidence/dumps/error-mode.log. Nothing is written to stdout or
stderr, and nothing happens on Linux or in a job that did not set LocalDumps.

Tests: the rule test of the Windows jobs (tests/test_every_windows_job_keeps_a_dump_of_a_crashing_python.py) now requires the export in the LocalDumps step of every Windows
job, with the folder of DumpFolder and no other place that sets it (red on the previous e2e.yml, naming the job); a real child python born with 0x0003 (and 0x8003, 0x0002,
0x0001, 0x0000) ends with the born mode minus 0x0002 and leaves its evidence line, and without the variable or with a missing folder the mode is unchanged
(tests/test_every_pytest_process_clears_the_gp_fault_error_box_on_windows.py, a Windows file: only the row of Windows names it, min_tests 4061 on Linux, 4073 on Windows).
2026-11-29 00:34:35 +01:00
feder-cr 67b2ad3188 tests: the table of the leg fields carries the stock_firefox of the row wrapper.e2e.stock_twin, which the gate reads 2026-11-28 22:30:13 +01:00
feder-cr fe50cdc118 e2e: the retail reference gets the outer size of ours before anything is measured and both inner sizes are compared (a difference is a broken control); the launcher and the messages cover the Linux binary (firefox, no .exe, the job's display) 2026-11-28 21:52:21 +01:00
feder-cr e4aa743af3 e2e: the select dropdown and the tooltip are measured against RETAIL Firefox 159 driven by Marionette alone, headed (tests/_retail_reference.py, INVPW_RETAIL_FIREFOX set by the leg), not against Playwright's own Firefox; the tooltip joins the row wrapper.e2e.stock_twin (20 tests) and its rule is a cross-check in the record 2026-11-28 21:41:56 +01:00
feder-cr 5298149cd0 e2e: the stock twin runs headed, in the mode of ours (a real window on the display of the job), not in Firefox's headless mode 2026-11-28 21:36:40 +01:00
feder-cr 9140845e4d e2e: the select, drag and IntersectionObserver/lazy-frame tests are stock twins (the same steps on Playwright's own Firefox first, ours second, the verdict is the same as stock), in the new row wrapper.e2e.stock_twin (stock_firefox) and out of the whole-suite rows; each record keeps the page's and the chrome's devicePixelRatio and the real screen scale 2026-11-28 21:35:33 +01:00
feder-cr cb67c18332 e2e: a popup's position is Firefox's own rule (retail round 5: 4, 4 at scale 1.0), no popup_position pref is set; the second popup's stagger waits for capture round 8 2026-11-28 21:35:33 +01:00
feder-cr 652c911514 persona_cover: popup_client_top is a pref of the dpr dimension, the ui_normal and ui_compact rows of DERIVED go (no core writes them), persona-seeds.json regenerated with the core of c58efd7 2026-11-28 21:28:31 +01:00
feder-cr 229cfb7da2 Merge remote-tracking branch 'origin/main' into e2e/oop-frame-71
# Conflicts:
#	ci/required-suites.json
2026-11-28 20:47:26 +01:00
feder-cr 3259840c7c e2e: the tooltip's vertical offset is computed by Firefox's own rule (kDefaultTooltipOffset scaled by the system cursor size on Windows), not typed as 21 2026-11-28 19:56:28 +01:00
feder-cr c39a976a44 e2e: a tooltip opens at the real pointer, in the top document and in a frame of another site, at the four scales (red without the tooltip map), in the rows of the maximized-window test 2026-11-28 19:54:44 +01:00
Federico Elia df35204915 Merge pull request #629 from oss-invisible/ci/windows-worker-dumps
ci: every Windows e2e job leaves a full dump of a crashing python.exe in its evidence
2026-11-28 19:06:47 +01:00
feder-cr de9c19b578 ci: every Windows e2e job leaves a full dump of a crashing python.exe in its evidence
A pytest-xdist worker (python.exe) dies on the Windows e2e jobs with "node down: Not properly terminated" (a native "Windows fatal exception: access violation",
jobs 138402013609 and 138966622085) and nothing names the faulting native module. Each of the six Windows jobs that run pytest now sets, before its tests,
HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\python.exe (DumpType 2 = full, DumpCount 3, DumpFolder RUNNER_TEMP/invpw-evidence/dumps/python,
WER made enabled, no dialog), so the dump travels in the evidence artifact the job already uploads (the Control+A job gets that upload). After the tests
scripts/ci_wer_dumps.py lists the dumps with their size and reads the minidump header (thread, exception code, faulting module+offset, failed access) into summary.txt.
Docs: https://learn.microsoft.com/windows/win32/wer/collecting-user-mode-dumps

Tests: the Windows jobs' rule test (red on the previous e2e.yml) and the reader on a synthetic minidump.
2026-11-28 18:39:32 +01:00
feder-cr 678978399c e2e: three new test files stored with LF, as the index of the repository has them (they were committed with CRLF) 2026-11-28 02:40:48 +01:00
feder-cr 310b88e81d e2e: the input test takes no tolerance: clientX/clientY of every click, hover, drag and wheel equal the requested whole CSS point exactly, and the message prints the requested point, the received one and the scale 2026-11-28 02:40:28 +01:00
feder-cr 6f84d62290 e2e: a page cannot reach the three chrome-only methods of the window-origin map (window, document, reachable objects, prototype chains, CanonicalBrowsingContext), in the rows of the maximized-window test 2026-11-28 02:40:28 +01:00
feder-cr eb2629fea1 e2e: the consumers of the window origin (early readings of a frame, popup moveBy/resizeBy/moveTo, drag into a frame, IntersectionObserver and lazy loading in a frame, input at four scales, select dropdown anchor), in the rows of the maximized-window test 2026-11-28 01:26:31 +01:00
Federico Elia 465386fd7d Merge pull request #625 from oss-invisible/tests/webgl-reference-on-our-gl
tests: the control launch of two WebGL e2e tests runs on the engine's own GL
2026-11-28 00:15:47 +01:00
feder-cr ce55e15e60 Merge remote-tracking branch 'origin/main' into tests/webgl-reference-on-our-gl
# Conflicts:
#	ci/required-suites.json
2026-11-27 23:45:45 +01:00
Federico Elia 21b5276c4d Merge pull request #624 from oss-invisible/tests/neutral-names-for-public-pages
tests: neutral names for the tests of public fingerprint and detector pages; one bundle and its two tests removed
2026-11-27 23:35:33 +01:00
feder-cr abfc2d2764 tests: the host-GL probe test writes down the page's WebGL at engine off and does not judge it
With the engine off the context comes from the host's Mesa, which a runner may not
serve (hunt run 45998187350: once in 3083 launches). The page still asks for WebGL,
which is what makes Firefox read GfxInfo; with the engine declared a missing context
is still red.
2026-11-27 23:35:16 +01:00
feder-cr 025ae12b72 tests: the control launch of two WebGL e2e tests runs on the engine's own GL
The control of the non-premultiplied WebGL canvas test and of the createPattern projection test had the engine off
(hw_seed 0), so WebGL ran on the host's Mesa: once in 3503 launches a runner gave no context. The control now keeps the
engine on, with the same declared GPU, and declares only the canvas noise off (zoom.stealth.canvas.substitute_pixels
false), as test_webgl_noise_active.py does. Both launches of both files, on Linux, check the maps of the engine's
processes with the rule of test_webgl_draws_on_the_engine_s_own_gl, now written once in engine_process_tree.py.
2026-11-27 23:17:13 +01:00
feder-cr 28841856d0 tests/vendor: the rules scanner's MIT notice is the copyright holder and year and the full permission text, verbatim from upstream; the contact address is left out (pm, 27/11) 2026-11-27 21:01:47 +01:00
feder-cr 9ba446ed3c e2e: the maximized window, its frames (also transformed) and its popups read as retail
The restored-window part of the retail window-geometry test is dropped
with the feature. What stays is read against retail Firefox 159.0 on
Windows at the four display scales: the maximized window and its probe
(round 4), fullscreen in and out from it, the same-origin and cross-site
frames and the popups (round 5).

New, from round 6 (GitHub run oss-invisible/core 46052782097,
RetailCaptures 4a37f5f, WINDOW_GEOMETRY_TRANSFORMED_FRAME.csv): a
cross-site frame under scale(1.5) and under rotate(10deg), one at a time,
read from inside after three real mouse moves to retail's CSS points. Its
mozInnerScreen equals retail's, and clientX/Y and screenX/Y equal retail's
at scale 1.0 and are within one pixel at the others.

A cross-site frame that reads the top's own mozInnerScreen now fails by
name: the out-of-process frame lost its own place in the top.

Registered in wrapper.e2e.suite.linux.3 and wrapper.e2e.suite.windows.4
with four tests each.
2026-11-27 20:56:16 +01:00
feder-cr 5e535d9faa tests/vendor: the headless detector bundle and its one test are removed (its required licence notice cannot ship without a studied system's name, and the local scanner is not changed); the rules scanner carries its upstream MIT notice verbatim in its header; min_tests of wrapper.e2e.suite.linux.1 (-2), wrapper.e2e.suite.windows.1 (-1), wrapper.e2e.suite.windows.4 (-1), wrapper.e2e.realness (-1) lowered by the tests removed (the headless detector test and the realness test that loaded its page) 2026-11-27 20:51:40 +01:00
feder-cr 0c43c7ec60 tests/vendor: the two upstream notices are left out until their place is decided; the README stays neutral 2026-11-27 20:51:28 +01:00
feder-cr 08f7fd91c7 tests: the licence notices of the two vendored bundles without a header are copied verbatim from the upstream LICENSE at the commit of the vendored version 2026-11-27 20:51:28 +01:00
feder-cr 90449bbdb2 tests: the README of the vendored bundles lists each with version, license, sha256 and where its licence notice lives; a test is red if a bundle changes without its row; unit counts +3 2026-11-27 20:51:28 +01:00
feder-cr dbdd7c7c6d tests: neutral names for the tests of public fingerprint and detector pages (file, functions, ids, references); behaviour and counts unchanged 2026-11-27 20:51:07 +01:00
Federico Elia 244fdcf0a8 Merge pull request #621 from oss-invisible/ci/retired-tests-by-nodeid
ci_verdict: retired single tests by nodeid, each declared once against the floor it lowers
2026-11-27 20:20:57 +01:00
feder-cr 53b5a1ef17 ci_verdict: a retired-test entry carries from_min_tests and allows its drop only while main's floor of the suite is still that value, so it is inert once the removal is on main; the five entries are written at 449, 333, 274 and 32 2026-11-27 13:42:20 +01:00
feder-cr eef12eb659 ci_verdict: ci/retired-tests.json declares single retired tests (nodeid, suite, count, reason, decided_by); a floor drops by exactly the declared count, any other lost test stays red; the entries of the two tests the rename removes 2026-11-27 13:42:20 +01:00
Federico Elia 54ce892a60 record 0.60.0 as published (#618) 2026-11-27 13:41:57 +01:00
Federico Elia f3f35ea0c3 Merge pull request #619 from oss-invisible/ci/install-job-deps-from-lock
user-install: the install-from-index harness comes from the hashed lock; every module the tests import is held to it
2026-11-27 13:06:40 +01:00
feder-cr 11c1b4573f CHANGELOG: 0.60.0 is dated 2026-11-27, the UTC day of its upload to the index (the line the ledger PR writes) 2026-11-27 08:09:12 +01:00
feder-cr 8a6ef83ef4 user-install: the harness comment names the helper and the rule test in words, not by path (the install-job gate reads every tests/ path of the file as a test the job runs) 2026-11-27 08:09:12 +01:00
feder-cr 4b97532753 user-install: the test harness of the install-from-index job comes from the wrapper's hashed lock, and a rule test holds every third-party module the tests import to that lock (psutil was missing, ledger PR #618) 2026-11-27 08:09:12 +01:00
Federico Elia 67648a9eb6 Merge pull request #617 from oss-invisible/tests/fission-frames-evidence
tests/fission frames: every test of the module keeps the module's evidence when it fails
2026-11-27 07:39:45 +01:00
feder-cr b4f7cde592 Merge remote-tracking branch 'origin/main' into tests/fission-frames-evidence 2026-11-27 07:07:10 +01:00
Federico Elia fb8a407084 Merge pull request #607 from oss-invisible/tests/webgl-engine-off-evidence
tests/canvas: an engine-off WebGL canvas that cannot be made says why, and the run keeps its gfx log
2026-11-27 00:27:59 +01:00
feder-cr 603ca155c9 tests/fission frames: every test of the module keeps the module's evidence when it fails (the wire, the engine trace, every frame's lifecycle)
Main run 45823271010 (linux part 1) saw the goto of /workers (A, its frame B, B's frame C: three processes) reach commit and domcontentloaded but not load in 30 s, with nothing in flight, in test_a_dedicated_worker_reports_the_identity_of_the_window_in_every_frame[blob]. The module arms FailureEvidence for all of its tests but only the one test that opened OnFailure saved it: that run kept nothing. Each test now runs in OnFailure with its page listened to (frameattached / framenavigated / framedetached, domcontentloaded, load). Diagnostic only: no wait or assertion changes; the 9 e2e nodes are the same.
2026-11-26 23:54:25 +01:00
feder-cr d12d722975 Merge remote-tracking branch 'origin/main' into tests/webgl-engine-off-evidence
# Conflicts:
#	ci/required-suites.json
2026-11-26 23:52:46 +01:00
Federico Elia c5709c6bd8 Merge pull request #616 from oss-invisible/release/0.60.0-firefox-70
release 0.60.0: pins invisible-core 70.83.0 on the engine firefox-70
2026-11-26 23:07:32 +01:00
feder-cr b39b7f65e1 release 0.60.0: the gate lock names core 70.83.0 (no locked distribution changes), the CHANGELOG heading is dated 2026-11-26 22:05:21 +01:00
feder-cr 1d21e84954 release 0.60.0: pins invisible-core 70.83.0 (engine firefox-70); persona seeds for that core 2026-11-26 21:55:59 +01:00
feder-cr 6e3e166bb7 CHANGELOG 0.60.0: the restored-window frame leaves (it ships with firefox-71) 2026-11-26 19:18:39 +01:00
feder-cr 91346ececc release 0.60.0: version and changelog (the unpublished 0.59.1 entry folds into 0.60.0; the core version and the engine tag are placeholders until they are published) 2026-11-26 19:18:32 +01:00
Federico Elia cccef5dadb Merge pull request #547 from oss-invisible/ci/windows-temp-on-d
ci: on Windows the browser's profiles and temp files go on D:, not on the saturated C:
2026-11-26 13:49:28 +01:00
feder-cr bb610da22e ci: the four Windows e2e jobs added since (network, host, page oracle, final seeds) also keep TEMP and TMP on D:
tests/test_ci_windows_temp_is_on_d.py was red on them on today's main (e2e-network-windows, e2e-host-windows,
e2e-page-windows, e2e-page-final-windows had TEMP on C:); green with the job env every other Windows job has.
2026-11-26 13:14:38 +01:00
feder-cr c3c1fcee2a ci: the unit rows count the test of the Windows temp folder (3949 -> 3964, 3953 -> 3968) 2026-11-26 13:14:38 +01:00
feder-cr c1b9c5392d Windows jobs keep the browser profiles on D:, not on C:
The profile of every Firefox the tests launch is made in TEMP. On the GitHub
Windows runners TEMP is on C:, and four browsers at once saturate that disk
(queue up to 144, latencies up to 4 s): the parent's main thread stays still
40-60 s and the e2e fail at random. Hunt of 20/11: profiles on C: took 5 of
4 shards, TEMP and TMP on D:\a\_temp took none.

Every Windows job that launches a browser (e2e, e2e-hunt, fakeweb, tests,
firefox-launch-matrix, real-sites, user-install) sets TEMP and TMP to
D:\a\_temp in its job env (matrix jobs: D: on Windows, /tmp on Linux).
tests/test_ci_windows_temp_is_on_d.py fails on the workflows of main.
2026-11-26 13:14:28 +01:00
Federico Elia cb31015dd5 Merge pull request #575 from oss-invisible/fix/screenshot-refuses-what-would-touch-the-page
Screenshot refuses by name the parameters Playwright honours by modifying the page
2026-11-26 13:14:09 +01:00
feder-cr 6834f16734 CHANGELOG 0.59.1: the screenshot refusal joins the entry #606 opened (the version is already 0.59.1 on main) 2026-11-26 12:45:10 +01:00
feder-cr d348c347f6 tests: omitBackground with png is compared with stock's exact first line, the API name included
The e2e asserted `^Not implemented`, and the client prefixes every server error with the API name, so the line is
`Page.screenshot: Not implemented` (and `Locator.screenshot`, `ElementHandle.screenshot`): red on every system in run 45081196889.
Stock Playwright 1.61.1 answers the same line: `FFPage.setBackgroundColor` throws `new Error("Not implemented")` and the Python
client writes `f"{apiName}: {error}"`. The test now compares the first line with that exact text for each way of asking.
2026-11-26 12:45:10 +01:00
feder-cr fe26fca02c fix: a refused screenshot of an element or a locator is refused before the page is scrolled or measured
The refusals of mask, style, animations="disabled", caret="initial" and omitBackground with png were inside PageDispatcher.op_screenshot, which the element's
screenshot reaches only after scrolling the element into view, taking its box and reading the document's scroll: a call that was going to be refused had moved the
page. They are now one function, _refuse_unserved_screenshot_parameters, called first by the page's screenshot and first by the element's (a locator's is the
element's). It reads the parameters and nothing else, so the element's second pass through the page's is the same answer. The required-suites counts follow the
13 unit and 10 e2e tests added.
2026-11-26 12:45:10 +01:00
feder-cr 2206289d7e tests: a refused screenshot of an element or a locator neither scrolls nor measures the page (red: the refusal came after the scroll)
ElementHandleDispatcher.op_screenshot scrolled the element into view, took its box and read the document's scroll before handing the call to the page's
screenshot, where the refusal of mask, style, animations="disabled", caret="initial" and omitBackground with png is. A refused call therefore moved the page. Unit:
for each refused parameter the element's call sends nothing to the engine, not a scroll, not a measure, not a picture (the page's call is held to the same, and the
call that is taken still scrolls and measures first). E2E: on a page scrolled to a known position with the element below the fold, a refused locator.screenshot and
element.screenshot leave window.scrollY as it was; the same call without the parameter does scroll.
2026-11-26 12:45:09 +01:00
feder-cr 3b362bab4b fix: a screenshot refuses what Playwright does by modifying the page: mask, style, animations="disabled", caret="initial"
PageDispatcher.op_screenshot never read these parameters, so the call succeeded with a picture that ignored them. It now refuses each by name with what to do
instead, and answers Firefox's own `Not implemented` for omitBackground with png (jpeg is a no-op, as in stock). caret="hide" and an absent caret are served: the
engine never draws the caret, which is what stock's default produces. The element's and a locator's screenshot reach the same call. The sentences are declared by
(operation, parameter) in perimeter.REFUSED_PARAMETERS and raised through _refuse_parameter, which the declared-refusals test holds to that table both ways.
2026-11-26 12:45:09 +01:00
feder-cr 020fe74328 tests: a screenshot refuses what would touch the page (red: mask, style, animations, caret="initial" and omitBackground were silently ignored)
Stock Playwright takes mask, style and animations="disabled" by modifying the page and draws the caret only for "initial"; its Firefox throws "Not implemented" for
omitBackground with png. PageDispatcher.op_screenshot never read any of them, so the call succeeded with a picture that ignored the parameter. Unit: the page, full
page, clip, element and locator calls refuse each parameter by name (and what is harmless passes), omitBackground png answers "Not implemented"; the refusals are
declared by (operation, parameter) in perimeter.REFUSED_PARAMETERS, both directions. E2E: the same through the client on a page, a locator and an element handle, the
page left untouched, and a measurement that no caret is in the picture with caret absent and "hide". Registered in wrapper.unit.all.* and wrapper.e2e.suite.{linux,windows}.1.
2026-11-26 12:45:09 +01:00
Federico Elia 250ac6919d Merge pull request #615 from oss-invisible/tests/the-tree-guard-names-the-launch-by-its-line-not-by-the-clock
tests: the tree guard's launch time is judged from the launch line, not by a window of seconds
2026-11-26 12:44:52 +01:00
feder-cr 444cf1128d tests: a process that exits between being listed and being read is gone for the tree guard's test, not an error
Wrapper #603's round (pytest ubuntu py3.13, job 139861116959): the same test failed with `psutil.NoSuchProcess: process PID
not found` from its helper `_alive`, which asked `pid_exists` and then `Process(pid).status()`: the grandchild the guard had
just killed was there for the first question and gone for the second. The guard itself already treats such a process as
gone (`kill_tree` suppresses `NoSuchProcess` and `psutil.Error`); the helper now does too.

Red on old: `test_a_process_that_exits_between_being_listed_and_being_read_is_gone` makes the race on purpose (a pid that
exists when listed and raises `NoSuchProcess` when read): the old `_alive` raised it (1 failed), the new one answers gone; a
process that is really there is still alive (the control). wrapper.unit.all rows +1.
2026-11-26 12:10:36 +01:00
feder-cr 2703848a44 tests: the tree guard's launch time is judged from the launch line, not by a window of seconds
`test_the_tree_guard_returns_at_the_timeout_kills_the_grandchild_and_names_the_launch_that_was_alive` asserted
`2 <= alive_s < 8`. `alive_s` is the time from the launch line the child writes to the moment the run is read; a child
that a loaded machine starts late writes that line late, so it was alive for less than 2 s when the tree was killed
and the check failed although the guard had done everything right (this repo's pre-push under the load of the whole
suite, twice in a row: `2 <= 1.75824`). A test cannot fail for the speed of the machine.

What holds whatever the load is asserted instead: the line cannot have been written before the run began nor after it
was read, and its `at` is whole seconds (`launch_line`, timespec="seconds"), so `0 <= alive_s <= spent + 1`; and the
message gives that number. The kill and the naming of the launch were already asserted and stay.

Red on the old check, on purpose: `test_a_launch_that_began_late_is_named_with_the_time_since_its_own_line` is a child
slowed until its launch line comes one second before the kill (`last_launch` read at a fixed `now`): the guard names it
alive for 1 s, the old window rejects it (asserted), the new check accepts it. A control shows the check refuses a time
the line cannot give (a line 30 s before a 3 s run, a line after the read). wrapper.unit.all rows +2.
2026-11-26 11:48:17 +01:00
Federico Elia 7369fffa53 Merge pull request #612 from oss-invisible/fix/core-328-frame-fields
persona cover and launcher test read the window frame of core #328 (ui_normal/ui_compact derived, the bar through declared_maximized_ui)
2026-11-26 07:48:56 +01:00
feder-cr e02024933a tests: the fake clock of the index wait stays out of the real subprocess.run (Popen.wait polls through time.sleep: a child not yet reaped moved the fake time past the deadline after one all-yes round); two tests, wrapper.unit.all counts 3855 linux, 3859 windows 2026-11-26 06:58:26 +01:00
feder-cr 5140ecd424 required suites: wrapper.unit.all counts the four new persona-cover tests (linux 3853, windows 3857, as collected by the round of #612) 2026-11-26 06:58:16 +01:00
feder-cr c39077a050 tests: persona cover derives the window-bar prefs from their dimension, so the stored seeds hold on the pinned core and on the core with the window-frame rule
The core now declares the maximized window's bar from the panel as well as the
scale (declared_maximized_ui) and adds ui_normal/ui_compact. persona_cover has a
DERIVED category: a pref that is a function of a dimension, checked to take one
value per value of it and kept out of the stored features. maximized_ui is of
screen_panel, ui_normal and ui_compact are of dpr. test_launcher_config reads
the bar through the core when it has declared_maximized_ui.
2026-11-26 06:57:59 +01:00
Federico Elia d1cf338a2f Merge pull request #613 from oss-invisible/tests/ab-network-dealloc-early-evidence
ab network: a TURN deallocation before the page began closing is evidence, not a problem
2026-11-26 06:56:56 +01:00
feder-cr 411c2ad6ae ab network: a TURN deallocation before the page began closing is evidence, not a problem: the page's reduced-precision clock cannot order it (published engine against itself on Windows, wrapper #612's round) 2026-11-26 06:24:49 +01:00
Federico Elia 8ca47cba13 Merge pull request #609 from oss-invisible/tests/the-os-cursor-is-parked-outside-the-window
tests: on Windows the OS cursor is parked outside the browser window before every e2e, and the gestures that record pointer events require it
2026-11-26 03:00:00 +01:00
feder-cr e2e1c49db6 ci: every Windows e2e job sets the runner's screen to 1920x1080 before its e2e, so the window leaves a strip to park the cursor in
Run 45719708645 of this pull request: the runner's screen is 1024x768 and the browser window of a 1920x1080 identity is 1936x1048, so
it covered the whole screen and the cursor parked at (1023,767), inside it; the gestures' precondition said so. Parking the cursor over
the browser's own chrome does not help: hunt 45724307513 showed native moves over the tab strip reach the page too (clientY < 0,
buttons=0) once Juggler input is in it. Hunt 45730213378: 1920x1080 is the largest mode the runner's video device accepts (Microsoft
Hyper-V Video; 2560x1440 is refused) on windows-2022 and windows-latest.

The six Windows jobs of e2e.yml set it with a declared step (Set-DisplayResolution, read back, red if the screen is smaller), before
their e2e. The engine's gate runs the same step, byte for byte, in its Windows wrapper.e2e rows. Two unit tests: the runner's
1920x1080 arrangement parks the cursor in the strip below the window, and every Windows job of e2e.yml declares the screen before it
starts pytest (red on main's e2e.yml). wrapper.unit.all rows +2.
2026-11-26 02:26:32 +01:00
feder-cr 041010070c tests: every e2e test on Windows starts with the OS cursor parked outside the browser window
An autouse fixture per e2e test, and one per module that has an e2e test (a module-scoped browser opens its window before the first test of the module),
calls tests/_os_cursor.py park: the cursor goes to the bottom-right corner of the virtual screen, where no window of the engine is, and is read back. The
window then opens away from the cursor and no native mouse move reaches the page in the middle of a recorded gesture; require_outside at the start of the
drag test and the humanise move count (previous commit) is green. Windows only: the Linux e2e run under xvfb-run, whose pointer is virtual.
2026-11-26 02:26:32 +01:00
feder-cr 9ea819445f tests: a gesture the page records starts with the OS cursor outside the browser window (red: on a Windows runner nothing parks it and it sits inside)
A headed window that appears under the real cursor gets a native WM_MOUSEMOVE for it; the first native move of a process passes Gecko's filter, so the
page saw `mousemove 512,299 buttons=0` after the press in the middle of test_a_real_page_sees_a_drag_that_travelled. The runner's cursor is at (512, 384),
inside the window (-8, -8) to (1928, 1040) of a 1920x1080 screen.

tests/_os_cursor.py: park_outside (a pure choice of a point of the virtual screen beyond every window rectangle plus a margin, a clear error when none
exists), cursor_is_outside, park (SetCursorPos read back with GetCursorPos) and require_outside, over user32 on Windows and no-ops elsewhere (the Linux e2e
run under xvfb-run, whose pointer is virtual). The drag test and the humanise move count (which asserts `off <= 2` page moves) call require_outside at
the start of their gesture. The unit rows of required-suites count the new file (+20 on each OS).
2026-11-26 02:26:31 +01:00
Federico Elia 2ec1a9026b Merge pull request #611 from oss-invisible/tests/ab-network-webrtc-evidence
ab network: the TURN path really works and the A/A proves it; the udp leaf counts STUN transactions
2026-11-26 02:25:59 +01:00
feder-cr f0d25a86ff ab network: the gateway marks the TURN deallocation from its payload (one shared reading), the count drops it by that mark, and one before the page began closing is a problem 2026-11-26 01:54:35 +01:00
feder-cr ca0c6e33f8 ab network: the TURN deallocation (a Refresh with lifetime 0, one best-effort send at teardown) is evidence, not a compared leaf; two of them, or one without an allocation, is a problem 2026-11-26 01:50:11 +01:00
feder-cr 46cf6a579a ab network: the A/A proves the TURN path it compares: a walk with no relay candidate, an error for the lab TURN, or a request the lab TURN refused is a problem on either side 2026-11-26 01:09:41 +01:00
feder-cr 0a031d2688 ab network: the probe uses the lab TURN's credential so the relay is really made; the fake TURN refuses a request whose integrity is wrong; the udp leaf counts STUN transactions, and a transaction over the engine's 7 transmits is a problem 2026-11-26 01:07:54 +01:00
feder-cr a9e56c0b21 ab network: the hunt also keeps the TURN server's answers, the relay's return datagrams and nICEr's log 2026-11-26 01:07:53 +01:00
feder-cr 04b7a79b66 ab network: the webrtc walk keeps, as evidence never compared, each datagram's time and STUN transaction and the page's own ICE times; e2e-hunt can repeat that walk alone 2026-11-26 01:07:53 +01:00
Federico Elia 2c5cd5ea79 Merge pull request #610 from oss-invisible/tests/worker-cache-back-evidence
tests/worker-cache: a red go_back keeps the Juggler record, the engine's session-history log and what the page says
2026-11-26 00:53:52 +01:00
feder-cr 877027f9f4 tests/worker-cache: the helpers of the evidence come after the test, so the guard reads wait_cacheable before the first go_back 2026-11-26 00:28:44 +01:00
feder-cr 0e48424da8 tests/worker-cache: a red go_back keeps the Juggler record, the engine's session-history log and what the page says
Candidate 45691494388 (job 139520127265) saw go_back end with "no new navigation on frame mainframe-11 in 30s" for top/other-site/goto and kept nothing. A hunt of 2960 iterations on that engine did not reproduce it (run 45711081489). The test now arms FailureEvidence with SHIPBFCache, nsSHistory, SessionHistory, BCWebProgress, DocumentChannel and BrowsingContext, and records what the page says when go_back raises and 2 s later. Diagnostic only: no assertion changes.
2026-11-26 00:19:44 +01:00
Federico Elia 43e1b355a3 Merge pull request #604 from oss-invisible/tests/unit-tests-never-reach-the-network
tests: a test that is not e2e never leaves the machine (socket and asyncio doors guarded, four tests declare the lab's exit)
2026-11-26 00:01:57 +01:00
feder-cr ebfd0fa573 tests: the ten unit tests that compose a launch declare the engine instead of asking GitHub for it
Run 45708815163 (this pull request, every pytest leg): the guard refused `api.github.com` in ten unit tests. Without
`binary_path=` a launch resolves the engine through `ensure_binary` (`_engine.resolve_executable`): with an engine in the
machine's cache it answers at once, with none it asks GitHub's release index and downloads the archive. So these
tests passed on any machine that had run `fetch` and went to the internet on a fresh runner (reproduced here with
INVISIBLE_PLAYWRIGHT_CACHE_DIR on an empty folder: 10 failed, 10 errors; with the fixture: all pass).

A fixture, `declared_engine` (tests/conftest.py), declares an empty executable in the test's folder as the answer of
`ensure_binary`; the file is never run. The ten tests take it:
  test_launcher_helpers.py: test_build_env_carries_the_declared_network, test_build_env_caller_env_override_wins,
    test_build_env_never_injects_font_env, test_build_env_no_font_keys_when_absent
  test_launcher_config.py: test_enter_with_profile_dir_calls_launch_persistent_context,
    test_enter_without_profile_dir_calls_launch_not_persistent, test_persistent_context_user_data_dir_is_created_if_missing,
    test_teardown_closes_persistent_context
  test_async_api.py: test_the_async_api_stamps_the_session_token_into_the_browser_env
  test_virtual_display_start_off_the_loop.py: test_a_second_browser_is_served_while_the_first_starts_its_display
The whole non-e2e selection with an empty engine cache and the guard: 3763 passed, 8 skipped (Windows).
2026-11-25 23:30:27 +01:00
feder-cr b699439355 tests: the version gate is the one declared third party of the guard (pypi.org, for its own file only)
Run 45647282454, job version: tests/test_version_is_not_taken.py asks the index whether the proposed version is
already published, which only the index can answer; the guard refused its lookup of pypi.org and the gate went red.
It is skipped unless IPW_CHECK_VERSION is set, which only the version job of tests.yml does.

tests/_no_network.py: DECLARED_THIRD_PARTIES names that file and that host alone. Its lookup of pypi.org passes and
the addresses it answered may be connected to; any other host, and pypi.org from any other file, stay refused.
Three cases (faked under the guard, nothing leaves the machine): the gate may ask the index and only the index; no
other file may ask it; the declared table is that one entry, so a new one changes a test in the same diff.
wrapper.unit.all rows +3 (3688 linux, 3692 windows).
2026-11-25 22:45:35 +01:00
feder-cr 7031c911c7 tests: the four tests that compose prefs through the core declare the exit of the lab
A new fixture, lab_exit (tests/conftest.py), declares the exit and the GeoIP database of the lab for one test that
is not e2e, as the e2e session has them (tests/_lab_egress.py). With no proxy the core asks the network where this
machine leaves from on every composition, even with a declared zone (zone, language and position come from the
exit): that is the product's rule, so the tests declare the answer instead of asking the internet.
2026-11-25 22:45:33 +01:00
feder-cr 464e0b132b tests: a test that is not e2e never leaves the machine (red: four tests asked the internet where this machine leaves from)
pyproject.toml says unit and integration are "no network", and nothing enforced it: the pre-push of the wrapper
failed on tests/unit/test_config_public.py where the network refused api.ipify.org and icanhazip.com.

tests/_no_network.py patches the four doors every client in the process goes through (socket.socket.connect,
connect_ex, sendto and socket.getaddrinfo) for every test that is not e2e (an autouse fixture of tests/conftest.py):
loopback, the unspecified address, localhost names, the documentation ranges and the address this host sends from
pass; anything else is refused (ConnectionRefusedError, what an offline machine shows) and recorded, and the record
fails the test at its teardown, with WHERE (the test), WHAT (door and destination), FIX and RULE, even when the code
under test swallowed the refusal.

Red on this commit, all through the core's one discovery of the exit (prepare_session_geo, no proxy):
  tests/unit/test_config_public.py::test_public_import_matches_direct_import
  tests/test_launcher_helpers.py::test_default_context_screen_matches_profile
  tests/test_launcher_helpers.py::test_default_context_color_scheme_follows_dark_theme
  tests/test_prefs_composition_arm.py::test_the_wrapper_composes_what_the_public_api_composes (green before: the
  core swallows the failed discovery when the zone is given, only the record catches it)

tests/test_a_test_that_is_not_e2e_never_leaves_the_machine.py (35 on Linux, 38 on Windows: the asyncio cases run on the selector loop, and on Windows on the Proactor loop too, which connects with ConnectEx and sends with WSASendTo, never through socket.socket) tests the guard; wrapper.unit.all rows +35 / +38.
2026-11-25 22:45:33 +01:00
Federico Elia a480b58677 Merge pull request #602 from oss-invisible/tests/h3-attempt-read-at-the-port
tests: h3 that was never tried is read as no datagram at the h3 port, not as a load time
2026-11-25 22:01:33 +01:00
feder-cr 995e2da01e tests: five h2 visits with no datagram at the h3 port are clean on a loaded runner, and a datagram there is an attempt whatever the load times
The verdict of an h2-only road is the judge of the protocols plus the attempt read at the port of the server; the time a visit took is no input of it.
One visit loaded in 2500 ms against 719 ms (a loaded runner) with nothing at the h3 port is clean; every visit fast with one datagram at the port is an
attempt. Four roads each; the unit rows of required-suites count the eight.
2026-11-25 21:00:48 +01:00
feder-cr 13286044c7 tests: the non-coherent SOCKS5 roads also read the attempt at h3 at the gateway (UDP ASSOCIATE asked, datagram into the relay)
The server's UDP port does not see an engine that tries h3 through the relay of a gateway: it asks for a UDP ASSOCIATE or sends into the relay.
relay_activity() is taken before the first visit (after the core's own measurement) and after the last; h3_attempts() reports what the engine
asked of the gateway in between. A unit test covers a granted and a refused ASSOCIATE and a datagram into the relay; the unit rows of
required-suites count it (+1 again).
2026-11-25 21:00:47 +01:00
feder-cr 4f4b8ab7a3 tests: behind an HTTP proxy (and where UDP is dropped) h3 is never tried, read as a datagram at the h3 port, not as a load time
The e2e judged the fallback by an absolute margin on page.goto (visit 2 loaded in 2500 ms against 719 ms), which is red on a loaded runner with
five visits that all read h2. The attempt is now read where it is born: H3Server records every datagram that reaches its UDP port
(udp_datagrams), a QUIC Initial included whether or not a handshake follows, and the h2 roads assert there is none. judge_visits no longer takes
load times, LOAD_MARGIN_MS and its debt entry in the clock exceptions are gone. A unit test proves the server sees an attempt that never
completes; the unit rows of required-suites count it (+1).
2026-11-25 21:00:47 +01:00
Federico Elia 46054486c9 Merge pull request #606 from oss-invisible/fix/element-handle-actions-walk-like-a-hand
ElementHandle pointer actions walk onto the element the way selector actions do (one click path, one fingerprint)
2026-11-25 21:00:14 +01:00
feder-cr 3e43f597e4 tests: the handle e2e prints what the page saw of the pointer and the core's turns when its opening sequence is wrong
Evidence only; the verdict is unchanged (`ordine[:2] == ['hover', 'click']`). Candidate 45621332479 recorded
['hover', 'hover', 'click'] once, and nothing told an exit and re-entry of the pointer from a spurious second
mouseover. The page now also keeps every mouseover, mouseout and click of the button with its relatedTarget, its
point and the button's box at that instant, and the first moves of the document; the test wraps the core's
actionability loop (Actions._retry, _center_point, hit_target: the originals are called with the same arguments) and
records the turns of each action, their hit-target verdicts and how they ended. All three go into the failure message.
2026-11-25 19:56:37 +01:00
feder-cr 8bcc2a9ca1 ElementHandle pointer actions walk onto the element the way selector actions do, one hand for every door
click, dblclick, hover, tap, check and uncheck (and so set_checked) of an ElementHandle called the core's actions directly: with no client cursor the approach is one mousemove onto the exact centre of the quad and a press there, while the selector actions go through Frame._by_hand / Pointer.act (a drawn path, a landing point of the session's own). The handle now goes through the same _by_hand with element=<its object id>: Pointer.act aims at that node (no selector looked up, the handle not disposed), and trial/force/strict/position/modifiers are read as before. The keyboard and text actions (fill, type, press, focus, selectText, setInputFiles) already end in the same core action as their selector twins and are unchanged. The comment that said a handle click was the humanised pointer is now true. Version 0.59.1.
2026-11-25 19:56:37 +01:00
feder-cr 292d86a15a tests: a handle's pointer action walks like a selector's (red: a handle click is one jump to the exact centre)
ElementHandle.click/dblclick/hover/tap/check/uncheck go straight to the core's actions, which with engine_approach off send one mousemove onto the exact quad centre and press there; the selector actions go through the server's hand. A unit test over the real core Actions and the real Pointer (only the connection and the injected script stubbed) and an e2e that asks the page. Both rows of wrapper.unit.all and one row per system of the e2e partition name the new files.
2026-11-25 19:56:37 +01:00
Federico Elia 2f5216b4c0 Merge pull request #605 from oss-invisible/fakeweb/stock-unsettled
fake web P2: a stock round that lost the end of a fetch the page aborted is stock unsettled, not a broken control
2026-11-25 19:56:04 +01:00
feder-cr c2c3d3c289 tests: the engine-off WebGL canvas test says why it got no context
The probe listens for webglcontextcreationerror and returns what it heard instead of null; after a first null the test waits 2 s and records a second attempt (statusMessages, renderer). The verdict stays the first attempt's. The test runs inside FailureEvidence with MOZ_LOG gfx2d.
2026-11-25 19:05:33 +01:00
feder-cr 4d0cbc8d08 fake web P2: a stock round that lost the end of a fetch the page aborted is stock unsettled, not a broken control; ours is judged against the declared outcome there 2026-11-25 18:16:44 +01:00
Federico Elia 7c4a9c0702 Merge pull request #599 from oss-invisible/tests/occlusion-cover-without-focus
tests/occlusion: on Linux the cover is a window of the test's own, and neither the pointer nor the focus may move
2026-11-25 18:15:17 +01:00
feder-cr 8fd5d8ae7d Merge remote-tracking branch 'origin/main' into tests/occlusion-cover-without-focus
# Conflicts:
#	ci/required-suites.json
2026-11-25 15:28:21 +01:00
feder-cr 2706c29676 tests/occlusion: the pointer, not the focus, is what the cover must not move
Run 45620136865 refuted the focus reading: with an X cover over the pointer 458 of 463 runs were red, FocusOut 0 of 40 on the old arrangement. With no window manager the focus is PointerRoot, the pointer sits inside the covered window, and a window mapped over it makes the pointer leave the toplevel; GDK turns that crossing into a GTK focus-out that redraws the window after FullyObscured.

- the display: the test warps the pointer to the bottom-right pixel of the root (from its read-back geometry) before any session starts.
- cover_rectangle keeps the pointer outside the cover (the margin shrinks on that side) and cover_window fails with "the pointer is inside the covered window, no free point on the screen".
- watch also selects Enter/LeaveWindowMask; crossings and focus events are kept with time, mode and detail; the pointer is read back once after the cover is up.
- precondition (both halves, before the page is judged): no crossing and no focus event on the covered toplevel, pointer outside both rectangles; message starts "arrangement: the covering moved the pointer or the focus".
- unit cases for all of it; min_tests of wrapper.unit.all.* raised by 11.
2026-11-25 15:27:21 +01:00
Federico Elia 1e8d47cb6e Merge pull request #598 from oss-invisible/ci/pin-actions-by-sha
ci: every action and reusable workflow pinned to a commit SHA, and a test that refuses an unpinned one
2026-11-25 14:37:04 +01:00
feder-cr 2273bb1f77 CI: pin every action and reusable workflow by commit SHA, with a rule test
Every uses: in .github/workflows is a local path or owner/repo@<40 hex> with the
version in a trailing comment. SHAs resolved from the official tags through the
API; the cross-repository noreply-identity reusable is pinned to the last core
commit that changed that file. tests/test_every_action_is_pinned_by_commit_sha.py
refuses any other form (FAIL file / job / step) and is in the wrapper.unit.all rows
(min_tests 3650 linux, 3651 windows).
2026-11-25 13:56:10 +01:00
feder-cr 063a507a9c tests/occlusion: the cover on Linux is a window of the test's own and the focus must not move
The covering window was the second Firefox session's. When it mapped it took the X focus; the covered toplevel got FocusOut and GTK draws a window that loses the focus (nsWindow::OnExposeEvent -> NotifyOcclusionState(VISIBLE)). When X delivered Partially, FocusOut and Fully in one batch, that draw ran after the Fully and the page never recorded hidden (hunt run 45603211231, 58 reds of 1294).

- _x_visibility: override-redirect InputOutput cover (cover_window, destroy_window), FocusChangeMask with VisibilityChangeMask on the covered toplevel, FocusIn/FocusOut kept with their time, focus_moved for the precondition.
- test_window_occlusion_e2e: on Linux no second session; both halves assert that no FocusOut reached the covered toplevel before the page is judged ("arrangement: the covering moved the focus"). Windows unchanged.
- _evidence_on_failure: MOZ_LOG_FILE carries %PID, one log file per process.
- unit cases for all of it; min_tests of wrapper.unit.all.* raised by 13.
2026-11-25 13:49:56 +01:00
Federico Elia 92adffd3ee ci/py-lock/gate: the pip lock of the engine series' gate, with hashes, read by its wheelhouse at wrapper_ref (#596)
* ci: the lock of the gate environment (ci/py-lock/gate.txt), resolved once with hashes, and the test that it follows its sources (ci-03)

The engine series' gate installs the wrapper's environment offline from a wheelhouse made of a lock that lives here. gate.in is written by
scripts/ci_py_lock.py from pyproject.toml (dependencies without invisible_core, and the dev extra), the dependencies of the pinned core, the playwright
pin and cryptography 44.0.3; gate.txt is its uv pip compile --universal --generate-hashes --no-build result. The new test reads both offline and is red on a
missing dependency, a range, an entry with no hash, a pin that moved without the lock. Registered in both wrapper.unit.all rows (min_tests recounted).

* ci: the archives of Playwright's Firefox are pinned by sha256 in ci/py-lock/playwright-browsers.json, with its generator and a test (ci-03)

The gate of the engine series installs Playwright's own Firefox for the stock rows. Its archives (Firefox and FFmpeg on both platforms, winldd on Windows) are
now pinned here, at the wrapper_ref the gate selects, for the Playwright of scripts/playwright_pin.txt.

scripts/ci_playwright_browsers.py writes the file: it asks the pinned Playwright for the URLs with `install --dry-run` on each platform, downloads each archive
once and hashes it. The test reads the file offline and is red on another version, a missing platform or archive, a bad hash, an absolute URL or a file that is
not the generator's bytes. It runs in wrapper.unit.all on both systems; min_tests 3624 -> 3642 (linux) and 3625 -> 3643 (windows), by collection.
2026-11-25 10:31:49 +01:00
Federico Elia fc8e7da94a ci: the rows of the registry carry the details of each leg (runner image, timeout, cores, ...) (#595)
The gate of the engine series will derive its matrix from ci/required-suites.json, so every per-leg
detail must be a field of the row. Optional fields, absent = the plain leg: runner_image, timeout_minutes,
needs_userns, core_dumps, stock_firefox, location_service, run, extra_steps (closed set), moz_log,
juggler_trace, artifact. Set on the rows that need them today; no row, os, test or minimum changes.

ci_verdict.py validates each known field (type and closed values, named); unknown names stay ignored.
A new test pins the validation and the table of the fields on the rows. wrapper.unit.all lists and
minimums follow the new test file (3610 / 3611, counted by collection on Python 3.11).
2026-11-25 02:55:31 +01:00
Federico Elia cad287d504 tests: date:date-time() called from an imported stylesheet is in the declared zone (#594)
An e2e test for the road a site uses: a main stylesheet that xsl:imports a
second one, both loaded by address, the imported one calling EXSLT's
date:date-time(). A context with timezone_id=Pacific/Kiritimati reads +14:00;
a launch with an empty declaration reads what getTimezoneOffset() says, and
that is not +14:00.

The file is added to wrapper.e2e.suite.linux.3 and wrapper.e2e.suite.windows.4
and their minimums go up by one.
2026-11-24 23:42:52 +01:00
Federico Elia 73a72cc540 tests.yml: the unit job judges the exact counts of wrapper.unit.all on Python 3.11, and min_tests follows the collection (#593)
PR #590 added a test to tests/test_ab_host.py without raising min_tests of
wrapper.unit.all.<os>; the PR checks (pytest tests/, floor 380) were green and
the engine series' gate went red ("the suite is exact").

The unit job now runs, on the Python 3.11 legs of both systems, the selection of
the row (ci_verdict.py args --with-marker) with a junit, and judges it with
ci_verdict.py judge from main against ci/required-suites.json, the list of main
as --main-required. The files outside the row run in a second, small pytest
(--ignore of every file of the row): no test runs twice. The plain run and its
floor stay for the other legs.

min_tests 3575 (linux) and 3576 (windows), counted by collection, including the
new test that holds the workflow to this.
2026-11-24 18:41:07 +01:00
Federico Elia a2dc1b6c2f record 0.59.0 as published (#591) 2026-11-24 12:09:59 +01:00
Federico Elia 9a6c12f0cb ab host: the presence of the pingsender and of what it spawns is listed, never red (#590)
Run 45364818483 (e2e on main 5a68489d, host windows): the A/A of the 68 broke on proc.socket<-pingsender, in no launch of one run and in every launch of the other. Whether a launch starts Mozilla's pingsender is canUpload()'s, not the engine's to hold, and with a few launches per side the rule of every kind turns that into a difference of the engine with itself. The kinds backgroundtask/pingsender and <kind><-pingsender are listed (not-judged), never red; their paths, their destinations and the separate pingsender[.exe] stay judged, and every other kind keeps the rule. A test with the shape of that run is red on the old oracle.
2026-11-24 11:14:44 +01:00
Federico Elia 5a68489dc3 Merge pull request #572 from oss-invisible/integ/candidate-69
Integration for the next candidate: #555, #567, #566 and #568 on main 3527f573
2026-11-24 10:23:56 +01:00
feder-cr 5076cec4c2 release 0.59.0: pins invisible-core 69.82.0 (engine firefox-69)
ci/persona-seeds.json names the core it was computed with: 69.82.0, same content.
2026-11-24 09:41:55 +01:00
Federico Elia 3722690103 Merge pull request #589 from oss-invisible/tests/ab-host-exit-ignores-reused-pids
ab-host: the wait for the exit ignores pids that Windows handed to another process
2026-11-24 07:00:18 +01:00
feder-cr 1156f42860 ab host: the run of the reused pid is 45328762166 2026-11-24 06:52:22 +01:00
feder-cr 69afb93aa2 ab-host: a pid of the tree is alive only while it is still that process
Windows hands the pid of an ended process to the next one it makes: pid 7352
of the tree ended at 05:05:33 and was TiWorker.exe at 05:05:38, so the wait
for the exit saw the tree alive for the whole 120 s (A/A seed 4 side A).
A pid of the tree has ended when the audit has its 4689 after its 4688, or,
with no 4689, when the process that has the pid was created after the birth
the audit gives. EXIT_LIMIT_S is unchanged.
2026-11-24 06:43:23 +01:00
Federico Elia 4eea99197d Merge pull request #588 from oss-invisible/ci/unit-min-tests-measured
ci: unit minimums are the counts the gate measured
2026-11-24 06:35:58 +01:00
feder-cr 539f5203ee ci: the unit minimums are the counts the gate measured (3563 Linux, 3564 Windows)
The two linux-deps PRs raised wrapper.unit.all by the size of each version of
tests/test_ci_linux_legs_read_no_mirror.py while the second one replaced the
first, so the minimum counted 78 new tests where 66 exist (plus 5 of the
occlusion test). Republish 45328762166 collected 3563 on Linux and 3564 on
Windows, against minimums of 3575 and 3576.
2026-11-24 06:20:23 +01:00
Federico Elia ec4db32b62 Merge pull request #587 from oss-invisible/tests/occlusion-control-sees-hidden
tests: the occlusion control judges that hidden was recorded after FullyObscured
2026-11-24 05:46:50 +01:00
feder-cr 7ce4b16a3a tests(occlusion): the engine's window log at Widget:4, the level of nsWindow's LOG 2026-11-24 05:37:47 +01:00
feder-cr 57a2e612b3 tests: the occlusion control judges that hidden was recorded after FullyObscured, not the final state
nsWindow::OnExposeEvent calls NotifyOcclusionState(VISIBLE) at every draw of the
window's container (Mozilla's code, the same in retail), so a draw after X's
FullyObscured makes the page visible again and the control, which read the
final state, was a race.

The control now takes the page's list of visibilitychange entries and passes
when hidden was recorded after FullyObscured; the product half is unchanged
(hidden never seen). A deterministic case on Linux draws the covered window
again while it stays covered (one pixel narrower through X): the page must
record visible, hidden, visible. The decision is a pure function with unit
tests, and the engine's Widget log goes into the evidence folder.
2026-11-24 05:29:08 +01:00
Federico Elia 7c9d414af9 Merge pull request #585 from oss-invisible/ci/linux-deps-repository
ci: Linux legs install from the run's repository of the closure (linux-deps, second form)
2026-11-24 05:23:08 +01:00
feder-cr a3cb07c126 ci(linux-deps): a root only provided is its one provider (libgtk-3-0's closure came without libgtk-3-0t64: apt-cache depends --recurse does not walk from a virtual root); identical to the series' copy 2026-11-24 04:49:16 +01:00
feder-cr ba86f02ee7 ci(linux-deps): each fetch of the closure retries 5 times, the MB and seconds of the download are logged (identical to the series' copy) 2026-11-24 04:20:10 +01:00
feder-cr 30ce3226d8 ci(linux-deps): a root may be a provided name, the entry per release of the image, the closure downloaded 8 at a time
libgtk-3-0 is a name libgtk-3-0t64 provides on noble and the root check read Package: alone (linux-deps-real-sites
red); a key per image build missed the entry whenever the builds of a release are mixed; the closure read one
package at a time took 13 minutes from a slow mirror. linux-deps.yml stays identical to the series' copy.
2026-11-24 03:48:21 +01:00
feder-cr 0663250d48 ci: the Linux legs install from the run's repository of the closure (second form of linux-deps)
The first form installed the .deb files the job's image lacked against the
leg's own image and lists; GitHub mixes builds of one image in one run, and
legs failed with "E: Unable to fetch some archives".

linux-deps.yml (identical to the series' copy) now hands the jobs a
repository: the roots and their whole closure, a Packages index and
roots.txt. A leg installs the roots by name with an apt that reads only that
repository (its own sources list and lists folder) and --no-download. The
Playwright pin is read from playwright_wrapper_ref (github.sha) instead of the
`playwright` flag.

tests/test_ci_linux_legs_read_no_mirror.py follows the same rules as the
series' test: the only apt lines are the two allowed ones, APT and the sources
list are local, the files are copied into apt's archives, the artifact is
downloaded before the install; it is red on the first form.
2026-11-24 03:20:40 +01:00
Federico Elia 13cd04a8d3 Merge pull request #584 from oss-invisible/ci/linux-deps-no-mirror
ci: Linux legs install packages from the run's linux-deps job, never from Ubuntu's mirror
2026-11-24 02:52:13 +01:00
feder-cr 83293b8184 ci: the Linux legs install their packages from the run's linux-deps job, never from Ubuntu's mirror
A run lost a green leg to its time limit because `playwright install-deps firefox` fetched 48.8 MB
from the mirror at 102 kB/s (about 8 minutes per leg). linux-deps.yml fetches the .deb files once
per runner image and list (xvfb, strace, gdb, elfutils or the leg's own packages, plus what
`install-deps --dry-run firefox` names for the pin of scripts/playwright_pin.txt), keeps them in a
cache entry and hands them to the run as the artifact linux-deps-<name>. The legs of e2e.yml,
fakeweb.yml, e2e-hunt.yml, real-sites.yml and user-install.yml need that job and install the local
files with --no-download: no apt-get update, no install-deps, no install from the archive.

tests/test_ci_linux_legs_read_no_mirror.py refuses those three in any job, requires each installing
leg to download the artifact of a linux-deps call it needs before its first install, and is in both
unit rows (3529/3530). The tests that read the job headers of e2e.yml, fakeweb.yml and
real-sites.yml follow the new needs.
2026-11-24 02:40:59 +01:00
feder-cr fead0e8c44 Merge tests/etw-session-lifecycle (#583) into the integration for the candidates 2026-11-23 23:12:13 +01:00
feder-cr a158db2151 ci: the stock control of the geolocation step reads the first host read Firefox makes for location, and our engine must make none
Republish 45257636942 (windows-2022): stock Firefox did not start the location utility process
(sandboxingKind=3), while on the same image it did in 45165805370, 45170547415 and 45252267809. The runner
has no source of position (getCurrentPosition answers code 2), so the utility depends on the runner. Stock
loaded capabilityaccessmanagerclient.dll (the CheckAccess of GeolocationSystemWin.cpp) in every launch
that ran, 5 of 5. The 68, the 68 again and the candidate loaded no location module in any of 168 launches.
- The stock control is broken only if stock ran and did not load capabilityaccessmanagerclient.dll. The
  utility is still recorded and printed.
- Our engine, on both sides of the A/A and the candidate in the A/B, the idle launch included: a location
  module or the location utility in any launch is red.
Unit rows 3492/3493.
2026-11-23 22:53:22 +01:00
feder-cr 0b63169b51 ci: the host oracle's ETW session is read from the list of sessions, waited for after its stop, and its errors say Windows' code
Gate 45257629988 (Windows, seed 6): `logman query <session> -ets`, the round trip between the canaries, failed
with 0x80071068 (4200, ERROR_WMI_GUID_NOT_FOUND) right after a successful create. The launch went without a
trace and the A/A was broken, under a line that blamed the administrator.
- The round trip reads the list of sessions (`logman query -ets`, which does not resolve the providers): the
  launch's session must be there and Running. A read that fails is read again every 0.25 s until the
  condition holds or the 120 s hang guard runs out. The browser starts only once it holds.
- After every stop, the next launch waits until the session is gone from that list (same read, same guard).
- Errors carry the command, the code in hex and Windows' text; "it needs an administrator" only for access
  denied (0x80070005).
Unit rows 3482/3483.
2026-11-23 22:06:11 +01:00
feder-cr 4a840e39b0 Merge tests/the-covered-window-is-covered-before-it-is-measured (#582) into the integration for the candidates 2026-11-23 21:06:48 +01:00
feder-cr 111dc3bf69 Merge tests/gl-probe-born-before-goto (#581) into the integration for the candidates 2026-11-23 21:06:48 +01:00
feder-cr 87f26ec99d Merge tests/location-checkaccess (#580) into the integration for the candidates 2026-11-23 21:06:48 +01:00
feder-cr 41738dcc3d ci: the host oracle judges the kinds of processes by the rule of the paths, keeps the raw audit of every launch, and drops a pid only when it is born again
Run 45228081536 (Windows): the A/A of the 68 was red on how many pingsenders a launch started (2, not 0 or 3)
and on whether they spawned a socket process. Mozilla's pingsender leaves in some launches and not in others
(measured: 6 short launches of 48, 5 long ones of 16).
- The kinds of processes follow the rule of the host paths: red only if a kind is in every measured launch of
  one engine and in no launch of the other. The other kinds, pingsenders included, are listed with their
  counts in not-judged[-a-a].json. The count rule for the pingsenders is gone. The separate pingsender
  executable and the pingsender's destinations are still judged, and so is the stock control's location
  utility process.
- process_tree: a pid of the tree stops counting only when it is born again as a process that does not join
  (plus the creator's name). A creator's end no longer excludes a child logged after it.
- Every Windows launch saves the raw 4688/4689 events of the tree and of the processes left out, with the
  reason, next to its footprint.
Unit rows 3464/3465.
2026-11-23 20:36:54 +01:00
feder-cr 3f63899afb tests: the covered window is measured only once Windows says the cover is in front and the tracker has been signalled (hunt run 45226548295)
The Windows half of the occlusion test judged the page after a Z-order change that the tracker never hears: WinWindowOcclusionTracker recalculates on
hooked events (foreground change, move or resize, minimize, state change, cloak, location change of a process that had a visible window), not on a
change of the Z-order, and the second move of the covered window went to where it already was, so it sent nothing. When the covered window kept the
foreground the tracker was never told, and the page stayed visible for the whole deadline.

The test now builds each precondition with calls the system honours and waits for it, with a deadline, as Windows reads it back:
- before the page is asked anything, the covered window is made topmost and moved by one pixel, and the test waits until nothing above it covers it and the
  page reads visible (a window of the same size opened over it by another session or by the load of the runner no longer reads as "hidden before anything
  covered it");
- the cover is made topmost, the covered window moves inside it, and the test waits until the read-back says the cover covers it ("the lab could not cover
  the window" otherwise, never a verdict about the page);
- the tracker is signalled after that with a real one-pixel move, repeated while the page still reads visible, so a page that never turns hidden is the
  engine's.

The step that only recorded, without a verdict, whether the system kept a plain Z-order is gone (it spent a full deadline in the control half and would
now read as kept every time); the foreground window and the number of signals are recorded on every run.
2026-11-23 19:07:26 +01:00
feder-cr e3572f289f ci: the host oracle's process tree takes a process only while its creator is alive in it
Run 45221868374 (Windows, idle launch of the 68): a Windows service (svchost wlidsvc), seven wevtutil and two
wsl of the oracle entered the engine's tree because their creator's pid matched a pid of the tree that Windows
had reused. The service never exited, so the wait for the tree's exit ran out and the A/A was broken.
process_tree now walks births (4688) and ends (4689) in order: a process joins only if its creator is alive in
the tree at its birth, and only if the creator's image matches ParentProcessName when the audit gives it.
A stranger that takes the pid of a process that has gone drops that pid. The trace turns on the
process-termination audit and puts it back afterwards; without it the tree relies on births alone.
Unit rows 3450/3451.
2026-11-23 18:20:50 +01:00
feder-cr 78271d32ce tests: with the engine off the host GL probe is born before the first goto (Linux) 2026-11-23 18:11:37 +01:00
feder-cr 16bf5d37c4 ci: the host job reads Windows' answer for location (CheckAccess) before and after turning it on, and is red unless Allowed
Run 45206303882 (gate, windows-2025): the location keys said Allow and lfsvc ran, and stock Firefox did not
start the Windows provider. Before it does, Firefox asks AppCapability("location").CheckAccess(), and that
answer was never read. The step now prints it before and after, and is red unless it is Allowed after.
2026-11-23 17:46:56 +01:00
feder-cr 71d8dfa4f6 Merge tests/journey-hang-guard (#579) into the integration for the candidates 2026-11-23 16:23:32 +01:00
feder-cr 1adc3f3ccf ci: a visit of the HTTPS and HTTP/3 walks is left only after its origin's favicon is served and the page is network-idle
A/A run 45189518824 (Linux): in one run the second visit of the HTTP/3 page asked for /favicon.ico, in the
other it did not. Over 14 transcripts of the day Firefox asks once per origin of a launch: in the journey
on the first page of each origin (140 of 140), on no page of the other steps (0 of 980), and in the walks
?v=1 always asks while ?v=2 does not (59 and 60 of 60). Hypothesis, not proved: the goto of ?v=2 races the
recording of ?v=1's favicon.
- settle_visit, the one point a visit is left from: the favicon of the page's origin has been asked for
  and served in full (WireServer.answered_at, marked after the last byte on http1, h2 and h3), then the page
  reaches networkidle. Each wait has the 120 s hang guard; one that reaches it is an error of the
  transcript that names the visit and the missing wait.
- The evidence of the transcript keeps the arrival and the end of the answer of the HTTP/3 requests,
  for the measure to make if this falls again. The journey is not touched.
- Unit rows 3443/3444.
2026-11-23 15:42:37 +01:00
feder-cr 2e2ce133df tests: the waits of the fake web's journey have a hang guard, and a wait that reaches it says its stage
Run 45176061220 (gate, Windows, network oracle): in one launch the runner was 3 to 4 times slower for
about 100 s. From the click to `load` steps 2 and 3 took 18.9 and 22.1 s (4.5 to 10.2 s on 480 pages in
6 runs), over the 15 s default deadline of the walk's context. A deadline meant for a hang became a leaf of
the comparison and the A/A of the published engine was red.
- TIMEOUT_MS becomes HANG_GUARD_MS (120 s), the deadline of every wait of the walk that has no time of its
  own; the wait for the noise uses it too. The back/forward keys and the networkidle time keep their own.
- A wait that reaches the guard says which wait, on which page, and the last request the site saw, in
  place of "Timeout Nms exceeded". Only the stage and the page are compared.
- Fake site pages that hold `load`: a click to a page that holds it 20 s is a passed step, and a page that
  never loads names `navigation to load` with a small guard.
2026-11-23 14:52:35 +01:00
feder-cr 472db8a7b3 Merge tests/oracle-controls-r2 (#578) into the integration for the candidates 2026-11-23 12:44:28 +01:00
feder-cr 5a328bb87c tests: the host e2e expects the stock control's footprint on Windows, in the A/A and with a candidate
Run 45165805370: the stock control passed (utility sandboxingKind=3) and the e2e was red only on the list of
footprints, which did not have it. expected_footprints holds the four cases (Windows/Linux, A/A/candidate).
Unit rows 3418/3419.
2026-11-23 12:44:06 +01:00
feder-cr 60f4fb7679 ci: the trace of the host oracle's stock control is rooted at the parent of stock Firefox, not at the oracle
Run 45162128126: stock Firefox answered getCurrentPosition (error 2) within a second and then stood in
`seed result` until its 120 s limit: the trace waited for the tree rooted at the oracle's own python, which
cannot exit (EXIT_LIMIT_S). The root is now the stock browser's parent process, found among the oracle's
descendants after the launch, as an engine's root is its parent; one not found is a broken control that says so.
Unit rows 3417/3418.
2026-11-23 12:23:04 +01:00
feder-cr 121cd4b5e0 ci: the host job turns on the runner's location service; the stock control has its own limit and says its phase; the network guard is the measured run plus 25%
Run 45153612447 (PR #578), host on Windows: the A/A was green, then the stock control stood still for more than 26 minutes,
until the test's guard killed the python child alone and nothing was said. On the runner the location service is off and
denied for the machine (lfsvc Disabled and Stopped, the machine's location consent Deny).
- e2e-host-windows turns the service on before any launch: lfsvc made startable and started, consent Allow for the machine
  and for the user's non-packaged apps. A setting that does not hold is red with its reason. The claim of the geolocation step
  is unchanged.
- The host test runs the oracle through crash.run_tree. The stock control runs in at most 120 s (crash.run_tree) and prints
  every phase, so a control that does not end says the phase it stood in.
- Network: the test's guard is the slowest measured run plus 25% (runs 45121964904 and 45153612447): 2197 s for the A/A,
  3285 s with a candidate. The network jobs of the PR have 50 minutes.
- Unit rows 3415/3416.
2026-11-23 11:59:07 +01:00
feder-cr b5f8865ea5 release 0.59.0: version and changelog (the unpublished 0.58.1 entry folds into 0.59.0) 2026-11-23 11:42:22 +01:00
feder-cr b1550faf89 ci: the unit rows counted again (3407/3408) and tests/test_glean_ready.py named in them 2026-11-23 11:02:42 +01:00
feder-cr efa6d948fe ci: the host and network oracles close only after Glean has initialised, and their controls say why they broke
Run 45121964904 (the gate of the 69) had three red controls, none from the candidate:
- network, Linux: the published 68 exited with -11 in the exit-pings launch. It is Mozilla's race:
  a session closed before Glean initialised makes it start inside the shutdown, where glean.init can
  panic ("No database found"). That launch had no window, so Glean was always born in the shutdown.
  Every launch of the two oracles now waits, right after its first page, for
  <profile>/datareporting/glean/db/data.safe.bin (a condition read from the host; 60 s is a red
  safety limit). The launch's own work always sits between the condition and the close. The
  exit-pings launch opens a page and navigates once before it closes, and its wait for the
  data-policy pref (which never came) is gone. The host's bare launch, never compared, is removed.
  Each launch keeps the listing of datareporting/ as evidence.
- network, Windows: the subprocess timeout killed only the python child; the firefox grandchild
  held the pipe and pytest timed out without a word. crash.run_tree writes the output to files,
  kills the whole tree, and names the launch that was alive and for how long.
- host, Windows: the stock control never started (Playwright's Firefox was not installed) and was
  reported as "does not reach the platform provider". It now runs after a green A/A on every
  Windows run, pull requests included. The job installs the browser, a missing executable is said by
  name, and a stock that ran without reaching the provider prints its processes and modules. A
  read-only step prints lfsvc and the location consent keys.
2026-11-23 11:02:42 +01:00
feder-cr 6d42084c95 Merge f2bd726e (#571) into the integration for the candidates
The partner tab of step 10 is closed from the walk's one point (Journey.leave) and the walk then waits
for its two pagehide requests, as integ already did; the fake tab of the unit test of that wait answers
the noise-done wait. The rows counted again by the collection: unit 3384/3385, suite.linux.2 412,
suite.windows.3 274.
2026-11-23 06:27:19 +01:00
feder-cr cf0c7ba3d2 Merge tests/ab-host-aa-stable into the integration for the candidates 2026-11-23 06:27:19 +01:00
feder-cr 3c09b863bf ci: the host oracle judges every host path by one rule, red only if in all measured launches of one engine and in none of the other, and lists the rest 2026-11-23 06:23:07 +01:00
feder-cr 583516ca34 tests: the host oracle's one rule on real A/A and A/B footprints and on built cases (red on the current judge) 2026-11-23 06:23:07 +01:00
feder-cr f2bd726ef4 tests: a page declares its noise done only once its fetch chain and its streams have sent their release
The network oracle of the run 45088980743 (Windows) saw `GET A/release?id=lp<TOK>` once in one run
of an engine and twice in the other: the home page of step 15 had sent its last stage and its
fonts, but its chain of seven fetches had not yet sent the release that ends it when the walk asked
for /account. window.__noiseDone did not cover that stage. It is now true once the fonts, the last
stage, the release of the fetch chain (stage 5) and the releases of the three aborted streams
(stage 9) have all been answered. A held request of a parked page stays out of it.

The check of the walk (journey_site.pages_left_before_their_noise) also asks, for every page, for
the release that ends its fetch chain, with the page as its referrer, before the walk leaves it.

Unit tests: a page left before that release is found; the page declares the new conditions. Both
red on the previous site. Counts: unit.all.linux 2426 -> 2427, unit.all.windows 2427 -> 2428.
2026-11-23 05:26:56 +01:00
feder-cr 715cbc9e59 tests: the late stylesheet of a partner page is read with the page's own URL as its referrer
The check of the p4 walk (journey_site.pages_left_before_their_noise) expected the late stylesheet
ld3 of a page of the other origin with the origin alone as its referrer. The partner page loads ld3
from its own origin: a same-origin request carries the whole URL of the page (O/partner/8). In the
run 45074928774 the stylesheet arrived 3 s after `load`, after the walk had waited for the page's
declaration, with that referrer, and the check called it missing (Linux job 137370233977, Windows
job 137370233997). The driver was right; the expected referrer was wrong.

Unit tests: the partner page is found by its own URL (red on the previous check, green here); step
10 closes the partner tab only after the wait for the tab's declaration (red when the cleanup
closes it at once); the source check also pins goto to the first page and forbids reload.

Counts: unit.all.linux 2424 -> 2426, unit.all.windows 2425 -> 2427.
2026-11-23 05:22:30 +01:00
feder-cr b44c5d64d0 ci: the rows counted again after #569 and #565 2026-11-23 01:20:30 +01:00
feder-cr 6582f222ce Merge 891abbf5 into the integration for the candidates 2026-11-23 01:17:08 +01:00
feder-cr afd5ca8f30 Merge 85a01e4b into the integration for the candidates 2026-11-23 01:17:07 +01:00
feder-cr 891abbf5ac tests: the refusal of two items with one name in createTempFiles is a wanted divergence, named in the budget with its witness 2026-11-23 00:48:51 +01:00
feder-cr c04752c86e fix: a stream is usable only by the context that made it; an unknown one is refused with the stock server's sentence
_upload_paths takes the context of the frame or the handle doing setInputFiles and accepts a WritableStream only if it is a child of that context. A guid that is unknown, or a stream of another context or another client, answers `streams[i]: no object with guid <g>` (the stock server's `_tChannelImplFromWire`); a guid of another type answers `object with guid <g> has type <t>, expected WritableStream`. Both doors (Frame and ElementHandle) pass their context.
2026-11-23 00:48:51 +01:00
feder-cr c8ac1fd329 tests: a stream is usable only by the context that made it, and an unknown one is refused with the stock server's sentence (red: another context's or another client's closed stream is accepted)
The stock server's streams are objects of one connection: a guid outside it answers `streams[i]: no object with guid <g>`. The unit tests drive the element's and the frame's setInputFiles with a closed stream of another context, of another client, and an own one, and read the exact sentence for a stream nobody made. Registry: unit rows +3.
2026-11-23 00:48:51 +01:00
feder-cr be7ac95cc4 fix: a path upload over connect is streamed into the session (createTempFiles and WritableStream served), and a file chooser the server cannot announce leaves a trace
A stock client on a remote connection uploads a path with createTempFiles, WritableStream write/close and setInputFiles{streams}; the server refused the first call with a sentence that said the opposite of the truth. BrowserContext now serves createTempFiles (one folder per call in the session's upload area, one file per item, names refused unless they are one bare file name, a folder refused as set_input_files refuses it, mtime from lastModifiedMs at close), the new WritableStream dispatcher appends and closes once, and _upload_paths reads streams as the closed files. The folder is removed by the context's released(), which a context close and a dropped client (_client_gone) both pass. The perimeter no longer names createTempFiles or write.

_announce_file_chooser records every early return in handler_errors, as the adoption failure already did.
2026-11-23 00:48:50 +01:00
feder-cr 43593669f6 tests: a path upload over connect is staged in the session, a stock client's file reaches the page whole, a file chooser the server cannot announce leaves a trace (red: createTempFiles is refused, four exits of the announcement are silent)
A stock client over `connect` uploads a path as a stream (createTempFiles, WritableStream write/close, setInputFiles{streams}) and the server refuses the first call. The unit file drives the real dispatchers and the served endpoint: names, one folder per call, write/close, the streams read by the upload, cleanup on context close and on a client dropping mid-copy. The e2e file gets a test that reads name, size, lastModified and bytes of two streamed files on the page, and its handler tests (2 and 4) now pass a Python function, which the client needs. Registry rows updated: unit rows +30, e2e rows +1.
2026-11-23 00:48:50 +01:00
feder-cr 209be2d08e tests: which path loses the file chooser: a direct click on an input, in process and on a served browser with a stock client, the event alone, a path and a payload, a fresh page (red: the evidence) 2026-11-23 00:48:50 +01:00
feder-cr 94f2b07540 tests: the real tap of an element leaves this branch: the engine cannot send a touch event since Firefox 159 (Juggler calls windowUtils.sendTouchEvent, which 159 removed); it waits on tests/a-tap-reaches-the-page-through-the-engine for the engine's fix 2026-11-23 00:05:18 +01:00
feder-cr f46565e900 Frame.tap of a context without touch is refused with stock's sentence before anything is looked up or sent (red: 2 unit); the e2e of the handle asks what stock answers: is_editable of a disabled button is stock's 'Element is not an <input>...' error, a page tap without touch is stock's refusal (+3 unit, +2 e2e) 2026-11-22 23:39:44 +01:00
feder-cr a75abbe7ec ci: the rows counted again after #566 and #568 2026-11-22 23:14:58 +01:00
feder-cr 6cda38db60 Merge fa849b58 (PR #568: the Linux e2e in three parts) into the integration for the candidates; the oracles' workflow tests read the Linux parts (e2e-linux) and their rows 2026-11-22 23:11:39 +01:00
feder-cr 4b216c9618 Merge 240f4ab6 into the integration for the candidates 2026-11-22 23:09:41 +01:00
feder-cr 690cbbdd16 ci: the rows counted again after #555 and #567 2026-11-22 23:03:55 +01:00
feder-cr b582b9e83d Merge 929ed9df (PR #567: the arguments of evaluate, the static check of the methods) into the integration for the candidates 2026-11-22 23:00:14 +01:00
feder-cr abf62dfe08 Merge 18f6225a (PR #555: the host oracle's rules, --junit, wrapper.e2e.ab_host_crash) into the integration for the candidates 2026-11-22 23:00:03 +01:00
feder-cr 88b3de4320 tests: the p4 walk leaves a page from one point, once the page has declared its noise done
Every page of the journey site now declares the end of its noise: window.__noiseDone is true once
the font stage is done (its stylesheet has loaded and document.fonts.ready has resolved after the
spans were laid out) and the last stage has loaded its stylesheet ld3; at once on a page without
noise.

The walk leaves a page only from Journey.leave, which waits for that declaration (deadline 30 s,
never a pause) before the act that leaves: every navigating click and Enter (Journey.navigate),
back and forward (history_step), closing the partner tab (step 10) and the end of the walk (the
context closes the last page). The same driver runs for stock Firefox and for ours, so the
verdict "same outcome as stock" is unchanged.

Unit tests (red on the previous commit's driver, green here): step 15, the form keys of steps 12
and 14, back and forward, the tab and the last page, a source check that every navigation, back,
forward and close of the walk goes through that one point, and the page's declaration.

Counts: unit.all.linux 2418 -> 2424, unit.all.windows 2419 -> 2425.
2026-11-22 22:51:11 +01:00
feder-cr bf3823036a tests: the p4 walk must leave a page only once its noise is done (red on the current driver)
The network A/A oracle on Windows differed at step 15 of the journey (ld3 1 vs 2, woff2 5 vs 7):
the walk clicks Account as soon as the home page has loaded, while the home page's noise still
runs on timers after load (fonts at 250 ms, the late stylesheet ld3 at 600 ms).

The lab can now make the last stage of the noise long (journey_site.start(last_stage_ms=...)),
and the site's record keeps the referrer and the type of every answer. The new e2e test runs the
walk with that stage at 3000 ms and reads the record: every page's ld3 (with the page as its
referrer) and its five woff2 must arrive before the walk's next navigation
(journey_site.pages_left_before_their_noise). The current driver leaves the home page of step 15
right after load, so the test is red on it by construction.

Counts: wrapper.e2e.fakeweb 4 -> 5, e2e.suite.linux.2 411 -> 412, e2e.suite.windows.3 273 -> 274,
unit.all.linux 2413 -> 2418, unit.all.windows 2414 -> 2419.
2026-11-22 22:44:57 +01:00
feder-cr 85a01e4be0 fix: a screenshot honours its scale: scale="css" is a picture in CSS pixels
PageDispatcher.op_screenshot sent omitDeviceScaleFactor false whatever the caller asked and never read `scale`: at a viewport of 1280x720 and a ratio of 1.25
page.screenshot(scale="css") was 1600x900, stock gives 1280x720. It now sends omitDeviceScaleFactor: scale == "css", as stock's Firefox page does. The element and
locator screenshots end in the same call, so they follow.
2026-11-22 22:33:42 +01:00
feder-cr b74a08c400 tests: a screenshot honours its scale: css pixels for "css", device pixels for "device" and by default (red: the driver always sent omitDeviceScaleFactor false)
Stock sends omitDeviceScaleFactor: scale === "css"; the driver never read scale, so at a viewport of 1280x720 and a ratio of 1.25 scale="css" gave
1600x900. Unit: the page, full page, clip and element calls put the right flag on the wire. E2E: at 1.25 and 2 the size and the pixels (colour blocks at known
CSS positions, one below the fold, one in an iframe) of the page, full page, clip and locators are those of the scale asked for. Both registered in the
wrapper.unit.all rows and wrapper.e2e.suite.{linux,windows}.1.
2026-11-22 22:33:30 +01:00
feder-cr fa849b582e ci: the unit rows count the tests of the final Linux job (2427 / 2428) 2026-11-22 22:21:47 +01:00
feder-cr 18f6225a95 Merge main (3527f573) into the A/B oracles: the rows and jobs of main kept as they are, the oracles' added
ci/required-suites.json: every row of main unchanged; the unit rows hold main's files plus the oracles' unit files, with the
minimum recounted (3080 Linux, 3081 Windows); the rows wrapper.e2e.ab_oracle, ab_network, ab_host and ab_host_crash added.
.github/workflows/e2e.yml: the Windows parts take their files from the rows wrapper.e2e.suite.windows.N (main's).
The oracles' e2e files are named as excluded in tests/test_the_e2e_suite_is_accounted_for.py (their own jobs), and the
oracle job tests check that no row of the shared suite holds them. The host oracle's unit tests take the 13 real WOF
lines of the Windows A/A and the 45 real lines of the Linux A/B of candidate run 45060573559.
2026-11-22 22:16:32 +01:00
feder-cr 0a6ae0e3e4 ci: the Linux e2e in three parts, one per row of the suite, and one check that waits for them
The single Linux job ran the whole e2e in 24.6 minutes on a normal runner and
35.7 on a slow one (every test slower by the same 1.44x), close to its
40-minute ceiling. It becomes a matrix of three parts, `e2e (linux, part N)`,
each running the row `wrapper.e2e.suite.linux.N` of ci/required-suites.json
(read with `ci_verdict.py args`, as the Windows parts read theirs) through
scripts/run_e2e.py under xvfb-run: the parallel pass with 4 browsers, then its
wall_clock tests alone. Every setup step of the Linux job stays; the uploads
are named per part (-linux-N).

The rows hold no test of wrapper.e2e.udp.exit or wrapper.e2e.udp.sandbox. The
root step and the sandbox step run in part 1 only (the lightest by the test
time of the Linux junit of run 45064266867: about 1893 s against 1988 and
2138), after its run, in the same order as before. The sandbox step now runs
the whole list of its suite (the file and the three node ids of the UDP line,
13 tests, as the gate's sandbox leg runs it): the rows leave those three
nodes to that suite, and without this they would run in no step.

A final job keeps the old check name, `e2e (linux, xvfb)`: it needs the
parts, runs with `always()` and the same gate of the core on the index, and
fails unless `needs.e2e-linux.result` is `success` (a failed, cancelled or
skipped part is red). While the core is not on the index it is skipped with
the parts, as the Linux job was.

Tests: the root and sandbox step tests read the new shape (rows of the parts
without the suites, the steps held to one part, the sandbox step to the
suite's list and count); test_ci_runs_once_per_commit.py holds the final job
(known-bad: no always(), accepting skipped, not needing the parts, exit 0,
another job's result, no gate of the core, success() || failure()). No change
to the registry, the judge or the series.
2026-11-22 22:13:02 +01:00
feder-cr abd471e031 tests: waiting for a state of a node that left the document answers as stock does for each of the six states: hidden and stable are met at once, visible, enabled, disabled and editable are 'Element is not attached to the DOM' (green on the code before: the core's injected script already answers as stock, measured on a detached node) (+6 unit, +6 e2e) 2026-11-22 22:10:15 +01:00
feder-cr 151824d806 The matches of a query rooted at an element are read in one command: the array is listed once with the core's properties, in numeric order, and the list is released; two commands for any number of matches instead of N + 2 2026-11-22 22:10:15 +01:00
feder-cr e8b1d1a0c9 tests: the list of a query rooted at an element is read in one command, whatever its length, in document order, and released when it cannot be read (red: 9 fail, the list is read by its length and then place by place) (+6 unit, +1 e2e) 2026-11-22 22:10:15 +01:00
feder-cr b720b66eba An element handle answers every method of the client but one: queries rooted at the element, its states, its gestures on that node, a handle of what a function returned; the wire-method budget loses 16 entries 2026-11-22 22:10:15 +01:00
feder-cr b3d9f167a0 tests: an element handle serves every method of the client, queries and states of the node, its gestures, a handle of what a function returned (red: 16 of the 17 answer 'a gap', 64 tests fail) (+64 unit, +22 e2e) 2026-11-22 22:10:15 +01:00
feder-cr 240f4ab63e tests: evidence of a popup that is not made: the activation, the gap from pointerdown, and null against a throw (run 45064266867) 2026-11-22 22:09:27 +01:00
feder-cr 6877a2dd28 tests: the page built again asks its new worker once: the second question got 2 (run 45064266867) 2026-11-22 22:08:08 +01:00
feder-cr 929ed9df3a tests: wait_for_function takes its argument as arg=, and the Date an exposed function answers is asked from the page's own realm (an evaluate runs in the caller's world, whose Date is another one) 2026-11-22 22:03:52 +01:00
feder-cr 56ca8b1ad1 tests: the refusals of an argument are pinned by their exact text, the decoder is pinned to the caller's world and leaves no global, and a page that counts Date, URL, Map, RegExp, Error and defineProperty sees none of them (+13 unit, +2 e2e) 2026-11-22 21:42:52 +01:00
feder-cr c0ee281f5b An ArrayBuffer (ab) in the argument of evaluate and its kin reaches the page: the page side of stock decodes it, so it goes to the decoder as it came; the tags this module handles are one constant 2026-11-22 21:41:22 +01:00
feder-cr 608ceea2f3 tests: every tag of a serialized value the driver accepts reaches the page, and an ArrayBuffer (ab) is one (red: ab is 'Attempting to deserialize unexpected value'; the tag list is read from the installed bundle's SerializedValue validator) (+19 unit) 2026-11-22 21:41:12 +01:00
feder-cr 012eca5db3 tests: the first launch from a new path runs in the serial lane: it starves the browsers of the parallel pass (run 45033639069) 2026-11-22 20:57:54 +01:00
feder-cr 51d2df9685 Every argument of evaluate and its kin reaches the page as Playwright sends it: handles, dates, URLs, errors, references, undefined and -0 are decoded in the page, not read as null 2026-11-22 20:54:15 +01:00
feder-cr 26804fcab3 tests: every form of an argument reaches the page as Playwright sends it, a handle, a date, a URL, an error, a reference, undefined, -0 (red: all of them reach it as null) (+73 unit, +23 e2e) 2026-11-22 20:54:15 +01:00
feder-cr 3c452f2e8d tests: the wire-method budget is checked out with LF on every system, as dump() writes it (red on the Windows runners: autocrlf) 2026-11-22 20:53:58 +01:00
feder-cr 645d68e05a tests: the clock guard sees a delay given to a lab server (rule lab-delay): such an e2e test is wall_clock or a reviewed entry 2026-11-22 20:37:58 +01:00
feder-cr 048340176b tests: the far-away gateway family, the whole UDP chain by name and the slow DoH run in the wall_clock lane 2026-11-22 20:37:58 +01:00
feder-cr 174f7a9a7f tests: a lab delay that the product answers in time is a wall-clock test (red: the guard does not see it, the far-away family is not in the serial lane) 2026-11-22 20:37:58 +01:00
feder-cr edf6153895 tests: every wire method the client sends is served, refused by name, or in a budget that only shrinks (26 holes, 3 partial) 2026-11-22 19:52:58 +01:00
feder-cr e64fc01e67 Merge main (3527f573: the characterization of firefox-68, PR #557) into the integration for the candidates 2026-11-22 19:43:37 +01:00
Federico Elia 3527f5736d Merge pull request #557 from oss-invisible/tests/characterization-69
tests: characterization of firefox-68 before the hooks of firefox-69 are reworked
2026-11-22 19:43:07 +01:00
feder-cr 30a5967409 ci: the accounting of the e2e suite counts the oracles and the host GL probe file (20 exclusions); the rows counted again 2026-11-22 18:58:24 +01:00
feder-cr f6aa5b4204 Merge b10b15af into the integration for the candidates 2026-11-22 18:56:06 +01:00
feder-cr 7a3bd43b7a Merge origin/char69/glxtest into the integration for the candidates 2026-11-22 18:56:05 +01:00
feder-cr 47022daa41 Merge origin/char69/occlusion-linux into the integration for the candidates 2026-11-22 18:56:05 +01:00
feder-cr 8a8a583664 ci: the rows counted again after the occlusion on Linux, the host GL probe and the held requests of p4 (the renamed p4 unit file) 2026-11-22 18:56:04 +01:00
feder-cr 3edbc3c791 ci: the unit rows' minimum follows the host oracle's install-folder, gfxtest and WOF tests and the host gate's junit 2026-11-22 18:55:39 +01:00
feder-cr 3e15901170 ci: the host oracle runs every engine from one folder, names the probe gfxtest, and reads a WOF stream as its file
Same install path: the content processes and the forkserver read the link of every
ancestor of <install>/omni.ja (Omnijar::ChildProcessInit -> realpath), so the 68 under
/tmp/ab-host-fetch-<random>/engines and the candidate under the checkout gave 10 leaves of
readlink per seed that were the place of the install. Each engine run (68, 68 again,
candidate) now copies the whole package to <RUNNER_TEMP>/ab-host/engine/firefox, runs from
there and removes it; nothing is normalised in the comparison.

gfxtest: the probe is labelled gfxtest (widget/gtk/GfxInfo.cpp:55 GFX_PROBE_BINARY); the
declared difference now names it (it named glxtest and was reported stale), and covers the
file leaves whose only toucher on the published side is that kind, in the seeds where the
kind is gone.

Windows: a path ending in :wofcompresseddata is the WOF compressed-data stream of the file
the process opened; the ETW reader reads it as that file. Other streams stay distinct.
2026-11-22 18:55:39 +01:00
feder-cr 4fff701c99 Merge b10b15af into the characterization line 2026-11-22 18:52:58 +01:00
feder-cr 2a7616b605 Merge origin/char69/glxtest into the characterization line 2026-11-22 18:52:58 +01:00
feder-cr 616919880a tests: the host GL probe starts only on an undeclared engine (Linux e2e)
A new e2e, Linux only (the GLX probe, gfxtest glx, is a child process of
Firefox on GTK; Windows has none): a declared engine starts no probe from
the launch to the page's WebGL context on firefox-69, and runs it on 68;
with zoom.stealth.fpp.hw_seed 0 Mozilla's probe starts on every engine.

The process tree is sampled with psutil in a thread from before the launch
(tests/_process_sampler.py). A poll can miss a child that lives tens of
milliseconds, so the launch runs under the strace stand-in (execve and the
clones only): every exec of the probe in the log must be a pid the sampler
saw as the probe, the sampler must cover the launch, and the log must hold
the browser's exec; otherwise the test is red with the problem, never green
on a miss. A unit file drives the real sampler with a fake tree.

Rows: wrapper.e2e.suite.linux.3 242 -> 244, Windows exclusion 16 -> 17;
wrapper.unit.all.linux 2382 -> 2389, wrapper.unit.all.windows 2383 -> 2390;
the firefox-69 gate is registered in tests/data/engine_gates.json.
2026-11-22 18:47:09 +01:00
feder-cr 887eb97bca Host gate: compare writes a junit with one testcase per invariant
--junit PATH writes the verdict of compare as xunit2: invariant:<name> for
each invariant and check:<name> for the other checks, classname
scripts.ci_host_gate (the path the hook tests name). A failed check is a
failure, a check with no dumps to look at is skipped.
2026-11-22 18:42:39 +01:00
feder-cr b10b15afdf tests: every held request of the journey starts after the load, the parked fetch of the category page too
The held fetch /hold?id=park of the category page (steps 7 and 8) was started by the noise script while the page was parsed, so
on an engine that announces a request before the commit the client attributed it to the previous document and did not count it.
It now starts from afterLoad(0, ...) like the keepalive fetch of the search page; URL, method and end are unchanged.
The unit test covers every held request (/hold with until) of every page of the steps that are not idle (7, 8, 12), and that no
other page of the journey holds one while it is parsed.
2026-11-22 18:40:02 +01:00
feder-cr f3e408a07d tests: on Linux the occlusion test owns its display and asks X whether the window was covered
The two sessions run on a private Xvfb (DISPLAY by monkeypatch, as the
focus test). The test's own libX11 connection selects VisibilityChangeMask
on the covered toplevel before the cover is mapped, raises the cover, reads
back once the stacking and the geometries (asserted: arrangement), and waits
for X's VisibilityNotify FullyObscured in both halves (never sent: red,
arrangement). With tracking enabled, FullyObscured sent and a page that never
turns hidden is red with a message that says ENGINE. The X record (window
ids, read-back, visibility events with their times) is kept on every run.
Windows side and product assertions unchanged. The parsing and the record
are unit-tested (10 tests, rows wrapper.unit.all.* +10).
2026-11-22 18:25:54 +01:00
feder-cr 9cf288fbd8 ci: the rows counted again after the navigation hook and the held ICE port 2026-11-22 18:04:46 +01:00
feder-cr 6c3f98b1b5 Merge e4f3dd27 into the integration for the candidates 2026-11-22 18:02:55 +01:00
feder-cr 78f34b2b1a Merge 153efcd156 into the integration for the candidates 2026-11-22 18:02:55 +01:00
feder-cr 7221b7da06 ci: the rows counted again after the navigation hook and the held ICE port 2026-11-22 18:02:54 +01:00
feder-cr 7e402528d0 Merge the reproduction of the held ICE port (e4f3dd27) into the characterization line 2026-11-22 18:01:05 +01:00
feder-cr 9745e5e754 Merge the e2e of the navigation hook (153efcd1) into the characterization line 2026-11-22 18:00:51 +01:00
feder-cr 153efcd156 tests: a same-site top-level goto is told moved (the browsing context is replaced); the negative case is a same-site iframe 2026-11-22 17:48:15 +01:00
feder-cr e4f3dd2712 tests: a port of the ICE socket that another process holds on loopback blinds the checks of two connections (red on firefox-68 on Windows; firefox-69 binds it exclusively) (+1 test) 2026-11-22 17:42:21 +01:00
feder-cr 7473b7e933 ci: the unit rows counted again after main 2026-11-22 17:05:25 +01:00
feder-cr a053458faf Merge main (3946c6c0: the evidence of the actions without a point) 2026-11-22 17:03:51 +01:00
feder-cr aebf02da8a ci: the unit rows counted again after main 2026-11-22 17:03:50 +01:00
feder-cr 33701e89d9 Merge main (3946c6c0: the evidence of the actions without a point) 2026-11-22 17:01:56 +01:00
Federico Elia 3946c6c024 Merge pull request #562 from oss-invisible/tests/actions-without-a-point-evidence
tests: the hidden-elements actions test keeps its evidence when it fails (second batch of the intermittent e2e)
2026-11-22 17:01:30 +01:00
feder-cr 9f575af60f ci: the unit rows' minimum follows the network oracle's evidence tests and the page oracle's crash records 2026-11-22 16:58:02 +01:00
feder-cr 1b54d76744 ci: the page oracle keeps what every browser wrote and records a tab that died as a leaf of its own
A candidate run lost the tab of a visit ("cannot find session" in every state.*) and the artifact held only args, json and xml: the crash was inferred.

* The launch probe puts a tee in front of the core's own reader of the browser's output (stdout and stderr on one pipe), so the whole output of EVERY launch is
  saved in crash/<run>/stderr/ whether it ended well or not, and a launch that never made a connection keeps its output too. A launch whose output could not be
  kept is red. Nothing is written to the browser: same environment, prefs, durations and launch count.
* The cores written since a launch began go through gdb whatever code the parent ended with (a content process can die and the parent end with 0); such a launch,
  or one with a minidump, is red. A launch with no core says where it looked.
* A tab that died or a session that was lost during a visit is the leaf crash.tab.<launch> (error and step) in the dump, not a cascade of state.* errors. The
  comparison puts "TAB CRASH side S seed N dpr D launch L at step ..." first, red on that leaf alone, and counts the leaves the dead tab could not read instead
  of listing them as <missing>.
2026-11-22 16:57:31 +01:00
feder-cr 2bafbb8dc7 ci: the network oracle's HTTP/1.1 site ends each connection after its answer, and each seed keeps its requests with their connection and moment outside the compared leaves
A/A run 45025164169 (engine candidate, oss-invisible/firefox_antidetect_patch) broke on both systems.

Linux: the HTTP/1.1 site had a resumed connection on one seed of one run and on none of
the five seeds of the other. The labs are already fresh for every seed (a new certificate,
a new TLS context, so new ticket keys, a new journey site), so nothing is shared between
the two runs: whether the browser opens a second connection to the site while the first
is still busy, before it has read the session ticket, is the pool's race. The site now
answers with Connection: close and ends the connection, so every request after the first
rides a connection opened after the ticket was read, and the resumption happens on every
seed of every run. The default of the capture server stays keep-alive.

Windows: step 15 of the journey (logo, then Account) had one request counted 2 against 1
(release, first Referer "/" against "/account") and the font 10 against 5, on seed 0 of the
second run only. The transcript folds a request into a count and drops the connection and
the moment, so it cannot say which page sent it. The tees now write the connection of each
head and the lab the moment; each seed's transcript keeps, outside the compared leaves
(like exits), the requests of the journey with connection, stage, referer and time, and the
connections of the HTTPS sites with time, stage, resumption and the requests of HTTP/1.1.
Nothing is excused for it.
2026-11-22 16:57:31 +01:00
feder-cr 174602e4ac ci: the unit rows' minimum follows the recorder's tests of how a launch ended 2026-11-22 16:37:23 +01:00
feder-cr 9196a86389 ci: a browser whose parent does not end with 0 is red in the page, network and host oracles, and what it left is kept
Every launch of every oracle (measured, idle, relaunch, warm-up, bare; A/A and A/B) is judged by how its parent ended: a code other than 0, or not seen, is a red
line naming the side, the seed, the launch and the code. A launch that did not end with 0 keeps, in the oracle's artifact, the strace tail and the fatal signal lines
(host), the core through gdb (thread apply all bt, the MOZ_CRASH reason, info sharedlibrary) with the build ids, the .extra and the minidump names, and what no
collector found. The trace records the fatal signals now and drops the signal lines where the log is read. Cores are enabled in every launch without touching the
working directory, the environment, the prefs or the crash reporter. The recorder's own e2e (a parent sent SIGSEGV is red with its evidence) runs in the host job.
2026-11-22 16:36:47 +01:00
feder-cr 0471b59911 tests: the network oracle's job test reads the Windows parts from the suite rows, where its files are in no row 2026-11-22 16:28:58 +01:00
feder-cr e1e6f416bc tests: the gateway reads a request's address in a static method again (as main's far-away watch wraps it); the address type is a thread-local of the module 2026-11-22 16:28:58 +01:00
feder-cr fd5d92cbfc tests: the gateway reads a request's address in a static method again (as main's far-away watch wraps it); the address type is a thread-local of the module 2026-11-22 16:28:58 +01:00
feder-cr 5947f04cf1 tests: a failed set_content of the hidden-elements test leaves the wire, the contexts, the stalls of the process and the runner's load (+10 tests)
The test was red once on Windows ("Runtime.evaluate: no response in 30s" at set_content) with nothing saved, so it could not be classified as a stall of the browser or an evaluate sent to a context that no longer answers.

The test now arms the Juggler wire and the engine's trace before the launch, records the client's frame and page events and each call, and saves them only when its body fails. The reading of the wire no longer depends on a marker in the code: every command with no answer is joined with its context, frame and url (when it was sent and at the end of the log), with the time it waited and whether its context was destroyed since; an answer says how long it took. A stall witness of the process and the runner's load run on the wire's clock, and one line of both goes on the exception as a note.

No probe changes the call it observes: nothing raises into the test, the unit tests make the recording, the probes and the note fail on purpose and the exception is the same object.
2026-11-22 16:23:13 +01:00
feder-cr 9533a9a35c Merge the Glean test of generate mode (13049ab0): firefox-69 carries both properties in the registry of engine gates 2026-11-22 16:21:32 +01:00
feder-cr 8f2f9e992a Merge remote-tracking branch 'origin/main' into integ/candidate-69 2026-11-22 16:19:31 +01:00
feder-cr ce328d8888 ci: the rows counted again after main and the Glean test 2026-11-22 16:16:36 +01:00
feder-cr 53f32936f0 Merge commit '13049ab0' into tests/characterization-69 2026-11-22 16:14:25 +01:00
feder-cr 1696d04a6d Merge main (b28bffd7: the first batch of the fixes of the existing tests) into the characterization line 2026-11-22 16:14:25 +01:00
Federico Elia b28bffd7af Merge pull request #561 from oss-invisible/tests/install-wait-without-a-real-clock
tests: first batch of fixes for the intermittent e2e of main (the install wait, the goto-stopped setup, the moving page's goto model, a read's timeout)
2026-11-22 16:13:44 +01:00
feder-cr e5ebd87472 ci: the entries of the suite rows are sorted 2026-11-22 16:13:16 +01:00
feder-cr 19e4fcc3cb Merge the two e2e of the navigation hook (tests/a-navigation-that-moved-is-told-by-the-engine, d4ba9b50) into the integration for the candidates; the rows counted again 2026-11-22 16:12:27 +01:00
feder-cr 13049ab0c9 tests: generate mode does not start Glean on firefox-69, and does on 68 2026-11-22 16:12:26 +01:00
feder-cr 02a7ac2766 Merge the oracles of the page, the network and the host (PR #555, 2851d1d9) into the integration for the candidates 2026-11-22 16:10:23 +01:00
feder-cr a9542fb863 Merge the batch of the fixes of the existing tests (tests/install-wait-without-a-real-clock, fd7d8a64) into the integration for the candidates 2026-11-22 16:09:38 +01:00
feder-crandClaude Sonnet 5.5 8095253e06 ci: the unit rows' minimum follows the page oracle's job test and the poison control's tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 15:53:48 +01:00
feder-cr 704851f0e7 ci: the control's reference is a Playwright Firefox that reads the machine's scheme, and the Windows canary is installed machine-wide
Run 45026082150: stock Firefox read no dark scheme on either system and, on Windows, did not see the per-user canary.

* the scheme: Playwright's playwright.cfg sets pref("ui.systemUsesDarkTheme", 0) (line 157 of the cfg of the build we install), and
  widget/nsXPLookAndFeel.cpp GetIntValue reads a set pref before the system (NativeGetInt: GTK's theme, the HKCU
  AppsUseLightTheme value of Windows), so whatever the poison says the stock reads light. The control now launches a COPY of that
  Firefox whose cfg has no such line (the same build and prefs otherwise; refused if the cfg or the line is not there), and says
  what it took out in poison-control.json. The control was never headless: the engines of the oracle run on a hidden desktop (the
  core's _headless.py), headed, and only `-headless` would use the hardcoded light of widget/headless/HeadlessLookAndFeelGTK.cpp.
* the font: on Windows the canary goes to the Fonts folder of the system and under HKLM (the runner is an administrator); undo
  removes both.
* nothing is in trial now: dark and the Windows canary are required again.
2026-11-22 15:52:55 +01:00
feder-crandClaude Sonnet 5.5 c6ca3ebaf5 ci: the page oracle's A/A has jobs of its own on a pull request, Linux and Windows, and the shared jobs leave its file out
Run 45030727459: the shared Linux e2e job hit its 40 minutes with every test passed; the page oracle (5 seeds, the H7 relaunch and the ab. visits) took 38 of them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 15:52:51 +01:00
feder-cr fd7d8a64aa tests: a failed far-away gather says the control connection's times, the core's UDP measurement, the stalls of the process and the runner's load (+25 tests)
Both far-away gathers (the one with an rtt and the one after the page loaded) kept no record of where the time went when the core's UDP
measurement ends unmeasured. The watch now also starts, with the gateway's own record: a read of the control connections' times (connect,
greeting, authentication, ASSOCIATE asked and answered, and the longest wait inside the gateway for an answer); a handler on the core's
logger invisible_core._udp_exit at DEBUG, set and removed around the test, next to marks of the launch; a daemon thread that beats every
50 ms and keeps the gaps over 200 ms; and the runner's CPU and load every 0.5 s with psutil. They go in the saved evidence (cells.json,
stall-witness, runner-load, core-udp-exit-log) and as four short lines in the failure message (a note of the exception when the failure is
not an assertion). The second test now keeps evidence too. No budget, threshold or retry changes; every recorder takes one dict per record,
never raises into the test or a server, and a unit file makes each fail on purpose (clock, load source, log record, records list) and makes a
real stall of the whole process (a GIL-holding call) to see the witness catch it.
2026-11-22 15:30:30 +01:00
feder-cr b58e078035 tests: the journey's held keepalive fetch starts after load, not while the page is parsed (+5 tests)
Step 12 of the p4 journey asserts that an open keepalive fetch keeps networkidle from being reached. The search results started that fetch
during parsing, which races with the commit being told: the engine announces the request at once, the commit waits for the handshake, and
the client drops the request at the commit (the reference Juggler does the same). The page now starts it with afterLoad(0, ...), a task
after the load event, so the step tests the rule and not the race; the verdict and pages.json are unchanged. A unit test reads the served
page and forbids the held keepalive fetch outside an afterLoad callback.
2026-11-22 15:23:42 +01:00
feder-cr b1673988b4 tests: a lab guard reads the host interfaces once, not at each refusal
A gateway of the lab refused the browser's CONNECTs to the DoH the core
declares (162.159.61.4:443) 117 and 254 times in two single tests, 2296 in
one leg, and every refusal read the host interfaces again with psutil in the
pytest process that runs the core's UDP measurement.

LabGuard now reads the interfaces once, when it is made, and judges every
destination against that reading: a refusal is a synchronous list append.
The decision-time reading (and its read_errors path) is gone; the reason of
a refusal says the reading was made when the gateway was made.

test_a_guard_reads_the_interfaces_once_however_many_destinations_it_refuses
counts the readings of a fake psutil: 1 for 40 refusals and 3 decisions
(44 on the old code).
2026-11-22 15:22:04 +01:00
feder-cr 06e49f0b4d ci: the Windows e2e jobs keep TEMP and TMP on D:, as on tests/characterization-69 (766961dc, the same lines)
The Firefox profiles land in TEMP. On C: the four browsers of a part saturate the runner's disk and the parent's main thread stops for
seconds: A/B of the engine series, run 44780607530 (profiles on C:, 5 stalls) against run 44780612863 (TEMP on D:, none). Seen again on
this branch, run 45028125122, Windows part 3, test_fakeweb_p4_e2e step 1: the lab answered "/" at 1137.21 and the engine committed at
1144.78; no request reached the lab from 1137.21 to 1146.94 and from 1147.12 to 1156.22, while the 7 requests reported in flight had all
been answered and closed by 1147.12.
2026-11-22 14:57:51 +01:00
feder-cr ef0d836c28 tests: the storage test of the second page saves the frames, the wire and the evaluate's context when it fails (+15 tests)
The B frame of the second page raised "Execution context was destroyed" at window.__r once on Windows. Nothing here changes an assertion, a wait or
a deadline: the module arms FailureEvidence before the browser launches (Juggler wire, the engine's trace), and a failing test saves the client's
framenavigated, frameattached and framedetached of both pages with url and name, the times at which wait_frame returned and the evaluate was
called, page.frames at the failure, and a reading of the wire that joins the evaluate's context id with its frame, url and answer.
Every recording runs in one guard and takes its data under a single field, so none can raise into the test or collide with a field of the data.
2026-11-22 14:51:30 +01:00
feder-cr 2851d1d934 ci: the unit rows' minimum follows the A/B oracle's poison and realm tests 2026-11-22 14:45:11 +01:00
feder-cr 9c70b5abf7 ci: the control's scheme and Windows canary are in trial, measured and told but not required
Run 45026082150: the page A/A was zero on both systems, and the negative control read, for stock Firefox, no dark scheme on either
system and, on Windows, did not see the per-user canary font. Until a run shows that stock reads them they are IN_TRIAL: still
measured, printed, written to poison-control.json (in_trial) and to the job summary, never silently, but they do not make the control
broken. Everything else stays required: language, zone, formats, the canary and fonts.conf on Linux, the audio sink.
2026-11-22 14:44:45 +01:00
feder-cr aaebd7384f ci: the poison's verify reads what the system reports, the control follows the system scheme and a canary measures its own width, and the ab leaves leave out the launch's own noise
Run 45024276134 (page oracle A/A on the poisoned host), the harness defects:

* Windows: Set-WinUserLanguageList keeps the tag 'ja' for ja-JP, and verify wanted 'ja-JP'. The apply now records what the OS reports
  (culture, language list, zone, theme); verify holds the machine to that record and, separately, to the semantic check that culture
  and first language are Japanese, so it stays red when the poison is not in force and does not depend on the form of the tag. A
  failed apply also tells the later steps where its state is, so the undo runs.
* the negative control used Playwright's default context, which emulates a light scheme: it follows the system now (no-override),
  and requires that stock reads a Japanese format.
* the canary was 'present' when it measured differently from a generic family, which on Linux are the canary itself (the user's
  fonts.conf): it is present when a text measures its own width (216 px).
* the ab visit's canvas and OffscreenCanvas PNGs carry the launch's own deBG chunk (the host gate's noise.png_deBG), and the iframe
  origin carried the site's random port: the PNGs are hashed without that chunk (and the pixels are hashed too) and the port is
  not recorded.
2026-11-22 14:44:40 +01:00
feder-cr 2d0660c85d ci: the Linux poison also sets the user's fontconfig, and the poisoned run keeps what the published engine reads from the host
* ~/.config/fontconfig/fonts.conf makes the canary the first choice of sans-serif, serif and monospace and sets antialias off, full
  hinting, rgb subpixels and the light LCD filter; undo restores the file that was there or removes the one the poison wrote. The
  page probe measures the three generic families; the negative control requires stock Firefox to pick the canary for all of them on
  Linux, and an engine that does is a finding.
* the published engine is dumped on the clean runner before the poison (ci_ab_oracle.py clean); the oracle's own run is the poisoned
  dump of the same seeds, and every leaf that differs is written to poison-host-dependence-68.json and to the job summary: a host
  dependency the published engine already has, a finding and never a verdict.
2026-11-22 14:44:37 +01:00
feder-cr 91b576aed2 ci: the page A/B oracle reads a poisoned host and every realm a page can make, and holds both to the declared identity
The comparison of two engines on one machine lets through a value both read from it. The page oracle's leg now runs on a machine given
values the engine must never read, and the dumps are held to what the persona declares:

* scripts/ci_poison_host.py: apply, verify and undo per system. Windows: the zone of Lima (tzutil), the ja-JP culture and user language
  list, the dark scheme (HKCU AppsUseLightTheme and SystemUsesLightTheme), a per-user canary font. Linux: TZ, LANG, GTK_THEME, a
  user-installed canary font, and a null PulseAudio sink at 96000 Hz with 6 channels as the default. The canary is generated, byte for
  byte the same every time (no third-party font). Every PowerShell forces the invariant culture first, and the state it keeps is text
  read before any change. `control` is the negative control: Playwright's own Firefox on the same runner must read the offsets of Lima,
  the dark scheme, the canary's width and, on Linux, the 96000 Hz sink, or it is a broken control. The dumps' findings are the host's
  values against what the identity declares (the core's prefs of the seed and the retail reference).
* host_gate_page.html: the ab.poison probe (one block between two markers, which the control evaluates too).
* scripts/host_gate/ab and ci_host_gate.py: an extra visit of seeds 0 and 63 in a launch of ja-JP and in a context of de-DE and
  America/Lima: the top window, a cross-site iframe, a srcdoc iframe, a worker, a shared worker, a service worker answering a
  navigation, an audio worklet, OffscreenCanvas, canvas and WebGL hashes in each, window.open with and without features, the
  Accept-Language the server saw per kind of request, and a re-read after back/forward. Leaves are under ab. (skipped by the retail
  comparison like diag., compared by the A/B). Seed 63 is the control of seed 0: it must differ on at least AB_CONTROL_MIN leaves.
* the page oracle's test checks that the ab visit read, that the control held, and on a poisoned host that the poison is in force,
  that stock Firefox read it and that neither engine did.
2026-11-22 14:44:18 +01:00
feder-cr d4ba9b5046 tests: the registry of engine gates knows the firefox-69 test of a moved navigation; the e2e file is LF 2026-11-22 14:41:05 +01:00
feder-cr 6ff74cd2a0 ci: the unit rows' minimum follows the page oracle's final shards 2026-11-22 14:36:57 +01:00
feder-cr f21523aba7 ci: the page oracle visits seed 0 twice on one profile (second launch under relaunch.), the final seeds have an A/A in four shards on their own jobs, and the e2e guard is sized from the shard
The dump launches seed 0 a second time on a profile folder a first launch used, in the wrapper's persistent context, and keeps that launch's items under the relaunch. prefix of the visit: the retail comparison never reads them, the A/A and the A/B hold them to equality, count them apart from the visit's floor, and are red when a side lacks them. The e2e reads AB_ORACLE_SEED_SET and AB_ORACLE_SHARD and sizes its hang guard from the seeds of its shard, the engine runs and the extra launches. e2e.yml has a touched step and two jobs (Linux and Windows) of four shards each for the A/A of the final set, run only when a pull request changes a file of the page oracle.
2026-11-22 14:35:59 +01:00
feder-cr 3fa1232011 ci: the cap of rare system modules does not count a resource file with its library or a catalog under catroot, and says so
Run 45024863785: the host A/A of Windows was red for 21 rare modules in the measured launches of run A, 6 catalogs under catroot and 15 resource files, no library.
- A .mui does not count when its library (the same name without .mui, one folder up from the language folder) is among the modules seen in that run, in any launch: the
  library carries the count. An orphan .mui counts.
- A .cat under catroot does not count (Windows signature verification, not a module the engine chooses).
- Libraries and every other file keep the cap (5; 30 in the long layer), which is not raised.
- The report always prints the numbers: counted, .mui excused, .cat excused, orphans. In the A/B the .mui and .cat the 68 and the candidate opened are listed, and a new
  library shows through the library itself.
2026-11-22 14:33:05 +01:00
feder-cr 3b094de0a7 ci: the unit rows count the p2 history tests 2026-11-22 14:31:34 +01:00
feder-cr fe8b648f2a tests: the download test keeps LF line endings 2026-11-22 14:27:57 +01:00
feder-cr 86c2066571 tests: the download left to Firefox keeps the network and JS download logs, and its evidence from about 10 s
(cherry picked from commit 10c552698fe0a53b4ef7f1aaa86e94bfbcfdddbd)
2026-11-22 14:27:35 +01:00
feder-cr 8044dc0cb5 test(fakeweb p2): a round that does not idle keeps the whole in-flight list, what the lifecycle held open at the expiry, and each open request's history on the Juggler wire (+4 unit tests)
(cherry picked from commit c7b8c4533e)
2026-11-22 14:26:58 +01:00
feder-cr 36cba6a41a tests: a navigation the engine moved to another process is told by the engine (firefox-69), and one that stayed is not 2026-11-22 14:24:26 +01:00
feder-cr d922dffc86 tests: the far-away gather's watch records through one guard and never raises into the gateway (+7 tests)
The record of a datagram carried the keyword 'source' twice, which raised in the gateway's own inbound thread, so no datagram was relayed.
Every recording of every wrapper now runs in _Watch.safely, after the original call, with the journal field renamed origin. A unit file
drives a real gateway (UDP ASSOCIATE and a relayed datagram), also with each recording made to raise.
2026-11-22 14:23:31 +01:00
feder-cr a84cb8d95f Merge remote-tracking branch 'origin/char69/cores' into tests/characterization-69 2026-11-22 14:17:21 +01:00
feder-cr 52b2fa1344 tests: the occlusion test records, in both halves, whether the order without topmost is kept and who has the foreground
Before the topmost arrangement each half now does the plain one: the covered
window is inserted right after the cover, with no topmost. It then waits for
the answer the half waits for anyway (hidden with tracking, two frames
without) and records, as evidence and never as a verdict, the calls' answers,
the Z-order from GW_HWNDFIRST down to the covered window, and the foreground
window with its pid and process. It also records whether that pid is one of
the two sessions' engines (the owners of the two windows). FailureEvidence
saves the record under $RUNNER_TEMP/invpw-evidence/test_window_occlusion/ on
every run, green or red. Every message carries, per half, "order without
topmost: kept / not kept, foreground: pid X (engine yes/no)". The topmost
arrangement, the precondition read once and the assertions are unchanged.
2026-11-22 14:11:06 +01:00
feder-cr 8f6995c45b tests: the occlusion test makes the covering window topmost and records the arrangement it reads back
In e2e run 45022307128 (windows, part 4) the control half passed, and the
product half was red at the precondition: SetWindowPos returned success and
the covered window took the requested rectangle, yet the covering window was
not above it. The plain insert-after was never kept for that half (the state
read the same for 30 s). The test did not record the Z-order or the
foreground's process, so it cannot tell a request the system did not keep
from a covered window raised back.

The covering window is now made HWND_TOPMOST (the system keeps it above every
non-topmost window, whoever has the foreground), and then the covered window
moves inside it with SWP_NOZORDER | SWP_NOACTIVATE; that move, last, is the
tracker's signal. The precondition is read back once, right after. Every red
carries both calls' return values and GetLastError, the Z-order from the top
down to the covered window (process, class, topmost), and the foreground
window with its process, read right after the arrangement and again after
the page answered. The assertions are unchanged.
2026-11-22 14:01:08 +01:00
feder-cr 866436f822 tests: the core of any crash is read by gdb after the test that fails (temporary)
The -11 at the exit of the security state's generate (runs 44985244053, 45014369018) left no core: a release build crashes in silence, and only a core
tells a wanted crash (gMozCrashReason) from a bad access. tests/_crash_cores.py, TEMPORARY:

* tests/conftest.py raises the soft RLIMIT_CORE of the pytest session to its hard limit once, at pytest_configure, on Linux: every engine a test starts
  inherits it, the core's own launches included;
* a pytest_runtest_makereport wrapper, after every phase that fails, has gdb read every core* in $INVPW_CORE_DIR (all threads' backtraces and names,
  the signal's address, gMozCrashReason, registers, shared libraries with build ids, mappings; the executable from the core's header, else
  INVPW_BINARY_PATH) into $RUNNER_TEMP/invpw-evidence/cores/<test>/ and deletes the core; the cores left after a passing test are deleted and listed in
  cores/after-passing-tests.txt.

tests/_generation_evidence.py keeps only stdout, stderr and the profile's files of the core's launch: its core-limit raising and its own gdb call are
gone, and the direct launch of tests/test_security_state_engine_e2e.py no longer lifts its limit. The proof with a fake engine that dies by SIGSEGV
through the core's real generate now asserts gdb's text with a backtrace on Linux (where a core lands and gdb exists) and the Linux-only note on
Windows; tests/test_the_core_of_a_crash_is_read_by_gdb_after_a_failed_test.py drives the conftest hook with a fake core and a fake gdb on every
system. Unit rows: +4 each (2301 Linux, 2302 Windows).
2026-11-22 13:48:52 +01:00
feder-cr dd1fa5324e tests: the two-connections loopback test also keeps the statistics of both connections, the browser's stdout and who holds UDP 5353 when it fails
The page records the time after each of the four descriptions and, when the wait is over (or an await throws), the getStats of BOTH connections: every local and remote candidate and every candidate pair with its checks sent and answered. The connections are closed in the page whatever happened. The launch's stdout (the engine's timecards) is copied to engine-stdout.log by wrapping the stream the core hands to its own reader, in the test process; MOZ_LOG becomes timestamp,sync,mdns_service::*:3,mtransport:5,signaling:1 (the timecard exists only while signaling is enabled). When a run is not right, the machine's holders of UDP 5353 are written while the browser is still up (Get-NetUDPEndpoint and Get-Process on Windows, ss on Linux). No assertion, wait or deadline changes.
2026-11-22 13:47:22 +01:00
feder-cr 8a57737969 tests: the popup's recorder binds the error text before the lambda that writes it (F821) 2026-11-22 13:22:54 +01:00
feder-cr 10d15eee00 ci: the unit rows name the files of the merged fixes, counted again 2026-11-22 13:19:47 +01:00
feder-cr 5f64171b68 Merge commit '6f0a3af9' into tests/characterization-69 2026-11-22 13:17:20 +01:00
feder-cr ebcf4ab793 Merge the evidence of a failed security-state generation into the characterization line 2026-11-22 13:17:19 +01:00
feder-cr 06f0de8a7f Merge remote-tracking branch 'origin/char69/ownaddr' into tests/characterization-69 2026-11-22 13:17:10 +01:00
feder-cr 3571ea427e Merge the first batch of the fixes of the existing tests (PR #561, d76ecfbf) into the characterization line 2026-11-22 13:17:09 +01:00
feder-cr 72c7e6acf6 tests: the far-away gateway gather saves, when it fails, where the page's STUN request went
Evidence only (webrtc-far-away-<ice row>-<rtt>): the gateway's control connections and datagrams with their times and addresses,
the page's candidates, ICE errors and gathering states, the timings, the Juggler wire and the addresses of the runner.
Assertions, waits and deadlines are unchanged.
2026-11-22 13:12:02 +01:00
feder-cr 78670896b9 tests: the core's own generation of the security state keeps its evidence when it fails (temporary)
In run 45014369018 the -11 came from the CORE's generate, which _ready calls once per module and whose outcome three tests share; the test's own
launch had exited 0, so its save path never ran, and the core's launch writes stdout and stderr to the null device, deletes its work profile before
it raises and keeps the test process's core limit of 0. tests/_generation_evidence.py wraps the core's launch while _ready runs it: stdout and
stderr to files, the soft core limit raised to the hard one (Linux), the profile's files noted at the engine's exit, and on GenerationError all of
it saved in $RUNNER_TEMP/invpw-evidence/security-state-generate-core with gdb's backtrace where a core lands. The direct launch lifts its limit the
same way (preexec_fn, no sh wrapper). A unit test proves it with a fake engine that dies by SIGSEGV through the core's real generate.
2026-11-22 13:08:58 +01:00
feder-cr e461d9d763 test(h3 lab): the residual case of the QUIC-first order is measured: a client that starts a QUIC handshake and vanishes holds the TCP of its IP until the QUIC idle timeout (+1 unit test) 2026-11-22 13:07:46 +01:00
feder-cr 365df5d90f test(read after goto): the test saves, when it fails, the client's view of every request and navigation, the Juggler wire, the engine's trace and the server's record of the requests it served 2026-11-22 13:06:26 +01:00
feder-cr aa078c0ff9 test(popup): the server-side recorder passes every call through unchanged and a recording error never reaches the server 2026-11-22 13:06:00 +01:00
feder-cr 2ab0b97072 test(popup): the 25 s popup saves, when it fails, the engine's wire and trace, what the server sent to the client and did with the target, what the client heard and the destination's record 2026-11-22 13:05:59 +01:00
feder-cr 5e70b513ce tests: the two-connections loopback test keeps what the lab heard on the mDNS group, packet by packet, when it fails
A passive listener (tests/_mdns_listener.py) joins 224.0.0.251:5353 on 127.0.0.1, the interface the engine's responder joins, before each launch and records every packet with its time, source, query or response, names and addresses. It never sends or answers, shares the port with the engine's socket and never raises. No assertion, wait or deadline changes.
2026-11-22 13:05:59 +01:00
feder-cr c0683e010b tests: the two-connections loopback test keeps the mDNS and mtransport logs and the page's ICE timeline when it fails
On failure the test saves the engine's own log of the failing launch (mdns_service and mtransport, MOZ_LOG_FILE in the evidence folder), the timings and the page's timeline of every launch up to it: each icecandidate of both connections, every ice and connection state change, when each addIceCandidate was called and settled. No assertion, wait or deadline changes.
2026-11-22 13:05:59 +01:00
feder-cr 525832571f tests: the no-proxy HTTP/3 test keeps the engine's HTTP log, the lab server's record and the visit timings when it fails
On failure the test saves the engine's own log of the launch (nsHttp and the neqo_glue, neqo_http3 and neqo_transport modules, MOZ_LOG_FILE in the evidence folder), the lab server's record of every TCP and QUIC connection (start, handshake, each request with its path, close and reason) and the url, protocol, goto time and read time of each visit. No assertion, wait or deadline changes.
2026-11-22 13:05:55 +01:00
feder-cr 6f0a3af9fd tests: the focus test gives the X input focus itself, as the window manager the private Xvfb lacks
On the private Xvfb no window manager runs, so nobody calls XSetInputFocus: the
focus stays PointerRoot and GDK activates the toplevel under the pointer
(has_pointer_focus when no _NET_SUPPORTING_WM_CHECK), while Firefox presents a
window (gtk_window_present_with_time, XSetInputFocus without a WM) only when it
is not active already. XGetInputFocus therefore read PointerRoot for the whole
wait although the first page had the focus.

The test now does the window manager's part on Linux: it finds the window the
step names by its _NET_WM_NAME and gives it the X input focus (the first
session's, the second session's, and the session's own new window as a focus
on map), then reads the focus back before judging; on Windows the same steps
ask for the foreground as before. X errors no longer end the process.
2026-11-22 12:57:09 +01:00
feder-cr e68597cdb8 ci: the unit file of the lab server's QUIC-first order is in the rows of the whole unit suite (+5 tests) 2026-11-22 12:54:59 +01:00
feder-cr 59186492f3 test(h3 lab): LF line endings for the new test file, as the rest of the repository 2026-11-22 12:54:43 +01:00
feder-cr 9ef9ae651c test(h3 lab): the TLS of a TCP connection waits for the QUIC handshake in progress of the same client, as a real network orders them (QUIC 1 RTT, TCP+TLS 2) 2026-11-22 12:54:27 +01:00
feder-cr 13ecefb579 test(h3 lab): the QUIC connection of a client is ready before its TCP+TLS one while its QUIC handshake is in progress (red on the current server) 2026-11-22 12:53:30 +01:00
feder-cr 93239a1a10 tests: the save-on-failure helper of the e2e (tests/_evidence_on_failure.py as on tests/characterization-69 bc6d861f, unchanged), for the journey's evidence 2026-11-22 12:50:09 +01:00
feder-cr 42c344a180 test(fakeweb): a failure of the journey's request log is never the client's 2026-11-22 12:49:55 +01:00
feder-cr 261883cfd5 test(fakeweb): the journey saves, when it fails, the site's record of each request, the client's log of every request event per step and each step's in-flight list 2026-11-22 12:49:55 +01:00
feder-cr 652d7ead39 tests: a gateway says why it refused and which interfaces of this host it read; an unreadable list raises
Every refusal of LabGuard now carries its reason: the lab's rule (a name that is not localhost; an address that is not loopback, not a
documentation range and not one of the N addresses of this host read at the decision) or the narrower rule of the gateway (the DoH gateway
carries only loopback; the IPv6 literal gateway only its listener). The record also says, once per gateway, the interfaces of this host as
read when the gateway was made (by interface name) and how they were read (psutil.net_if_addrs, its version, the normalisation).

The reading never fails silently any more: _own_addresses returned an empty set on any exception (psutil raising or not importing, _witness
not importing), which made every address of this host "not the lab's" without a word. _witness.read_host_interfaces raises
HostInterfacesUnreadable (also for an entry that is not an address and for a list with no address at all); the guard raises when it is made,
a failure at a decision refuses with that reason and raises at the close; the witness keeps an arrival it cannot judge as the host's and
raises when read.

The refusals of 10.1.0.52 in run 45014369018 (Windows part 2) were the DoH gateway's own rule in
test_nothing_of_a_context_leaves_but_through_its_proxy_e2e (the witness stands at the runner's address and no proxy may forward to it),
which the record did not say. Nine unit tests, red on the old helpers; registry: unit.all 2269 (Linux), 2270 (Windows).
2026-11-22 12:42:37 +01:00
feder-cr d76ecfbfbb Version 0.58.1: a read that runs out of time says Playwright's timeout (no tag: the release is decided with firefox-69) 2026-11-22 12:11:29 +01:00
feder-cr fc3622345f ci: the unit rows hold the model of a moving page's goto and the read whose probe ran out (24 tests more) 2026-11-22 11:49:22 +01:00
feder-cr c208d2f895 A read's probe running out of time is the read's timeout, not a second look at the clock 2026-11-22 11:49:05 +01:00
feder-cr a57ea6d34a tests: a read whose probe ran out of time is the caller's timeout, whatever the clock says 2026-11-22 11:49:05 +01:00
feder-cr bdb5a84508 tests: after a goto of a moving page raises the frame may go with either page; each test of the moving pages has its own page 2026-11-22 11:49:05 +01:00
feder-cr d8179ab1e0 tests: the model of where the frame goes after a goto of a moving page raises, on a fake page (red on the model that picks one page) 2026-11-22 11:49:05 +01:00
feder-cr 84ce385ef5 tests: the goto-stopped test says in one line why a page is not reused 2026-11-22 11:41:25 +01:00
feder-cr 4cc4b8e7c8 tests: each iteration of the goto-and-every-way-it-is-stopped test runs on its own page, so a refresh the engine replays late cannot fall on the next iteration's setup goto 2026-11-22 11:41:25 +01:00
feder-cr bc6d861f62 tests: the download left to Firefox keeps its evidence when slow, the shutdown ping is judged on the core's own grace
- test_a_context_without_download_options_is_left_to_firefox: the download reputation prefs are no longer switched off (a slow save is the product's); the seconds from the click to the file stay a junit property, and a save slower than 40 s (judged after the fact, never a verdict) keeps in invpw-evidence/download-left-to-firefox the test server's record, the client's requests, the Juggler wire and trace, and a MOZ_LOG of the download machinery
- _evidence_on_failure: keep(why) saves what the helper holds though the test passed; arm(moz_log=...) and note_records(...)
- test_the_shutdown_ping...: no patch of SENDER_GRACE nor of the session's safety net; the ping must be on the endpoint when the session has ended, within the core's 10 s grace
2026-11-22 11:38:07 +01:00
feder-cr 8f8a191e9b ci: the unit rows count the new test of the Marionette helpers 2026-11-22 11:17:51 +01:00
feder-cr eca6652f56 Merge remote-tracking branch 'origin/char69/movesonevidence' into tests/characterization-69 2026-11-22 11:16:41 +01:00
feder-cr fbae6d54a4 Merge remote-tracking branch 'origin/char69/misc' into tests/characterization-69 2026-11-22 11:16:41 +01:00
feder-cr 836e16724e Merge commit 'eb203fc5' into tests/characterization-69 2026-11-22 11:16:40 +01:00
feder-cr 2ca4fa8084 Merge remote-tracking branch 'origin/char69/windowdet' into tests/characterization-69 2026-11-22 11:16:30 +01:00
feder-cr 8dc5c3745a Merge remote-tracking branch 'origin/char69/pids' into tests/characterization-69 2026-11-22 11:16:30 +01:00
feder-cr 759bc060b0 tests: the crash-file collector and the closed-tab wait are proved on the losing interleaving, built on purpose
- The watcher test depended on a thread and on when the file was written: it could see the name before the content and delete the profile before the next look. The
  collector now has scan_once (the thread's look, and stop's last one); the tests drive it: the file is placed empty, then half written, then complete, and a file seen
  empty is read again when its size changes. Red when a file is read once, green on the size re-read.
- The network walk test made the beacons arrive from a thread after real sleeps and asserted a wall-clock bound: the beacons now reach the site one at each look of the
  walk's own wait (the losing interleaving: the walk is already waiting), and "no wait" is no look at all. Red without the wait, green with it.
- The geo lab test's request has a hang guard of 60 s, not 5.
2026-11-22 10:51:45 +01:00
feder-cr 364175411e ci: the unit rows count the install wait's busy-machine case (one test more) 2026-11-22 10:43:07 +01:00
feder-cr 87bd845ac0 tests: the install wait runs on a fake clock, so its rounds do not depend on the load of the machine 2026-11-22 10:40:21 +01:00
feder-cr 7f25429b4f tests: a busy machine cuts the install wait's rounds short (red: the wait reads the real clock) 2026-11-22 10:38:53 +01:00
feder-cr ce65951227 tests: the type a process was given is read for the process instance, not for the pid alone
remote_types read the engine's child logs in the order of their names (child-10 before child-2) and kept the last
type per pid, so a pid reused by a later content process could be read as the site of the ended one and the waits
for "no process of the site is left" never became true. The lines are now stamped with the time MOZ_LOG logs, ordered
by it (then by child number as a number), and a process takes only the types logged at or after its own creation time.
Unit tests with fake logs: reused pid, child-10 against child-2.
2026-11-22 10:36:04 +01:00
feder-cr 766961dcdb tests: steady e2e of the characterization round (download without options, shutdown ping, dom iterables, windows TEMP)
- test_a_context_without_download_options_is_left_to_firefox: Firefox's own save no longer runs the download reputation check; the time until the file landed is recorded (not judged)
- test_the_shutdown_ping...: the sender is given 120 s (_profile.SENDER_GRACE) and the session's safety net follows, so the verdict waits for it to end by itself
- test_dom_iterables_from_evaluate_e2e: one browser per case
- e2e.yml: TEMP and TMP on D:\a\_temp in the Windows jobs, as the engine series' gate
2026-11-22 10:19:58 +01:00
feder-cr eb203fc58c tests: the Marionette port is the one the browser got, and the language worker test waits on each content process
- the browsers of the e2e tests are launched with marionette.port 0 and the port is read from <profile>/MarionetteActivePort
  (webfont_probe.marionette_active_port): no port is freed for a browser to take, so a neighbour cannot bind it first
- the worker with its own language is read after a process script has read intl.accept_languages in the content process of each tab
- the script cache test keeps the file size of the sample that matched
2026-11-22 10:17:18 +01:00
feder-cr 3f4ee5c61e tests: the focus and fullscreen window tests judge after the event, not after a pause
The focus test is wall_clock (it runs alone, after the parallel tests), its two
sessions share a private Xvfb on Linux, and before judging it reads from the OS
that the focus is where the step says (X input focus, GetForegroundWindow on
Windows); "no blur" is judged after that and a round trip to the page's process
instead of a two-frame pause.

The fullscreen test waits for the condition itself with the engine on (declared
size, display-mode fullscreen, fullscreenElement) and for fullscreenchange and
the following resize with it off; on Windows it reads the monitor first and
declares a size that is not the monitor's.
2026-11-22 10:17:09 +01:00
feder-cr d358b5f2e5 ci: the long launches are a layer of the host oracle's system-module class
A/B: a module the candidate's idle or bare launch opened is red only if no launch of either 68 run opened it (the measured seeds, the warm-ups and the long launches).
A/A: the modules only one run has are counted in two layers, the measured launches (cap 5) and what only a long launch of the run opened (cap 30), each printed with
its count; a module the other run has in any launch is not rare. Paths outside the class stay as they were.
2026-11-22 09:27:14 +01:00
feder-cr 5d0be75316 tests: the occlusion test puts the covering in place on Windows and checks it as the tracker reads it
WinWindowOcclusionTracker marks a window OCCLUDED only when the windows above
it in the Z-order cover its rectangle, the second session's window lands above
the first only if the system lets its process take the foreground, and a move
of another process's window is heard only once that process was seen with a
visible window. Opening the second window left all three to the runner: red in
one Windows run, green in two. On Windows the test now moves the first window
right under the second, inside its rectangle (a maximized window counts as its
work area), with SWP_NOACTIVATE; that move is the tracker's own signal. Before
waiting it checks the cover is visible, uncloaked, opaque, not a popup, above
the first window and containing it, and a red names what did not hold.
2026-11-22 09:25:11 +01:00
feder-cr 0f265fedd9 ci: the host oracle's Windows system modules are red only when the candidate alone opens one, and the preloaded newtab is absent or present
- System modules (System32, SysWOW64, WinSxS; the catalogs are under System32\catroot): loaded by the Windows loader on behalf of system DLLs, no page reads them. A set
  per path over the launches that are compared (the seeds and the warm-up). A/B: red only a module the candidate opened that no launch of either run of the 68 opened; a
  module the candidate lacks is printed, not red. A/A: a module only one run has is rare, printed with its count; red when a run has more than 5. The idle and the bare
  launch are not in the class (run 44993377458: 19 of the 21 modules only run A had were theirs). Everything else stays strict, the shortcut inventory is its own rule.
- Privileged Cont (the preloaded about:newtab, NewTabPagePreloading.sys.mjs:96, browser.newtab.preload firefox.js:1952): absent or present per launch, more than one is red;
  it depends on the idle time after startup.
2026-11-22 09:24:32 +01:00
feder-cr 410ef27100 ci: the unit rows' minimum follows the network and host oracles' new tests 2026-11-22 09:16:34 +01:00
feder-cr 91e5aa43f0 ci: the host oracle's idle launch holds no rule on the pings, and the Windows system modules are a set over the seeds
Run 44993377458:
- The data-policy notification is never recorded because it is never needed: the core declares the terms of use accepted (invisible_core prefs.py termsofuse.accepted*,
  browser.preonboarding.enabled false), so canUpload() is true from the start (TelemetryReportingPolicy.sys.mjs:839; _delayedSetup :1156 returns before _userNotified
  :988). The idle launch no longer requires the notification or any number of pingsenders (Linux started 1, new-profile; Windows 0): evidence until proven. A separate
  pingsender[.exe] there stays red. The {0, 3} rule of the short launches stays: Linux 3 in all 12 and Windows 0 in all 12.
- Windows system modules (a path under c:\windows) are compared as a set over the union of the measured seeds of a side: a module that is in a seed of each side is
  the same module; one that only one side has in any seed is still red (2 of the 4 differences of the run remain: wevtapi.dll in one tab process, the resource file of
  twinapi.appcore.dll in one parent).
2026-11-22 09:15:47 +01:00
feder-cr 303817c9ef ci: the attribution of datagrams is the set of kinds per destination over the transcript; unattributed ones are counted and printed, not compared 2026-11-22 09:13:06 +01:00
feder-cr dbd2022e34 tests/test_a_page_that_moves_on_e2e.py: a failing read-after-goto round leaves the client log, Juggler wire, engine trace and server record 2026-11-22 07:23:08 +01:00
feder-cr 3c0ef88d88 tests: the bare launch and shortcut cases use lab paths; the unit rows' minimum follows 2026-11-22 07:19:45 +01:00
feder-cr 39fd73116a ci: the host oracle lists what the idle launch left in the places of the shortcut code
On Windows the idle launch of each engine run is bracketed by two snapshots of the places the shortcut code reads and writes: the Start menu of the user and of
ProgramData (Programs below them), the Desktop of the user and the Public one, the pinned taskbar shortcuts and ImplicitAppShortcuts, and every Mozilla-* folder of
ProgramData (the shortcuts log is there). The files that are new, changed or gone (name, size, mtime) are kept in the footprint and summarized in one line of the report
(SHORTCUTS ...): the direct proof of whether the engine leaves a shortcut or a log on the host. Evidence, not compared. The Create disposition stays.
2026-11-22 07:18:52 +01:00
feder-cr b825a5542b ci: the host oracle keeps the old idle launch as a bare case that records how a browser ended, and lists what the tree asked the system to make
The idle launch of run 44988820319 (no client, no page) ran a crash reporter on both systems. It was not a crash: the process is `crashreporter --ping-cleanup`
(CrashManager.in.sys.mjs cleanupPings, started by runMaintenanceTasks 57 s after the launch, AGGREGATE_STARTUP_DELAY_MS), the parent and the reporter ended with exit 0,
and the reporter ran 2 s (send_ping.rs cleanup_main sleeps 2 s). The idle launch now has a page, and the old one stays as a case of its own, never compared:

- bare launch: no client, no page, the same wait; records the exit code or signal of its parents, every crashreporter or minidump-analyzer process with its command
  line, the `.dmp` names and `.extra` contents found in the profile's minidumps and the Crash Reports/pending folders (a watcher reads them while the launch lives, the
  profile is deleted when it ends), and on Linux core dumps in the launch's folder (ulimit -c unlimited) with `gdb -batch -ex bt` and the kernel's core pattern;
- Windows: the footprint lists the host paths a process of the tree asked the system to make (the Create event's disposition: create, open-or-create, overwrite,
  supersede), the evidence of a file written and not only looked for.
2026-11-22 07:18:51 +01:00
feder-cr ac5a519244 tests: every proxy of the tests that could forward outside the lab carries only the lab's destinations
The base Gateway of _socks_servers (CONNECT relay and UDP relay, tcp_from_exit included), Socks5TcpOnly
and the SOCKS5 server of test_proxy_socks_auth_e2e refuse and record any destination that is not the
lab's (loopback, the documentation ranges, the addresses of this host's interfaces, localhost): a
CONNECT is answered with reply 2, a datagram is dropped, and the refusal is written down (time since the
gateway started, address type, destination as received, port, protocol) under
$RUNNER_TEMP/invpw-evidence/<gateway>/, always, when the gateway is closed. forward_only_to only narrows.
The gateway of test_ipv6_literal_connect_e2e reuses the base behaviour and keeps its evidence.
New unit test with known-bad inputs; the two unit rows of the registry name it.
2026-11-22 07:12:32 +01:00
feder-cr f585ea8ccb tests: the host oracle's public-class cases use the public resolvers the gates allow 2026-11-22 07:09:59 +01:00
feder-cr 18f4b716fe tests: the inventory list uses lab paths 2026-11-22 07:09:13 +01:00
feder-cr fb5125b78c tests: the host oracle's stray-path case uses a lab path 2026-11-22 07:08:46 +01:00
feder-cr 6b07f2c1d7 tests: the inventory case's synthetic paths are on a lab drive 2026-11-22 07:08:31 +01:00
feder-cr 0181b29eb8 ci: the unit rows' minimum follows the host oracle's class tests 2026-11-22 07:07:19 +01:00
feder-cr 702aee3930 ci: the host oracle compares a public destination as its class, the shortcut inventory as absent or complete, and what a pingsender spawns with the pingsenders
From the A/A of run 44988820319 (the host oracle, both systems):
- Linux: the parent's direct connects differed only by address (DNS rotation: 140.82.112-114.x:443, 185.199.108-110.133:443, 151.101.x.91:80). A public destination
  is compared as its class, the kind, the verb, the transport and the port; the number of distinct addresses of a class is tolerated, the reason written once
  (NET_CLASS_REASON). No name is made up from an address.
- Windows: in one launch the parent ran the shortcut inventory (the Start menu, Public\Desktop, Quick Launch\User Pinned\TaskBar, the shortcuts log of ProgramData, the
  shell libraries loaded for it): StartupOSIntegration.sys.mjs onStartupIdle -> ensurePrivateBrowsingShortcutExists (hasPinnableShortcut) and CustomIconManager
  enumerateInstallShortcuts, Mozilla code at startup idle. Its paths (the parent's first opens from the first to the last open of a path of the places it walks, by the
  order of the system's log) are absent or, on both sides, the same set.
- Windows: four socket processes in one launch were the parent's and one of each of the three pingsenders (a background task is a Firefox of its own): what a
  pingsender spawns is named `<kind><-pingsender` and comes and goes with the pingsenders; it is compared when they are on both sides.
- A creator pid that Windows reused before the launch is not in the tree (a pingsender of an earlier launch counted in the lifecycle).
- The idle launch opens a page: with no window the notification of the data policy was not recorded in 120 s on either system and the launch had a crash reporter.
2026-11-22 07:06:49 +01:00
feder-cr 37267260a3 ci: the unit rows' minimum follows the network oracle's launch-stage tests 2026-11-22 07:00:06 +01:00
feder-cr f5d2ec81f9 Merge remote-tracking branch 'origin/char69/network' into tests/characterization-69 2026-11-22 06:41:14 +01:00
feder-cr 6d1bd1047b ci: the whole-e2e suite holds the characterization tests, the adapted Windows tests leave the exclusions, a third Linux row
The 35 new e2e files of the characterization branch are in one row of each system (balanced on the junits of runs 44942540063 and 44985244053, about 9.4 minutes of estimated wall time per Linux row, 10.2 per Windows row, 4 browsers). The four tests adapted to Windows (the headed popup, two fission process-name tests, the service-worker process test) are no longer excluded and are named by their files in the Windows rows. Linux gets wrapper.e2e.suite.linux.3.
2026-11-22 06:40:46 +01:00
feder-cr ac75085d10 tests: the ipv6 literal gateway records every CONNECT with time since launch, address type, destination as received and port 2026-11-22 06:31:57 +01:00
feder-cr 8ab1d3d68a Merge remote-tracking branch 'origin/ci/e2e-suite-on-candidate' into tests/characterization-69 2026-11-22 06:31:29 +01:00
feder-cr b58edbf367 Merge remote-tracking branch 'origin/char69/fakeweb' into tests/characterization-69 2026-11-22 06:31:29 +01:00
feder-cr aad5ac38da Merge remote-tracking branch 'origin/char69/skips' into tests/characterization-69 2026-11-22 06:31:29 +01:00
feder-cr ac62151198 Merge remote-tracking branch 'origin/char69/secstate' into tests/characterization-69 2026-11-22 06:31:28 +01:00
feder-cr 94fd5740c8 Merge remote-tracking branch 'origin/char69/screen' into tests/characterization-69 2026-11-22 06:31:28 +01:00
feder-cr 174c6b8b88 Merge remote-tracking branch 'origin/char69/platform' into tests/characterization-69 2026-11-22 06:31:28 +01:00
feder-cr 4bf9b5e009 tests: the ICE host candidates test leaves: in the product configuration a page reads only mDNS names, and what depends on the declaration is already asserted by test_declared_host_network_e2e.py 2026-11-22 06:31:28 +01:00
feder-cr 37aa78d339 ci: the network oracle records the CONNECTs and DNS questions of the launch stage with the process that opened each
The launch stage held only the UDP; it now holds the CONNECTs (the DoH road left out: its
start-up connection lands in this stage or in the journey's first step, so it is counted with the
journey's), the DNS questions and the datagrams, each with who opened it: `core` (the Python
process that runs the lab and makes the core's own requests at launch), `browser:<kind>` (parent,
socket, tab..., backgroundtask:pingsender) or `unknown`. The idle launches and the exit-ping launch
record the same.

The gateway looks at the client's source port while it serves the handshake and finds the owner
with psutil.net_connections (Linux and Windows both give the pid); a datagram carries the
opener of the UDP ASSOCIATE it came on (the association's control connection), and a DNS
question the opener of the connection that carried it. Only the stages that ask for it are looked
up (launch, idle, exit).
2026-11-22 06:26:26 +01:00
feder-cr 0af776766a tests: a generation of the security state that does not exit 0 saves the engine's stderr, the profile's files and, on Linux, the gdb backtrace of the core it left (e2e.yml installs gdb and points kernel.core_pattern at a folder) 2026-11-22 06:23:53 +01:00
feder-cr f5234742e6 tests: the ipv6 literal e2e gateway forwards nothing outside the lab; assert the CONNECT shape, not a count 2026-11-22 06:19:23 +01:00
feder-cr 07018c00b7 tests: the script cache test keeps every amount the two preloaders report under a path (the parent's scriptCache.bin and the child's scriptCache-child.bin share the reporter paths) and records the files of startupCache/ in each assertion message 2026-11-22 06:18:45 +01:00
feder-crandClaude Sonnet 5.5 b37287094e tests: the closed-context service-worker process test runs on Windows (process types from the engine log) instead of skipping
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 06:18:19 +01:00
feder-cr 2c50950f9a ci: the unit rows' minimum follows the oracles' new tests 2026-11-22 06:09:50 +01:00
feder-cr 9dab7a335b tests: the oracles' public addresses and runner paths in their cases are the allowed public resolvers and a neutral lab path 2026-11-22 06:09:14 +01:00
feder-cr b732bda9e3 tests: the host oracle's public addresses in its cases are public resolvers the gates already allow 2026-11-22 06:08:21 +01:00
feder-cr ec8e0fdc19 ci: the host oracle changes no pref, and compares what only the pingsender touches when it is on both sides
- Removed the lab telemetry endpoint of the idle launch (toolkit.telemetry.server) and its server: no pref is changed in any launch of any oracle. The idle
  launch stays, still ended by the notification recorded in the profile's prefs.js; its strict comparison is what does not depend on the third party: the
  notification seen, three pingsender processes of the three types, always the background task, spawned by the parent.
- A pingsender that goes to the telemetry host direct is the product's behaviour in a session with no proxy: the rule about a public destination is gone from
  the host oracle (behind a proxy it is the network oracle's). A destination of the pingsender kind is `public, telemetry`; the outcome of the connection is
  not in the verdict.
- The paths and destinations only the pingsender kind touches are compared when it is present on both sides of the same launch (the measured launches and the
  two warm-ups) and left out when it is on one side only, so a return to pingsender[.exe] or to a new read of the host shows.
2026-11-22 06:04:51 +01:00
feder-cr 881df0df5d ci: the host oracle's idle launch is where the exit pings must leave, a short launch has 0 or 3 of them
The exit pings leave as `firefox --backgroundtask pingsender` through the session's route when Mozilla's canUpload() is true (TelemetrySend.sys.mjs:1083), which is
the case once the notification of the data policy was recorded (TelemetryReportingPolicy.sys.mjs:988 `_userNotified`, from `ensureUserIsNotified` at
`sessionstore-windows-restored`, :1140-1175; the first-run tab, or the infobar at 60 s, :51). A short launch may or may not have got there.

- Short measured launches: the number of pingsenders is 0 or 3 (the first run's new-profile, first-shutdown and event, spawned by the parent, the background task
  and never the separate pingsender[.exe]); any other number or form is red, and the paths and destinations only they touch are not compared.
- The idle launch of each engine run (no journey, the telemetry endpoint is a loopback server of the lab so no ping goes to the internet) waits until the
  profile's prefs.js records the notification (a file of the launch, no channel into the engine; at most 120 s), then closes. The comparison there is strict: the
  notification seen, three pingsenders of the three types, spawned by the parent, none to a public address (B266). A launch behind a session proxy also fails on any
  pingsender destination that is public.
2026-11-22 06:04:49 +01:00
feder-cr c395116f9e ci: the e2e hang guard of the network oracle counts the exit-ping launch and still fits the job's 40 minutes 2026-11-22 06:04:23 +01:00
feder-cr e0a103dada ci: the network oracle's idle launch behind the proxy waits for the data reporting notice and counts the exit pings
The first seed gets one more idle launch per engine (idle/exit_pings), behind the lab's
coherent proxy and with no pref changed: it reads the profile's prefs.js every 0.5 s until
datareporting.policy.dataSubmissionPolicyNotifiedTime is there (120 s only end a launch that
never gets there: recorded is false and the A/A must agree), closes, and records until the
tree has exited, the pingsender of the shutdown included.

What went to the proxy towards a name outside the lab is compared strictly (the form of the
target, the number of each, the order): the proxy answers those CONNECTs itself with a SOCKS
reply 4 (host unreachable, as it does for any name outside the lab) and writes them down,
nothing leaves the lab. A connection of the browser or of its pingsender that did not go to
the proxy is in direct, which is red on either side. The e2e's hang guard counts the launch.
2026-11-22 06:03:22 +01:00
feder-cr 53a9e4da1e ci: the unit rows' minimum is the number of tests their files hold today (the oracles' tests were added without raising it) 2026-11-22 05:53:43 +01:00
feder-cr 8c394f4e72 ci: the host oracle runs alone on its own jobs and keeps the evidence that proves when the shutdown spawns what
Run 44982522362: the Windows A/A of the host oracle differed on the pingsender (3 vs 0 in one measured launch) and the Linux one on a /proc/self/fd/N open
of the parent. Neither is excused. What the run shows and what the oracle now records:

- the report counted 150 to 1000 paths per seed opened by firefox.exe processes OUTSIDE the tree on Windows: the other tests' browsers ran at the same
  time on the shared e2e machine, and the engine's own timers (the telemetry notification that decides whether the shutdown spawns the pingsender; the
  idle flush of the shared data that the parent copies read-only through /proc/self/fd/N) race with a loaded machine. The host oracle has jobs of its own,
  e2e (host, linux) with strace and e2e (host, windows), one test each, and the shared jobs leave its file out like the network oracle's;
- Linux keeps the order of starts and ends of the tree (strace with the exit lines, signals off), the call that touched each path (open, openat, stat, ...),
  and every open of /proc/self/fd/<n> with the memfd_create that made the descriptor; Windows adds the Kernel-Process stops to the ETW session (the exit
  code: 0 by itself, 1 for the core's TerminateProcess) and the times of the 4688 events (a refusal of the provider is said, not red);
- every footprint keeps how the close ended: the return code of the root and the seconds the core's close took (evidence, never a threshold).
2026-11-22 05:52:35 +01:00
feder-cr f7450cfd5b ci: the host oracle's journey ends with a geolocation step, the candidate must start no Windows location utility process, and stock Firefox is the negative control 2026-11-22 05:52:34 +01:00
feder-cr d4f4f86d88 ci: the host oracle compares the netlink sockets and the public destinations of each kind on Linux
The whole-run trace of the host oracle now also records, per process kind, every netlink socket the tree
opens (by protocol: NETLINK_ROUTE, NETLINK_KOBJECT_UEVENT, ...), the requests it sends on it (RTM_GETLINK,
RTM_GETADDR, ..., read from strace's decoding or from the message bytes) and the multicast groups it binds
to, and every connect or send towards a public address, with transport, family, address and port. A socket
is known by the inode -y prints for it, so a send names the protocol of the socket() that made it, whichever
thread sends. The set per kind enters the comparison like the host paths: identical, no exception. Loopback,
the lab's documentation ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24), private, link-local and
multicast destinations are not compared and are counted by class as evidence. The warm-up report lists the
network entries only the warm-up had.

The strace stand-in traces socket, connect, bind, sendto, sendmsg and sendmmsg only when the host oracle asks
(network=True); the font tests' default is unchanged.

Windows is not covered and the report says why: the connect and send events are in the
Microsoft-Windows-Kernel-Network provider, which needs a second provider in the session, logs every packet of
the machine and has no field names verified on a hosted runner yet; interface enumeration there is NSI by
IOCTL, not a socket.
2026-11-22 05:52:34 +01:00
feder-cr 4d97eae291 tests: the closed-context process test judges by the processes that host the frames' sites, not by a count
The count of content processes holds the preallocated pool and what the browser starts for itself, so it moved with whatever ran beside the test (gate run on Windows: [9, 9] while open, [9] after). The test now waits until the processes that host the sites of the frames (B and C) exist while the context is open, and until none is left once it is closed: by the name of the process on Linux, by the remote type the engine logs on Windows.
2026-11-22 05:49:03 +01:00
feder-cr a4e6c8f56d tests: a popup naming only left reads that x and the declared default y 2026-11-22 05:48:26 +01:00
feder-cr 9bd7622e83 ci: the walk waits for what a closed tab sends as it leaves; a resumption must happen in every run; the ECH grease aead is one volatile entry again
- tests/fakeweb/profile_p4.py: the tab of step 10 is closed by the walk's cleanup and its
  two pagehide requests reach the site after close() returns. The walk now goes on when
  the site has both (an event; a failsafe keeps a request that never comes from blocking
  it), so they belong to the step that closed the tab. A/A run 44982522362, Windows seed 6:
  in 19 launches of 20 both landed in step 11, in one n=2 landed in step 10; both were sent
  in every launch. The per-journey summary of those requests is gone.
- Optional entries (resumed connections) get an invariant: an origin that resumes on some
  seed in one run must resume on some seed in the other; an engine that stops (or starts to)
  is red. Which launch resumes stays timing.
- The ECH GREASE aead: the existing volatile entries cover fresh and resumed connections
  (security/nss/lib/ssl/tls13ech.c:2257: the aead is chosen by the low bit of HKDF output of
  a fresh key, for every ClientHello without real ECH); two fingerprints that differ only by
  the aead are one.
2026-11-22 05:41:15 +01:00
feder-cr 435d261ce4 test(fakeweb): evidence helper with LF endings 2026-11-22 05:38:54 +01:00
feder-cr 36634bc63f ci: the network oracle's A/A of run 44982522362: no shared port numbers, optional resumptions, leaving traffic over the journey, the ECH grease as a draw
- Lab: two servers of a lab never share a port number (open_lab makes the lab again when
  they do). A port is normalised into the role of its server, and on Linux seed 4 the port
  of the origin O and that of the HTTP/3 server were the same number in one run: 667 leaves
  read journey-o.test:h3. The lab also gives the walk's step counter back when it closes.
- Resumed connections: an origin may have one in a run and none in the other (ticket and
  pool timing; 108 leaves per seed on Linux h1). The volatile list can name an `optional`
  owner: what is under it is excused when one run has nothing there and compared when both
  have something. The fresh connections and the protocols are always compared.
- The ECH GREASE AEAD is written as what it is, a draw from 1 and 3 (any other value is a
  difference), on fresh and resumed connections alike; the two per-leaf entries are gone.
- What the page sends from its pagehide handler (the beacon and the keep-alive POST) is
  summarised over the journey with its counts, as the CONNECTs are: the pair reaches the
  lab while the driver moves to the next step and straddled the boundary in one run
  (Windows, steps 10 and 11).
2026-11-22 05:35:04 +01:00
feder-cr 8a42ed3676 test(fakeweb): the networkidle-under-load case saves its evidence when it fails
On failure only, into RUNNER_TEMP/invpw-evidence/fakeweb-leaving-beacons-under-load/: the fake web's own record of every
connection and request (arrival, answer, error), the client's log of every request, the Juggler wire of the served browser,
the engine's Juggler trace (INVISIBLE_JUGGLER_TRACE_DIR) and the cells. No assertion, wait or deadline changes.
2026-11-22 05:32:57 +01:00
feder-cr 2c6a93900f tests: the headed popup test and the two process-by-site bench tests run on Windows instead of skipping
The headed window.open test asked for DISPLAY, which Windows never has: it now asks for it only off Windows.
The bench tests found a site's process by its name, which only Linux sets: on Windows they read the remote type the
engine logs for every process it creates (MOZ_LOG Process) and count the live content processes of that site.
2026-11-22 05:29:42 +01:00
feder-cr 756f722d40 Merge remote-tracking branch 'origin/char69/platform' into tests/characterization-69 2026-11-22 05:22:56 +01:00
feder-cr 215f552a10 ci: the whole e2e suite as seven rows of the gate (linux 1-2, windows 1-4, control_a), run on the candidate's binary by scripts/ci_suite_run.py
The rows are balanced on the test times of run 44942540063 and exact; the Windows parts of e2e.yml read them instead of taking every fourth file.
tests/test_the_e2e_suite_is_accounted_for.py holds every e2e test in one row of each system or in a named exclusion.
2026-11-22 05:14:46 +01:00
feder-cr 98da306330 tests: the warm session's script cache is compared with the file left on disk when the fresh session ended (a rewrite at shutdown replaces the adopted one) 2026-11-22 05:02:50 +01:00
feder-cr b14f479e09 Merge remote-tracking branch 'origin/char69/icehost' into tests/characterization-69 2026-11-22 04:59:24 +01:00
feder-cr af48556777 Merge remote-tracking branch 'origin/char69/platform' into tests/characterization-69 2026-11-22 04:59:23 +01:00
feder-cr 5776836ab6 tests: the DOM iterables that firefox-68 iterates from evaluate stay; the WebGPU features case keeps its red proof on its branch 2026-11-22 04:59:23 +01:00
feder-cr da0720364a tests: a page with a media permission reads the declared network in its ICE host candidates (characterization of firefox-68) 2026-11-22 04:47:24 +01:00
feder-cr c3295c5b12 tests: the launch counter test reads browser/omni.ja with the core's jar reader (Mozilla's optimized jar is refused by zipfile on Windows) 2026-11-22 04:43:43 +01:00
feder-cr a7b1acf732 tests: iterating DOM iterables from page.evaluate, one case each 2026-11-22 04:42:13 +01:00
feder-cr 9072dbb74f ci: the host oracle warms each engine up, compares the tree only, and the network oracle has jobs of its own
Host oracle
- Each engine run starts with a discarded warm-up launch (the first seed), an experiment control and not an excuse: its trace is kept in the
  footprint and the report lists what only the warm-up did (WARMUP-ONLY, per kind and per path, with the process that did it), and which of those
  both engines have. The measured launches are compared as they are: a pingsender or a socket process that differs after the warm-up is red.
- Only the tree of the launch is compared. On Windows the ancestry is the creator's pid chain of the 4688 events and every open of the machine is read,
  so what a process outside the tree opened (a service, the antivirus) is counted by process name (OUTSIDE THE TREE) and left out; on Linux the strace
  tree is the tree.
- A path or a kind that differs names the processes to blame: touched_by (the kinds that opened each host path, on both systems, a thread's open
  counted for its process) and spawned_by (the kinds that spawned each kind), in the DIFF lines and the problems.

e2e.yml
- tests/test_ab_network_e2e.py has its own jobs, e2e (network, linux) and e2e (network, windows), with the setup of the shared jobs, one test that must
  pass (no skip), 40 minutes (the test's own budget for 5 seeds is 30); the shared Linux job ignores the file (OWN_JOB_FILES) and the Windows parts
  leave it out of the collection (own_job). The workflow tests take a job by its name now, and the network jobs are held to the same rules as the others.
2026-11-22 04:39:18 +01:00
feder-cr 88b058956a ci: the host oracle's Windows classification is spelling-independent and names what it can name
From the A/A of run 44963364060 (Windows part 4, 129 differences):
- the runner's TEMP is the 8.3 spelling (the short spelling of the user folder) and the engine opens the same folder under both spellings, so 70 paths of the
  launch's own profile were classed host: the context puts every root and every path in the long spelling (GetShortPathNameW / GetLongPathNameW
  of the user's folders, the temp root and the package), whatever the NT prefix;
- uninstall_ping_<install hash>_<uuid>.json(.tmp) in C:\ProgramData\Mozilla-<install id> (30): the uuid of the ping is normalized, the folder and
  the name are still compared;
- a firefox.exe --backgroundtask pingsender (three in the first launch of the run, the cause of its extra parent kinds, imagehlp.dll and a .mui) is
  the kind backgroundtask/pingsender by its command line, not a parent;
- the start canaries are three, with a round trip to the session before each, and the last one must be in the trace (the first canary of the first
  launch was not);
- the footprint keeps, as evidence, which kinds of process opened each host path.
2026-11-22 04:12:39 +01:00
feder-cr 8d6d6ae208 Merge remote-tracking branch 'origin/char69/platform' into tests/characterization-69 2026-11-22 04:04:03 +01:00
feder-cr 194ae6f042 Merge remote-tracking branch 'origin/char69/automation' into tests/characterization-69 2026-11-22 04:04:03 +01:00
feder-cr dee362ea02 Merge remote-tracking branch 'origin/char69/mediajs' into tests/characterization-69 2026-11-22 04:04:03 +01:00
feder-cr f8e5ff8700 Merge remote-tracking branch 'origin/char69/locale' into tests/characterization-69 2026-11-22 04:04:03 +01:00
feder-cr e8b3efa8c9 Merge remote-tracking branch 'origin/char69/screen' into tests/characterization-69 2026-11-22 04:04:02 +01:00
feder-cr b02f74ed58 Merge remote-tracking branch 'origin/char69/window' into tests/characterization-69 2026-11-22 04:04:02 +01:00
feder-cr b48592587f tests: the popup frame control is a second declared frame (the engine off reads the host's own frame on Windows) 2026-11-22 03:51:47 +01:00
feder-cr 66e5b75cb6 tests: the launch counter's address is read from the engine's module in the binary, the shutdown ping goes to an allowed host (a refused host is a control), the warm session's script cache is moved aside until rewritten 2026-11-22 03:51:20 +01:00
feder-cr 8e4be5b67d tests: a goto to a refused port waits for the error page's navigation before the next goto starts 2026-11-22 03:51:20 +01:00
feder-cr 69a9c60328 tests: escape the line breaks of the native-endings probe; the branding test reads only chrome://, the one place a page can load 2026-11-22 03:50:27 +01:00
feder-cr 2c562c035f ci: the network oracle compares the resumed ClientHellos and the protocols per origin, and its e2e has a hang guard sized from its seeds
- fold_wire: the connections whose ClientHello resumes a session are a set of their own
  (the number of tickets offered left out), and `protocols` is the set of protocols that
  carried a request (h1, h2, h3), not how many requests each carried.
- tests/test_ab_network_e2e.py: the default 420 s of the e2e killed the xdist worker of the
  A/A on 5 seeds on Linux and Windows (run 44963364060). The test's guard is 120 s to start
  plus, per engine run, 240 s for the first seed and 150 s for each next one (measured: 120 s
  and 145 s per engine run for the first seed on Linux and Windows); the subprocess ends at
  that budget and the worker's guard comes 120 s after it.
2026-11-22 03:49:45 +01:00
feder-cr 2b9858570a tests: the second window session runs in a thread of its own (no sync client inside another one's loop) 2026-11-22 03:48:00 +01:00
feder-cr bd71ac2026 tests: leave out of the locale characterisation what the product cannot do or the 68 engine does not do (running-worker language change, worker canvas group, shared and service worker Accept-Language) 2026-11-22 03:47:58 +01:00
feder-cr 731ec861c5 ci: the network oracle compares what the engine says on each connection, not what the pool did
A/A run 44960767715 left 214 leaves on Linux and 297 on Windows, all of them the pool:
a second connection with no request (in the first visit's stage in one run, the
second's in the other), the page's requests split between HTTP/2 over TCP and
HTTP/3 over QUIC (4 and 1, then 1 and 4) with their stream numbers, priorities and
frame counts, the HTTP/3 datagram count, and the start-up connection to the DoH
landing in the launch stage or not.

Each role (h1, h2, h3) now has one summary over its whole walk (fold_wire): the
distinct fingerprints of the connections that carried a request and are not resumed
(ClientHello, ALPN, SETTINGS, first WINDOW_UPDATE/PRIORITY, QUIC parameters, pseudo-header
order), and every request, with its count, wherever it rode. In the h3 role the
transport's own headers (te, alt-used) belong to the connection and the page's
priority is kept for the page. Not kept: the number of connections, a connection that
carried no request, stream numbers, frames after the first request, the h3 datagram
count. The CONNECTs of the launch stage count with the journey's. The direct-connection
rule is untouched. The volatile entries follow the new paths.
2026-11-22 00:54:03 +01:00
feder-cr aabf0516cc tests: the host oracle's trace cases use a neutral lab home 2026-11-22 00:40:18 +01:00
feder-cr 50c08fb950 ci: the A/A of the page, network and host oracles runs every seed when the pull request touches the oracle
On a pull request the three A/A controls ran on a few seeds (page 2, network 1, host all). The A/A is what every A/B verdict
rests on, so when the pull request changes the code or the data of an oracle it must be zero on every seed of the candidate
set [0, 2, 4, 6, 63], Linux and Windows.

scripts/ci_ab_pr_seeds.py holds the files of each oracle (what they share: ci_ab_oracle.py, persona_cover.py,
ci/persona-seeds.json), fetches the base commit and lists `git diff --name-only <base> HEAD` (HEAD is the merge commit the
runner checks out), and prints AB_ORACLE_PR_SEEDS, AB_NETWORK_PR_SEEDS and AB_HOST_PR_SEEDS (every seed, or the default 2, 1
and 2). One step of e2e.yml, on a pull request, in the Linux job and the Windows parts, appends them to $GITHUB_ENV; no
third-party action. The three e2e tests read their variable with pr_seed_count and, without it (a push, a manual run), keep
their default. Unit tests: the path rule per oracle, the shared files, the variable (a carriage return, a bad value), the
fetch-then-diff order, LF-only output, and the step in the workflow.
2026-11-22 00:33:28 +01:00
feder-cr 11dc585abf ci: the host oracle compares the whole trace of a closed run, not a photograph of one instant
The A/A of the host oracle kept finding noise because it read the tree once, after a wait for quiet: the number of live
content processes, one font mapped lazily, the number of short-lived children. The oracle now compares the TRACE of the
run, from the launch to the exit of the browser (the quiet point is the exit of the process):

- processes by kind (parent, -contentproc type + sandboxingKind + isForBrowser/notForBrowser, helpers by what they ran)
  from the command lines of the launch; every kind and its count identical, except the count of the kinds of type tab
  (idle time): for those only the presence counts, with the reason written once;
- the SET of host paths the tree touched, identical with no exception. Every path is classified ours (the package, the
  profile and temp dirs of the launch, the run's cache, its own shared memory) or host; ours leaves the comparison as a
  class, the reason written once.

Linux: strace -f -y of the whole tree, now with the file calls (open, openat, stat, access, readlink, execve, ...), read
after the group has exited. Windows: the process starts with their command lines come from the process-creation audit
(event 4688, switched on for the run and put back), a file trace from an ETW session on Kernel-File (logman, tracerpt),
two canary files and the lost-events line check that the session was recording. It needs an administrator.

Gone: the volatile list (tab count, tahoma7_04.ttf, the job total, the WMI count) and its mechanism, the module snapshot,
the quiet wait, the WMI trace and the poller. The declared glxtest difference stays, applied by kind.
2026-11-22 00:33:19 +01:00
feder-cr cba46aa042 Merge remote-tracking branch 'origin/char69/platform' into tests/characterization-69 2026-11-22 00:18:02 +01:00
feder-cr 55ce95a1ad Merge remote-tracking branch 'origin/char69/window' into tests/characterization-69 2026-11-22 00:18:01 +01:00
feder-cr a837e63a08 Merge remote-tracking branch 'origin/char69/webglread' into tests/characterization-69 2026-11-22 00:18:01 +01:00
feder-cr 70f81bbb3a Merge remote-tracking branch 'origin/char69/automation' into tests/characterization-69 2026-11-22 00:18:01 +01:00
feder-cr 3a67051a92 Merge remote-tracking branch 'origin/char69/locale' into tests/characterization-69 2026-11-22 00:18:01 +01:00
feder-cr 112607291a Merge remote-tracking branch 'origin/char69/screen' into tests/characterization-69 2026-11-22 00:18:01 +01:00
feder-cr 38fb8b6877 Merge remote-tracking branch 'origin/char69/mediajs' into tests/characterization-69 2026-11-22 00:18:00 +01:00
feder-cr 2703b5fc97 Merge remote-tracking branch 'origin/char69/audiohw' into tests/characterization-69 2026-11-22 00:18:00 +01:00
feder-cr 1791f7ea68 ci: the A/A of the network and host oracles is clean, from the evidence of run 44946411675
Network oracle (5,580 leaves differed between the published engine and itself):
- the ad frame's origin travels as a URL parameter (a=http%3A..%3A<port>) and the slow
  frame holds id=sf<token><i>: the normaliser now turns the encoded port into the role of
  its server and drops the token (the index stays), so a request has the same key in
  every run (5,532 leaves);
- the lab cuts the journey into steps when the driver moves on, and what the browser does
  on its own (a connection, a second lookup of a name once its 30 s are over) landed in
  whichever step was current: the CONNECTs and the DNS questions are one summary of the
  whole journey, the requests and datagrams stay in their step;
- the HTTP/3 datagrams are summed over the walk (a visit leaves packets in flight for the
  next one: 12+8 and 13+7);
- the "ERROR in the transcript" scan no longer names the text a page answered
  (steps/14/extra/error is the sign-in page's own message);
- ci/ab-network-volatile.json: the counts of connections (the pool's) and the ECH GREASE
  AEAD (random per connection), each with the run that proved it.

Host oracle: a volatile list of its own (ci/ab-host-volatile.json), applied in the A/A and
in the A/B, per system, stale when it matches no leaf, and a leaf that vanishes is not noise
unless the entry says so: the live tab-process count and one lazily mapped font on Linux,
the job's total process count on Windows.

The three oracles' launches use a cache folder of their own (XDG_CACHE_HOME on Linux, the
wrapper's cache pinned), so they leave no fontconfig cache of the bundle in the user's
folders for the fontconfig test's cold launch.
2026-11-22 00:01:05 +01:00
feder-cr 323d272a32 tests: negative controls with the engine off or another declared screen, second sync client in a thread of its own 2026-11-21 23:56:27 +01:00
feder-cr b7f974788a tests: negative controls with the engine off or another declared screen, second sync client in a thread of its own 2026-11-21 23:51:23 +01:00
feder-cr 3f372e4675 tests: the WebGPU adapter is read in the page realm, where the features iterate 2026-11-21 23:47:53 +01:00
feder-cr a9ec63caed tests: the fullscreen test pins the device pixel ratio with the screen 2026-11-21 23:47:27 +01:00
feder-cr c3dad8b9e9 tests: the WebGL noise control keeps the engine on and declares only the canvas noise off 2026-11-21 23:47:10 +01:00
feder-cr 50f2e53c9c tests: the click on a download left to Firefox does not wait for a navigation, the file does 2026-11-21 23:46:42 +01:00
feder-cr 0a0a2f4efd tests: negative controls with the engine off or another declared screen, second sync client in a thread of its own 2026-11-21 23:46:02 +01:00
feder-cr 8add8e4a42 tests: the locale of a live context is changed through the product's Juggler command; the canvas test records every measure 2026-11-21 23:44:28 +01:00
feder-cr 5e18bdc03f gitattributes: the persona seeds file is LF on every checkout, as its test compares it byte for byte 2026-11-21 23:40:40 +01:00
feder-cr 89c7d3be3b Merge remote-tracking branch 'origin/char69/platform' into tests/characterization-69 2026-11-21 21:28:04 +01:00
feder-cr 241d156f1f Merge remote-tracking branch 'origin/char69/automation' into tests/characterization-69 2026-11-21 21:28:04 +01:00
feder-cr d6dc3bf0ba Merge remote-tracking branch 'origin/char69/mediajs' into tests/characterization-69 2026-11-21 21:28:04 +01:00
feder-cr 74deb6a060 Merge remote-tracking branch 'origin/char69/locale' into tests/characterization-69 2026-11-21 21:28:04 +01:00
feder-cr fa735a74e7 Merge remote-tracking branch 'origin/char69/window' into tests/characterization-69 2026-11-21 21:28:03 +01:00
feder-cr d6498e527b Merge remote-tracking branch 'origin/char69/screen' into tests/characterization-69 2026-11-21 21:28:03 +01:00
feder-cr 92712b1658 Merge remote-tracking branch 'origin/char69/audiohw' into tests/characterization-69 2026-11-21 21:28:03 +01:00
feder-cr ab3247d359 Merge remote-tracking branch 'origin/char69/fonts' into tests/characterization-69 2026-11-21 21:28:03 +01:00
feder-cr 4bf642a58a Merge remote-tracking branch 'origin/char69/canvasreaders' into tests/characterization-69 2026-11-21 21:28:03 +01:00
feder-cr 360a22887f Merge remote-tracking branch 'origin/char69/webglread' into tests/characterization-69 2026-11-21 21:28:02 +01:00
feder-cr 2d31ecdfff Merge remote-tracking branch 'origin/char69/webglparams' into tests/characterization-69 2026-11-21 21:28:02 +01:00
feder-cr 03ec71cf72 tests: the host oracle's normalizer cases use neutral lab paths 2026-11-21 21:21:49 +01:00
feder-cr 6b67a514e5 tests: characterise the script cache, the launch counter, the shutdown ping, the geolocation of the host and the WebGPU adapter on firefox-68 2026-11-21 21:21:31 +01:00
feder-cr f42d5ecd26 tests: characterize automation hooks on firefox-68 (download cancel and no-options control, refused port goto, element atoms, hybrid xray control and cross-origin handover) 2026-11-21 21:19:32 +01:00
feder-cr e89a789354 tests: the network oracle's e2e has no switch that weakens its verdict 2026-11-21 21:13:55 +01:00
feder-cr 38aaebd4f2 ci: the page A/B oracle has a control: the published engine against itself, alone on a pull request
ci_ab_oracle.py run dumps the published engine twice and compares the two (the A/A). A
difference, or a dump that did not run, is a broken control (exit 2) and the A/B is not
run. Without a candidate (a pull request: the engine under test is the published one,
given with --published-binary, under the seal of the core) the A/A is the whole run, on
the first two seeds of the candidate set (--limit 2); with a candidate it runs on every
seed first and the A/B follows against the first dump. compare --a-a repeats it from the
files.

tests/test_ab_oracle_e2e.py no longer requires INVISIBLE_SEAL_FILE: both modes save their
dumps and diffs in $AB_ORACLE_OUT or $RUNNER_TEMP/invpw-evidence/ab-oracle. 11 unit
tests for the A/A, its broken-control exit and the command line.
2026-11-21 21:13:04 +01:00
feder-cr 813b889c78 ci: the network and host A/B oracles are required suites, their unit files in the unit rows 2026-11-21 21:09:08 +01:00
feder-cr 3877438598 ci: the host-footprint A/B oracle, the process tree and the mapped modules per kind after the same journey
scripts/ci_ab_host.py walks the first steps of the fake web's journey with the stock client,
waits for the tree to be quiet and, before closing, takes the multiset of process kinds, the
modules each kind has mapped (normalized: install dir, system dirs, temporary paths, memfd and
shm names without numbers) and the children born and gone before the snapshot (Linux: strace;
Windows: the job's TotalProcesses and a WMI process-start trace). `ab` runs the A/A control
(the published engine twice: a difference is a broken control, exit 2) and, with a candidate,
the published engine against it, with the declared differences of ci/ab-host-expected.json
(glxtest on Linux; a declared difference that does not show is red as stale).

tests/test_ab_host.py is the comparator on synthetic footprints; tests/test_ab_host_e2e.py runs
it on Linux and Windows: the A/A on a PR's e2e, the A/A and the A/B with a candidate.
2026-11-21 21:08:43 +01:00
feder-cr 9cd828654f ci: the network A/B oracle, the same journey on the lab with the published engine and with a candidate, every leaf of what the wire carried compared
tests/_wire_capture.py reads what a client puts on the wire, with the standard library, hyperframe/h2 and aioquic: the TLS ClientHello (MSG_PEEK until the whole record is
buffered, then the same socket goes to ssl; GREASE is one word, the random, the session id, key share bytes and PSK identities are dropped), the HTTP/2 frames (SETTINGS in order,
WINDOW_UPDATE, PRIORITY, PRIORITY_UPDATE, the pseudo-header order of each request), HTTP/1.1 request heads as written, and an HTTP/3 client (QUIC transport parameters in order,
the SETTINGS frame, the header order). WireServer serves one HTTPS site on TCP (h1 or h2 by ALPN) and QUIC on one port.

scripts/ci_ab_network.py runs the P4 journey, an HTTPS page on each protocol, an HTTP/3 page, a WebRTC page (STUN and TURN through the relay) and two idle launches through a
coherent SOCKS5 gateway with the fake DoH, the witness and the watcher, writes a normalised transcript per engine, and compares two transcripts leaf by leaf (path and both
values). A direct connection on either side is red by itself; the leaves that differ between two runs of one engine live in ci/ab-network-volatile.json (empty until the A/A
measures them; an entry that matches no leaf is stale and red). --a-a runs the published engine twice: a difference there is a broken control (exit 2), and with a candidate
the A/A runs first.

tests/test_ab_network.py, tests/test_wire_capture.py and tests/test_wire_capture_quic.py hold the comparator, the normalisation, the lab and the parsers to known inputs, no
browser. tests/test_ab_network_e2e.py runs the A/A on a pull request (evidence under RUNNER_TEMP/invpw-evidence/ab-network) and the A/A then the A/B with a candidate.
2026-11-21 21:08:43 +01:00
feder-cr 050dbb159f ci: the A/B oracle visits the persona seeds, each at its own DPR
scripts/persona_cover.py computes, from the prefs the core emits for the seeds 0..99999
(every pref that varies across seeds belongs to a dimension or is excluded with its reason),
two sets of seeds: `candidate`, the smallest set that reaches every webgl renderer and every
DPR (5 seeds), and `final`, a greedy cover with reverse delete of every reachable value of
every dimension (20 seeds). ci/persona-seeds.json holds them with the sha256 of the
dimensions and features; `check` recomputes and says what changed.

ci_ab_oracle.py takes its visits from that file: the candidate set by default, each seed at
its own DPR (nothing pinned; ci_host_gate.py dump gets --visit and --no-pin), or
--seed-set final with --shard i/n to split the 20 seeds over several jobs. The e2e test
passes AB_ORACLE_SEED_SET and AB_ORACLE_SHARD through. tests/test_persona_cover.py holds the
stored file to a recompute, the covers to the dimensions, and a cover with a seed less red.
2026-11-21 21:00:55 +01:00
feder-cr 1f06722137 Characterize the readers of a WebGL/WebGPU canvas and the as-drawn painter on firefox-68
Five e2e tests written before the hooks of fingerprint/canvas/noise-projection and
fingerprint/canvas/as-drawn are redone: every reader of a WebGL element, an
OffscreenCanvas and a transferred placeholder gives the same noised bytes; a WebGPU
canvas reads noised through toDataURL and toBlob; -moz-element paints a WebGL canvas
as drawn. Each carries its control in the same test (canvas noise declared off).
2026-11-21 20:56:43 +01:00
feder-cr 9f91d752e4 tests: characterise the language and zone of workers, worklets, canvases, the page realm and every request kind (firefox-68) 2026-11-21 20:56:29 +01:00
feder-cr c820dd50f9 tests: characterize the bundle-only font list, src:local names, regional-indicator measureText, vertical text metrics and createPattern projection on firefox-68 2026-11-21 20:54:54 +01:00
feder-cr 20af8c4509 tests: characterize window occlusion, fullscreen without a window manager, and focus on OS deactivation (e2e, firefox-68) 2026-11-21 20:52:11 +01:00
feder-cr c6d3ded241 tests: characterisation e2e for screen, popup geometry, iframe click origin and css-media hooks 2026-11-21 20:52:05 +01:00
feder-cr 11db0d50b5 tests: characterize the declared WebGL parameters and the shader language on firefox-68 2026-11-21 20:52:05 +01:00
feder-cr 194035dec5 tests: characterise the WebGL readback roads (PBO, captureStream, partial rectangle, non-premultiplied) 2026-11-21 20:51:54 +01:00
feder-cr 79b46cc0a2 Characterization e2e of the media enumeration, voice URIs, eval name, native line endings and branding on firefox-68 2026-11-21 20:50:35 +01:00
feder-cr 8c926d9551 tests: characterize audio noise, audio context values, sample rate and hardware declarations on firefox-68 2026-11-21 20:48:55 +01:00
feder-cr c65828d809 tests: characterize the IPv6 literal gate of firefox-68 (direct refused, mapped refused, SOCKS destination left to the proxy) 2026-11-21 20:37:26 +01:00
feder-cr 37cae03940 ci: the A/B oracle, same seed and same bytes, the published firefox-68 engine against the candidate
scripts/ci_ab_oracle.py runs the host gate's dump twice on one machine with the same
core and wrapper: with the engine published as firefox-68 (its seal.json and archive
fetched through the core's own download under that seal) and with the candidate binary
under its own seal. Every leaf of every visit must be equal; only the noise entries of
exceptions.json and the diag. keys are excused. A difference is red with its leaf, both
values and the seed; a visit that compares fewer leaves than the host gate's reference
holds (16439) is red. It writes dump-68.json, dump-candidate.json and diff.json.

tests/test_ab_oracle.py holds the comparator to known inputs (27 cases, no browser), in
the rows of the whole unit suite. tests/test_ab_oracle_e2e.py is the gate's leg, the new
row wrapper.e2e.ab_oracle on Linux and Windows.
2026-11-21 19:40:51 +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
Federico EliaandClaude Sonnet 5.5 285e3ba93e ci: never cancel a run of main, one run per pull request commit, and test it (#477)
e2e.yml and tests.yml already ran once per commit of a pull request (push is
filtered to main, pull_request to PRs against main), but their concurrency
group was keyed on the ref and cancelled in progress everywhere. For a push to
main the ref is always refs/heads/main, so the next push cancelled the e2e
run of the commit before it, and scripts/e2e_is_green.py refuses a release
whose e2e check-run is `cancelled`. The group is now keyed on the pull request
number and cancels only on pull_request; every other event gets a group
unique to the run, so nothing on main is cancelled or replaced while pending.

user-install.yml had a group keyed on the ref that cancelled its own weekly
run when a manual one started on main; it follows the same rule. publish-wiki
no longer cancels a publish in progress. Triggers, workflow and job names
(`e2e`, `e2e (linux, xvfb)`, `gate`) are unchanged.

tests/test_ci_runs_once_per_commit.py pins the triggers the release reads, the
cancel rule and the hunt cap (max-parallel <= 8), with known-bad inputs for
each checker. It reads the workflows with a small parser because PyYAML is
not a dependency of this package.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:55:02 +01:00
Federico EliaandClaude Fable 5.2 15d7608867 tests: no_wait_after is judged on the order of events, not on seconds (#478)
The test said the click must come back in under 2.5 s while /slow slept 3 s.
That measured the runner: on a loaded one the click alone took longer (2 of 30
runs of the suite, every run on one CPU) with nothing wrong in the product.

/slow is now an answer the server holds until the test lets it go. The click
with no_wait_after=True must come back while the answer is still held (the
order is: click returned, then answered; the url is still the old one). A new
test holds the other half: a plain click on the same link does not come back
until the answer is given, and returns on the new page.

Known-bad input, run before trusting it: the same test with no_wait_after
removed from the click is red on the order (answered, then click returned).

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 11:32:43 +01:00
Federico EliaandClaude Fable 5.2 2d9cf3a82f CHANGELOG 0.50.1: the known differences from stock Playwright, and two fixes the entry had left out (#480)
Under [0.50.1], after the record of its publication:
- Fixed: a popup reaches the client as with Playwright's own Firefox (no limit
  of time, the destination's url, load reachable), and the opener's download
  event comes after the popup's page event.
- Known differences from stock Playwright, each with its measurement: the url
  of a popup that turns into a download, the url of a frame of another site at
  DOMContentLoaded, the longer click of the library client, and back/forward
  restoring the page from the back-forward cache.

Documentation only: no published byte changes.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 11:32:17 +01:00
github-actions[bot]andfeder-cr fb888c09cf record 0.50.1 as published (#476)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-11-12 10:53:57 +01:00
b46e5a32d3 Release 0.50.1: networkidle on a reused page and on a routed served browser, a page handed over when ready (pin invisible-core 62.65.0) (#455)
* 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>

* 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)

* 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>

* 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>

* 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: 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>

* 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>

* 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>

* 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>

* 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 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>

* 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>

* 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>

* 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>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
2026-11-12 09:51:23 +01:00
Federico EliaandClaude Opus 5.5 b6d32402f2 README: browser launches up top, in a big badge row (#453)
The launch count was a small badge at the very bottom. It now opens the
README, under the banner, next to engine downloads and stars. The daily
counters job also writes launches.json and downloads.json on the badges
branch; shields.io draws the big badges from them, so the numbers still
come only from our snapshot.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:15:12 +01:00
Federico EliaandClaude Opus 5.5 82d88c848f Release 0.50.0: engine firefox-62 (Fission strategy 1), pin invisible-core 62.63.0 (#450)
* grant_permissions: the permission names are the engine's, a name outside the table is refused, and no origin is every origin

The wrapper passed the web names (geolocation, notifications) to the engine, which keeps a grant under its own
(geo, desktop-notification) and stored one under a name it never reads: a page of a context that had been granted
geolocation and given a position was still denied. The table is the Playwright client's for this browser
(playwright-core ffBrowser.js, doGrantPermissions); a name outside it is an error, as there. A grant with no
origin was sent as the empty string, which the engine's lookup reads as false and answers with '*', where nothing
was held: it is now '*'. Tests: the table and the refusals as units, and the position of a granted page as an e2e
that fails on the old code (denied, or no answer).

* tests: the sentinels of the isolation strategy hold strategy 1, not 0

The baseline of a core that runs Fission (strategy 1, autostart, four isolated content processes) is what the
firefox-62 engine is built for: the Juggler reaches an iframe of another process like any other. The four unit
tests of test_cross_origin_iframe.py held the opposite (strategy 0, autostart off, one isolated process) and are
turned round: strategy 1, autostart on, fission.autostart.session absent (the parent writes it), four isolated
processes, the default of a translated profile 1, and an override to 0 only when a caller sets it. They fail on
invisible-core 61.62.0 and pass on a core with the strategy-1 baseline (invisible_core ffced25); the pin moves with
that core. The module text says why a harness of two ports of one host is one site and where the iframes that leave
the process are held.

* changelog: Fission (strategy 1) and the permission names, to be confirmed by the firefox-62 build

* e2e: the bench for Fission strategy 1 (a.test / b.test, a -> b -> a): two tests that hold it, eight that say what is not done yet

The prefs are an overlay of the file (strategy 1, autostart, four isolated processes, the test hosts through
network.dns.localDomains); the wrapper's baseline stays at strategy 0. Tests 1 and 2 pass today (a cross-site
frame adds a content process, a same-site one does not); tests 3 to 10 fail today on the empty url of a frame of
another process, the missing context, the missing parent chain, describeNode on a cross-origin element, the init
script that does not reach the other process, and the console that does not arrive.

(cherry picked from commit a8edf34d5f2da5e5e142359efe0dfaa801f5d57d)

* e2e: the bench of Fission strategy 1 reads the client's events while it waits, and holds three cases of step 1

The sync client takes the engine's events only inside its own calls: the waits of the bench now go through
page.wait_for_timeout. Added: a context of the top survives a frame of another process coming and going (a guard),
the frame of another process comes back after the top is restored from the back-forward cache, and a removed frame
of another process leaves page.frames and the page keeps answering.

(cherry picked from commit b9483514bb0be7712f378e1fbdc9ffd5701634b3)

* e2e: the bench splits the restore from the back-forward cache in the frames that come back and the url and contexts that come with them

The first is green with the parent re-announcing the frames it knows; the second stays red until the parent's
registry of navigations (step 3) and the mux's re-announcement of contexts (step 2b). set_extra_http_headers is not
in the wrapper's perimeter, so the removed-frame test uses the init script alone.

(cherry picked from commit 47a9d6f59ab237e173fe3c271fa37cbafe6e0668)

* e2e: element-to-frame and iframe geometry across processes (Fission strategy 1)

(cherry picked from commit 3ec3752333e76baaebdbbd78263028237fdda86a)

* tests: the crash of an iframe's process leaves the tab (firefox-62, Fission)

Kills the process that holds the iframe (found through the engine over Marionette, required to differ from the top's) and asserts the tab stays, no Page.crashed or close, and the page answers. Red on firefox-61: the unpatched engine closes the tab.

(cherry picked from commit 1e90ff23b3c3827cac943f926f30eeccaa6ec3aa)

* tests: the mouse events of the page and of a same-process iframe keep their order and values

Sequences recorded on firefox-61 (click, double click, right click with contextmenu, moves with the button down), through page.mouse; the test passes there and has to pass on the engine whose mouse takes the APZ route (a click on an iframe of another site needs the hit test).

(cherry picked from commit 4374fcab3c3e6718239cd36bad9c2970e1626aec)

* Test that the identity is the same in the top document and in every iframe

One local server on 127.0.0.1, 127.0.0.2 and 127.0.0.3 serves a top page with an
iframe on a second site (holding a nested frame on the top's own site) and an
iframe on a third site. Each document reads a fixed canvas drawing, a fixed
OfflineAudioContext buffer, the WebGL debug renderer info, the Intl time zone,
the navigator language and user agent, the screen geometry, the pixel ratio and
a font of the bundle, and posts them to the top; the test asserts they are equal
everywhere. screenX and screenY are read and not compared.

It runs under strategy 0 (what the core writes today) and under strategy 1
(fission.autostart and webContentIsolationStrategy=1 as extra_prefs). Each run
proves where the iframes ran from inside the page: one iframe spins for 400 ms
and the top times a 10 ms timer, which stalls only in a shared process.

The negative case is the machine the seed describes (WebGL renderer and screen),
because the 2D canvas and the audio buffer carry no per-seed value. The pure
comparison has unit tests with known-bad inputs.

(cherry picked from commit 76cae1a19abd65b30b72ea317dc42110541c8745)

* e2e: an iframe nested too deep names no frame, and a frame of another process comes out of the cache with the top

(cherry picked from commit 7f71460d799d8271346f470b0b2ad06c0a5315fb)

* e2e: the Fission tests that firefox-61 cannot pass wait for firefox-62

Measured on the released firefox-61 (Linux, run_e2e.py, 4 browsers): these twelve fail there and nothing else in
the six Fission files does. Ten of the bench (the steps that are not in firefox-61) and two of the
element-to-frame file (an <embed> of another process and the detach of a removed iframe). They now take
engine_at_least("firefox-62"), so the gate on firefox-61 is green (43 passed, 13 skipped) and the candidate runs them.

* e2e: a navigation that changes the process is stopped, replaced, refused or cut the way one that does not is

* e2e: an iframe whose src goes to another site shows the new address in the frame list

* A frame that left the page answers a call with "Frame was detached", not "Target page, context or browser has been closed"

The server disposed the dispatcher of a frame as soon as the lifecycle retired it, so the next call on the Frame object (an
iframe a script or a framework removed) named a guid that no longer existed and was answered as if the page had closed.
Measured with a process per site and without it: frame_element, evaluate, content and query_selector on a removed iframe,
all four. Playwright's driver never disposes a Frame at detach; the call reaches its dispatcher, which refuses it with
"Frame was detached". The frame stays registered (collected with its page or by its bucket, as the driver's), refuses every
call, and its element handles go with it.

Test: test_a_detached_frame_answers_detached.py (7 of its 10 fail on the old server code); test_frame_dispatch.py still
passes; test_a_removed_iframe_is_detached (the Fission e2e) passes on an engine with the Juggler of the integration.

* e2e: a worker leaves with its page for the back-forward cache and comes back the same (Fission strategy 1)

A document starts a worker that counts; the top goes forward (same site or another, by page.goto or by the page's
own location.href) and comes back from the cache (pageshow.persisted is checked). The protocol events the client
receives must say: workerCreated, workerDestroyed before the new page commits, workerCreated again with the same
workerId once after the restore's contexts are cleared, no workerDestroyed after it, one live worker that answers 3.
The worker lives in the top or in a frame of another site. engine_at_least("firefox-62"): it skips on firefox-61.

Measured on repacks of fission/integration (Linux, strategy 1): red on bdf02eb9d8 and on 1e9ff6dec0. In the top the
worker comes back under a new workerId; in the out-of-process frame it is not announced again.

* changelog: the Fission and permission-name entries are under 0.50.0

* e2e: the frames have their urls when goto returns (an iframe of another site, 50 runs, nothing waited for)

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

* e2e: a goto to the address the page is at ends, 20 times, on nine kinds of page (sites isolated)

Plain, big, revalidated with a 304, fresh in the cache, never stored, a frame of its own site, a frame of another
site (also revalidated), a -> b -> a, and the same query twice. Red on the engine of fission/integration 14e826b7b5
(load not reached, navigation started and neither committed nor aborted), green with the Juggler fix.

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

* A launch that names no session gets one: op_launch writes a composed session into every profile

A bare BrowserType.launch on the server (Playwright's own suite, any client of invisible_playwright._pw)
sent no prefs, and op_launch wrote into user.js only what the client sent: the engine came up with
Mozilla's defaults, no persona, every value a page reads taken from the machine. On Linux the first window
then also held the first-run policy tab of TelemetryReportingPolicy (the Terms of Use the core declares
accepted were not), and the first new_page failed with "Browser.newPage: Unexpected number of tabs in the
new window: 2": 15 of 15 bare launches on firefox-61 and on the firefox-62 candidate; with
datareporting.policy.firstRunURL emptied alone, 1 tab every time.

The launcher marks what it composes (COMPOSED_PREF, taken out before user.js like the seed); an unmarked
launch gets the session InvisiblePlaywright() composes with the server's defaults (new seed, humanize off as
in launch_server), with the caller's prefs on top. launch_server already sent a composed session: its e2e
and a unit test on the mark guard it. The one network step of composing (the egress IP) has one name,
_session.session_geo, which the unit tests answer offline.

Tests: test_a_launch_without_a_session_gets_one.py (4 unit: red on the old code, the profile held 0 prefs),
test_a_launch_without_a_session_gets_one_e2e.py (a bare launch has one tab and says Windows on the Linux
engine: red on the old code with "Unexpected number of tabs: 2"; every context of a served browser is the
same Windows machine). Unit suite 1128 passed on the firefox-62 candidate image.

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

* A launch that names no session also gets the session's environment variables

The variables `build_env` adds (the font manifest, the display backend, the crash reporter, the WebRTC
declaration with a proxy) are added to the environment of a launch that names no session, wherever the
caller named none of the same name. Unit tests: the manifest reaches a bare launch, a variable the caller
names wins, a composed launch gets nothing it did not send.

Measured before keeping it: no page-visible difference. On the firefox-62 candidate (Linux) and on
firefox-61 (Windows) a page of a bare launch lists the same families with and without the manifest: the
bundle's (Segoe UI, Calibri, the substitutes such as Helv and MS Sans Serif), none of the host's (FreeSans,
Unifont, Liberation Sans in the container; Segoe UI Variable on the Windows host). The engine uses its
packaged copy when the variable is absent.

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

* The session of a bare launch is composed through the launch's proxy; e2e: behind a proxy the page reads the egress as its srflx

`launch(proxy=...)` reaches `session_for_launch`, and the session is composed through it as
`InvisiblePlaywright(proxy=...)` composes: the egress measured there is the address the session's
environment declares for WebRTC (STEALTHFOX_WEBRTC_PUBLIC_IP). The engine is still told the proxy by
op_launch (Browser.setBrowserProxy), as before.

e2e test_a_bare_launch_behind_a_proxy_declares_the_egress_as_its_srflx: a bare launch behind the local
TCP-only SOCKS5 of test_webrtc_realness.py, the egress answered with 203.0.113.7 (RFC 5737). The page must
read a srflx of that address. Red on the prefs-only commit (no srflx of the egress: host candidates only)
and on release/firefox-62 (the two-tab refusal); green here. Unit suite green on the firefox-62 candidate.

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

* tests: the named environment of an unmarked launch carries the session's variables, and still nothing of the server's

test_the_launch_handler_hands_the_named_environment_to_the_engine asserted the engine got exactly the named
variables (plus the session's TMP). An unmarked launch now also gets the variables of the session the server
composes for it (font manifest, display backend, crash reporter): the test reads them from
_session.default_session and keeps its point, WAYLAND_DISPLAY of the server's own process stays out.
It went red on 36cffac, which I committed without running the whole unit suite.

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

* tests: the same-document navigation test attaches the frame it reports on

The engine announces a frame (Page.frameAttached) before any event of it, and from invisible-core's fix on
release/firefox-62 the lifecycle makes frames of that event alone: an event of a frame it does not know is
dropped. The three tests of this file reported events of a frame "F1" they never attached, which only the old
auto-creation accepted. Green with the old core and with the new one.

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

* tests: the gates of the shelved line ask for firefox-63 again; firefox-62 is the Fission release

#444 renumbered the engine gates when the shelved line (idwr text, canvas colours and ICC readback, maths,
media decoding, WebGL arithmetic, the Linux system-theme refusal) was firefox-62. That line is firefox-63 now
and firefox-62 is Fission (one process per site), which has none of those properties: on the firefox-62
candidate 14 of those tests ran and failed (WebGL dot, canvas text, ClearType, ICC, fonts and colours,
WebCodecs). The seventeen files #444 touched ask for firefox-63 (comments and docstrings too), conftest.py
names the same number, and tests/unit/test_engine_at_least.py checks that 61 and 62 skip a gate that asks 63.
The Fission tests (bench, worker, crash, oop_frame_element, goto to the same url, raw launch, mouse events,
cross-origin iframe) keep firefox-62. Default suite: 1131 passed, 8 skipped; the three reds are the install
metadata of the shared Python.

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

* tests: the hand-built InjectedScript of the adopt test has the detached frames the wait for a world reads

invisible-core 62's wait for a frame's world ends at the frame's detach and reads InjectedScript._gone, which __init__
makes. test_adopt_is_one_wire_call_for_both_crossings builds the object without __init__ and sets what __init__ gives
it by hand; it now sets _gone too. (Red on the core with the detach wait: "no attribute '_gone'".)

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

* Release 0.50.0: pin invisible-core 62.63.0 (engine firefox-62, Fission strategy 1)

CHANGELOG 0.50.0: the engine entry, and the fixes of the bare launch and of a detached frame; the
Fission and permission-name entries were waiting for the firefox-62 build, which shows them (candidate #6).

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

* tests: the docstring of the bare-launch e2e says what the served browser is for, not who runs it

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

* tests: the gates of the shelved line ask for firefox-64; firefox-63 is the coherent UDP

The 16 e2e files of the shelved line (idwr text, colours, maths, media, WebGL, host-free Linux),
conftest's description of engine_at_least and its unit test: firefox-62 and firefox-63 skip them.

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

* tests: the refused iframe's address is read by scheme and host, not by a prefix of the string

CodeQL (incomplete URL substring sanitization) flagged the startswith on the frame's url; the
split url says the same thing and cannot match a longer host. The file passes on firefox-62 (5 of 5).

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 12:39:30 +01:00
github-actions[bot]andfeder-cr e2a006d1c9 record 0.49.1 as published (#449)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-11-10 20:17:23 +01:00
Federico EliaandClaude Sonnet 5.5 c33b9dd8f2 0.49.1: the firefox-61 engine through invisible-core 61.62.0 (#448)
* Add INVPW_GC_EVERY_NAV: optional Heap.collectGarbage every N main-frame navigations

Off by default. The collection is sent from a daemon thread (never from the
reader thread, which would deadlock), with at most one in flight; a round
due while one runs is skipped and counted, and every error is swallowed.

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

* INVPW_GC_EVERY_NAV: send the collection with the page session; fix page.request_gc

Juggler answers Heap.collectGarbage from its page handler. Sent with the
browser-level connection it fails with 'Handler for does not implement method',
so the first version of the option counted every collection as failed, and
page.request_gc() has been failing the same way.

The option now sends with the session of the page that committed (a thread of its
own, one in flight); op_request_gc uses the page session too. Tests fail on the
old code and pass on the fix; measured on the engine: collections take 0.02-0.09 s
and the values a page reads are identical with the option on and off.

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

* INVPW_GC_MODE=minimize: the option can send Heap.minimizeMemory, with a fallback to gc

INVPW_GC_MODE=gc|minimize (default gc) says what INVPW_GC_EVERY_NAV sends. minimize sends the
Juggler command that runs about:memory's "Minimize memory usage" (engine commit 2423b7c242 of
the engine's juggler/minimize branch); on an engine without it the first round logs one
warning and falls back to Heap.collectGarbage for that round and every later one (the
engine's answer, "method '...' is not supported", is the sign).

Unit tests for the mode, the fallback and the other errors; e2e (engine_at_least firefox-61)
that the engine takes the command and, as documentation, that minimize evicts the bfcache
(pageshow.persisted false on go_back) where nothing sent leaves it true. Measured on the
engine with the command, and on the one without: the first and third e2e fail there.

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

* INVPW_GC_MODE: the command must be named in the error that makes minimize fall back to gc

A fallback on any error saying "is not supported" would turn the mode down for good on an
unrelated error; the sign of an engine without the command is its answer naming it
("method 'Heap.minimizeMemory' is not supported", or 'does not implement method "..."').
Also the docs say what the command is: the memory manager's MinimizeMemoryUsage.

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

* tests: the minimize e2e uses a plain protocol client, and the protocol-name scan lets the engine-gated name through

The e2e imported the installed Playwright (test_fork forbids it) and the vendored client has no
connect: it now speaks the protocol over the served WebSocket, like the other served-browser e2e.
Re-run on an engine with the command (all three pass) and on one without (the first and the third
fail, with the fallback warning).

Heap.minimizeMemory is written by navgc.py for an engine the published core's protocol mirror does
not describe yet, behind a fallback to the older command. test_protocol_names_are_declared keeps it
in AHEAD_OF_THE_MIRROR, still checks every other name, and a last test fails when the mirror gets
the command, saying to delete it from the list.

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

* The periodic collection option is out: only the page.request_gc() fix stays

The engine has no behaviour that stock Playwright's Juggler lacks, and a server option that
sends a memory command on a schedule is one. INVPW_GC_EVERY_NAV and INVPW_GC_MODE, navgc.py,
the hook in the commit path, their unit tests, the e2e of the engine command and the entry in
the protocol-name scan leave the branch.

What stays is a defect of the standard API: page.request_gc() sent Heap.collectGarbage on the
browser connection, whose handler does not have it, so it failed on every call; it is now sent
with the session of the page. The test fails on main's server.py and passes here.

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

* 0.49.1: page.request_gc() works on a served browser

A change to the package's code takes a new version and a changelog entry: 0.49.0 is published.

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

* tests: the web fonts of closed contexts leave WebRender's shared archive (firefox-61)

A probe opens N contexts, each with a page that loads a web font of its own
bytes, closes them, and reads explicit/gfx/webrender/resource-cache/fonts from
a memory report (Marionette, chrome scope) before, with contexts open, and
after. On firefox-60 the archive keeps ~1 MB per closed context (10/20/40
contexts: 10.4/19.8/40.7 MB, measured); the test asserts it is back at what it
was from firefox-61 and is skipped on an older engine.

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

* Disable the context cache while a route is active, as upstream

Playwright's ffBrowser.doUpdateRequestInterception sends
Browser.setCacheDisabled with the same flag as Browser.setRequestInterception.
The server sent only the second, so a routed context filled the engine's cache2
on disk. op_set_interception now sends both, for the same context.

* tests: a context that ends leaves no content process (e2e, from firefox-61)

A page that registers a service worker whose script is `for (;;) {}` kept its content process alive
after its context was closed. The test closes three such contexts and counts the web content
processes after each; on an engine without the fix the count grows by one per context ([4, 5, 6]),
with it it does not. Skipped on an engine older than firefox-61.

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

* 0.49.1: the firefox-61 engine through invisible-core 61.62.0 (prepared, not pushed)

Pin to the core that carries the firefox-61 seal (the core is not published yet) and the changelog of the
engine's four fixes, on top of the four open branches this release carries: page.request_gc() (#442), the
context route and the cache (#447), the web fonts of closed contexts (#445) and the processes of an ended
context (#446).

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

* tests: the process count of an ended context is compared from the second context on, over five

On the Linux gate the count after the three contexts was [2, 3, 3]: the first context adds one process
that is not the leak (a spare content process the engine starts when the first page takes one) and
then the line is flat, and counts[2] <= counts[0] failed on the engine WITH the fix. Five contexts, and
the last must not be above the second: with the fix [.., 3, 3, 3], on the old engine every context adds
one ([4, 5, 6, 7, 8] measured on Windows). Run on both engines locally.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:46:25 +01:00
Federico EliaandClaude Sonnet 5.5 ebaed54e0e tests: the engine gates that ask for firefox-61 ask for firefox-62 (#444)
The corrections release is firefox-61 now, and the shelved line (idwr text, canvas colours and ICC
readback, maths, media decoding, WebGL arithmetic, the Linux system-theme refusal) is firefox-62.
The seventeen files whose engine_at_least gate asked for firefox-61 ask for firefox-62, comments and
docstrings too; conftest.py names the same number in its comment and docstring.

tests/unit/test_engine_at_least.py: the engines firefox-61 and firefox-61-candidate are skipped by a
gate that asks for 62. With the old minimum (61) three of its cases fail; with 62 the file passes.

Default suite in a clean checkout: 1084 passed, 9 skipped.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 16:55:10 +01:00
github-actions[bot]andfeder-cr 8de4cd2c9f record 0.49.0 as published (#443)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-11-10 15:03:28 +01:00
Federico EliaandClaude Opus 5.5 087117dfc6 0.49.0: the firefox-60 engine through invisible-core 60.61.0 (#441)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 14:27:39 +01:00
Federico EliaandClaude Sonnet 5.5 b85c8f49a1 tests: the body of a document the tab left is evicted (e2e, from firefox-60) (#440)
The engine of firefox-60 evicts, when the main frame commits a navigation, the bodies of the documents the tab
left, as Chromium does; a body over the cap already answered 'evicted'. The test serves two pages from a local
server, reads the bodies of the current document, then of the one that was left, and checks that the second
context and the page still work after the bodies are gone.

Gated with engine_at_least('firefox-60'): skipped on firefox-59 (checked with the real gate), and run by hand
against a copy of the firefox-59 engine with the fix it passes, against the unmodified one the first test fails
with 'DID NOT RAISE'.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 12:07:59 +01:00
Federico EliaandClaude Sonnet 5.5 e82ae18bac tests: the engine gates that ask for "firefox-60" ask for "firefox-61", the name of the shelved line (#439)
Seventeen e2e files skip unless the engine is at least "firefox-60": the idwr text, the canvas
colours and ICC readback, the maths, the media decoding, the WebGL arithmetic, the Linux system
theme refusal. Those are the goals of the line that is now called firefox-61. The name firefox-60
is the next release of the engine (firefox-59 plus the Juggler memory fixes), which has none of
them: with the gates at 60 they would have run on it and failed. They ask for 61 now, and a unit
test says that engines 60 and 60-candidate are skipped by a gate that asks for 61 (it fails with
the old minimum, which let 60 run).

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 12:01:53 +01:00
github-actions[bot]andfeder-cr b1887220a3 record 0.48.1 as published (#438)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-11-10 11:03:31 +01:00
Federico EliaandClaude Sonnet 5.5 f3d083aa85 0.48.1: the browser never opens its crash reporter, launch_server is public (#437)
* e2e: the run stops at the first refusal of the engine instead of launching for 26 minutes

Against a firefox-59 engine whose gate wanted a declaration the core no longer made (59.58.0), the
suite went on for 26 minutes, launching the browser for each test, being refused each time with the
same sentence, and opening a crash window per refusal on the desktop. tests/engine_refusal.py reads
the text of a failed e2e report and, when it holds the engine's own refusal ("stealth: X is not
declared. Engine rule 7" or the scale refusal), stops the run with that sentence as the reason:
session.shouldstop on the serial path, the controller's shouldstop under xdist (a worker is never
stopped alone). A test that expects a refusal passes, so it never reaches the plugin; a unit test
that only quotes the sentence does not count.

The unit tests read the sentence; the integration tests run pytest over twenty e2e-marked tests of
which the second fails with the refusal, serial and with -n 2: the old suite ran all twenty (the two
fail without the plugin, and a failure that is not a refusal still runs all twenty).

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

* launch_server, launch_server_async and RemoteServer are on the package; the README shows a server and a client

The server API was reachable only through invisible_playwright._juggler.remote, a private path.
`from invisible_playwright import launch_server` now works, with launch_server_async and
RemoteServer, and they are in __all__. The README section "Serving one browser to many clients"
gets a complete example: a server with launch_server() and a Playwright for Python client that
connects to its ws_endpoint, how to install the extra, where it listens and how the browser ends,
and one line for a client in another language. The example was run against the real engine (the
server printed its address, the client read "Example Domain" and closed, the server's browser stayed
up until Enter).

The test checks the exports and reads the README block against the package; four of its five tests
fail on the old code.

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

* 0.48.1: invisible-core 59.60.0 (the browser never opens its crash reporter), launch_server on the package

Pins invisible-core 59.60.0, whose launch environment carries MOZ_CRASHREPORTER_DISABLE=1. The
version is 0.48.1 and the CHANGELOG names the crash reporter, the exported launch_server with its
README example and the e2e run that stops at the engine's first refusal.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 10:29:20 +01:00
github-actions[bot]andfeder-cr 8f86007065 record 0.48.0 as published (#436)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-11-10 09:16:28 +01:00
Federico EliaandClaude Sonnet 5.5 1ff8ed5785 0.48.0: launch_server, and the engine firefox-59 through invisible-core 59.59.0 (#435)
* wire: a protocol message is JSON, and a transport that proves it

_juggler/wire.py: dumps/loads/round_trip, and WireError naming the path of the first
value JSON would change or lose (bytes, sets, objects, non-string keys, NaN/inf).
JsonWireTransport (INVPW_WIRE=json) puts that wire between the client and the server
of the in-process transport, in both directions: a non-JSON client message raises from
send, a non-JSON reply fails its call with the path, a non-JSON event is recorded in
wire_errors. Local use is unchanged (no JSON unless asked).

tests/test_the_wire_is_json.py: 12 unit tests; the reply-that-is-not-JSON test fails
when emit_message forwards unchecked. The unit suite has the same results with and
without INVPW_WIRE=json; running the e2e suite on the wire is the next step.

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

* wire: the server reads a 1.62 message like a 1.61 one, fixed at Dispatcher.handle

Playwright 1.62 moved the call's timeout from the parameters to the metadata,
so a 1.62 client's timeout was lost and every call waited 30 s. handle() now
folds the variants into one shape (_juggler/variants.py), with no version
check: a timeout in the parameters wins, one in the metadata fills the gap,
unknown fields pass unread. scroll is ignored on purpose (documented); a
webp screenshot, screencastFrameAck, waitForFunction on a selector and
virtual credentials refuse that one command with their reason.

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

* wire: a 1.62 screencastFrameAck is accepted and does nothing

The server already acknowledges each screencast frame to the engine, so a client that
acknowledges every frame (1.62's does) is answered, not failed.

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

* wire: a Dialog is an object of the protocol, and the server stops reading the client's registry

The Dialog was a fused class: no __create__, no guid, no channel. The server
built it with Server.twin(page guid), looked into the client's guid registry
(bind_impl_objects/bind_twins) and called BrowserContext._on_dialog through
Connection.deliver_event.

Now DialogDispatcher (TYPE Dialog, parent the Page, initializer type/message/
defaultValue/page, methods accept/dismiss) is announced with __create__ and
then carried by the context's `dialog` event; _dialog.py is a ChannelOwner as
in Playwright, with its case in _object_factory.py, and the event reaches the
listener through Connection.dispatch like any other. Removed: _emit_fused_dialog,
send_async, Server.bind_twins/twin/deliver/run_blocking/call_soon, the
transport's bind_impl_objects/run_blocking/call_soon, Connection.deliver_event
(dispatch is upstream's again) and the bind calls in both context managers.
The reader's pause stays: accept/dismiss answer through
PageDispatcher.answer_dialog, in the worker. diff_protocol no longer lists
Dialog as an expected difference.

Tests: test_a_dialog_is_a_protocol_object.py fails on the old code; the pause
test now covers the answer over the channel.

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

* remote: launch_server() serves one browser to any protocol client over a WebSocket

One launch, one registry, a connection per client: objects are owned by the
client that made them, a client leaving closes its contexts and not the browser.
initialize answers with BrowserType, LocalUtils, Browser and a Playwright root
carrying preLaunchedBrowser. No version check, no limit of ours; the identity
stays the server's. A dialog, which cannot cross the wire, is dismissed.

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

* remote: the Playwright initializer names every required type of spec 1.62

A client built on the 1.62 spec (playwright-go's newPlaywright) reads chromium, firefox, webkit,
android and electron from the Playwright initializer without checking for a missing one and
panics: 'fromChannel: expected *channel, got <nil>'. chromium and webkit are BrowserTypes whose
calls refuse with a reason; Android and Electron likewise. Announced before Playwright.

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

* pin invisible_core 59.57.0 (the pin PR 413 proposes), engine firefox-59

One core for the image that serves this wrapper: the unit suite and a quick e2e (the served
browser answering a plain client, add_script_tag, dialog pause) run on core 59.57.0.

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

* server: "no-override" is not sent to the engine as a colour scheme, motion or forced-colors value

The Go client (and Playwright's null) says "not overridden" with the string
"no-override". The server passed it to Browser.setColorScheme (and the motion
and forced-colors commands), whose enum has no such member, so the engine
refused the whole newContext. Now nothing is sent and the context keeps the
persona's declared theme; explicit dark/light/no-preference still go out.
Page.setEmulatedMedia treats it as a reset (field left out, empty medium).

Tests: unit (6 of 11 fail on the old server) and an e2e with a light and a
dark persona that reads prefers-color-scheme through a Go-style context.

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

* remote: the pointer's walk is drawn by the server, once, for every client

The in-process client patched Frame._click/hover/dblclick/tap/check,
Mouse.click and Mouse.wheel and sent N mouseMove before each action; a
client that is not ours sent one Frame.click and the page saw one
mousemove (measured with humanize=True on a served browser). The walk
(approach, off-centre landing, idle fidget, scroll detents) moves to
_juggler/pointer.py, built per page from the session seed, the page's
number and the humanize budget, and called by FrameDispatcher and the
Page mouse ops. The in-process client now sends the plain action.

- an explicit mouse.move stays the caller's: the server walks it only
  when the in-process client marks it (humanise); a standard client's
  move reaches the page as the exact point it named
- who draws travels in the launch prefs (invisible.server.pointer), so
  the engine's own expansion and INVPW_CURSOR_ENGINE=off are not
  humanised twice
- golden from 5d9ad70 (tests/data/pointer_golden.json, with its origin
  and generator): a Frame.click reaching the server draws the same
  engine events, same coordinates and instants, as the client did

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

* server: Mouse.click puts one mousemove on its point, not two

Pointer.click_at sent the endpoint as a move of its own and then Actions.click_at
moved onto it again as its own approach before the press: the engine got two
mousemove with the same coordinates at the same instant, which no mouse reports
and a page can count. The defect predates the move of the walk to the server
(it was the client's Mouse._click); it is corrected at the source instead of
being preserved, for every transport (op_mouse_click is the one path).

- pointer.py: click_at sends the stroke and lets the click's own approach be the
  one move onto the point; the hand is re-synced after the click.
- golden: only the explicit_pointer session (the one with a Mouse.click)
  changes, regenerated by tests/data/pointer_golden_origin.py
  --revise-mouse-click, which refuses unless the result is the old session minus
  that one repeated move; the origin says why.
- tests: no two consecutive equal mousemove in a humanised Mouse.click (fails on
  the old code), plus an e2e with one real browser that counts them in the page.

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

* server: a stroke from standstill does not open with the point it stands on

The first waypoint of a stroke is its start. When the engine has already been
told the pointer is on that pixel (a move that stopped there, then a pause), the
stroke sent it again: a zero-displacement mousemove no mouse reports. Pointer.
_travel now skips a first waypoint that coincides with the position the engine
knows; a pointer the engine was never told about (the page's first movement,
from the seeded start point) still opens with its first waypoint.

- golden: only the explicit_pointer session changes (one mousemove fewer; t, x,
  y and type of every other event unchanged, latency draws follow the ordinal),
  regenerated by pointer_golden_origin.py --revise-standstill, which refuses
  unless the other three sessions equal the server's run event for event.
- tests: no repeated or zero-displacement mousemove from standstill after 0, 0.2
  and 5 s, for click and move (fail on the old code); e2e with one real browser.

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

* server: a closed context leaves nothing in the registry, the browser's lists or the wire's error log

The three children of a context (Debugger, Tracing, APIRequestContext) were
announced under the browser and adopted by the context on the wire, but dispose
forgets a subtree by walking parent, so they outlived every context: 3 registry
entries per context (500 contexts: 1,500). browser.contexts kept every closed
context with its options and owner, browser._artifacts every download, and a
Stream's file stayed open when its parent's dispose forgot it (the cascade does
not call dispose on a descendant). New Dispatcher.released(), called for the
object and for each descendant the cascade forgets, lets go of what other
objects hold of it. RemoteEndpoint.wire_errors keeps the last 32, not all.

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

* remote: an opt-in memory probe (INVPW_MEM_LOG) and malloc trim (INVPW_MALLOC_TRIM), both off by default

INVPW_MEM_LOG=<file> writes a JSON line every INVPW_MEM_LOG_INTERVAL seconds
(default 2) and at each context close: uss/rss, registry objects, contexts,
clients, the bytes and messages queued in the clients' outboxes (read from the
queue at sampling time, free when the probe is off), gc counts and glibc
mallinfo2. INVPW_MALLOC_TRIM=1 calls malloc_trim(0) after each message of 64 KiB
or more has been sent and at each context close (Linux only; elsewhere ignored
with one warning). With both off nothing is built or loaded and the wire is
byte-identical.

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

* server: the guid registry collects its oldest dispatchers like Playwright's server

Per bucket (the object's type; Frame is MainFrame or Frame), past the limit the oldest
tenth is disposed with __dispose__ {reason: "gc"} to its owner and its subtree silently,
as dispatchers/dispatcher.ts of Playwright 1.62 does: 10000, JSHandle and ElementHandle
100000, one value per type in dispatcher.GC_LIMITS (INVPW_GC_LIMITS lowers some without
editing code). The registry is walked once per batch, not once per object. An event on a
disposed object is dropped, a request or frame already collected is not named again.

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

* server: a request and a response keep what they hold, not what the wire carried

Measured on a real browser (one context, 95 navigations, ~100 subresources each) a Request
was 4.5 KB and a Response 6.0 KB: headers as a list of dicts kept twice (initializer and
raw_headers), the POST body and the timing in the initializer. Headers are now a tuple of
interned (name, value) pairs rebuilt on demand, the certificate is one object per distinct
certificate, the remote address a pair, and the initializer is replaced after the
__create__ by a copy without headers, postData and timing (a new dict: a message waiting in
a queue still holds the old one). Dispatcher.announced() is the hook; released() clears a
request's and a response's state when they leave the registry. 0.84 KB each, and the same
run ends at 73 MB instead of 149 MB.

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

* server: Request, Response and Route collect at 2000, and nothing younger than 10 s is collected

Two declared differences from Playwright's collector (dispatcher.GC_LIMITS, docstring):
the three network types have a limit of 2000 instead of 10000, and an object younger than
GC_MIN_AGE_S is never a victim, so what a client was just handed (the Go client uses a
request inside the callback of its event) stays valid however fast the bucket fills.
Measured on a real browser, one context, 95 navigations of pages with ~100 subresources
and heavy headers: 193 MB at 10000, 74 MB (flat from navigation 25) at 2000.

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

* remote: malloc_trim is on by default on Linux; INVPW_MALLOC_TRIM=0 turns it off

After a context closes and after each message of 64 KiB or more is sent, the served browser
calls malloc_trim(0) when the libc has it (glibc on Linux). Slack's runs of 95 navigations: the
free memory glibc held (fordblks) went from 13 MB to 177 MB by default. Off Linux, with musl or
a libc without the function, nothing is called and nothing is said. No mallopt here:
MALLOC_ARENA_MAX=2 is process-wide, the launcher's to set (README). The probe stays off
and free unless INVPW_MEM_LOG is set.

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

* docs: the registry's collection limits and what they mean for a program that holds many old requests

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

* release 0.48.0: launch_server, and the engine firefox-59 through invisible-core 59.57.0

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

* ci: the missing-websockets message is spelled by the installer, and two tests share a fixture without redefining it

The message named a written pip install, which the way-in check refuses; it is built with
invisible_core.installer now, as _engine.py does. The two tests imported a fixture and
took it as an argument (F811); they bind it by assignment instead.

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

* ci: the pointer test reaches its fixture module the way the other tests do, not through a tests package that CI does not have

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

* test: the trim test waits for the trim, which the writer runs after the send

A fixed read of the trim count right after the reply failed on a slow runner (the client
holds the reply before the writer's next line runs). A delayed trim fails the old test and
passes this one.

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

* test: the WebGL e2e looks at the engine processes below its own test, not at the first one on the machine

With several workers in /proc the scan over every process could be handed another worker's
browser, which had not drawn yet and maps only the host's libgallium (GTK's GLX): red on one run of
the Linux gate and green on the next, same engine and core. The test now walks the tree under its
own process, asks that at least one process there maps the engine's libEGL and libgallium and that
none maps a host libEGL; a unit test with two trees on one machine fails a whole-machine scan.

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

* test: a click's stroke is judged by its shape, not by how many mousemoves reached the page

The pacer drops a sample it cannot send on time, so the same stroke is 15 events on an idle machine
and 6 to 9 on a loaded one (Windows with 32 busy processes; the Linux gate with four workers got
9). The e2e asked for more than 10 and failed on the gate with a real stroke: it left from
(1116, 731), came in steps and ended on the click. It now asks that the stroke left from far away,
came in at least one step and ended on the target with no repeated mousemove; the standstill test
asks for something before the landing, not for 6 events. The unit test holds the gate's page events
as data: the old rule refuses them, the shape rule accepts them, and a jump, two events, a miss, a
start on the target and a repeat are refused. Ten idle runs and three loaded runs pass on Windows;
the old test fails under load.

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

* Pin invisible-core 59.58.0; the pinning page drops the two keys that core no longer accepts

59.58.0 is on PyPI. Besides the same numbers from a seed on Python 3.11 to 3.14 (the red
py3.11 job), it stops declaring the glyph coverage ladder and forces no sRGB output profile, so
the pin keys font.alpha_ladder and desktop.srgb_output are refused by the validator; the pinning
page listed both and test_pinning_doc caught it. Their rows are gone.

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

* Pin invisible-core 59.59.0 (59.57.0 and the version-independent float arithmetic)

59.59.0 is 59.57.0 plus only the fix for the two builtins that differ between Python versions
(sum() of floats and math.log2), which was the red py3.11 job. It keeps the glyph coverage
ladder the firefox-59 engine's declaration gate requires and the sRGB output pin, so the
pinning page lists font.alpha_ladder and desktop.srgb_output again.

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

* The server answers NaN, the infinities and -0 as Playwright's tag, not as a bare number

Found by the e2e run on the strict JSON wire: page.evaluate_handle("() => NaN").json_value()
passed in process and failed with "$.result.value.n: nan is not JSON". The server's serializer
answered {"n": nan}, which Python writes as the bare word NaN and no other JSON reader accepts.
Playwright sends {"v": "NaN"} (and "Infinity", "-Infinity", "-0"); so does the server now. The
unit test fails on the old serializer (9 of 11) and the e2e that found it passes on both wires.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 08:44:54 +01:00
Federico EliaandClaude Sonnet 5.5 0eee28d093 e2e: the refusal of a missing system theme pref is expected on Linux only (#433)
On Windows the engine takes the system fonts and colours from the toolkit as
retail does (StealthVerifySystemTheme returns unless MOZ_WIDGET_GTK), so a
launch without ui.highlight, ui.-moz-field or ui.font.menu does not refuse
there. Candidate 42673795394's Windows gate ran the test and got DID NOT RAISE
three times. The refusal test now skips on win32; the control launch still runs.

tests/unit/test_theme_refusal_drop.py checks the skip mark on the refusal test
and its absence on the control; it fails on the test without the mark.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 21:13:45 +01:00
Federico EliaandClaude Sonnet 5.5 ccb0ff051f e2e: the refusal test launches the engine with the crash reporter off (#431)
The three missing-pref cases end in a deliberate abort (the engine refuses the launch), and each
opened the crash reporter on the desktop of whoever ran it.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 17:51:34 +01:00
Federico EliaandClaude Sonnet 5 0321737429 e2e: the B-frame order test uses the RDD process, like a real user (#432)
media.rdd-process.enabled=false and media.gpu-process-decoder=false left
the content process with no video decoder at all on Linux: WebCodecs'
configure() rejected with no decoder found for video/avc (MOZ_LOG
WebCodecs:5/MediaDecoder:5 confirms it, not a guess), fast and clean. The
hang the test actually showed was separate: flush() rejects right after
that, and nothing caught it inside the test's own new Promise, so resolve()
never ran and Playwright's own 30s evaluate timeout is what finally fired.
A real user always has the RDD process; dropping those two prefs runs the
default path instead of a configuration retail never has. flush() now
settles the promise on either outcome, so a real decode failure surfaces
immediately instead of hanging for 30s.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-09 17:51:25 +01:00
Federico EliaandClaude Sonnet 5.5 e8b57121e1 e2e: the dot() reads a zero's sign as the GPU does (zeros of both signs in the vectors, the comparison keeps the sign) (#430)
The comparison treated -0 and +0 as equal, which hid a fma whose product and sum are both -0 coming back +0. The model's fma now gives IEEE's sign of a zero result, with a unit test.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 17:42:17 +01:00
Federico EliaandClaude Sonnet 5.5 fa0d19cca3 e2e: the fontconfig test fails on an open of the host's configuration, not on the parent's existence probe (#429)
Candidate 42640321957 failed it on one lstat("~/.fonts.conf") of the parent: the parent builds
the content sandbox's permissions (SandboxBrokerPolicyFactory::InitContentPolicy) and asks
whether each path exists. It opens nothing, no byte of those files enters the process, and a
page cannot see it; the sandbox policy is not touched.

The criterion is now: a process that OPENS a host fontconfig or font path fails (an open
that fails with ENOENT too), and a content process that does anything there fails (stat,
access, readlink). The parent's existence probes are ignored, with the reason in the module.
tests/unit/test_fontconfig_criterion.py runs it on fake strace lines: the lstat passes; a
parent that opens /etc/fonts/fonts.conf or ~/.fonts.conf, and a content process that stats a
host font directory, fail.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 17:36:37 +01:00
Federico EliaandClaude Sonnet 5.5 1e23d20e0c e2e: the missing-system-theme-pref helper's regex compiles, with a unit test that fails on the old one (#427)
The regex that finds a pref's line in user.js had a lone backslash before its closing bracket
(an unterminated character set): every case of the e2e died with re.error before launching
a browser (candidate 42624473465, Windows gate). tests/unit/test_theme_refusal_drop.py runs
the helper on a user.js of its own and fails on the old regex.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 17:09:20 +01:00
Federico EliaandClaude Sonnet 5.5 3481f419c7 e2e: coloured canvas text and ClearType keys are drawn as retail Windows draws them (from firefox-60) (#428)
tests/data/canvas_text_ref only compares black text on white under one ClearType state, which
hides what a text-mask hook changes: 12 of 14 coloured cases differ from retail on an engine
that quantises its A8 masks.

New e2e, with hashes from retail Firefox 159.0 on Windows (headless, same pages, same bundled
fonts):
- the 14 coloured cases (7 colour pairs x Arial 16/33 px) with the seed's configuration;
- 39 cases (25 black of canvas_text_ref + the 14 coloured) under three ClearType keys,
  1800/100, 1400/50 and 2200/0, one launch per key with the font.cleartype_gamma and
  font.cleartype_contrast pins. The failure message lists each differing case.

The pin, the font check and the server of the existing canvas text test move to
tests/_canvas_text.py, which both tests import. The reference holds pages, hashes and
metadata only (scripts/build_canvas_text_colors_refs.py rebuilds it from the saved bytes);
tests/unit/test_canvas_text_colors_refs.py checks its structure and that the keys give
different hashes.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 16:35:47 +01:00
Federico EliaandClaude Sonnet 5.5 5c0de53221 e2e: a WebGL dot() gives the bits of the GPU family the persona declares (from firefox-60) (#426)
tests/test_webgl_dot_has_the_declared_gpu_s_bits_e2e.py reads back dot() of two, three and
four components through a float-bits shader and compares the bytes with the NVIDIA fma
chain computed in exact arithmetic, for alu_class 1 and 2; class 0 is the control. The model
runs as a unit test everywhere; the browser tests are Windows only and guarded by
engine_at_least("firefox-60"). The engine's gate lists it by name.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 14:25:58 +01:00
Federico EliaandClaude Sonnet 5.5 c7c7285557 e2e: tagged images read back on a canvas as retail Windows Firefox reads them (from firefox-60) (#425)
* tests: the canvas ICC readback reference (retail Firefox 159.0 on Windows, default prefs)

refs.json holds the SHA-256 of the 72 probes of tests/data/canvas_icc_ref/index.html as
retail Firefox 159.0 (build 20261022150525) gave them on a PC whose monitor profile is the
stock "sRGB Color Space Profile.icm": ten generated tagged images drawn four ways, 22 fill
colours, the canvas colorSpace probe, nine environment values. 27 probes depend on the
profile (qcms converts tagged images to it); for those the hash without the conversion
(force_srgb=true, same machine) is kept too. gen_images.py writes the images and ICC
profiles with the standard library, byte for byte what the measurement used, so the
repository holds no binary file. scripts/build_canvas_icc_refs.py rebuilds refs.json from
the run files; the unit test checks the structure, the 72 probes and the 27 profile
dependent ones.

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

* e2e: tagged images read back on a canvas as retail Windows Firefox reads them (from firefox-60)

The test builds the ten tagged test images with gen_images.py, serves them with the probe
page on localhost, runs the 72 probes on the engine and compares the SHA-256 of each
getImageData read with refs.json (retail Firefox 159.0 on Windows, default prefs, monitor
profile "sRGB Color Space Profile.icm"). Every differing probe is listed with the expected
and the obtained hash, and marked when the engine gave the value without the conversion.
On an engine that skips the conversion (firefox-58, firefox-59) 27 probes differ.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 13:15:14 +01:00
Federico EliaandClaude Haiku 5.5 da503f254a tests: webgl getParameter flake reports the reason (gl null, context lost, drift) (#424)
The test returned a bare false, so a CI failure could not tell a null
getContext('webgl') from a parameter that changed between reads. The
page now returns the reason: gl null (with webgl2 availability), context
lost, or drift with the round, parameter, and first differing vs
reference values.

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-09 12:45:33 +01:00
Federico EliaandClaude Sonnet 5 43a3197d89 e2e: WebCodecs software decode ignores a page's hardwareAcceleration request (#423)
* e2e: WebCodecs software decode ignores a page's hardwareAcceleration request

Firefox-60 checklist goal 6b. REA (invisible_WebCodecs/notes/
nv12-rgb-conversion.md) found the D3D11/DXVA hardware path doing its
NV12->RGB conversion in the GPU (ID3D11VideoContext::VideoProcessorBlt),
a host dependency. Companion to the engine fix
(ShouldPreferSoftwareDecoder in dom/media/webcodecs/DecoderTemplate.cpp,
branch media-webcodecs-software-only): with the engine on, decode must
stay on the software path (libyuv) no matter what the page asks for.

Same 96-frame 1080p B-frame clip and access-unit split as
test_webcodecs_h264_bframe_pts_order_e2e.py, but the page's VideoDecoder
config explicitly asks for hardwareAcceleration: "prefer-hardware", and
every output frame's copyTo({format: "RGBA"}) is hashed and compared
against the software reference (captures/h264-1080p-bframes/retail-win/
result.json - Firefox 159.0 retail Windows, headless, DXVA off per its
own meta.json), vendored at
tests/data/webcodecs_h264_1080p_bframes_rgba_sha256.json so the test does
not depend on the private study repo being checked out beside this one.

Needs no GPU to run: on a VM without one there is no hardware path to
force into software, so a pass only confirms libyuv has not drifted: the
guard is against a future regression that gives the engine a real
hardware path again while leaving the page's request wired straight
through.

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

* Translate the Italian checklist quote in the e2e docstring to English

The pre-push hook's own English-only check refused on this (the goal
6b line, 'dalla, della'), which is why test_the_pre_push_hook_gates_release_tags
also failed: the hook's self-test run hit the refusal before the
gate-wiring assertion could see a clean pass. Not two separate bugs.

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

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-09 12:44:59 +01:00
Federico EliaandClaude Sonnet 5.5 ce79a51417 tests: the blending e2e runs on Linux only until ANGLE's translator does the blend (#422)
On Windows the blend is done by the host's Direct3D 11: a runner without a GPU uses WARP, which
rounds up to 2 off (4090 of 207956 results on the firefox-60 candidate). The Mesa patch that makes
blending exact fixes Linux only. The test skips on Windows with that reason and returns there when
the blending goes through the translator (objective 5).

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 11:26:08 +01:00
Federico EliaandClaude Sonnet 5 d9c21dd67b e2e: WebCodecs VideoFrame.timestamp order on a real H.264 B-frame stream (#421)
Companion to the engine fix in FFmpegVideoDecoder.cpp (branch
media-h264-bframe-pts, goal 6 of the firefox-60 checklist): ff_h264_decoder
doesn't set FF_CODEC_CAP_SETS_FRAME_PROPS, so without the engine's own
reorder buffer the pts ffmpeg attaches to each decoded frame is the most
recently sent packet's, not the one that produced it. A page reading
VideoFrame.timestamp from WebCodecs sees that reordering directly on any
B-frame stream.

Same schema as test_webcodecs_h264_without_host_libavcodec_linux_e2e.py:
decodes the vendored 96-frame 1080p clip (has_b_frames 2, same one measured
in invisible_WebCodecs) with the access units split client-side exactly like
the browser-side probe that produced the retail-win reference capture, and
checks the output order against that capture's own dense, strictly
increasing sequence.

Needs a firefox-60 (or later) build with the fix, which does not exist yet:
collects and skips cleanly today (no cached/pointed binary), same as the
fixture's documented contract.


(cherry picked from commit 2a025dc97f5d2f5ed9254395fc8facc8e411c59f)

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-09 11:24:26 +01:00
Federico Elia 64f76b2d94 e2e: the system fonts and colours are Windows retail's, and a missing declaration refuses the launch (from firefox-60) (#420)
* Add an e2e that compares the system fonts and colours with Windows retail

* Compare the system-ui family too

The e2e needs engine_at_least, so it is merged after PR #416.

* Add an e2e that a launch missing a system theme pref is refused

Needs engine_at_least, so it is merged after PR #416.
2026-11-09 11:16:09 +01:00
Federico EliaandClaude Sonnet 5.5 808c8f8c97 e2e: canvas 2D text equals retail Windows on every OS (from firefox-60) (#419)
* Test: canvas 2D text equals retail Windows on every OS

240 canvas text cases (five Windows fonts, six sizes, a transform, fill and stroke, synthetic
italic and bold) hashed from getImageData and compared with the hashes retail Firefox 159
gave. The run's hashes can be written out, and scripts/compare_canvas_text_runs.py names the
cases two runs (Debian 12 and Ubuntu 24.04) draw differently. Gated on firefox-61.

* Test: the canvas text reference is made with the bundled fonts, gated on firefox-60

refs.json carries the bundle file and sha256 of each font and the retail machine's
ClearType state; the test checks the engine's fonts against them and declares that
state as the persona.

* Test: the canvas text reference covers alpha false, COLR v0 emoji, large sizes and a variable face

refs.json now holds 330 cases in seven groups, merged by id from the two
measurements of retail Firefox 159.0 by scripts/build_canvas_text_refs.py;
the page draws them on getContext('2d', {alpha: false}) where the reference
did, frees each large canvas after its hash, and the test names the
differing cases group by group and checks the Twemoji Mozilla and
Bahnschrift font hashes too.

* Test: the canvas text reference covers Segoe UI Variable at three weights

Group 6 draws the bundled seguivar2_03.ttf (wght 300-700, opsz 5-36) through @font-face
font-weight 300 700 at weight 300, 400 and 700 and sizes 9, 12.5, 16 and 33: 12 cases, the
three weights hashing differently at every size. The hashes are retail Firefox 159.0's on
Windows (the official installer's firefox.exe, sha256 d8b5ed82...), measured by running this
page itself with the bundled font files; the same run redrew the 330 existing cases and
every width, height and hash equals the reference already in the repository, so the new
cases come from the same machine and the same code. refs.json keeps its existing cases and
field order and gains the 12 cases, the font entry and its load status.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 11:16:04 +01:00
Federico EliaandClaude Sonnet 5 a42d863e48 Add e2e: WebCodecs decodes H.264 without a host libavcodec/libavutil (#418)
Same schema as test_webgl2_exists_without_host_mesa_linux_e2e.py: the
engine ships its own ffvpx, so VideoDecoder must decode webcodecs/h264.annexb
(10 frames, 320x240, vendored from web-platform-tests) on a Linux host that
has no system libavcodec/libavutil to fall back on. Skips on firefox-59 and
earlier (engine_at_least("firefox-60")), on non-Linux, and on a host that
still has a libavcodec (the check proves nothing there).


(cherry picked from commit 47f26b376ba8c5e7de070c1ae6e2c3a5105fe3db)

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-09 07:08:33 +01:00
Federico EliaandClaude Sonnet 5.5 f62bf3f6dc e2e: WebGL blending rounds once and mediump runs at 32 bit (from firefox-60) (#417)
* e2e: no browser process reads the host's fontconfig (Linux)

The engine's gtest of the empty fontconfig configuration looks only at
the final state, so it would also pass if GTK, Pango or the first
FcInit() had loaded the host's configuration before the hook replaced
it. This test runs the browser under strace -f, through a tree of links
to the engine whose executable execs the real one, draws a page with
text and fails on any call, in the parent or a content process, that
names /etc/fonts, ~/.config/fontconfig, ~/.fonts.conf, /usr/share/fonts,
FONTCONFIG_FILE or FONTCONFIG_PATH.

Measured on ubuntu:24.04 under xvfb-run with invisible-core 58.56.0,
invisible-playwright 0.47.1 and firefox-58 (build 20261108115355): it
fails. The parent makes 1127 such calls over 503 paths, two content
processes 366 over 69, starting with access/openat of
/etc/fonts/fonts.conf and conf.d.

* e2e: Math.sin, Math.cos and Math.tan give ucrtbase's bytes in every JIT tier

Math.sin(Math.PI / 4) is 0.7071067811865476 on Windows Firefox (ucrtbase) and was
0.7071067811865475 on Linux (fdlibm, or glibc with the pref off). The test reads
the result bits of 4,516 hard inputs, every one where fdlibm or glibc 2.43 differ
from ucrtbase among 30,372 measured on Windows 11, plus every 8th of the others,
for twelve rounds in the same functions so the interpreter, the baseline JIT and
the optimizing JIT all answer. Fails on the Linux engine until it carries
libxul's own sin/cos/tan and Windows' value of
javascript.options.use_fdlibm_for_sin_cos_tan.

* e2e: the sin/cos/tan loop runs for a measured time, and the counts agree

No API a page can read tells which JIT tier ran a call, so the test no longer
claims every tier: each function now runs over its inputs for at least three
seconds and twelve rounds, and every round must equal ucrtbase. The docstring and
the data's header give the same counts, over the 30,372 distinct inputs: fdlibm
441, glibc 2.43 651 (653 counted duplicates), one or both 832, 4,516 lines kept.

* tests: engine_at_least skips a test on an engine older than the one that promises the property

* tests: calc() equals ucrtbase's text, and a screenshot of text returns

* tests: calc() cases read word-spacing, where a zero is 0px and not normal

* tests: engine_at_least compares the number only and fails on a seal with none

* tests: the fontconfig stand-in is killed as a group, the data checks are unit, the screenshot is wall-clock

* Test that WebGL blending is done unquantized and rounded once

On Windows the engine draws through ANGLE on Direct3D 11: the fragment
shader's float output goes into the blender as it is, the blend is
computed at float precision and the result is rounded once, to the
target's format. On Linux the engine's own llvmpipe quantized the shader
output to the target's 8 bits first and blended in 8-bit arithmetic, so
a page read back values up to one step off (two for SUBTRACT): SRC_ALPHA
/ ONE_MINUS_SRC_ALPHA over a destination of 100 with a source of 200 and
an alpha of 1/255 gave 101, where D3D11 gives round(100.392) = 100.

The test sweeps the source alpha over the common factor pairs and the
ADD, SUBTRACT, REVERSE_SUBTRACT, MIN and MAX equations, with straight,
premultiplied and non-8-bit-exact sources, onto RGBA8, RGB10_A2, RGBA4
and (with EXT_texture_norm16) RGBA16 and R16 targets, in one evaluate,
and compares every channel with the exact blend computed in double,
rounded half up (near-ties skipped). Maximum error must be 0. It runs on
every OS: it is the rule the Windows engine already follows.

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

* Test that a mediump WebGL shader computes at 32 bit, as on Windows

On Windows the engine draws through ANGLE on Direct3D 11, which runs
mediump and lowp at full 32-bit precision. On Linux the engine's own
llvmpipe ran them as fp16, so an 8-bit texel read through a sampler of
default precision came back up to ~0.12 of a step off texel/255, and
arithmetic lost every bit past 11: 2049.0 + 1.0 gave 2048.

Three shaders with `precision mediump float;` write the bits of their
floats into an RGBA32UI target: texelFetch on an RGBA8 texture holding
all 256 byte values per channel (default sampler precision, and with
`precision mediump sampler2D;`), which must read back as float32(byte/
255) to one ulp, and single correctly rounded operations whose float32
result fp16 cannot hold (2049.0 + u, 0.1 * u, 1.0 + u * 2^-12, 32.0 + u
* 2^-10), which must be exact. Runs on every OS: the rule is the one the
Windows engine already follows.

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

* tests: WebGL blending and mediump precision hold from firefox-60

Both read pixels a page reads back. firefox-59's llvmpipe still blends in 8
bits and runs mediump in fp16, so the two tests declare firefox-60 with
engine_at_least; older engines skip them with that reason.

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

* Test that WebGL2 exists on a Linux host that has no Mesa

A page tells a host with no GL from one with a Mesa by getContext("webgl2")
returning null. On firefox-59 the host's glxtest blocked WebGL on a host with
GTK and no Mesa (FEATURE_FAILURE_WEBGL_EXHAUSTED_DRIVERS); the engine's WebGL
draws on the GL it ships, so the host must not decide. The test asks for WebGL2
and WebGL1 and reads a cleared pixel, from firefox-60 (engine_at_least), and
skips on a host that has a Mesa since it proves nothing there. The series gate
removes every Mesa library from its Linux legs and fails if one is left.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 00:18:27 +01:00
Federico Elia eadf95b90a e2e: engine-gated tests for the empty fontconfig, ucrt math, calc() and text screenshots (#416)
* e2e: no browser process reads the host's fontconfig (Linux)

The engine's gtest of the empty fontconfig configuration looks only at
the final state, so it would also pass if GTK, Pango or the first
FcInit() had loaded the host's configuration before the hook replaced
it. This test runs the browser under strace -f, through a tree of links
to the engine whose executable execs the real one, draws a page with
text and fails on any call, in the parent or a content process, that
names /etc/fonts, ~/.config/fontconfig, ~/.fonts.conf, /usr/share/fonts,
FONTCONFIG_FILE or FONTCONFIG_PATH.

Measured on ubuntu:24.04 under xvfb-run with invisible-core 58.56.0,
invisible-playwright 0.47.1 and firefox-58 (build 20261108115355): it
fails. The parent makes 1127 such calls over 503 paths, two content
processes 366 over 69, starting with access/openat of
/etc/fonts/fonts.conf and conf.d.

* e2e: Math.sin, Math.cos and Math.tan give ucrtbase's bytes in every JIT tier

Math.sin(Math.PI / 4) is 0.7071067811865476 on Windows Firefox (ucrtbase) and was
0.7071067811865475 on Linux (fdlibm, or glibc with the pref off). The test reads
the result bits of 4,516 hard inputs, every one where fdlibm or glibc 2.43 differ
from ucrtbase among 30,372 measured on Windows 11, plus every 8th of the others,
for twelve rounds in the same functions so the interpreter, the baseline JIT and
the optimizing JIT all answer. Fails on the Linux engine until it carries
libxul's own sin/cos/tan and Windows' value of
javascript.options.use_fdlibm_for_sin_cos_tan.

* e2e: the sin/cos/tan loop runs for a measured time, and the counts agree

No API a page can read tells which JIT tier ran a call, so the test no longer
claims every tier: each function now runs over its inputs for at least three
seconds and twelve rounds, and every round must equal ucrtbase. The docstring and
the data's header give the same counts, over the 30,372 distinct inputs: fdlibm
441, glibc 2.43 651 (653 counted duplicates), one or both 832, 4,516 lines kept.

* tests: engine_at_least skips a test on an engine older than the one that promises the property

* tests: calc() equals ucrtbase's text, and a screenshot of text returns

* tests: calc() cases read word-spacing, where a zero is 0px and not normal

* tests: engine_at_least compares the number only and fails on a seal with none

* tests: the fontconfig stand-in is killed as a group, the data checks are unit, the screenshot is wall-clock
2026-11-08 23:57:25 +01:00
Federico Elia b81f1561c5 Merge pull request #415 from feder-cr/clean-install-timeout
The tests that install from the index get their own deadline
2026-11-08 21:07:05 +01:00
Federico Elia 61d2ee29d5 Merge pull request #414 from feder-cr/gate-second-linux
Host gate: two Linux legs are held to each other; text.* narrowed to what is open
2026-11-08 21:07:02 +01:00
feder-crandClaude Opus 5.5 882c0f3a0e Host gate: the Linux GL defect is excused on both Linux legs
The Debian leg draws WebGL with the same Mesa delta 1 from Windows as the
Ubuntu one (and identical to it, same-OS comparison), and the exception
named only linux-x86_64: 12 failures on the re-gate of firefox-59. A test
holds every Linux-scoped known defect to all Linux legs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 20:22:00 +01:00
feder-crandClaude Opus 5.5 dde60415d7 The tests that install from the index get their own deadline
The module installs the README's block once, in the clean_venv fixture,
and pytest-timeout counts that setup in the first test that requests it.
With PyPI slow the install took 517 s, over run_e2e.py's 420 s per-test
deadline, and the guard killed the worker on a slow test, not a stuck one.
Each test that takes clean_venv now carries 900 s, under the block's own
1800 s cap; a test asserts it and fails without the marks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 20:01:18 +01:00
feder-crandClaude Opus 5.5 be60e4d7e4 Host gate: two Linux legs are held to each other, and text.* is narrowed to what is open
A known defect excused a key on every non-Windows leg, so a difference
between two Linux hosts passed unseen. compare() now holds the legs of one
OS to the first of them wherever the identity does not change the value,
known defects included: they excuse the difference from Windows only.
The text.* block becomes the surfaces that differ on the firefox-59 dumps
(glyph pixels, advances, ink extents, serif/monospace fallback widths);
text.adjust, text.fonts, text.rect, text.units and the vertical metrics
are now held.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 19:55:31 +01:00
Federico Elia 8c2dcbf570 Merge pull request #412 from feder-cr/ledger/0.47.1
record 0.47.1 as published
2026-11-08 18:29:05 +01:00
feder-cr 4fddee2d46 record 0.47.1 as published 2026-11-08 17:12:11 +00:00
Federico Elia 87f48c9b8a Merge pull request #411 from feder-cr/release/0.47.1
0.47.1: pin invisible-core 58.56.0, the keyboards Windows installs with the language
2026-11-08 17:57:28 +01:00
feder-crandClaude Opus 5.5 7d702fb188 0.47.1: pin invisible-core 58.56.0, the keyboards Windows installs with the language
The keyboard pref carries Windows' own form (LANGID:KLID joined by
semicolons), declared by the core; the server's fallback, when a caller
wrote its prefs without it, uses the same form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 17:27:42 +01:00
Federico Elia 42cbc45da2 Merge pull request #410 from feder-cr/own-gl-e2e
e2e: on Linux WebGL draws on the engine's own GL, also under X11
2026-11-08 16:18:44 +01:00
Federico Elia 97faaa84f2 Merge pull request #409 from feder-cr/ledger/0.47.0
record 0.47.0 as published
2026-11-08 16:06:31 +01:00
feder-crandClaude Opus 5.5 e5cb8934a2 e2e: on Linux WebGL draws on the engine's own GL, also under X11, and every declared extension answers as on Windows
Skipped where the package has no llvmpipe/ (engines before firefox-59).
On candidate 42484125583 both fail: no WebGL under Xvfb, the surfaceless
display asked for with the X11 display.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 15:51:56 +01:00
feder-cr 16abec2c09 record 0.47.0 as published 2026-11-08 14:49:58 +00:00
Federico Elia 742281ec3a Merge pull request #407 from feder-cr/engine/firefox-58
0.47.0: pin invisible-core 58.55.0, the firefox-58 engine (Firefox 159)
2026-11-08 15:36:08 +01:00
feder-cr c5e89a85d2 Merge remote-tracking branch 'origin/main' into engine/firefox-58 2026-11-08 14:51:13 +01:00
Federico Elia a8da4b117f Merge pull request #408 from feder-cr/ci-github-token
CI downloads the engine with the job token; the user path stays anonymous
2026-11-08 14:07:58 +01:00
feder-crandClaude Opus 5.5 4ba1cefcdd CI downloads the engine with the job token; the user path stays anonymous
On 2026-11-08 GitHub had timeouts for unauthenticated users and the gates failed
three times on the engine download, because the jobs called the release API
anonymously (also limited to 60 requests an hour per runner address). The core
uses GITHUB_TOKEN when it is set, so each workflow that runs tests declares it
once at the top. user-install.yml stays anonymous: it is the user's path.

Test: test_ci_downloads_are_authenticated fails on the old workflows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:32:50 +01:00
Federico Elia 3378b8f3e2 Merge pull request #406 from feder-cr/ledger/0.46.4
record 0.46.4 as published
2026-11-08 13:19:11 +01:00
feder-crandClaude Opus 5.5 07a03e41e9 Keyboard: the persona's keyboards are the core's declaration, read here
invisible-core 58.55.0 declares the keyboards with the language and
country (prefs._apply_locale) and owns the pref's name; the session no
longer writes a second copy, and the server imports the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:10:09 +01:00
feder-crandClaude Opus 5.5 22a098843a 0.47.0: pin invisible-core 58.55.0, the firefox-58 engine (Firefox 159)
The persona's keyboards (the language's and the second one Windows
installs with it, switched with left Alt + left Shift), the engine's own
scrollIntoViewIfNeeded (op_scroll_into_view hands a rect on), and the
engine's fixes for refused navigations, held requests and cookies.
test_frame_dispatch's hand-built InjectedScript gets the condition the
core's __init__ now makes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:03:53 +01:00
feder-crandClaude Opus 5.5 e76c63a6cb e2e: the switch to English is pressed, left Alt and left Shift, before KeyX
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:58:15 +01:00
feder-crandClaude Opus 5.5 caae1ea0aa Keyboard: the persona's keyboards, the language's and the second one Windows installs with it
The server-only keyboard pref carries layouts_for (KLIDs joined by
commas, the language's first), so a Russian or Greek persona types a
Latin letter on English (US) with its key events instead of answering
press("x") with "unknown key: 'x'". Needs the core with layouts_for.

The four keyboard e2e tests name the US keyboard (locale="en-US"): the
persona's keyboard follows the session's language, which the runner's
address decides, and run 42453174270 met a non-Latin one. New e2e: a
Russian persona presses x as KeyX, a Greek one types "cafe" with its
keys, a Nepali (India) one, whose Windows has no Latin keyboard, gets
the letter inserted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:58:15 +01:00
feder-cr acb073dda7 record 0.46.4 as published 2026-11-08 11:55:48 +00:00
Federico Elia 081b3a1aa0 Merge pull request #404 from feder-cr/release/0.46.4
0.46.4: pin invisible-core 57.54.0, release files through the API route first
2026-11-08 12:25:27 +01:00
feder-crandClaude Opus 5.5 9460e8eb86 0.46.4: pin invisible-core 57.54.0, release files through the API route first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:57:06 +01:00
Federico Elia 3abd710393 Merge pull request #401 from feder-cr/counters-on-actions
Launch counter: the daily snapshot and the badges run on GitHub Actions
2026-11-08 10:17:04 +01:00
github-actions[bot]andfeder-cr 80034c9c84 record 0.46.3 as published (#403)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-11-08 09:52:15 +01:00
Federico Elia 820d88e8eb Merge pull request #402 from feder-cr/engine/firefox-57
0.46.3: pin invisible-core 57.53.0, the firefox-57 engine (Firefox 159)
2026-11-08 09:16:52 +01:00
feder-crandClaude Opus 5.5 558a402fa9 0.46.3: pin invisible-core 57.53.0, the firefox-57 engine (Firefox 159)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 08:59:58 +01:00
feder-crandClaude Opus 5.5 2b3cbe0795 Launch counter: the daily snapshot and the badges run on GitHub Actions
GitHub keeps only the running total of the counter asset, so a day's launches
exist only if the total is recorded that day. The snapshot ran from a scheduled
task on one PC with a token file beside it; when that task went, the badge
stopped on 2026-11-04 and the days after it were never recorded.

counters.yml runs every day at 00:10 UTC on the built-in token, appends the
counters to counters/history.csv on the badges branch, derives
counters/launches_daily.csv, and redraws launches.svg and stars.svg with the
same sum and the same bytes as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 07:03:26 +01:00
Federico Elia 3dd1424a0a Merge pull request #400 from feder-cr/host-gate-goto-timeout
Host gate: the navigation has the page's budget, not goto's default 30 s
2026-11-07 22:46:50 +01:00
feder-crandClaude Opus 5.5 5847dfe87a Host gate: the navigation has the page's budget, not goto's default 30 s
Candidate 42410156024 failed the Windows host gate on its first visit: the
page reached domcontentloaded but not load within goto's default 30 s on a
cold GitHub runner, while the wait right after it has 180 s. The same binary
passed 6/6 locally. goto now takes timeout_ms like the wait.

Test: test_the_navigation_has_the_page_s_budget_not_goto_s_default (fails on
the previous script).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 22:31:31 +01:00
Federico Elia 622b6e82a7 Merge pull request #399 from feder-cr/enumeration-test-inside-engine
e2e: the enumeration's host check reads the engine's log, not a clock beside a loaded runner
2026-11-07 21:33:00 +01:00
feder-crandClaude Opus 5.5 4355274838 e2e: the enumeration's host check reads the engine's log, not a clock beside a loaded runner
The upper bound ("nothing on top of the declared time") compared the page's
clock against a runner whose load delays the parent's main thread by 150-200
ms; it failed twice on 2026-11-07 (741 and 702 against 543 + 143), green on
rerun. The load-proof checks stay (the first call waits at least the declared
time, the second is fast). Whether the host's speakers were asked is now read
from inside the engine: with MOZ_LOG=StealthMediaEnumeration:4 the engine
logs the declared wait it dispatched and "host speakers asked: yes|no"
(firefox_antidetect_patch a00ba45). That test runs from firefox-57.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 21:17:49 +01:00
Federico Elia 97f8663ec6 Merge pull request #398 from feder-cr/ledger/0.46.2
record 0.46.2 as published
2026-11-07 20:49:11 +01:00
feder-cr ce68aea668 record 0.46.2 as published 2026-11-07 19:16:16 +00:00
Federico Elia dab71bd637 Merge pull request #397 from feder-cr/keyboard-country
0.46.2: the persona's keyboard from its language and country (core 56.53.0)
2026-11-07 20:01:47 +01:00
feder-crandClaude Opus 5.5 0c043d580e test: take the profile generator from the core's public API, not the _fpforge shim
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 19:46:23 +01:00
Federico Elia 0421f95adf Merge pull request #396 from feder-cr/ledger/0.46.1
record 0.46.1 as published
2026-11-07 19:40:21 +01:00
feder-cr 284a840ebe record 0.46.1 as published 2026-11-07 18:24:35 +00:00
feder-crandClaude Opus 5.5 eb8b415635 0.46.2: the persona's keyboard from its language and country (core 56.53.0)
The session decides the keyboard with the core (keyboard.layout_for on
SessionLocale.languages and .region) and hands it to the server in a
server-only pref (invisible.server.keyboard_layout), taken out before the
profile is written; without it the language alone decides. German in
Switzerland now types on the Swiss keyboard. Pins invisible-core 56.53.0.

Test: tests/test_the_keyboard_follows_the_session_language.py (KLIDs, and
the language-and-country case).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 19:14:21 +01:00
Federico Elia e508c10e9d Merge pull request #395 from feder-cr/fix-pyproject-driver-comment
0.46.1: pin core 56.52.0 (typing hand by key); pyproject comment names the real server
2026-11-07 19:08:09 +01:00
feder-crandClaude Opus 5.5 7a4e7c4d0a 0.46.1: pin invisible-core 56.52.0 (typing hand by key)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 18:40:29 +01:00
feder-crandClaude Opus 5.5 3824a2e03e pyproject: the dependency comment names the server that exists, not a Node driver
The comment said the Node driver lives in src/invisible_playwright/_driver/,
which does not exist; the server is _juggler/. Test: every src path the
pyproject names is a folder of this tree (fails on the previous comment).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 18:22:10 +01:00
Federico Elia fb5c3a403c Merge pull request #394 from feder-cr/ledger/0.46.0
record 0.46.0 as published
2026-11-07 14:13:08 +01:00
feder-cr eb2be0e88d record 0.46.0 as published 2026-11-07 12:56:39 +00:00
Federico Elia 621a396def Merge pull request #391 from feder-cr/remove-font-gate
0.46.0: dialogs answered after a reader's pause, the persona's keyboard, the WebGL test; the font gate removed
2026-11-07 13:42:30 +01:00
feder-crandClaude Fable 5.1 2afb1cc349 The dialog's answer always goes out: the seed is the browser's, and a failed plan is a warning
0.46.0's first CI run hung three e2e tests for 30 s: the pause read the
session seed from the transport (`self.server`) instead of the browser
(`self.browser.session_seed`), the AttributeError swallowed Page.handleDialog,
and the open dialog blocked every evaluate on the page. The unit test had
mirrored the wrong path; it now models the real one (server knows no seed,
the page reaches the browser through its context), fails on the previous
server, and a new case proves the answer goes out even when planning raises.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-07 13:12:57 +01:00
feder-crandClaude Fable 5.1 b0dc24031c 0.46.0: pin invisible-core 56.51.0, the firefox-56 engine (Firefox 159)
The engine carries the WebGL declared-extension hooks (a declared extension
can be called without killing the browser); this version adds the reader's
pause on dialogs, the persona's keyboard by language, and the WebGL e2e test.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-07 12:39:42 +01:00
feder-crandClaude Fable 5.1 d87cc4e3b6 The persona's keyboard follows the language the launcher decided
The server reads `intl.accept_languages` from the launch prefs and hands the
matching layout (invisible_core.juggler.keyboard.layout_for) to every page's
hands: an Italian persona types on an Italian keyboard. Until now every session
typed on one US table with Chromium's key codes. Pins invisible-core 55.51.0,
which carries the tables and the keyboard.

Test: tests/test_the_keyboard_follows_the_session_language.py.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-07 08:53:46 +01:00
feder-crandClaude Fable 5.1 8eb28c2ada Test: a WebGL extension the persona declares can be called without killing the browser
Read with symbols on 2026-11-07 (Linux, firefox-55): one provokingVertexWEBGL()
call on an extension the host had refused by policy hit MOZ_RELEASE_ASSERT and
took the main process down. The hooks ship in the engine (firefox_antidetect_patch
14feb6a, fingerprint/webgl/parameters); this test calls the six entry points on
both context kinds and asks the page a question after. Skipped on engines before
firefox-56, where it would not fail but kill the browser.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-07 08:33:02 +01:00
feder-crandClaude Fable 5.1 09eeb004d1 Answer a dialog after a reader's pause, not in the millisecond it opened
Page.handleDialog left as soon as Page.dialogOpened arrived, whoever
answered: the client's auto-dismiss or a handler's accept(). A page timing
alert()'s return saw single-digit milliseconds. The pause is drawn from the
session's seed and the dialog's text (reaction + per-word reading, clamped,
one draw per dialog); only the remainder is waited, in the worker; no seed
means no pause, as for every other rhythm.

Test fails on the previous server (two cases: the answer did not wait, and
two dialogs of a page took the same zero time) and passes on this one.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-07 07:58:03 +01:00
feder-crandClaude Opus 5.5 632490aa50 CI: remove the font gate, the host gate covers the font list
scripts/ci_font_gate.py asked one case (is the font list the persona's?) of
the host gate's question (is anything a page reads the host's?). It was kept
until the host gate ran green on a release: it did on firefox-55. The engine's
gate.yml no longer runs it (firefox_antidetect_patch 709404e).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 19:43:58 +01:00
Federico Elia 6c0cfdb610 Merge pull request #390 from feder-cr/drop-linux-arm64
Linux arm64 is no longer supported from firefox-56
2026-11-04 17:17:58 +01:00
feder-crandClaude Opus 5.5 9a98c0060b Linux arm64 is no longer supported from firefox-56
No engine is built for it from firefox-56 on; firefox-55 is the last one
with a Linux arm64 build. The README, the installation page, the arm64
guide, CONTRIBUTING and the release notes now name Linux x86_64 and Windows
x86_64 only, and the README says Linux arm64 is no longer supported. The
host gate drops its arm64-only known defects. The README check treats
linux-arm64 as retired, like macOS, and a new test fails on a page that
still lists it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 14:58:08 +01:00
Federico Elia 4b9e28a879 Merge pull request #389 from feder-cr/ledger/0.45.0
record 0.45.0 as published
2026-11-04 05:49:01 +01:00
feder-cr 6383f21dbb record 0.45.0 as published 2026-11-04 04:34:26 +00:00
Federico Elia 6080c06bd9 Merge pull request #388 from feder-cr/engine/firefox-55
0.45.0: invisible-core 55.50.0, the firefox-55 engine
2026-11-04 05:20:08 +01:00
feder-crandClaude Opus 5.5 ae947139d8 e2e: the tests that start the engine without the core bring the first-run declaration
Since firefox-55 the engine leaves Mozilla's first-run lines and the core declares
them. These two tests start the engine directly, so a second tab failed
Browser.newPage ("Unexpected number of tabs in the new window: 2"), run 41769630744.
The values come from the core, so they cannot drift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 05:04:24 +01:00
feder-crandClaude Opus 5.5 e1f1659776 0.45.0: pin invisible-core 55.50.0, the firefox-55 engine (Firefox 159)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 04:49:31 +01:00
feder-crandClaude Opus 5.5 02bd688896 Host gate: WebGPU's null on linux-arm64 is that leg's known defect
The leg ships without our Vulkan driver, so requestAdapter answers null there
by design, never the host's driver; arm64 is not a priority. Scoped to that
leg: on Windows and linux-x86_64 the adapter stays held to retail. Run
41402916724's dumps compare with 0 failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:46:48 +01:00
feder-crandClaude Opus 5.5 c6dca80401 Tests follow invisible-core's gfx contract: no webgl.force-enabled, gpu.device not pinnable
The core dropped webgl.force-enabled (the engine answers the blocklist from
zoom.stealth.gfx.feature_status, WEBGL2 = 1) and its GPU profile gained
`device`, the real GPU drawn from the renderer's bucket. The renderer is the
knob; the device follows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 13:39:54 +07:00
feder-crandClaude Opus 5.5 f03164e7e0 Drive gate: the first run is declared in the profile, as the core declares it
Since firefox-55 the engine leaves Mozilla's first-run lines and invisible-core
declares the state (terms of use accepted, pre-onboarding off). The drive gate
runs upstream Playwright only, whose defaults travel in Browser.enable, which
the engine refuses, so nothing declared it. Run 41388672849: Windows showed the
terms-of-use modal (no mouse event reached the page), Linux opened Mozilla's
privacy page in a second tab ("Unexpected number of tabs in the new window").

FIRST_RUN, a copy of the core's three prefs, goes into user.js and the gate
drives a persistent context, as the font gate does. On that run's packages:
Windows --click and --full OK, Linux --click and --full OK.
tests/test_ci_drive_gate_first_run.py ties the copy to the core (fails on the
previous gate).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 13:39:54 +07:00
feder-crandClaude Opus 5.5 0236afb11d Host gate: each visit pins its DPR in the persona
Every (dpr, seed) visit forced layout.css.devPixelsPerPx over whatever
persona the seed drew. A 100% persona at 1.5 read innerWidth 1920 inside an
outerWidth of 1291, and a 150% persona at 1.0 an outerWidth of 1942 on a
1280 screen (run 41325657085): identities no machine has. The DPR is now
pinned (screen.dpr), so the core declares a screen, work area and window
made at that scale; the engine refuses a scale that contradicts them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 01:01:54 +07:00
feder-crandClaude Opus 5.5 af932640b8 Host gate reference: retail 159 in fullscreen and back
state.normal, state.fullscreen and state.after_fullscreen measured on the
official Firefox 159 for Windows at DPR 1.0 and 1.5: headed, a profile past
the first-run onboarding (which otherwise keeps focus and input away from
the page), real OS-level input for the fullscreen gesture. Every invariant
of the gate holds on retail. Only state.* keys are added; no existing value
changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 23:11:47 +07:00
feder-crandClaude Opus 5.5 fd22249b65 Host gate: the window in fullscreen and back, held to invariants
A defect escaped every check: after requestFullscreen() the engine kept
declaring the maximized window (outer 1936x1048 under a 1920x1080 viewport,
screenX/Y -8/-8, mozInnerScreenY and every mouse event's screenY - clientY
at 85 instead of 0). No visit entered fullscreen, since it needs a user
gesture, and every value was checked alone against retail, never against
the others.

The dump now drives each visit through three states with real input
(drive_states): normal, fullscreen entered by a Playwright click on a page
button whose handler calls requestFullscreen(), and back through
exitFullscreen(). Each state records the window and screen geometry,
display-mode, fullscreenElement, window.fullScreen and the screen - client
offsets of real mouse events, under state.normal, state.fullscreen and
state.after_fullscreen. A transition that ends in a timeout or
fullscreenerror is recorded, never waited on.

compare() holds every leg and every visit to INVARIANTS, one table with
the reason of each: outer holds inner; in fullscreen outer == inner ==
screen, screenX/Y and mozInnerScreenX/Y at 0, display-mode and
fullscreenElement set; outside it neither; every event's screen - client
equals mozInnerScreenX/Y (exact, or within 1 px when mozInnerScreen is
fractional); the screen does not change; the return restores the normal
state. No exception and no reference applies to them.

The retail reference has no state.* yet: until it records them, those
values are held to host-independence and the invariants only, and compare
notes it. REFERENCE_PENDING says what the reference session must add.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 22:07:31 +07:00
feder-crandClaude Opus 5.5 c84c8c32a5 Host gate: the textarea is fixed, arm64-only differences are scoped to arm64
The textarea width at fractional DPRs now matches Windows on Linux (engine:
DirectWrite's average character width on FreeType), and the gate reported
the exception as no longer seen. The differences left on linux-arm64 only
(Skia's NEON composite, pattern and shadow; the offline audio FFT) are known
defects of that leg, which is not a priority. Run 41305135645's dumps
compare with 0 failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 20:42:58 +07:00
feder-crandClaude Opus 5.5 a5ad308e4a Host gate: the page tells why a host has no WebGL2 or MSAA, never compared
The Windows runner answers getContext('webgl2') with null and gives WebGL1
no multisampling; Linux does not. The page now records under diag.webgl,
for webgl and webgl2, with and without failIfMajorPerformanceCaveat:
whether getContext returned null, the statusMessage of every
webglcontextcreationerror (listener on a fresh canvas before getContext),
the context attributes, VENDOR/RENDERER/VERSION/SHADING_LANGUAGE_VERSION,
the unmasked pair when exposed, SAMPLES, SAMPLE_BUFFERS and MAX_SAMPLES.
The block runs last, and each context is lost once read.

diag. keys are information: the legs legitimately differ on them and the
retail reference does not record them. compare() skips the prefix by name
(documented in the module docstring); dump() prints the leg's diag values
into the job log (all on the first visit, then only what changed), so a
run says why without downloading its artifacts.

Tests: diag keys differing per leg and per seed and absent from retail do
not fail; a known defect matched only by a diag key is still reported as
no longer seen; only the exact prefix is skipped; a non-diag key missing
on one leg still fails host and retail; the dump's diag report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 10:56:42 +07:00
feder-crandClaude Opus 5.5 c30e07ee9f Merge host-gate: the host gate runs on the next engine's candidates
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 21:04:13 +07:00
feder-crandClaude Opus 5.5 85cc5d10e6 Host gate: measured like the reference, compared leaf by leaf, identity declared
The dump visits the page the way retail's reference was taken: over
http://127.0.0.1, en-US, the zone the reference reported, the DPR through
layout.css.devPixelsPerPx, no drawn cursor. The reference is retail Firefox
159.0 for Windows at DPR 1 and 1.5 (gzipped, 1.2 MB).

Values are compared leaf by leaf, so a field the identity decides does not
hide a wrong field of the same object, and the values the identity decides
are declared: with a few seeds, 16 cores or a 1920x1080 screen repeat by
chance. exceptions.json: identity, measurement (focus on the hidden desktop
retail ran on) and the known defects with the work that closes each.

On the 0.44.1 dumps of Windows and Linux it fails exactly the defects the
next candidate fixes (invalid WebGL enums, stencil masks, MAX_VIEWS_OVR, the
WebGPU adapter and importExternalTexture from the host, -moz-dialog), and
nothing else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 21:04:06 +07:00
feder-crandClaude Opus 5.5 7c23e4377d The host gate: what a page reads depends on the identity and Firefox, never the host
One rule, two properties, checked on whole API dumps rather than a list of keys:
the same identity on different hosts gives the same bytes (each leg against
the Windows leg, the platform the identity claims), and a value that does not
depend on the identity equals retail Firefox for Windows at the same DPR.
Which values depend on the identity is measured, not listed: three seeds per
DPR, and a value that changes with the seed is held to host-independence only.

The exceptions are three kinds with a reason each (noise that differs between
two retail launches, network-derived values, known open defects), and the
known-defect list only shrinks: an entry that hides nothing any more fails.

The comparison is here with its tests (tests/test_ci_host_gate.py, 8 cases on
synthetic dumps). The page, the retail reference and the CI wiring follow; the
gate then replaces ci_font_gate.py, which checks one surface of the same rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 16:31:37 +07:00
feder-crandClaude Opus 5.5 0418f37dbb Pin invisible-core 54.50.0 for the next engine's candidates
The candidate of the engine that declares the WebGPU adapter is gated with
the core branch that declares it (fix/codec-follows-gpu, 54.50.0). Not for
release as is: the version and the CHANGELOG follow when the engine does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 16:02:59 +07:00
Federico Elia 0dc42b6380 Merge pull request #386 from feder-cr/ledger/0.44.1
record 0.44.1 as published
2026-10-31 10:21:03 +07:00
feder-cr f4381155bd record 0.44.1 as published 2026-10-31 03:17:49 +00:00
Federico Elia bec6e5f835 Merge pull request #385 from feder-cr/fix/core-54.49.0
Pin invisible-core 54.49.0: WebRTC decodingInfo no longer reads the host GPU (0.44.1)
2026-10-31 10:00:31 +07:00
feder-crandClaude Opus 5.5 d9dca5b498 Pin invisible-core 54.49.0: WebRTC decodingInfo no longer reads the host GPU
invisible-core 54.49.0 declares VP8, VP9 and AV1 for the WebRTC branch of
decodingInfo, so powerEfficient is Firefox 159 for Windows's answer instead of
the host's hardware decoding. Same engine, firefox-54. Version 0.44.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 09:41:57 +07:00
Federico Elia 469e1692a7 Merge pull request #384 from feder-cr/ledger/0.44.0
record 0.44.0 as published
2026-10-31 08:29:45 +07:00
feder-cr 44a3eed971 record 0.44.0 as published 2026-10-31 01:17:58 +00:00
Federico Elia 77b192eba5 Merge pull request #383 from feder-cr/engine/firefox-159
firefox-54: Firefox 159, downloads, set_offline, scroll only when needed
2026-10-31 06:28:42 +07:00
feder-crandClaude Opus 5.5 49e4e3a133 The scroll test asserts the core's if-needed scroll, not the old centring
Core 54.48.0 (3735356) leaves an element in full view where it is and
centres only one that is not, as Chromium's scrollIntoViewIfNeeded does: the
helper runs before every click, and a click on a visible button used to move
the page under it. This test still asserted the old always-centre behaviour,
so the e2e suite went red on the 54.48.0 pin.

It now checks both halves on a page where the two behaviours differ: an
element low in the viewport but in full view leaves scrollY at 0 (red on the
old helper, which centred it), and one cut by the bottom edge is scrolled to
the centre of the viewport.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 06:14:15 +07:00
feder-crandClaude Opus 5.5 4a0bd76768 Show the engine's Firefox 159.0 on the README badge
The seal pinned by invisible_core 54.48.0 is upstream 159.0; the badge
and its alt text still said 151.0, which test_readme_claims catches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 05:55:26 +07:00
feder-crandClaude Opus 5.5 6de45423d1 0.44.0: pin invisible-core 54.48.0, the firefox-54 engine (Firefox 159)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 19:52:21 +07:00
feder-crandClaude Opus 5.5 20f8a43693 Send download options and surface downloads (Artifact/Stream, download event)
The Python server never sent Browser.setDownloadOptions, so the engine's
download interceptor stayed off: no download event, no saved file, and a goto
or click that ended in a download waited out its timeout. Contexts now get
download options at creation (accept -> saveToDisk, deny -> cancel) into a
per-session temp dir removed at shutdown. Browser.downloadCreated/Finished
become a page 'download' event with Artifact and Stream channel objects
(pathAfterFinished, saveAs, saveAsStream, stream, failure, cancel, delete).
The engine ends a navigation that became a download with no event, so the
lifecycle is fed an abort "Download is starting", as upstream's server does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 19:33:26 +07:00
feder-crandClaude Opus 5.5 00d8154ef8 e2e: a download is reported, saved, and ends the navigation that led to it
The engine registered Juggler's download interceptor and never called it, so no
downloadCreated or downloadFinished reached Playwright and a goto that ended in
a download hung. Two cases: a clicked attachment reaches expect_download and is
saved with its bytes; a goto to an attachment reports the download and ends.
Red on the 157/159 engines before the interceptor is dispatched (both time
out), to go green with the engine fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:05:02 +07:00
feder-crandClaude Opus 5.5 12d1cc7308 e2e: a click on an element in full view does not scroll the page
The core's scroll_into_view centred every time, so every click moved the page.
Three cases from scrollY 1000: an element in full view and one inside a
same-origin iframe stay where they are (red on the previous core); one below
the fold is centred.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 14:36:39 +07:00
feder-crandClaude Opus 5.5 2e1b91b196 set_offline() sends Juggler's Browser.setOnlineOverride instead of refusing
The refusal said the engine had no offline command. It has one (new_context(offline=True) already sent it); what was missing was the engine honouring it: its HTTP channel asked a stub that always answered online. The engine now runs Mozilla's own code there (firefox_antidetect_patch 3087f02c56), so set_offline(True/False) maps to the override and leaves NO_ENGINE_COMMAND. tests/test_set_offline_e2e.py fails on an engine with the stub (the offline goto loads) and on a server that still refuses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 10:18:29 +07:00
feder-crandClaude Opus 5.5 c11c04b30e The page sends a commit's navigated from the lifecycle's announcement, not from its own listener
Sent from `_on_juggler_event`, the `navigated` of a commit raced the answer of a wait the same commit ended: the lifecycle, which runs first, had already woken it. With click() now waiting for the commit of the navigation it planned, `page.click("#next")` returned with `page.url` on the page it had left (tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py, red on the 07cbaa9cea engine before this). The commit now goes up from `_on_lifecycle`, as `sameDocument` already did, and not once the page is closed (what `_deliver` guaranteed before). The unit doubles reach it the way the page does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 06:05:21 +07:00
feder-crandClaude Opus 5.5 29a5c7a516 click and press wait for the navigation they set off unless no_wait_after, as Playwright's do
From Firefox 157 a form submission is a planned navigation (the retail's dom.forms.submit_async_navigation): page.click() on a submit button returned 7 ms before the POST was announced, so a script that clicked and read its requests or URL saw the page it had left; 151 and Microsoft's client both had it. FrameDispatcher._waiting_after runs Playwright's waitForSignalsCreatedBy around click and press (not dblclick, tap, hover or check, as there), on invisible_core's Lifecycle.wait_for_action_signals, which the engine's Page.linkClicked now feeds.

tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py fails on a 157 engine without it (the click returned before its form's request) and checks no_wait_after still returns at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:26:04 +07:00
Federico Elia 00ad6d702f Merge pull request #382 from feder-cr/ledger/0.43.0
record 0.43.0 as published
2026-10-25 06:40:12 +07:00
feder-cr 9fb0f20dbc record 0.43.0 as published 2026-10-24 23:18:49 +00:00
Federico Elia 254b2dce1d Merge pull request #381 from feder-cr/engine/firefox-53
firefox-53: the font gate checks the artifact's manifest, e2e for a page that changes process
2026-10-25 06:03:43 +07:00
feder-crandClaude Opus 5.5 2ee9f100bf 0.43.0: pin invisible-core 53.48.0, the firefox-53 engine
Locators keep working after a page that runs in a process of its own sends
itself to one that does not: the engine's context ids are unique for the
session. The exposed fonts are the set of a clean Windows (67 families).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 05:39:50 +07:00
feder-crandClaude Opus 5.5 d5a50275ea Test fixtures name the import error instead of a TypeError
With a core whose version the wrapper's pin did not name, the package was not
importable and firefox_binary answered "argument of type 'NoneType' is not
iterable" (measured 2026-10-25); sample_profile would have answered
"'NoneType' object is not callable". _require_package() exists for this and
neither fixture called it. Both do now, and a test drives both bodies with the
import missing: it fails on the old conftest and passes now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 01:30:25 +07:00
feder-crandClaude Opus 5.5 b02c79f279 e2e: reads on a page in a process of its own, then on the page it sends itself to
A page served with Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy
runs in a process of its own; one read there, and every locator on the page it
sent itself to failed for good with "Cannot find object with id" (measured
2026-10-24 on firefox-52 with 0.42.0, where this test fails). Each round checks
that the first page really was isolated, so it cannot pass for the wrong
reason. Fixed by firefox-53, whose context ids are unique for the session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 01:30:25 +07:00
feder-crandClaude Opus 5.5 4a69d25254 Font gate: the binary declares exactly the clean Windows set, read from its own manifest
EXPECTED loses Leelawadee, Microsoft Uighur, Wingdings 2 and Wingdings 3, the
families the firefox-53 bundle drops because a clean Windows 11 has none of
them.

The gate now asks the allow-list question on the artifact itself: the engine
exposes exactly the families its manifest declares, and that manifest is
fonts/bundle-fonts.list beside the binary (Contents/Resources/fonts on macOS).
The families it declares must be EXPECTED and only those. The page probe can
only find names it asks about, so a family put back into the bundle was
invisible to it unless some list named it; now it is refused with no list
naming it.

Measured 2026-10-25 on real binaries: firefox-52 as published, where the
probe answers "detected 67 families (expected 67)", is refused with the four
families named; a copy carrying the firefox-53 font bundle passes the whole
gate. Unit tests cover exact, extra, missing, the macOS layout and no
manifest at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 01:30:24 +07:00
Federico Elia 7b783cf892 Merge pull request #380 from feder-cr/ledger/0.42.0
record 0.42.0 as published
2026-10-24 19:38:45 +07:00
feder-cr 455f0cf0e1 record 0.42.0 as published 2026-10-24 11:58:36 +00:00
Federico Elia 655d99020a Merge pull request #379 from feder-cr/canvas2d/read-as-drawn
0.42.0: pin invisible-core 52.48.0, a 2D canvas reads back as drawn
2026-10-24 18:41:37 +07:00
feder-cr 4b61bea3fa 0.42.0: pin invisible-core 52.48.0, a 2D canvas reads back as it was drawn 2026-10-24 18:13:30 +07:00
feder-crandClaude Opus 5.5 ffad787af9 A screenshot is measured in device pixels, at the persona's display scale
The core now draws 1920x1080 panels at 125% and 150% as often as the Windows
fleet does (invisible_core #170), and seed 4242 lands on 125%: the screenshot of
an 800x600 viewport is a 1000x750 image, exactly what a real Windows machine at
that scale gives. The tests asserted 1x sizes and pixel positions; they now read
window.devicePixelRatio and scale both, so they also prove the crop is right
when the scale is not 1. Passes at 1.25 (core main) and at 1 (0.41.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 15:52:43 +07:00
feder-crandClaude Opus 5.5 cc3bce2f58 A 2D canvas reads back as it was drawn, guarded at the e2e gate
The random-pixel test public fingerprinting pages run - 64 random opaque 1x1
fills read back - must come back byte for byte on a page canvas and on an
OffscreenCanvas 2D (invisible 0.41 changed 6 of 64, retail 151 changes 0); an
undrawn canvas reads zero; two seeds declaring the same display scale and
ClearType tuning draw the same text; and a toDataURL PNG on an http page carries
the 16-byte deBG chunk retail 151 writes after IDAT. Against the firefox-51
engine five of these fail, as they should; they pass from firefox-52 with the
core that turns baseline protection on (Linux and Windows, 2026-10-24).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 15:52:43 +07:00
Federico Elia 33940459f7 Merge pull request #377 from feder-cr/ci/publish-one-at-a-time
The publish workflow serialises per repository
2026-10-21 13:36:28 -07:00
feder-cr dc9ff53e78 The publish workflow serialises per repository, so a dispatch on a branch and a push of the tag wait for each other 2026-10-21 22:15:13 +02:00
Federico Elia 4ad30e5079 Merge pull request #376 from feder-cr/ci/publish-concurrency
The publish workflow runs one at a time per ref
2026-10-21 07:37:41 -07:00
feder-cr e94863c79d The publish workflow runs one at a time per ref, so two runs of one tag cannot both upload 2026-10-21 16:09:10 +02:00
Federico Elia 151c314c05 Merge pull request #375 from feder-cr/ledger/0.41.0
record 0.41.0 as published
2026-10-21 06:18:38 -07:00
feder-cr 8bbc41162b record 0.41.0 as published 2026-10-21 12:52:37 +00:00
Federico Elia 58fd0c8d93 Merge pull request #374 from feder-cr/feat/core-51.48.0-pin
0.41.0: pin invisible-core 51.48.0, document font.system_text_quality
2026-10-21 04:28:18 -07:00
feder-cr edaf224417 The voices test declares the session it measures
It asserts the voice list measured on retail Windows Firefox for an en-US
session, and it left the locale and the time zone to the egress IP: green on
US runners, red from anywhere else. From Italy the session came out it-IT and
the list began with Microsoft Cosimo, which is right for that session and not
the one measured ([B364]). The session now declares locale en-US and time zone
America/New_York; the expected list and the assertion are unchanged. Measured
from an Italian egress: green on firefox-50 and on the form B engine.
2026-10-21 12:59:29 +02:00
feder-cr 07a55bfc85 A flat WebGL clear reads back exactly, and a realistic render varies per seed
test_high_entropy_webgl_still_noised_per_seed drew 64 scissor-cleared stripes
and asserted their readback differs between two seeds. A clear has no device
variation: the value is the clear colour quantised to 8 bits, the same on
every GPU, so noise on it is a tell a page can read by comparing with what it
cleared. The engine of form B leaves it exact, and the test asserted the tell.

The file now asserts the two things that hold: a triangle with a gradient and
antialiased edges reads back differently for seeds 1 and 2, and a flat clear
in v/255 colours reads back exactly v (an integer v, so no driver rounds it
differently). Measured: retail Firefox 151 reads the stripes exact (0 of 4096
moved); the form B engine passes both; firefox-50 passes the first and fails
the second on every pixel, both seeds.
2026-10-21 12:59:29 +02:00
feder-cr 1bac4b6f8b The required-keys list asks for edge_tolerance, the canvas pref the firefox-51 engine reads, not the retired noise_skip_mask 2026-10-21 12:28:52 +02:00
feder-cr 47dabed289 0.41.0: pin invisible-core 51.48.0, document font.system_text_quality 2026-10-21 12:20:44 +02:00
feder-cr a1312941eb Pin invisible-core==51.48.0 for the firefox-51 coupled release 2026-10-20 13:39:45 +02:00
github-actions[bot] 5b762bab65 record 0.40.0 as published (#373)
The upload succeeded and the ledger could not be pushed to main directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.
2026-10-19 00:36:04 -07:00
Federico Elia 920292760a The version gate installs the build backend it builds with (#372)
`invisible_core.release check --verify-index` builds the package without
isolation to compare it with the ledger, and the gate job installs only the
dev extra, which carries `build` and not `hatchling`. On the first tag that
ran the step (invisible-playwright v0.40.0) it stopped with exit 2, "gate
broken: Backend 'hatchling.build' is not available", and the upload was
skipped. The step installs `build hatchling` first, as the record step does.
2026-10-18 23:50:03 -07:00
Federico Elia 0afe5737fa 0.40.0: pin invisible-core 50.48.0, expect through the injected script, goto on the base URL (#371)
0.40.0 moves the pin to invisible-core 50.48.0, on the same firefox-50 engine, and brings the fixes that waited for it.

expect() reads every condition through the injected script's own expect, as Playwright's server does, instead of a Python rewrite that covered two families; a failed expect now carries its call log and reports an object value as the object (this was #368, renumbered from 0.39.0). page.goto follows the context's base_url, resolved by the engine's URL parser. evaluate, evaluate_handle and wait_for_function run the caller's text as a script and call it when it is a function, with the argument as a protocol value. The vendored client's README says what actually differs from upstream.

The client side of core 50.48.0: user-install runs on the ledger pull request instead of release: published, which never fired, and CI checks that with invisible_core.install_job; the release tests keep out of their venvs every variable the core's library reads; publish.yml checks the version and the ledger against the index before it uploads.

Eight older tests were red on fakes that did not know about the base URL or the new evaluate road; they are updated to check the same contract on the new code, and the seal-floor stub now copies the core modules pin.py imports instead of a hand list. Default suite: 762 passed.
2026-10-18 23:06:24 -07:00
github-actions[bot] 9a1501af7a record 0.39.0 as published (#370)
The upload succeeded and the ledger could not be pushed to main directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.
2026-10-18 14:40:44 -07:00
Federico Elia fb56fde88d 0.39.0: pin invisible-core 50.47.0, the firefox-50 engine (#369)
The pin moves to invisible-core 50.47.0, on the firefox-50 engine. From firefox-50 every realm, worker and worklet takes the session's zone from the engine's own override, so the core no longer writes TZ into the browser's environment and drops the IANA-to-POSIX table.

This package stops importing IANA_TO_POSIX_TZ and tz_env and stops passing a zone to the launch environment. The tests of the table go with it, and so does the probe of the guarded import that took those names; a core of any other version is still refused by the pin check before anything is imported from it.
2026-10-18 11:56:14 -07:00
github-actions[bot] 88d3f7a513 record 0.38.0 as published (#367)
The upload succeeded and the ledger could not be pushed to main directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.
2026-10-17 20:20:45 -07:00
Federico Elia 1504d95ed3 0.38.0: pin invisible-core 49.46.0, uv as the way in (#366)
The pin moves to invisible-core 49.46.0. The desktop settings a page can read (scrollbars, text scale, drag threshold, double-click selection, the system colours in both schemes, the refresh rate, the form-control font) are now declared by the persona instead of read from the machine it runs on.

The way in is uv: the README has one complete install block per system, and CI refuses an install instruction that is not uv. A remedy the package prints (a broken pin, an old core) is now the command for the environment it runs in, so a uv venv, which has no pip, is told the uv command.

The guides and the issue template move to uv too, and the release e2e runs the README block as written in a clean home. The tests that build prefs outside a session now declare a timezone, which 49.46.0 asks for.
2026-10-17 13:39:46 -07:00
Federico Elia 9927c974da The firefox-N release body points at the README's install block instead of restating it (#365)
The body of every firefox-N release carried its own `pip install invisible-playwright`, a second copy of the README's install command that nothing kept in step with it. It now links to the README's Install section, so a release always teaches what the README teaches.

scripts/gen_release_notes.py is run by the engine's publish workflow; tests/test_release_notes_install.py checks the body restates no install command and the README has the section it links to. No package change, no version bump.
2026-10-17 16:34:04 +02:00
github-actions[bot]andfeder-cr 632f023b8c record 0.37.0 as published (#364)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-17 13:56:39 +02:00
Federico Elia 0dd99b7638 0.37.0: the pin moves to invisible-core 49.44.0, on the firefox-49 engine (#363)
The pin moves to invisible-core 49.44.0, on the firefox-49 engine.

With it: your code's evaluate runs in a world of its own; the favicon no longer reaches routes or events; route.abort() with no code fails like Playwright's; a route that sends a navigation elsewhere lands there; a held request released after interception went off no longer stalls the browser; request.post_data is the body without a route; and the response names its certificate and its service worker.

Measured on the firefox-49 candidate: the full e2e and Playwright's own suite against the recorded reference, no regression. tests/gates/upstream_baseline.json is recorded again with a cause per entry; one correction to its commit message: test_scroll is pinned failed because of a scroll position two worlds read differently after scrollTo, not because of test order.
2026-10-17 13:19:57 +02:00
github-actions[bot]andfeder-cr 0433b18aa7 record 0.36.2 as published (#362)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-17 02:28:33 +02:00
Federico Elia b40535b344 0.36.2: the tests that time themselves run alone, and security_details() hands on the certificate (#361)
* response.security_details() hands on the certificate the engine sent

op_security_details answered None for every response, HTTPS included,
which a script reads as "not over TLS". It was written against an engine
that sent securityDetails: null; the engine after firefox-48 reports the
certificate as upstream does, and the response now keeps what the
responseReceived event carried. An engine that still sends null answers
None, as before.

Measured with Playwright's own suite through this client: on firefox-48
with the engine change, test_response_security_details,
test_response_security_details_none_without_https and
test_should_report_if_response_was_from_service_worker pass; on the
published firefox-48 the answers are unchanged.

* The e2e tests that measure time run alone, after the parallel tests

Tests whose verdict is an upper bound on a wall-clock duration ("refused
at once", "returns before the page loads", the device enumeration's
declared time) carry the new wall_clock marker. From invisible-core
48.42.0 the e2e run gives them the machine alone, one browser, after the
last parallel test has ended: four browsers at once cross those bounds
with nothing wrong in the engine. The pin moves to invisible-core 48.42.0.

* The changelog dates 0.36.2 by the day it is uploaded, UTC
2026-10-17 01:47:55 +02:00
github-actions[bot]andfeder-cr 3986b4ccce record 0.36.1 as published (#360)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-16 13:23:31 -07:00
Federico Elia bc3d777f59 0.36.1: wait_for_function ends on an element, and evaluate_handle handles work (#359)
* wait_for_function ends when the predicate returns an element

The predicate ran by value and Python judged the serialized result, so a predicate that returns a node, the most common wait there is, never ended: a node serializes to nothing truthy. Each turn is now invisible-core's poll_in_main: one run by reference, judged with js_truthy, and a truthy value is the handle the wait returns. Needs invisible-core 48.42.0.

* A handle of a main-world value runs where the value lives

Every handle evaluate_handle returned was unusable on 0.36.0: text_content, evaluate and json_value failed with 'Cannot find object', because a main-world objectId was made into a utility-world handle and only json_value read the handle's world. FrameDispatcher._handle_from_main is now the one place such a handle is made: a node is adopted into the utility world and its main objectId released, as add_script_tag already did; any other value, primitives included, stays in the main world, where dispose, evaluate, get_property, get_property_list and json_value run. evaluate_handle and wait_for_function both go through it; evaluate_handle reads the whole RemoteObject (invisible-core's evaluate_in_main_remote) to tell a node from anything else. The poll test now pins one run of the caller's code per turn. Needs invisible-core 48.42.0.

* 0.36.1: the pin moves to invisible-core 48.42.0

The core brings js_truthy and poll_in_main, which wait_for_function now
uses, evaluate_in_main_remote, which evaluate_handle uses, and a GeoIP
cache that is never read half-written. The CHANGELOG lists the three under
0.36.1.
2026-10-16 12:54:03 -07:00
github-actions[bot]andfeder-cr 6dd3e5af82 record 0.36.0 as published (#358)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-16 10:57:08 -07:00
Federico Elia f7cd0cc378 0.36.0: the pin moves to invisible-core 48.41.0, on the firefox-48 engine (#357)
* A persistent profile stays the same machine across launches

The seed came from secrets.randbits whenever none was passed, so a
profile_dir reopened without seed= showed its cookies on another machine.
It now comes from invisible_core.resolve_session_seed, which reads the
seed the profile recorded, and record_session_seed records it where the
profile directory is created.

* docs: the branding pin, the voices by language and the persistent seed

pinning.md lists branding among the top-level keys and says the voices follow the session's first language; the CHANGELOG says all three under Unreleased.

* docs: the branding pin takes a zip archive, as the engine serves it
2026-10-16 10:09:41 -07:00
Federico Elia 36003250a4 0.35.11: a closed page says nothing, and a close waits for the event being handled (#355)
A page's close and the delivery of its session's events were not serialized, so a late Network.responseReceived could create a Response under a request the client had already dropped with the page, and new_page() or a response listener raised 'dict' object has no attribute '_object'. Every event of a page now goes through PageDispatcher._deliver, under the close's own lock.
2026-10-16 06:02:24 -07:00
Federico Elia 47ee59da22 The enumeration test bounds what the engine does, not how loaded the runner is (#354)
The first enumeration was held within the declared time plus 110 ms and the
second under 50 ms. A CI run with four browsers crossed each once in the
release of 0.35.10 (656 against 543 + 110, then exactly 50), both green again
on the same SHA, and the second one stopped the publish.

The bounds now come from the properties. The declared time is waited, which
load can only add to. The list is kept, so a second call is well under the
declared time that a fresh ask would wait again. And nothing is added on top:
the second call is the same round trip without the wait, so first - second is
the declared time plus whatever the host added, with the load both calls share
cancelled out; the margin is half the smallest time the host's audio stack
used to add (287 ms). Under four browsers at once on Windows, 12 launches out
of 12 hold all three, the difference 8-49 ms over the declared time.
2026-10-15 16:13:24 -07:00
github-actions[bot]andfeder-cr eaa044fef7 record 0.35.10 as published (#353)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-15 05:45:54 -07:00
Federico Elia 82565e0c98 0.35.10: the pin moves to invisible-core 47.41.0 (#352)
The engine can live on a read-only disk (INVISIBLE_PLAYWRIGHT_ENGINE_DIR), and
an "auto" timezone that cannot be resolved fails the launch without a proxy
too, instead of falling back to the host's zone in silence.
2026-10-15 05:04:40 -07:00
github-actions[bot]andfeder-cr 3dac7702ba record 0.35.9 as published (#350)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-14 18:41:45 -07:00
Federico Elia 48770e590e 0.35.9: the pin moves to invisible-core 47.40.0 (#349)
A connection releases each pipe end once: closing a browser twice no longer
closes the pipe of another browser in the same process.
2026-10-14 18:09:56 -07:00
Federico Elia c1835182ed record 0.35.8 as published (#348)
Records 0.35.8, uploaded by hand on 2026-10-14 at 22:49 UTC on the owner's order to release before the e2e of the merge had finished. A manual upload skips the release tool, so the entry is recorded from the same tag export that was uploaded.
2026-10-14 16:01:40 -07:00
Federico Elia bf9af85830 0.35.8: the pin moves to invisible-core 46.39.0 (firefox-46) (#347)
The pin moves to invisible-core 47.39.0, which seals the firefox-47 engine.

- **A page can no longer tell that the engine carries the automation protocol (invisible_playwright #336).** Every engine until firefox-47 registered the protocol as a chrome package named `juggler`, and a page tells a registered package from an absent one with `new Worker("chrome://juggler/...")`: it returned on our engine and throws on Firefox. Captcha vendors started probing it in October 2026, which is why a challenge solved by hand was still refused. firefox-47 loads the protocol from `resource://gre/modules/juggler/`; of 65 chrome packages and resource substitutions probed from a page, none answers differently from Firefox 151.

- **A goto the page stops on its way no longer answers OK on the old page, nor waits out its timeout.** document.open() and window.stop() in the page being left stop the navigation; the engine dropped every such stop of the main frame, so goto answered OK on the previous page (4 times in 4 on 0.35.7 with the page held 1.5 s) or waited for its timeout. It now raises NS_BINDING_ABORTED at once, as Playwright does on Firefox.
- **Every way a page or the caller can stop or replace a goto is tested**: document.open, window.stop, location.replace and assign, a form submit, an iframe navigating the top, history.back, pushState, a meta refresh, nothing, and a second goto, each in one process and across a process swap, back to back, checked against upstream Playwright 1.63's answers on its own Firefox.
- **goto refuses a success the engine made up**: a commit attributed to its navigation that is not where that navigation's request went raises instead of answering OK.
- A goto the caller's next goto stops is "interrupted by another navigation", as upstream; goto(until="load") counts only its own document's load; the timeout message no longer contradicts itself.
- The wheel is born before the page sees it, as keys and moves are since 0.35.7.

e2e on firefox-46 with core 46.39.0's source: Windows 389 passed, 5 skipped; Linux 390 passed, 4 skipped; no reruns.
2026-10-14 15:40:54 -07:00
github-actions[bot] a61169c830 record 0.35.7 as published (#346)
The upload succeeded and the ledger could not be pushed to main directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.
2026-10-13 13:31:36 -07:00
Federico 1839425da6 0.35.7: the pin moves to invisible-core 45.39.0 (firefox-45) (#345)
The pin moves to invisible-core 45.39.0, which seals the firefox-45 engine.

- **A key or a mouse move is born before the page sees it.** The engine stamped every input event at the instant it reached the page, so `event.timeStamp` equalled `performance.now()` in the handler, and a script that keeps only the events with `timeStamp < now` dropped most of our keys. Each event is now born a few milliseconds earlier, drawn per event from the session. The new e2e test checks every key and mouse move in the handler; measured on firefox-45, all of them arrive 4 to 22 ms after they were born, where retail Firefox with a real keyboard and mouse is at 3 to 18.
- **The first `enumerateDevices()` of a session takes the same time on Windows and on Linux**, a time the seed fixes between 240 and 640 ms, instead of the host's audio stack time (15 to 40 ms on Linux). The device list is unchanged. The new e2e test reads the declared time from the core's profile.

e2e on firefox-45 with core 45.39.0's source: Windows 378 passed, 5 skipped; Linux 379 passed, 4 skipped; no reruns.
2026-10-13 13:06:23 -07:00
github-actions[bot] 2aa4292458 record 0.35.6 as published (#344)
The upload succeeded and the ledger could not be pushed to main directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.
2026-10-13 10:48:18 -07:00
Federico 102913d5bf 0.35.6: the pin moves to invisible-core 44.39.0 (firefox-44) (#343)
The pin moves to invisible-core 44.39.0, which seals the firefox-44 engine.

- **Stopping a screencast no longer freezes the browser on Windows.** The engine stopped its window capture on the thread that owns the window while the capture was waiting for that thread to draw it. The new e2e test starts and stops a screencast fifty times at the rates the API is asked for; one browser froze at the ninth stop on firefox-43, and a probe of the same thing ran 1200 stops out of 1200 on firefox-44.
- **Text with a character the US layout has no key for is typed**: `page.type("#i", "café")`, `locator.type` and `keyboard.type` raised. The keys that exist are pressed and the character is inserted in its place, as Playwright does.
- **On Linux, the line endings a page reads are Windows'** (`Blob` / `File` with `endings: "native"`, and the text of a selection across two blocks).
- **`speechSynthesis.getVoices()` is Windows' list**, in its order, none of them the default.
- `scripts/run_e2e.py` is now the entry to the core's single e2e runner: a worker that dies at its deadline ends the run red, with the test's name and every thread's stack on the log, instead of waiting forever.

e2e on firefox-44 with core 44.39.0: Windows 376 passed, 5 skipped; Linux 377 passed, 4 skipped; no reruns.
2026-10-13 10:17:22 -07:00
github-actions[bot] 49e4d73de2 record 0.35.5 as published (#342)
The upload succeeded and the ledger could not be pushed to main directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.
2026-10-13 03:29:09 -07:00
Federico 857de63b48 0.35.5: firefox-43 (invisible-core 43.39.0) (#341)
The pin moves to invisible-core 43.39.0, which seals the firefox-43 engine.

- **A page's frames stay in `page.frames` after a few navigations in one tab.** The engine reported the iframes of the page being loaded as detached once the back-forward cache let an older page of the tab go, so `page.frames` missed them and a `frame_locator` into them waited until its timeout. The new e2e test (five pages in a row, then a page with nested frames) fails on firefox-42 with no child frames and passes on firefox-43 with all three.
- **On Linux, AAC is answered as on Windows** (the declaration is in the core): `canPlayType` and `MediaSource.isTypeSupported` for audio/mp4, audio/aac, audio/x-m4a and video/mp4 with mp4a.40.2 used to drop to "" after about 300 ms on a host without its own AAC decoder.

e2e on firefox-43 with core 43.39.0: Windows 373 passed, 5 skipped; Linux 374 passed, 4 skipped; no reruns.
2026-10-13 02:59:07 -07:00
github-actions[bot] 70285c5bc3 record 0.35.4 as published (#340)
The upload succeeded and the ledger could not be pushed to main directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.
2026-10-13 01:34:51 -07:00
Federico be0620f2ee 0.35.4: firefox-42 (invisible-core 42.39.0) (#339)
The pin moves to invisible-core 42.39.0, which seals the firefox-42 engine.

What users get from it:

- A page that navigates or reloads itself no longer loses its main world now and then (a read in the page's world used to wait 30 s and fail).
- A session keeps the focus when another one starts beside it. Two sessions on one hidden Windows desktop: the first lost the focus in 4 runs of 6 before, 0 of 6 now.
- In a visible session the real cursor moving over the window can no longer turn a click on a link into a native drag.
- `evaluate` of a function that rejects with a plain object or an Event raises instead of answering `None`.

On the firefox-42 build with this branch and core 42.39.0: e2e Windows 372 passed, 5 skipped, no reruns; Linux 373 passed, 4 skipped in four full runs of five, the fifth with one drag test that saw a native pointer move from the hidden display (it passed 16 times alone and is tracked on its own).
2026-10-13 01:07:01 -07:00
github-actions[bot]andfeder-cr 91ea73bb54 record 0.35.3 as published (#338)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-13 06:28:49 +02:00
Federico 7d86ba00bd 0.35.3: go_back and go_forward to a same-document entry answer None at once, and the test servers are threaded (#337)
go_back and go_forward to a same-document entry (a hash, a pushState) waited
for a navigation id that a same-document navigation never has, and raised
TimeoutError at the timeout. Measured on 0.35.2: 8.0 s for
go_back(timeout=8000). Playwright answers null at once. _history now takes
Lifecycle.mark before the command (invisible-core 41.39.0), which also counts
same-document navigations.

The e2e of tests/test_navigation_response.py had left this arm out on the
word of B185, which said the engine answered Page.goBack and then did nothing.
B185 was closed a month ago and the comment stayed. The arm is back, with
go_back and go_forward on a hash entry.

The core no longer gives a protocol command a 10 s bound of its own: inside an
action it waits for what is left of the action's timeout.

Tests: 35 single-threaded servers in 18 files are now tests/_servers.py's
LocalServer, threaded with daemon threads. A connection the browser opened and
left could hold a single-threaded server's only thread, and shutdown() with
it. That is a candidate for the Windows e2e worker that stopped for 420 s on
the screencast test.

The pin moves to invisible-core 41.39.0.

Two fixes to the test servers' conversion came after: the import of LocalServer in test_detectors_e2e.py had landed in its docstring, and LocalServer gives server_name and server_port as HTTPServer does.
2026-10-13 05:44:32 +02:00
github-actions[bot]andfeder-cr a279231512 record 0.35.2 as published (#335)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-13 00:37:29 +02:00
Federico 35951a1420 0.35.2: the caller's code runs once when its page navigates while it waits (#334)
* 0.35.2: the caller's code runs once when its page navigates while it waits

A script passed to page.evaluate, evaluate_handle or eval_on_selector_all
that was waiting on a promise when its page navigated was sent again into the
page that replaced it, and ran twice: Juggler sends a message still waiting
for its answer again to the new document, which refuses it in the same words
as a script that never ran, and from core 41.36.0 that refusal made the code
again. Core 41.38.0 sends the page world's code once; eval_on_selector_all
passes repeatable=False for the caller's function; wait_for_function goes on
polling through a world that went, as Playwright's does. The pin moves to
invisible-core 41.38.0.

* all_inner_texts and all_text_contents are the server's read, not the caller's $$eval

The fork's Locator asks readAll for them; upstream's client sends them
through evalOnSelectorAll with a fixed function, which the server cannot tell
from a caller's and now sends once (B285). readAll is the core's read_all,
made again on the page that replaced the one it went to (B282), which is what
the MCP's read_text reads right after a navigation. test_a_page_that_moves_on
reads both on every page, and evaluate there answers or raises Playwright's
navigation error.

* CHANGELOG: the library's reads keep answering with the new page

* page.evaluate_read: the door for a read its caller declares free of effects

Not in Playwright. page.evaluate sends the caller's code once and raises
Playwright's navigation error when the page moves under it (B285);
evaluate_read sends evaluateExpression with repeatable=True and is made again
on the page that replaced the one it went to. It exists for the MCP's snapshot
and read_html, fixed reads that inherited that robustness from core 41.36.0
through page.evaluate. Only a real True from the fork's client counts.

* CHANGELOG: page.evaluate_read
2026-10-13 00:10:28 +02:00
github-actions[bot]andfeder-cr e164432db0 record 0.35.1 as published (#333)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-12 22:02:37 +02:00
Federico 51b6602526 0.35.1: the pin moves to invisible-core 41.37.0 (#332)
A browser that closes or crashes now ends every wait on an event at once
with a closed-target error, including the waits a caller asked to have no
limit: the core's connection tells its close listeners, and the lifecycle's
waits listen.
2026-10-12 21:34:46 +02:00
github-actions[bot]andfeder-cr e93d16fd4b record 0.35.0 as published (#331)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-12 07:00:53 +02:00
Federico b03fa50a1a 0.35.0: invisible-core 41.36.0, pages that move on, goto that answers, reads that wait, expect that works (#330)
The pin moves to invisible-core 41.36.0.

- A page that replaces itself right after it loads no longer breaks the next call: a read right after `goto` failed with "Failed to find execution context", and `goto(..., "networkidle")` timed out.
- A `goto` the browser abandons for the previous page's own redirect raises at once with Playwright's "is interrupted by another navigation to" instead of waiting for its timeout.
- `page.frames` lists the frames the page has; it used to grow by a stale iframe and a repeated main frame at every cross-process navigation.
- Selector reads wait for the element as in Playwright, and find and read in one command.
- `expect(locator)` works: every `to_be_*` and `to_have_count` used to fail with an empty AssertionError.

`tests/test_a_page_that_moves_on_e2e.py` runs pages that redirect from the `<head>` and 0, 50 and 300 ms after `load`, same site and cross site, five rounds each, on a real engine.
2026-10-12 06:36:55 +02:00
github-actions[bot]andfeder-cr 93acb6cb13 record 0.34.0 as published (#328)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-12 00:35:42 +02:00
Federico 65dfbd5957 0.34.0: invisible-core 41.35.0, bypass_csp reaches the page, and a launch has one deadline (#327)
* A launch has one deadline, and a timeout reaches the caller as TimeoutError

On the firefox-41 gate, Linux under load, launch() failed with "the engine
refused the proxy, so the browser was closed": the proxy command had 10 s of
its own, went unanswered for 10 s, and the caller's 60 s still had time.

The core's launch now sets the proxy and keeps one deadline for the startup;
this side passes the caller's timeout (0 is no limit, as in Playwright, where
it used to become 60 s) and the proxy, sends Browser.enable through
startup_send, and closes the browser if building its object fails.

Every TimeoutError goes out named TimeoutError, whatever its subclass, because
the client picks its class by that name: a click on an element that never
became actionable (the core's ElementNotActionable) and a wait_for_function
that never became true reached the caller as a plain Error, so except
TimeoutError caught neither. Both checked on the firefox-41 binary.

Commands Playwright gives no timeout lose the bounds of their own (#321 did
newPage): context creation and its options, cookies, permissions and the
other context calls, Page.close, removeBrowserContext, the file chooser
subscription, Heap.collectGarbage, and the page commands, where screenshot
takes the caller's timeout.

Tests: tests/test_a_launch_has_one_deadline.py, six mutants each killed; the
fakes that stand for a connection gain startup_send. Proxy and bypass_csp e2e
pass on firefox-41 on Windows and Linux, and a 1 ms launch raises
TimeoutError and leaves no browser process.

* timeout=0 is no limit, read in one place (B278)

The server read a timeout as params.get("timeout") or 30000 in four places,
so the 0 the Playwright client sends for timeout=0 became 30 s for an action,
a wait or a navigation. _caller_timeout reads it once (0 is None, absent is
the operation's default) for actions, goto, history and launch, and
wait_for_function waits on the core's Deadline.

Tests: tests/test_timeout_zero_is_no_limit.py; the two tests that move the
actions' clock now move the deadline's too. On the firefox-41 binary,
click(timeout=0) on a button a page adds after 32 s clicks it at 32.5 s.

* The first-launch test runs the engine from a path of its own

The launcher state is per executable path, and the e2e workers all launch the
binary under test from the same path. This test deleted that path's values and
launched, while a neighbour's launch could find a Launcher timestamp without a
Browser one, read it as a crashed launcher and turn the launcher off for the
path: on firefox-41 under -n 4 the test failed once with no Launcher timestamp,
and 5 times in 8 with two other processes launching the same path (all 36 of
their launches succeeded, without the launcher).

The test now copies the engine tree, as hard links where the volume allows, to
a temporary path no Firefox has run from, which is the state it is about, and
removes that path's values afterwards. 8 in 8 under the same concurrent
launches.

* 0.34.0: invisible-core 41.35.0, bypass_csp reaches the page, and a launch has one deadline

The pin moves to invisible-core 41.35.0, which seals firefox-41: bypass_csp
lifts the page's header and meta policies (#295), a screencast keeps the rate
it was asked for, and on Linux a window covered by another one is not reported
as hidden. tests/test_bypass_csp_e2e.py checks both halves against the engine:
with the option inline script, eval and add_script_tag run; without it, in
several fresh contexts, they stay blocked.
2026-10-12 00:10:02 +02:00
Rayen Mlayeh 5925cecdf5 A launch that fails before the browser starts stops the hidden display (#326)
Composing the prefs, the proxy and the environment sat outside the try whose handler calls _teardown(), so a launch that failed there (a proxy the engine cannot express, a font manifest it does not carry) left the Xvfb or the hidden desktop running. They move inside it, in the same order. The version moves to 0.34.0 with its changelog entry.
2026-10-11 22:04:41 +02:00
github-actions[bot]andfeder-cr 06f06d5cec record 0.33.1 as published (#325)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-11 12:58:22 +02:00
ce97476fa8 A request's resource_type comes from Juggler's cause name (#305)
* fix(network): a request's resource_type comes from Juggler's cause name

Juggler sends `cause` and `internalCause` as nsIContentPolicy constant
names (TYPE_DOCUMENT, TYPE_XMLHTTPREQUEST, TYPE_FETCH). The table they were
looked up in was keyed by document / xmlhttprequest / fetch, so nothing
matched and every request's resource_type was "other": a page load, a
fetch and an XHR were indistinguishable on the request event.

Use the Playwright driver's own table (ffNetworkManager), internalCause
first for eventsource, so resource_type agrees with the driver transport.

* 0.27.1: a request's resource_type says what it is

* tests: each kind of request is named by the engine, end to end

The unit test proves the table maps the strings it is given; the defect lived
in which strings ARRIVE, so a real page now makes a document, stylesheet,
script, image, fetch and XHR request and the names come from the engine. Green
on firefox-40; red when the lookup goes back to lowercased keys.

---------

Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-11 12:22:19 +02:00
Federico ac98613882 A new page waits for the engine's answer as long as the caller does (#324)
op_new_page gave Browser.newPage a fixed 30 s, a bound of its own on a call
Playwright gives none. The caller's bound is the one that means something (a
navigation that opens the page, an MCP tool call), and on a loaded host the
first page after a slow launch failed at 31 s while the navigation that asked
for it still had time: 5 such failures in 773 page calls of a real audit, each
loading normally when repeated.

The reply is now waited for without a bound: it ends when the engine answers,
or when the pipe closes and the connection raises TargetClosedError at once.
The adoption wait after the reply keeps its bound, which guards a protocol
contract (a reply with no attached target), not the engine's speed.
2026-10-11 11:53:56 +02:00
github-actions[bot]andfeder-cr b817217d2e record 0.33.0 as published (#323)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-11 11:09:55 +02:00
Federico 8c33d56c58 0.33.0: invisible-core 40.35.0, the shutdown pings leave by the session's proxy (#322)
0.33.0: invisible-core 40.35.0, the shutdown pings leave by the session's proxy
2026-10-11 10:22:15 +02:00
feder-cr 992ad3dff2 0.33.0: invisible-core 40.35.0, the shutdown pings leave by the session's proxy
The pin moves to invisible-core 40.35.0, which seals the firefox-40 engine: the
shutdown pings go through the engine's own background task by the session's
road instead of pingsender[.exe] from the machine's address, and the session's
last process is let finish them before the session's files are removed.
2026-10-11 10:06:51 +02:00
github-actions[bot]andfeder-cr 0819cd4e23 record 0.32.0 as published (#320)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-10 22:30:10 +02:00
Federico fa7ccba296 0.32.0: invisible-core 39.35.0, the session ends with its last process, and the hand presses Shift and waits before it clicks (#319)
0.32.0: invisible-core 39.35.0, the session ends with its last process, and the hand presses Shift and waits before it clicks
2026-10-10 21:57:25 +02:00
feder-cr 51fbe23431 tests: build Actions through its constructor, and pin the persona fields by count
With invisible-core 39.35.0 two tests broke on a property that still held.
test_drag_motion.py assembled an Actions with __new__ and set its fields by
hand, so the field the core added (pointer_persona, read before a press) raised
AttributeError on every drag; it is built through the constructor now, which
draws the motion from the same sub_seed(seed, "server:drag") stream. And
test_a_field_is_typed_after_a_pause.py pinned "all fields but the last", which
the Shift timing appended after the spread turned into a different set; it pins
the first ten, the ones 0.25.8 drew.
2026-10-10 21:20:57 +02:00
feder-cr a22d34b423 0.32.0: invisible-core 39.35.0, the session ends with its last process, and the hand presses Shift and waits before it clicks
The pin moves to invisible-core 39.35.0, which carries SessionFiles (used here
by the commit below), Shift around the characters that only exist with it, and
the pause between the pointer arriving and the press.
2026-10-10 20:59:45 +02:00
feder-cr 17baf3c6a8 A session's directories are the core's SessionFiles, removed after the session's last process
On Windows a session longer than a minute left its invisible_profile_* behind,
holding an empty saved-telemetry-pings; one machine had 6,091 of them. Two causes,
measured in that order:

- The profile removal was a shutdown hook registered after conn.close, and the
  hooks run in reverse, so it ran first, with the browser still up (the comment
  beside it said the opposite). The upload directory, created after the launch,
  went before the browser too, and a launch that failed or a proxy the engine
  refused returned before the removal was registered at all.
- With the order fixed the directory still stayed: at exit the browser starts
  pingsender.exe, a child that outlives it holding the ping file inside the
  profile, so the removal failed on that file and the child then deleted it.

The profile and the browser's temporary directory are the core's SessionFiles
now, made the moment the launch is asked for and handed to Server.after_shutdown,
which runs once every hook has: conn.close has waited for the browser, and
SessionFiles.remove ends whatever still carries the session's token before it
removes anything. The upload directory goes the same way. Nothing changes on
the network: the launcher's last step ended those processes anyway, a moment
later.

The browser's temporary directory (TMP, TEMP and TMPDIR, inside this process's)
is SessionFiles' too: Firefox's cleanup in the system one was cut off by short
sessions, and a 70 s session left two 4 MB Remote Settings bundles in %TEMP%.

Measured with this branch on firefox-39: two 70 s sessions, and the private TEMP
they ran with was empty afterwards.

- tests/test_juggler_transport.py: the profile is still there when the browser
  is closed and gone after, on the normal path, a failed launch and a refused
  proxy; the temporary directory lives and ends with the session. What
  SessionFiles.remove does about the children that outlive the browser is the
  core's to test.
2026-10-10 14:04:03 +02:00
github-actions[bot]andfeder-cr cbf061a28d record 0.31.0 as published (#318)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-10 05:35:28 +02:00
Federico 9d1635bdc5 0.31.0: firefox-39, a pointer call answers once the page has handled its event (#317)
With invisible-core 39.34.0 and the firefox-39 engine, page.mouse and every
element action return after the page's listeners have run, so the next call
cannot reach the page first; a right click no longer waits out an
acknowledgement that never came.

- tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py asks the
  contract deterministically (a handler that keeps the page busy for 300 ms):
  red on firefox-38, green on firefox-39; and a click that opens a dialog still
  answers.
- Two fakes follow the protocol: the landing comes back with the dispatch.
2026-10-10 05:12:55 +02:00
Federico 40dad414f1 tests: every Juggler protocol name the server writes is in the mirror (#314)
The core checks its client against the protocol mirror, and invisible-selenium
and invisible-puppeteer check their own code; the Playwright server, which writes
more protocol names than any of them, had no such test. It passes today; the
known-bad input is the command the engine dropped, written back into a send.
2026-10-09 20:04:30 +02:00
Federico 92184c6834 tests: the client's browser tests run in both pointer modes, the rest is the core's (#313)
test_juggler_actions.py keeps the tests that need the engine, and each now
runs twice: with the approach drawn by the client (this package's mode) and
by the engine (engine_approach=True, the mode invisible-selenium and
invisible-puppeteer use). Those two packages carried a copy of this file each
and drop it; the tests without a browser moved to invisible-core with the
client they test.
2026-10-09 19:08:06 +02:00
github-actions[bot]andfeder-cr fad3d56cba record 0.30.0 as published (#312)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-09 17:24:57 +02:00
Federico 0683e74e45 0.30.0: the Juggler client comes from invisible-core 38.34.0 (#311)
The pipe, the protocol mirror, the frame lifecycle, the injected script, the
input actions, the keyboard and the human rhythm leave this package for
invisible_core.juggler, the one copy invisible-selenium and
invisible-puppeteer now share too. _juggler/ keeps the Playwright server.

- Imports use the core's public names only (the package re-exports them);
  tests/test_juggler_lives_in_the_core.py refuses a core module copied back.
- user.js is written by invisible_core.launch.write_user_js, the one writer:
  a firefoxUserPrefs value Firefox has no pref type for is refused.
- The unit tests of the moved modules, and the injected-script page-surface
  gate, are the core's now; the browser tests stay here, where the e2e job
  has the engine (test_juggler_lifecycle_e2e.py brings back the lifecycle's).
- The e2e job checks the mirror against the engine with
  python -m invisible_core.juggler._gen_protocol --check.
2026-10-09 16:58:58 +02:00
github-actions[bot]andfeder-cr b02cde7ffb record 0.29.0 as published (#310)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-09 12:09:25 +02:00
Federico d4df15396d 0.29.0: the window Windows Firefox draws, firefox-38 (core 38.33.0) (#309)
- A maximized window answers screenX -8 and an outerWidth 16 wider than screen.availWidth at 100%, as Windows Firefox does, and its content starts where retail's does at every display scale (mozInnerScreenY 85.6 at 125%). A popup answers its own size, frame and position, and one opened without a position is placed where Windows Firefox places it. The frame is measured on Windows Firefox 151 at the four display scales the personas use.
- The default viewport and the tests follow the core's per-scale frame; docs/pinning.md drops the four window pins the core no longer accepts.
- The pins screen.chrome_w, screen.chrome_h, screen.window_x and screen.window_y are gone; screen.dpr takes 1, 1.25, 1.5 or 2.
2026-10-09 11:36:02 +02:00
Federico d606c4ee4b README: the animation reads at the size GitHub draws it, with a third version for narrow phones (#308)
GitHub draws the 1280px animation in an 838px column (0.655) and the 720px phone one 254-472px wide (0.35-0.66), so their smallest text reached a visitor at 9-11.8px. Every text is now at least 19px in the wide animation, 28px in the phone one, and 35px in a new one for phones up to 374px (banner-small-{light,dark}.gif); the scene titles are larger and the line under them semibold. Same scenes and timing.

Measured with Playwright on seventeen device profiles, from 320px phones to 1920px desktops, in light and dark, through a local copy of the README laid out with the column github.com gives each width: the smallest text is 12px or more on every one, and each loads the GIF of its own theme.
2026-10-09 03:24:35 +02:00
github-actions[bot]andfeder-cr b7458ba3e0 record 0.28.0 as published (#307)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-09 02:49:56 +02:00
FedericoandRichard Powell 0aed66de2f 0.28.0: firefox-37, service workers blocked in the engine, the screen in CSS pixels (core 37.33.0) (#306)
- `service_workers="block"` on `new_context()` and `launch_persistent_context()` turns service workers off for that context inside the engine (`Browser.setServiceWorkersBlocked`, firefox-37), before the context is handed out: no page script, no global preference, and `route()` still sees every page request. On a persistent profile the block removes the service workers that profile had saved. A context whose options fail is removed, and a persistent launch whose context fails closes the browser. Adopted from #299 by Richard Powell, without the engine probe: the pinned engine always has the command.
- The screen a page reads is in CSS pixels, and the default viewport with it, from the core's `context_geometry()` (a 1920x1080 panel at 125% reads 1536x864).
- On Linux the Xvfb display keeps X access control on, with a private cookie per session (core 37.33.0).
- An empty request header survives a route (firefox-37). New e2e tests read the raw HTTP/1.1 header block with and without a route, and check that a reloaded page is controlled by its service worker.
- A glide to where the pointer already is sends nothing instead of raising.
- `docs/differences-from-playwright.md` lists every place this package deliberately differs from Playwright.

Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
2026-10-09 02:26:09 +02:00
Federico c279fb1632 README: the banner is an animation, as invisible_dots' is (#304)
It opens on the name and the logo, shows four scenes of what this package does, each taken from this README, and comes back to the logo, so the loop has no seam. A phone version, with nothing under 28px, takes over up to 1239px, where GitHub's README column is under 800px; both come in light and dark, on GitHub's own page colour, so no box shows around them.

The last scene is the five results of docs/screenshots/hero.gif. docs/banner-light.png and banner-dark.png stay: the README of the release on PyPI loads them from main.
2026-10-08 15:47:49 +02:00
Federico a310439f1f README: one banner for the four browser repositories, and a narrow one for phones (#302)
invisible_playwright, invisible_playwright_mcp, invisible_selenium and invisible_puppeteer now share one banner: the same title size (the one invisible_playwright's banner had), the same height, logos of the same weight and the same spacing, with only the width following the name.

On a phone the wide banner shrank to about 45px high and its title to body-text size. A narrow version, the logo above the title, now replaces it where github.com's README column is under about 520px: viewports up to 600px, and 768-880px, where the sidebar narrows the column. Every narrow banner is the same size, so the title is one size on a phone in all four.
2026-10-08 03:42:27 +02:00
github-actions[bot]andfeder-cr 9fc1d25b37 record 0.27.0 as published (#301)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-06 08:22:29 +02:00
Federico f6f4377685 0.27.0: the language of a session is the real Firefox of its egress country (core 36.33.0) (#300)
Requires invisible-core 36.33.0 (exact, as before).

- locale="auto" declares the real Firefox of the egress country, by share:
  each country carries the Firefox builds people there run and their share
  (Mozilla's Firefox Public Data Report), and the egress IP picks one. The
  same address always gets the same language. A country used to map to one
  country tag (de-DE) that no Firefox build has.
- An explicit locale is navigator.language: locale="en-AU" reports
  "en-AU, en-US, en" (it reported "en-US, en"). The test that pinned the old
  answer now pins the new one.
2026-10-06 07:55:44 +02:00
github-actions[bot]andfeder-cr 7c48af1fcf record 0.26.1 as published (#298)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-05 20:29:31 +02:00
FedericoandRichard Powell 4fa406fc45 0.26.1: add_script_tag and add_style_tag answer on the Frame channel (#297)
Lands #296.

Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
2026-10-05 20:04:12 +02:00
github-actions[bot]andfeder-cr 0bacbdf066 record 0.26.0 as published (#294)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-05 18:49:04 +02:00
FedericoandRichard Powell 13766fe836 0.26.0: firefox-36, and the session language is the core's decision (#293)
Lands #277.

Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
2026-10-05 03:48:49 +02:00
github-actions[bot]andfeder-cr 878794f099 record 0.25.13 as published (#292)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-04 15:43:30 +02:00
Federico b29531d643 A page's number in the session follows the call, not the engine (#291) 2026-10-04 14:47:08 +02:00
FedericoandRichard Powell b35a837c50 0.25.13: routes intercept, or refuse when they cannot (#290)
Lands #274.

Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
2026-10-04 14:18:38 +02:00
github-actions[bot]andfeder-cr 30c0bf4044 record 0.25.12 as published (#289)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-04 13:29:44 +02:00
Federico 2c4913a122 0.25.12: no pause helper in the public API; set_input_files takes the pause itself (#288)
invisible_playwright.hesitation() was the one addition this package made to Playwright's public contract, and the package adds nothing to it. Its only use was the pause before answering a file chooser; set_input_files, and so FileChooser.set_files, now hands the files over after two of the session's hesitations (finding the file, confirming it), once per upload and bounded by the action's timeout, the way fill already pauses before its first key. With humanising off nothing changes. The helper is removed.
2026-10-04 13:08:10 +02:00
Federico 54dd95b151 The hidden-desktop e2e counts only its own session's windows (#286)
The hidden-desktop e2e counted every Mozilla window on the desktop, so any other Firefox open on the machine made a correct build fail with "a headless=True session put a window on the interactive desktop": 5 foreign windows, the same red on firefox-35 and on the build under test. A window now counts when its process carries the session's token, the stamp the reaper already reads, and the headed control arm still has to see its own window, so a headless window that lands on the visible desktop is still caught.
2026-10-04 04:51:44 +02:00
github-actions[bot]andfeder-cr 1d730d1275 record 0.25.11 as published (#285)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-04 04:15:19 +02:00
Federicoandpaulthesocket 91c1b3c92f 0.25.11: a page the site opens is a Page (#284)
Builds on #281 by @paulthesocket, whose commit is the base of this branch.

A page the site opens, with window.open or a target=_blank link after a real click, never became a Page: no page or popup event, and context.pages stayed at one. Pages are now adopted from attachedToTarget, the same single path every page takes, so all nine opening shapes tried (plain, with features, named, noopener, from a timer inside the click, target=_blank, rel=opener, a popup that closes itself, one closed by its opener) give one page event, one popup event and the right opener. On top of the original commit: the popup's own document now reaches context.on("request"/"response"), which matters for a PDF opened in a new tab; a page's end is cleaned up in one place instead of five; only targets of type page are adopted and a late target for a closed context is refused. Nothing the popup can read changed: opener, name, bars, size, focus, userActivation and webdriver are identical, and the popup blocker still blocks what retail Firefox blocks.

Co-authored-by: paulthesocket <paulthesocket@users.noreply.github.com>
2026-10-04 03:48:54 +02:00
github-actions[bot]andfeder-cr de4ed775bd record 0.25.10 as published (#283)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-04 02:31:46 +02:00
FedericoandRichard Powell 9da47ce395 networkidle is one load state, and every wait sees it (#282)
Builds on #280 by @richardpowellus, whose commit is the base of this branch.

After a goto, the old page's silence could satisfy wait_until="networkidle" before the new document had loaded (#280). Looking at it, networkidle had two definitions and the client never received the state at all: wait_for_load_state("networkidle"), wait_for_url and expect_navigation with networkidle always timed out. networkidle is now a load state like the others, born once in the lifecycle when the current document has loaded and the network has been quiet for half a second, reset with the next document, and sent to the client from that one place, so goto and every client wait read the same definition. A goto to a fragment of the same page now answers after its navigated event, as upstream does, so page.url already has the fragment.

Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
2026-10-04 02:07:56 +02:00
Richard PowellandRichard Powell 27f7deb309 0.25.10: eval_on_selector and eval_on_selector_all pass arg (#278)
The argument was dropped, so an expression passed to eval_on_selector or eval_on_selector_all that read it failed with "a is undefined". The wrapper that turns the caller's expression into a call was written out by hand in four places, which is how two of them came to forget the argument; it is now built in one place (_marshal._invocation), and a test keeps it that way. The script that runs in the page is byte-for-byte the same.

Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
2026-10-04 01:44:10 +02:00
github-actions[bot]andfeder-cr 460caeccae record 0.25.9 as published (#275)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-03 05:36:43 +02:00
Federico d94b0350de 0.25.9: the firefox-35 engine, with values committed through Firefox's own user paths (#273)
The wrapper speaks the firefox-35 engine and pins the core that seals it (invisible-core 35.32.0).

select_option, and fill on a field whose value is picked rather than typed (date, time, color, range), now let the engine commit the value through Firefox's own user path (Page.selectOptions, Page.setUserInput), so Firefox fires input and change itself with a user's flags, and nothing when a select did not change; a select or date field inside a shadow root can be set at all. On a page with a saved zoom a click lands where it was asked. On Linux behind a SOCKS proxy real sites see WebRTC working, and the check that used to skip that case now fails if the srflx is missing.

This version does not run on firefox-34, and earlier versions do not run on firefox-35. Verified on the published firefox-35: full e2e on Windows and Linux, transport parity with retail Firefox 151, and the canonical WebRTC/geo sites through a real proxy on both.
2026-10-03 05:13:29 +02:00
Federico ca4c55ac55 The two-tab rhythm e2e judges a timeline that load cannot rewrite (#272)
The e2e that checks two tabs of one session type with two rhythms failed on loaded CI runners with a correct build. It typed "hello", whose two plans differ by about 0.4 s over four intervals, while four browsers on four CPUs delay a single key by up to 480 ms: the tab with the faster plan then sat nearer the other one. Measured on Linux, no tab ever got the other tab's page number (0 of 440).\n\nIt now types "helloworld", whose plans differ by about 5 s, judges the pause and the intervals as one timeline with the median offset taken out, and requires the plans to differ by more than twice the worst delay measured. Under the same load: 12 of 12 green, and the defect it exists for (every page numbered from 0) caught 12 of 12.
2026-10-02 21:13:26 +02:00
github-actions[bot]andfeder-cr bb336142f2 record 0.25.8 as published (#271)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-10-02 19:05:58 +02:00
Federico 6288d90719 The pin moves to core 34.32.0: a Linux headless session starts on its own display (#270)
On Linux a headless session could land on another session's virtual display, or on an Xvfb that had died opening its sockets, because the display counted as ready as soon as its lockfile existed; the browser then failed with cannot open display. invisible-core 34.32.0 waits for Xvfb's own report and keeps the display off the network. Same engine (firefox-34).
2026-10-02 18:05:28 +02:00
Federico 6d9b01a0ce A typist's pause before the first key, a rhythm per tab, and delay on every key path (#269)
Three things a page can measure about how this package types, fixed where they happen.

fill and press_sequentially focused the field and pressed the first key a few milliseconds later, which no hand does, and a page that answers the focus a moment later wrote over the text that was arriving. With humanising on, the session's typist now pauses for one of its hesitations after the focus, starting again whenever the field changes, for no longer than the action's timeout. The spread of a hesitation is one field of the typing persona, and invisible_playwright.hesitation() exposes the pause for acts the package does not perform itself, so a caller no longer imports private names.

The counters behind the pause, the key intervals, the click hold and the drag lived on each page and started again on every new one, so with one seed the first field of every tab was typed the same way. They now belong to the session: page number plus a count per page, as the client cursor already did.

delay on page.type, locator.type, press_sequentially and press was accepted and dropped (locator.type("abcd", delay=150) went out 6, 10 and 22 ms apart); one reader now takes it off the wire for every key operation.

The keystroke timing guide said the rhythm is not seeded; it is, within one call, and the page now says so.
2026-10-02 16:07:22 +02:00
Richard PowellandRichard Powell c61e4d73a9 Nested frames, document navigations, fill('') and hidden inputs work (#263)
Four fixes that touch the same server code, landed together:

- Nested and cross-origin frames: inner_text, bounding_box, select_option, scroll_into_view and wait_for_selector read the frame the locator resolved to instead of the top one; parent_frame and frame_element() work. A humanized click inside a nested frame or a shadow root no longer lands on the exact centre every time: the landing point is checked in the element's own document, through one hit test.
- expect_navigation() and wait_for_url() no longer crash on a new document: the navigated event omits a request it does not have instead of sending null, and goto stops emitting a second navigated of its own. A same-document navigation (pushState, hash change) now reaches the client, so page.url follows it and wait_for_url wakes up.
- fill('') and clear() empty the field with a Delete keystroke, as upstream does, instead of selecting the text and leaving it there.
- set_input_files, focus, blur and dispatch_event act on an element with display:none instead of timing out on a missing box, and set_input_files uploads an in-memory payload instead of clearing the input.

Co-authored-by: Richard Powell <1369873+richardpowellus@users.noreply.github.com>
2026-10-02 13:37:12 +02:00
github-actions[bot]andfeder-cr 321809009a record 0.25.7 as published (#261)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-25 15:41:50 +02:00
Federico f8b80c40b5 goto returns on pages that redirect themselves, and the browser's output is read for its whole life (#259)
goto on YouTube (`?themeRefresh=1`), on Reddit's JavaScript challenge, and on
any page that calls `location.replace` before `load` timed out after 45 s on a
page that was ready, while stock Playwright 1.61 answered in 2 to 4 s on the
same Firefox 151 and on Chromium. Such a page starts a new navigation after
ours has committed; our navigation never reaches `load`, and `wait_for_state`
accepted only the states of our own navigation id. The guard exists for a real
defect, the previous document's states being taken for ours (2026-08-27), but
that one is about navigations from BEFORE ours. The frame now numbers the
navigations it sees, and the wait accepts ours or one that came after it:
Reddit 5.8 s and YouTube 3.4 s on the fixed client. Two unit cases, one per
side of the line, and an e2e against a local page that replaces itself; three
mutations caught, and the old guard reproduces the YouTube message exactly.

The browser's stdout and stderr share one pipe, read only until the readiness
line. Once Firefox had written a pipe buffer's worth after startup, its next
write blocked and the browser stopped answering with no error: forced with
`devtools.console.stdout.content`, 2 KB still answered and 8 KB never did,
5085 bytes sitting unread. ProcessOutput is now the one reader, for the whole
life of the process, keeping the last 200 lines; readiness is a question asked
of it. When the pipe closes mid-session the error now carries the exit code
and those lines, not only "the pipe is closed". Unit tests on a real OS pipe
and an e2e writing 64 KB; the reader that stops at readiness makes both fail.

The pin moves to invisible-core 34.31.0 (GeoIP under a non-ASCII path, Windows
ARM64). Version 0.25.7. Full e2e: 231 passed, 3 skipped.
2026-09-25 15:15:51 +02:00
Federico b562cb8078 The README opens with what Playwright gets and what this one runs on, in two lines (#260)
The subtitle was two sentences of forty-four words that changed subject three
times. Now it says the thing the way the MCP server's README does: what happens
to Playwright, what this one is, and that existing Playwright code works. Free,
open source and the detection suites stay where the hero shows them.
2026-09-25 15:07:46 +02:00
github-actions[bot]andfeder-cr 7717bd6f3e record 0.25.6 as published (#258)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-25 10:48:45 +02:00
Federico bf77af0198 The engine starts under Claude Desktop: the pin moves to core 34.30.0 (#257)
Claude Desktop on Windows is an MSIX package, and so is the Microsoft Store
Python. Files written under AppData by a packaged app's processes really land
in the package's own LocalCache folder, and the engine downloaded there could
not be started from the AppData path: `[Errno 14001] ... side-by-side
configuration is incorrect`, because Windows looks for `mozglue.dll` where the
file really is. Every session of the MCP server under Claude Desktop failed at
its first `browser_open`. Reported in discussion #256; issue #22 was the same
failure under the Store Python.

The fix lives in invisible-core 34.30.0: `verify_engine`, which every launch
route in this package already goes through, hands back the path the file
system reports. Nothing in this package's code changes. The core's CI now
downloads and launches the engine inside a registered MSIX package on every
push.

Version 0.25.6.
2026-09-25 10:26:45 +02:00
github-actions[bot] 609c22fe8d record 0.25.5 as published (#255)
The upload succeeded and the ledger could not be pushed to main directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.
2026-09-23 20:48:18 +02:00
Federico a1f28bd774 The README is checked for promises no measurement supports, on every change (#254)
A sentence in this README promised to beat everything until 2026-09-22 ("it
passes every bot detection test"), and the check that found it ran by hand from
outside the repository, after the text was public. It is invisible_core.claims
since core 34.29.0, and a new `claims` job runs it with its selftest first, the
same shape as the language gate. `gate` waits for it and refuses on its failure.

What it reads is the README, which is also what PyPI shows; a circumvention claim
on its own stays allowed and is only reported. On this README today it reports
three and refuses none.

The pin moves to invisible-core 34.29.0 and the version to 0.25.5. No runtime
change in this package.
2026-09-23 20:29:03 +02:00
Federico 7529122385 The headline says what happens, and it no longer promises to beat everything (#253)
Two defects in one sentence, and the second is the serious one.

"it passes every bot detection test" is an absolute over an unbounded set. Nothing can pass every test, and this README already shows the measured figure two lines below, in the hero image whose alt text reads "5/5 detection suites passed". A claim the product cannot support is forbidden on grounds of truth rather than of rule, and a promise that big returns the traffic it attracts. The sentence points at that proof now instead of exceeding it, and the figure is not repeated in prose: the image is where it lives, and a number written twice goes stale in one of the two places.

Both halves were also noun piles with no verb, so a reader had to assemble the product from a list before learning that they write ordinary Playwright code and it runs somewhere undetectable. The action leads now.

Nothing about the circumvention claim changed: bypass, undetected and captcha are all still here, which is the owner's standing decision, and the account-wide scan reports the same pairing for this field as before. What changed is the absolute beside it.

Counted rather than judged: 0 fragments without a predicate where the old one had 1, and 15 of 15 keywords kept. Merged with all 14 checks green. The name scan and the disclosure scan were run by hand on the push range, because a pre-push from a worktree skips both.
2026-09-23 10:35:31 +02:00
github-actions[bot]andfeder-cr 9e9bda4e07 record 0.25.4 as published (#252)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-22 00:17:05 +02:00
Federico c937930b31 The pin moves to the core where the attempt count belongs to the caller (#251)
34.28.0 takes the retry out of the shared download primitive and makes it a
parameter: the engine download keeps its three attempts, and the geoip
refresh asks once when it has a cached mmdb to fall back on and three times
when the cache is cold. Without this the refresh inherited the engine's
policy and would have spent ten seconds of backoff at session start reaching
a fallback it was taking anyway. Nothing in this package changes beyond the
pin; same engine, firefox-34.
2026-09-21 23:58:05 +02:00
github-actions[bot] d187e3683f record 0.25.3 as published (#250) 2026-09-21 20:12:51 +02:00
Federico cb3ca7846c The pin moves to the core that asks again on a transient download failure (#249)
invisible-core 34.27.0 retries the failures that mean ask again when it
fetches the engine: nothing in the package had ever asked twice, so a 504 on
the 262 MB archive ended the install, on a runner and on the machine of
anyone whose first use landed on one. Nothing in this package changes beyond
the pin; same engine, firefox-34.
2026-09-21 19:57:15 +02:00
github-actions[bot] 850b4d63ea record 0.25.2 as published (#248) 2026-09-21 17:57:41 +02:00
Federico 3b6101ad37 build_env verifies the font manifest against the executable and delegates the rest to the core (#247)
It was a twin of the core's launch.build_launch_env: TZ, the WebRTC
declaration, the manifest variable and, since 0.25.0, the hidden surface's
launch_env() with its removals, all written twice. The only thing here that
needs the executable is the manifest check; everything else is composed by
the core (34.26.0), so there is one place that knows what the browser is
launched with. The three environment-variable constants that only this
function read are gone: the strings of the binary contract live in the
composer. Same environment on the wire, which the existing tests assert.
0.25.2, pinned to the core that carries display_env.
2026-09-21 17:33:22 +02:00
Federico f8661f0a8c The Linux e2e reads the environment of the browser it launched (#246)
The Linux e2e reads the environment of the browser it launched

The e2e that ran under xvfb-run was green over two real defects: a headed
session opened while an Xvfb session was alive was born on the Xvfb (B221),
and once that was fixed the hidden browser still carried WAYLAND_DISPLAY.
A page renders on any display, so opening one sees neither. This test reads
/proc/<pid>/environ of each Firefox it launches: a headed control on the
caller's DISPLAY, a hidden session on its own Xvfb with X11 pinned and the
Wayland variables absent while os.environ stays untouched, and a headed
session opened beside the hidden one still on the caller's DISPLAY. Measured
against the v0.25.0 tree it is red on the Wayland variable; on main it is
green. Tests only.

The Linux e2e finds its own browser by a mark, not by counting processes

In CI the e2e runs under xdist with four workers, each a process launching
Firefox at the same time, and the first cut of this test asked for the one
new Firefox and saw two. Counting was the wrong question. Each arm now sets
INVPW_TEST_MARK in this process before launching, the browser inherits it
the way every variable travels into its environment, and the assertion reads
the one Firefox carrying that mark. Green alone and under two workers with
other browser-launching files beside it.
2026-09-21 16:52:34 +02:00
github-actions[bot] 4cc4cc1979 record 0.25.1 as published (#245) 2026-09-21 16:08:29 +02:00
Federico 822bd50811 A launch environment the caller names is the whole environment (#244)
The in-process Juggler server added the named variables onto its own
process environment, so a variable build_env had removed came back from
os.environ: measured on 0.25.0 from the index, a headless=True session on
Linux was born with WAYLAND_DISPLAY still set (/proc/<pid>/environ), and
only GDK_BACKEND=x11 kept it off the real desktop. The server now hands the
engine exactly what was named; naming nothing (a bare launch) still
inherits, because a browser with no PATH and no SYSTEMROOT starts and then
cannot reach the network. Two tests: the composition with its known-bad
merge, and the handler handing that environment to the engine. 0.25.1.
2026-09-21 15:35:25 +02:00
github-actions[bot] a76e01fada record 0.25.0 as published (#243) 2026-09-21 15:25:23 +02:00
Federico ea8d049d6a build_env applies the None half of launch_env(), and the pin moves to 34.25.0 (#242)
On Linux the Xvfb display no longer travels through os.environ: the core's
launch_env() names the variables the browser must carry and, with None, the
five Wayland ones it must not. build_env sets the former and drops the latter
on the session's environment only, so a headed session opened while an Xvfb
session is alive in the same process is born where it was asked to be.
The known-bad input is the update() this replaces, which would hand the
subprocess a None value and keep WAYLAND_DISPLAY. 0.25.0, pinned to the core
that carries the contract, on the same engine (firefox-34).
2026-09-21 15:08:19 +02:00
github-actions[bot] 0f0d4ffcc2 record 0.24.0 as published (#241)
The changelog entry now carries the date the index served 0.24.0, 2026-09-21, which is what the release e2e compares it against.
2026-09-21 13:51:47 +02:00
Federico 47e71541a5 The pin moves to the core that seals firefox-34 (#240)
invisible-core 34.24.0 resolves the first engine whose window capturer reads
a hidden window from its own desktop, which is what the 0.24.0 screencast of a
headless=True session on Windows relies on. CHANGELOG 0.24.0 already names
that engine as a requirement; this is the pin that enforces it.
2026-09-21 08:10:14 +02:00
Federico a86ac08ca7 The environment block spells its NUL terminators with chr(0) (#239)
A control character inside a string literal is what the workbench's literal
gate hunts, because that is how a backslash escape corrupts a Windows path;
the two NULs of the CreateProcessW environment block are deliberate, so they
are spelled with chr() and a comment, which is the form that gate accepts.
Same bytes on the wire: the hidden-desktop and first-launch tests still pass.
2026-09-21 03:28:32 +02:00
Federico e151bb8a3e headless=True on Windows creates the browser on a hidden desktop (#238)
The Windows spawn names the hidden desktop the core created, and the cloak layer is gone

`headless=True` on Windows now creates the browser on the hidden Win32
desktop that `invisible_core` makes for the session. `_spawn_windows` is a
`CreateProcessW` in `ctypes` with `STARTUPINFOEXW`: `lpDesktop` is the one
field `subprocess.Popen` cannot set, so the call is ours, with the same
`PROC_THREAD_ATTRIBUTE_HANDLE_LIST` as before - exactly four handles are
inherited, the two Juggler pipe ends, the child's end of the stdout pipe
and a NUL for stdin - and `_WindowsProcess` gives `Connection` the four
verbs it asked of `Popen`. One spawner for both modes: with no desktop
named, `lpDesktop` stays NULL and the browser is born where the caller is.

`build_env` applies the session's `launch_env()` over a cleared slot, so a
headed session never inherits another session's desktop through
`os.environ`. `build_prefs` loses `headless=`: it selected the cloak layer
and selects nothing now; `virtual_display` is the fact that remains, and
with it the two sandbox keys measured in 2026-05 for exactly this desktop.

The screencast is refused, with the reason, on a hidden-desktop session:
from there the window capture starts and delivers no frame (measured 0 in
15 s against firefox-33, where the same window on the visible desktop gives
93 in 4 s), because the compositor only composes the active desktop. A
refusal that names the cause is the same choice the engine makes for true
headless; a silent black stream is not. `page.screenshot()` is unaffected
and `headless=False` keeps the screencast. Tracked as [B220] in the
workbench; the fix belongs in the engine's window capturer.

`tests/test_cloak.py` is replaced by `tests/test_hidden_desktop.py`, which
also carries the control arm the old guard lacked: a headed window is found
on the interactive desktop before a hidden one is asserted absent from it.
The two public docs pages that described the cloak describe the desktop.

0.24.0, pinned to invisible-core 33.24.0.

The screencast of a hidden session is the engine's to deliver, and the gate asks for it

The refusal of `screencast.start()` on a hidden-desktop session goes, and
so does the `hidden_desktop` flag it rested on: the frames were never the
wrapper's to withhold. They were missing because the engine's cropping
capturer cropped a visible window from the screen, which shows the input
desktop only, and moved the capture thread there for good; firefox-34
keeps a window that lives on another desktop on the window capturer,
whose `PrintWindow` reads it in full from its own desktop. Measured on the
fixed build with a seal of its own: both screencast tests green with
`headless=True`, where firefox-33 gave no frame in 15 s.

`tests/test_hidden_desktop.py` now asks for a frame from the hidden
session, so the engine's release gate proves the capability on every
Windows build. The two screencast tests are back to `headless=True` on
every platform. The CHANGELOG names the engine this release requires.

The std handles the spawner hands Firefox are shaped for its launcher

`tests/test_first_launch_from_a_new_path.py` went red on the ctypes spawn:
the launcher recorded a start and the browser never did. The tree showed
why - python -> browser, no launcher in between - and the Event Log said
where: the launcher's own `CreateProcessW` failed with
ERROR_INVALID_PARAMETER (`LauncherProcessWin.cpp:580`), so it disabled
itself for that path (`|Browser` = 0) and ran on as the browser.

The launcher builds a handle list from its stdin, stdout and stderr plus
the Juggler pipe (`ProcThreadAttributes.h`): it forwards only DISK and PIPE
handles, silently drops the rest while still naming them as std handles,
and never de-duplicates, and Windows refuses a handle list that holds the
same handle twice. The first draft passed a NUL device for stdin and one
handle for both stdout and stderr. `Popen` never tripped it: CPython
duplicates every std handle separately.

stdin is now the read end of a pipe whose write end is closed at once (EOF,
and a PIPE type), stderr its own duplicate of the stdout pipe: five
inherited handles, all distinct. Measured on the fixed build: first launch,
hidden desktop and both screencast tests green, and the launcher chain is
back, python -> launcher -> browser.
2026-09-21 00:55:46 +02:00
Federico aa8dca67c6 The release gate reads the e2e it never looked at (#237)
The gate that decides whether a release goes out runs `python -m pytest -q`,
which is the DEFAULT selection, and the default selection deselects `e2e`. So
the browser-driving suite has never been part of the decision: it runs on every
push and every pull request, and no gate reads it, so a red there stops neither
a merge nor a tag.

That is not hypothetical. 0.22.1 was tagged from a main whose e2e was red, and
nothing said so because nothing was looking. It is the same shape as the
`-m unit` false green the project forbids elsewhere, sitting inside the workflow
that publishes.

The new step ASKS rather than re-runs. The e2e has already run on that commit,
and running it again here would cost five minutes to learn what one API call
answers. What was missing was not a second measurement: it was somebody reading
the first one.

Three verdicts, and the middle one is the one that gets written wrong. A
check-run that concluded badly refuses, naming it. A leg still running waits,
then refuses on the deadline rather than assuming. And NO e2e check-run for that
commit refuses too: an empty list reads the same whether the job was renamed,
never started, or was never configured, and mapping it to a pass turns the gate
into decoration exactly when it matters. A gate that cannot read the checks at
all, for a missing token or an API error, refuses for the same reason.

The verdict is a pure function of the check-runs, so its ten known-bad cases
need no token, no repository and no network, and the workflow runs them before
trusting it. Measured against four real commits as well: a green one passes, a
red one refuses naming the leg, the repository's first commit refuses as absent,
and no token refuses.

Why now and not earlier: this was deliberately left open while the e2e was
intermittently red for a real reason, because a gate that says no at random
teaches people to go around it. That reason was the pointer teleporting under
load, and it shipped fixed in 0.23.0.
2026-09-20 03:24:14 +02:00
github-actions[bot] 3c44f046f4 record 0.23.0 as published (#236)
The upload succeeded and the ledger could not be pushed to main directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.
2026-09-20 02:55:38 +02:00
Federico 2992056827 A pointer action that did not reach its element says so (#235)
A pointer action that did not reach its element used to return as if it had. The hit target is checked before the action and, on purpose, the geometry is never re-read after it, so a target that moved in between produced no error, no event on the element, and a caller told "done". On a moving target that was hover 2 silent misses out of 8 and click 8 out of 8.

Now the engine records where each event landed, at dispatch, and the driver asks after every commit: a miss raises ActionMissed and is not retried, because a press cannot be taken back. The question carries the id of the last event sent and the engine waits for the renderer's ack of it, since a mousemove is coalesced and dispatched at the next refresh tick, after a question sent right behind it. The e2e job also checks the protocol mirror against the pinned engine now; it had drifted four commands behind with the count test green.

Pins invisible_core 33.23.0 (engine firefox-33), which this change requires. Supersedes #233: that pin, firefox-32, delivered the drag but under load failed clicks more often than the engine before it, measured on the same runners the same day. Also carries the fix to the hover assertion that depended on where the pointer already was.
2026-09-20 02:24:28 +02:00
github-actions[bot]andfeder-cr 93d243c8e9 record 0.22.2 as published (#231)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-18 21:29:26 +02:00
Federico 7f2f42310d The version this reports describes the code, not the install record (#230)
`__version__` said 0.16.2 from a tree declaring 0.22.1, minutes after that
checkout had been brought to zero commits behind origin/main.

It came from `importlib.metadata.version("invisible-playwright")`, which answers
about the distribution the installer put there. For a wheel that is the same
artifact as the code. For `pip install -e` the metadata is written once and the
code keeps moving, and nothing says the two have parted. Pulling does not touch
the record, so this is a defect in the code and not a stale checkout.

This is the package a measurement names. Every bench that drives a browser
reports "measured against invisible-playwright X", and read from the program X
was the moment somebody ran `pip install -e`, not the code under test. A finding
was about to be written with a version six releases wrong; it survived because
its author had read the number off the tree instead, which is luck rather than
method.

So the version of the code is now: the install record for a normal install,
because the metadata and the code came out of the same build; the version the
source tree declares for an editable one, plus a `+editable` local segment so a
tree that can carry uncommitted work is never read as the published release of
the same number. Which of the two an install is comes from what the installer
wrote (PEP 610 `direct_url.json`), not from a guess about `__file__`.

The record stays, under a name that cannot be mistaken for the version, the way
`invisible_core` already names it. This is deliberately not a shared module: the
core derives from the seal it PACKAGES, which is a different reading, and
`aihawk` carries this same one for the same reason, noted in both so a
correction to one is looked at in the other.

Three tests moved, and why matters more than that they did.

`test_version_matches_installed_package_metadata` asserted the equality that is
now wrong, under a docstring saying the point was that the version can never
drift from the `pyproject.toml` field. The assertion never held that. It was
true of the install record all along, which is the fact it was really about, so
it now asserts that under the record's own name, and what the docstring wanted
is held against real `pip` installs in the new file.

The `--version` and `-V` arms spawned a subprocess, which does not inherit
pytest's `pythonpath`, so they tested whatever was installed rather than the
code under test. In CI the two coincide because the workflow installs this
repository editable; from a worktree they do not, and the arms went red against
a checkout they were never meant to measure. They now put this package's `src`
on the subprocess path.

0.22.2, and the repository had to tell me: I first left the number alone so the
drag regression being fixed in parallel could have it. That is not an option
here. `test_the_declared_version_is_not_already_published` refuses a change to a
file that goes into the wheel while `pyproject` still names a version the index
already serves, because a release from there publishes nothing: `publish.yml`
sees the version, reports a no-op rather than a failure, and skips everything
below it. Keeping the number free would have made this unreleasable instead.

Six known-bad mutations, six killed, including the whole previous
implementation put back and a wheel arm that keeps the remedy from consulting a
tree that is not what runs.
2026-09-18 21:07:27 +02:00
github-actions[bot]andfeder-cr 314b9b6cc9 record 0.22.1 as published (#229)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-18 04:22:32 +02:00
Federico cf8c3f8303 A click is delivered once, whatever the click does to the page (#228)
* A click is delivered once, whatever the click does to the page

One `browser_click` could hand the page thirty-nine clicks and then report
the action failed. On a control that stays put it did the action twice and
reported success. Measured on the published 0.22.0, three buttons on one page
differing only in what their handler does, thirty calls each, with the page
counting what it received:

    does nothing        30 calls ->   30 clicks, 30 reported success
    moves itself        30 calls ->   30 clicks, 30 reported success
    hides itself        30 calls -> 1068 clicks, 30 reported FAILURE

and, on a real sessions panel, one call produced two complete gestures 167 ms
apart: opened by the first, closed by the second, success reported.

The discriminant is not movement. It is the target ceasing to be hittable BY
ITS OWN EFFECT - a modal's close, a cookie banner's accept, a menu item, a
"load more", a submit that becomes a spinner.

`_with_hit_target` read the hit target before the action and again after it,
and raised `WrongHitTarget` on both. `_retry` absorbs that exception by
starting over, and starting over presses again.

The conclusion outlived its premise. Until 0.18.0 the mechanism was an
interceptor: it watched each event as it arrived and BLOCKED the ones whose
point had stopped belonging to the element, so a bad verdict meant nothing had
happened and retrying was free. 0.22.0 replaced it with two pure reads, for a
good reason - the block was a tell, since a real `mousedown` that vanishes
under `preventDefault` is not something an input stack produces - but kept the
retry semantics, which now mean "it happened, do it again".

And the read afterwards cannot answer the question it is asked. Once the event
has gone out, "the point stopped belonging to the element" is the same
observation for a click that missed and for a click that worked and moved the
control out from under the pointer. A check whose negative result carries no
information cannot gate anything, so it is gone rather than narrowed.

What replaces it is one read, between the approach and the press.
`_act_on_target(f, element, point, *, approach, commit, force)` makes the two
halves explicit: for `hover` the committing event is the move and there is
nothing to approach; for `click` and for `check`/`uncheck` the approach is the
move and the commitment is the press.

The read also moved AFTER the approach, which is where the race is. It used to
run before the pointer moved, so a page that rearranges itself on hover - a
menu opening under the cursor - was judged in the layout from before the thing
that changed it. What is left is one round trip between the read and the press.
Closing that one belongs to the engine, the only place that can verify and
dispatch without a gap; it is not closed by reading the DOM again afterwards.

`_retry` now carries the invariant in writing: starting over is sound only
while nothing has happened, and nothing may raise `WrongHitTarget` after
committing. An action with something to say about what it did says it in its
result, because a retry loop cannot un-press a button.

Four known-bad mutations, all killed, including restoring 0.22.0's exact
behaviour. `test_hit_target_check.py` holds the shape - one read, in that
order, nothing after the commit - and the new `test_a_click_is_delivered_once.py`
holds the consequence on the real path, with a control arm for a button that
does nothing so the other two cannot pass on a driver that never presses.

Verified against a real browser on the same bench that found it: 30 calls ->
30 clicks, 30 successes on all three buttons, and the time per call down from
15-16s to 0.1-1.5s. Four controls of a real interface that were red for this
cause went green with nothing else changed.

Suite: 707 passed, 7 skipped. Lint and `invisible_core.english` clean.

* 0.22.1
2026-09-18 03:58:03 +02:00
github-actions[bot]andfeder-cr 6c8c66aec8 record 0.22.0 as published (#227)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-17 22:26:55 +02:00
Federico 31969d5e3b the screencast rate bench measured the runner with one arm and blamed the product (#226)
It went red on CI and blocked the merge of the 0.21.0 ledger PR, which carries
nothing but PUBLISHED.json. The numbers say the opposite of the verdict: 5
frames a second asked delivered 15 in three seconds, which is 5.0 exactly and
is the cap being honoured; 25 asked delivered 22, which is 7.3 and is a loaded
runner's ceiling, not an answer about the lever. The identical commit was green
seven minutes earlier and a re-run on the same SHA was green again.

The shape was wrong, not the threshold. Only ONE of the two arms is limited by
what it asks for; the other measures the machine, so `fast > slow * 1.5` was an
undeclared requirement that the host deliver 7.5 frames a second. Asking for 2
instead of 5 moves that requirement to 3, which no machine that can run a
browser will miss.

And the half that does not depend on the machine was the one nobody checked. A
cap only ever pushes the rate down, so "asking for 2 delivers about 2 a second"
is answerable however slow the host is, and it is the assertion a disconnected
lever fails first, because then the slow arm runs at the machine's maximum too.
It is asserted now, so this is a stronger bench than before rather than a more
permissive one.

The failure message names the second cause as well, so whoever reads the red
can rule it out without repeating this investigation.
2026-09-17 22:15:29 +02:00
Federico b6d24ebbbf strict refuses an ambiguous selector, force bypasses the checks it names (#225)
Two options accepted across the public API and read by nobody. The same count
that found `trial` named them: public signatures on one side, occurrences in
`_juggler/` on the other.

`strict` is the expensive one, because nobody passes it by hand. The chain
implemented it end to end except for one link: `injected.query_selector` takes
the parameter and the injected script raises `strictModeViolationError` on more
than one match, but no caller of `Actions._retry` forwarded it, so the default
stayed false. The callers that matter are not users - they are the 28 Locator
methods that send `strict=True`. With two buttons on the page,
`page.locator("button").click()` clicked the first and reported success: the
automation acting on an element nobody had chosen, and saying nothing.

`force` bypassed none of the checks it promises to bypass. It now bypasses two,
the state checks and the hit target, because "receives events" is one of the
checks the option names and an overlay intercepting the pointer is the ordinary
reason somebody passes it. Honouring only the first half leaves the option
indistinguishable, from the caller's side, from doing nothing.

The origin is not the options, it is the SHAPE of the reader: one reader per
option. Seven copies of `params.get("trial")` next to zero copies of the other
two is how the eighth action gets written with one and without the others. So
`_act_opts` reads all three together, actions take `**opts` and hand it to
`_retry` - the only thing that knows what actionable means - and the handle
operations go through `_act_args`, which carries the options inside it.

The test that matters most does not check an option. It checks that one cannot
be lost: it derives from the code which actions accept the bag and requires
every operation reaching one of them to hand it over, working out for itself
which helpers carry it rather than listing them. Run against the product it
immediately found six handle-level operations the hand-written wiring had
missed. Five known-bad mutations, five killed.

`no_wait_after` was grouped with these two and is not a defect: upstream
declares it deprecated and without effect, so a client that ignores it matches
upstream rather than departing from it.
2026-09-17 21:53:41 +02:00
github-actions[bot]andfeder-cr 1c4d8859ae record 0.21.0 as published (#224)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-17 20:30:56 +02:00
Federico b09d23c05b go_back() and go_forward() come back: the stale handle was ours, not the engine's (#223)
0.18.0 withdrew them because a restored page broke every locator afterwards
while evaluate() kept working, and the cause was read as the engine's bookkeeping
for a restored world. It was not. Instrumenting the client showed the destruction
events arriving, in the right session, and being taken: the engine destroyed
contexts id-16 and id-17, this client believed the frame's worlds were id-14 and
id-15, no entry matched, nothing was dropped, and the next locator sent an
objectId minted in id-15 to a frame whose worlds were now id-20 and id-21.

The injected script was cached per FRAME. It is an object inside one execution
CONTEXT, and a frame outlives its contexts: every navigation replaces them and so
does a restore. So the handle is stored with the context it was minted in, and
handle() asks whether that context is still the frame's utility context. The
question is decided from state this client already keeps, instead of being
inferred from destruction events arriving complete and in order, which on a
restore they do not. Nothing is dropped on destruction any more; there is nothing
left to get wrong.

The test walks back, forward and back again and reads THROUGH A LOCATOR each
time, with one locator before the first movement so the bench arrives holding
something. One movement is green against the defect, and so is asserting on the
URL, and the two earlier tests did one of those each. Proven red against the
previous client and green against this one.

WITHDRAWN is empty again and stays declared, for the next operation that is
written and cannot be trusted yet. The README and the bfcache page stop saying
the two are held back.
2026-09-17 19:57:07 +02:00
github-actions[bot]andfeder-cr 97bf5ddf94 record 0.20.0 as published (#222)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-17 19:04:24 +02:00
Federico c6c38ab327 The injected script leaves nothing on the page's nodes, and now something checks (#221)
The half of this class that concerned the page's window was closed in 0.19.0.
This is the other verb: what the bundle WRITES on elements. `computeAriaRef`
sets `element._ariaRef` while building the accessibility tree, reachable only
through `mode="ai"`, and the question underneath had never been answered - does
an assignment made through an Xray stay in the sandbox, or reach the page's
node?

Measured against a page served from 127.0.0.1 that watches its own elements with
its own script: it stays. With mode="ai" the snapshot comes back carrying 8 refs
and the sandbox sees `typeof el._ariaRef === "object"`, while the page sees
nothing at all. So nothing was broken and nothing is being fixed here.

The gate exists for the day that stops being true. If the confinement ever
fails - a Gecko change, or the injected script built somewhere that is not an
Xray sandbox - every interactable element in the document would carry a property
any page can enumerate, and nothing would say so.

It asserts that the writing branch was REACHED before it believes the page is
clean: refs in the snapshot, and the expando visible from the sandbox. Without
that it would be green on a build where nothing was written, which says nothing
about confinement.

Five known-bad mutations, four killed. A write that goes THROUGH the Xray is
caught, and so is one that lands on the page's prototype - which is why the
watcher keeps two ways of looking instead of one. The fifth removes a redundancy
rather than describing a fault, and the test says so.

The watcher's own control used to read with a different instrument than the
verdict, so blinding the verdict left the control still reporting that it could
see. A mutation found it. It is one function now, called twice.
2026-09-16 22:52:56 +02:00
github-actions[bot]andfeder-cr a00b421298 record 0.19.0 as published (#220)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-16 22:40:11 +02:00
Federico ab5f6a98b0 A drag travels now, and the pacing rules left the async loop they were welded into (#219)
One measured defect held three, and only one of them was about stealth. The
whole of drag_and_drop was five events: the 480-pixel journey happened in ONE,
the two events carrying it were identical and 7 ms apart, and on a draggable
source it raised NS_ERROR_FAILURE and left the mouse button DOWN, so every
later event lied about it. All of HTML5 drag and drop was unusable and nothing
said so, because there was no end-to-end test of a drag at all.

The reason the drag never moved like everything else is structural. The
delivery rules - absolute deadlines from one t0, drop rather than send late,
never two events in one instant, the 8 ms floor, the viewport clamp - lived
inside an async loop in _cursor, so only something that can await could run
them. A drag is generated in the in-process Juggler server, which is
synchronous. Writing them a second time in synchronous form would have left two
definitions of one thing, so they moved into _pacing as a state machine with no
clock: Pacer decides what happens next, and the two drivers decide how to wait.

The path generator needed nothing: CursorMotion.path is already pure and
synchronous. It had a missing consumer, not a missing capability.

The motion budget travels too, under the same condition as the seed, so
humanize=<seconds> caps this movement as it already capped every other one.

Measured on the same page: 3 move events over 2 distinct points became 27 over
26, and the gesture completes instead of raising.

What this does NOT fix: the drop still never reaches the target, in this path
and in a hand-composed one alike. The docstring that claimed otherwise is gone.
2026-09-16 20:55:29 +02:00
Federico 1a46abb6b8 A click has a duration, and the transport carries the seed rather than a persona (#218)
Same class as the keyboard, one device over: a press with no duration is a press
no hand made. mousedown and mouseup left together, so what a page measured as the
hold was 8.0 ms - measured on a real page, four clicks - against the 60-120 ms a
finger takes. The number differs from the keyboard's 4.0 ms because they are
different commands, which is why each was measured instead of derived from the
other.

The double click had the matching defect one level up: its two presses had
nothing between them and were still delivered as a dblclick, because that event
is born from clickCount and not from the interval. A page therefore received a
double click no operating system would have accepted as one - an event that
existed only because we declared it.

Three fields join PointerPersona and plan_click has the same shape as
plan_typing: a (dwell, gap) pair per press, the last without a pause because the
wait after a click belongs to whatever happens next. delay= was dropped here too,
alongside button and modifiers before it; Playwright documents it as the wait
between mousedown and mouseup, so it is the override now rather than the only
rhythm available.

The new fields are appended to from_seed and that is load bearing. It draws in
order from one stream, so a field inserted above an existing one would shift
every draw after it and change what every existing seed produces, silently, for
a property this package documents. Verified against the previous release on
three seeds: the other fields are unchanged.

And the transport now carries the SEED instead of a ready-made persona, which
the second consumer settled. It carried a TypingPersona while the keyboard was
the only thing that wanted a rhythm; then the click wanted one from a DIFFERENT
persona drawn from the same seed, and a transport carrying built objects would
have grown a field per rhythm while the thing that is actually session-scoped
stayed one number. Personae are built where they are used.

Eight unit tests and one e2e. The known-bad input is a plan that answers zero,
and it kills four of the eight plus the e2e, which reports "median hold was
8.0 ms" under mutation.
2026-09-16 19:37:43 +02:00
Federico e28658a75a The keyboard gets an owner of its rhythm (#217)
A keypress was two protocol messages back to back, so a page measured the hold
of one key at 4.0 ms - measured on a real page, not estimated - against the
60-120 ms a finger takes, and eleven characters went by in about 50 ms. No probe
is needed to collect that: a site only has to listen, and a password field is
where the listening is already installed. The pointer has had an owner of its
rhythm since 0.4.0; the keyboard had none.

delay= was not the fix, for two independent reasons. The server dropped it on
six of the seven paths that accept it. And the seventh, the only one that
forwarded it, handed the number to time.sleep as if it were seconds while the
public API documents milliseconds, so type("abc", delay=100) waited five minutes
instead of 0.3 seconds: the six broken paths were accidentally protected from
the bug the seventh had. The unit is in the name now, which is the origin of
that class rather than the conversion. And even working, delay= is a constant
the caller picks, so every install passing the same number would share one flat
rhythm - the linkage key 19-cursor-signature.md is about, moved to the keyboard.

TypingPersona sits next to PointerPersona and has the same shape: every field a
range, because the centre is an estimate and the width is the admission that
people differ. It models the dwell as a log-normal around a MEDIAN rather than a
mean, because a human timing has a floor and a tail; the digram structure, where
alternating hands is faster than staying on one and a repeated key is slowest;
and occasional hesitations, which are what give the tail. plan_typing produces a
(dwell, gap) pair per character and the engine keyboard obeys it rather than
deciding anything.

The stream is tagged, and that is the part that could have broken a promise:
_sub_seed gives independent streams, so the new persona does not move a single
number an existing seed produces for the pointer. Verified against main on three
seeds.

How the seed reaches an engine client that has no seed, and the two shapes that
were rejected. A module-level value is wrong the moment one process holds two
sessions: the second would type with the first's hand. Deriving it from
zoom.stealth.fpp.hw_seed, which already travels, is wrong because that value has
about twenty possibilities, so unrelated sessions would share a rhythm - the
thing being removed. It rides in the launch prefs, which the launcher composes
in full and op_launch already receives, under a key deliberately outside the
stealthfox.* namespace because that prefix means the binary reads it; and
take_typing_persona takes it back out before user.js is written, so no session
identifier reaches the disk.

Twenty-five tests and one e2e. Four known-bad mutations, each caught by exactly
one test: flat digram factors, zeroed sigmas, a pop turned into a get, and the
seed removed from the prefs - that last one judged by the e2e, which reports
"median hold was 4.0 ms" under mutation.

Typing is now slower in real time, which is in the changelog where users will
read it before upgrading. The full e2e went from 373 s to 425 s.
2026-09-16 19:16:13 +02:00
Federico b7af7a0f02 trial=True stops the action (#216)
The parameter is accepted on 31 public signatures - click, dblclick, hover, tap,
check, uncheck, set_checked and drag across Page, Frame, Locator and
ElementHandle - and the word appeared nowhere in the engine client. It reached
the wire and fell off it, so a call whose entire purpose was not to click
clicked.

The single place that read it made the outcome worse rather than better: the
cursor wrapper took trial as a reason to skip the humanised approach and then
ran the action anyway, so the click went out with no pointer movement in front
of it, which is the most recognisable shape a click has.

It is honoured in Actions._retry. That loop is the only thing that knows what
actionable means, and trial is a statement about actionability: run the checks,
skip the act. Honouring it inside each of the seven actions would be the same
sentence written seven times, and the eighth action would be written without it.
The hit target is checked on the trial path too, because a trial that answers
yes and is followed by a click landing elsewhere has told the caller nothing,
and it costs one pure read. A drag checks both ends and dispatches nothing:
checking only the source would skip the half that actually fails.

Reading the parameter off the wire lives in one helper for the same reason.

Six unit tests and one e2e. The e2e is the proof that matters, because the unit
tests can only show the branch is taken: it counts clicks on a real page, and
under the known-bad mutation that removes the branch it reports one click after
the trial.
2026-09-16 18:20:26 +02:00
Federico f43f0a60a6 The hit target is checked, not intercepted (#215)
* The hit-target listeners live as long as the action, not as long as the page

Constructing the InjectedScript registered thirteen capture listeners on the
page's window and observed the document, for the whole life of that document,
to serve a delegate that the action path arms for the duration of one click.
That permanence is why the bundle also had to watch for a documentElement
replacement and announce itself with a CustomEvent on the page's window to
learn whether its listeners had survived - a probe a site could arm in three
lines.

The earlier fix moved both installations into the utility world. It removed the
COUNTABILITY, because the call then reaches the native addEventListener through
the Xray, which is why the traversal gate went to zero and the case looked
closed. The listeners stayed registered on the real window.

So setupHitTargetInterceptor now adds them when it arms and removes them when it
stops, and registers only the types of its own action instead of all twelve.
That changes no behaviour: the listener already returned immediately for any
type outside that set, so the other registrations could never do anything.
_setupHitTargetInterceptors, _setupGlobalListenersRemovalDetection,
onGlobalListenersRemoved, _allHitTargetInterceptorEvents and
_hitTargetInterceptor are gone rather than renamed.

The Python half was a defect of its own: stop() sat in the try of
_with_hit_target, so an action that RAISED never disarmed. An armed interceptor
whose result is not "done" calls preventDefault and stopImmediatePropagation on
the events that follow, so a click that timed out could go on eating a person's
next one. With the listeners tied to the arming, that leak became a listener
leak, so the guarantee is part of the fix and not a nicety.

tests/gates/injected_page_surface.js runs the real bundle against a window and a
document that record every access, and asserts three class properties rather
than looking for names: construction writes nothing to the page, every action
removes what it added, and no action registers the union of the interceptor
events. Construction went from 13 addEventListener plus a MutationObserver to 0,
and rewriting documentElement from one dispatchEvent to 0. Four known-bad
mutations, one per property plus a rename, all caught.

* Say why the extractor still expects a symbol the bundle no longer has

gen_injected_source.py fingerprints the bundle it extracts FROM, which is
upstream's and still carries _setupHitTargetInterceptors. Our removal happens
after, so the name belongs there - but a grep for the symbols that were just
removed lands on it, and deleting it would weaken a check on the extract. The
note says so, and names the gate that would catch a regeneration quietly
bringing the mechanism back.

Also renames a one-letter loop variable in the new gate's helper, the single
ruff finding this branch added.

* The hit target is checked, not intercepted, because the block was the tell

Tying the interceptor's listeners to the action removed their permanence and
left the reason they existed: blocking a real event. When the point had stopped
belonging to the element, the interceptor called preventDefault and
stopImmediatePropagation on a genuine mousedown. No input stack produces a
mousedown that vanishes, so the defence announced us exactly when it worked, and
it needed capture listeners on the page's window to do it.

Both go. setupHitTargetInterceptor becomes checkHitTarget, a pure DOM read that
was never the problem: it reads through the Xray like every other read in the
bundle. _with_hit_target runs it BEFORE the action and again AFTER. The first
refuses to act on a point that has already moved; the second catches a target
that moved in between and turns it into a retry. What a page sees in that case
is a click that landed where the thing it was aimed at used to be, which is what
a hand produces when a layout shifts under it.

Gone by construction, not renamed: the three interceptor event sets, the arm,
the stop, the handle and the finally that governed it. The bundle does not call
addEventListener on the page's window anywhere.

A nested frame now needs the point converted, which the listener made
unnecessary because it read the event's own coordinates. A point arrives in the
MAIN frame's space - getContentQuads answers there and dispatchMouseEvent wants
it there - so inside a child it is shifted by the difference between the two
content origins, read from mozInnerScreen* rather than recomputed here. The
cross-origin iframe tests are the judge: 221 e2e passed, 18 of them mouse and
iframe.

The gate's three properties collapse into one, and that is the point of the
change rather than a side effect. While this was an interceptor the best that
could be asked was that an action removed exactly what it added and added no
more than it needed. Now the number is zero in every phase, which two symmetry
assertions could never say. Four known-bad mutations: a listener planted in the
constructor, one planted in the check itself, the removed detector back under a
different name, and a check that stops answering - that last one because zero
touches is trivially true for a function that does nothing.

* Release 0.19.0: the hit target is checked, not intercepted

The version gate is right: 0.18.0 is already on the index and three files that
go into the wheel changed since it, so a release from here would report
'already on the index, no-op' and publish nothing.

Minor rather than patch because the observable behaviour moves. An element that
moves between the check and the event now receives that one event and the action
is retried, where before the event was blocked and never arrived.

* A mutation lands on Linux too: the line ending belongs to the checkout

The mutations split the bundle on a hardcoded CRLF, which is what Windows
produces under core.autocrlf and not what Linux does. Every anchor then matched
nothing, so four mutation tests failed on the ubuntu runners while windows
stayed green: a bench accusing a healthy gate on half the machines.

The comment sitting right above that constant warned about exactly this class.
It was right about the danger and wrong about the value, because a line ending
belongs to the CHECKOUT and not to the file, so it is read now rather than
assumed.

It failed loudly only because at() asserts its anchor is unique; a plain replace
would have applied nothing and reported that the gate is blind. The new test
exercises both spellings rather than whichever one the machine produces, and the
known-bad input is the hardcoded constant coming back.
2026-09-16 17:01:44 +02:00
github-actions[bot]andfeder-cr 720cbf4799 record 0.18.0 as published (#213)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-16 11:40:19 +02:00
Federico ddb7058f2b go_back() and go_forward() refuse, because working once is the problem (#212)
0.17.0 shipped them working, and a clean-environment check the same night found
what one step hides. The engine restores the document and reports the
navigation, which was the whole of the fix. What it does not do is leave this
client holding a usable handle for the restored page: go forward, or go back a
second time, and every locator on that page raises "Cannot find object with id"
while evaluate() and content() keep answering from the right document. A
reload() clears it.

That is worse than not having the method. The call succeeds, the URL is right,
and the failure lands later and somewhere else, looking like a broken selector
on a page that is fine. Both now raise a sentence that names what would have
happened and points at the two things that do work: navigating to the URL, and
reload().

The engine bookkeeping stays. A page that moves its own history takes the same
road and without it the client is never told the navigation committed at all.
What is withdrawn is the public method, until the restored world is understood,
and it is not: announcing the world as cleared is what makes the first restore
work AND what leaves the stale handle, while not announcing it loses the
execution context instead. Two complementary failures are a wrong model, not a
missing line.

The perimeter gained a fifth category rather than a wrong label. Of the four
that existed, one says the engine has no command, one says it is decided at
build time, one calls itself our debt and simply not written, and the last says
the feature was left out by decision and generates a sentence saying so. All
four would have been untrue here, and an inventory that lies is worse than one
with a gap because nobody looks behind it. The reverse check covers the new
category too, so the day the engine is right the inventory asks to be emptied.

And the README stops claiming all methods. It never covered tracing, HAR, CDP or
the API request context; the refusals have said so for a while and the headline
had not caught up.
2026-09-16 11:27:57 +02:00
github-actions[bot]andfeder-cr 1fae640048 record 0.17.0 as published (#211)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-16 11:16:11 +02:00
Federico 080b6ffdaa Release 0.17.0 on firefox-31, where an authenticated HTTP proxy routes again (#210)
* go_back() is no longer expected to fail, and a test says what it must do

The xfail went on when the cause was unknown. It is known now: the engine goes
back perfectly well and Juggler had no bookkeeping for a document restored from
the back forward cache, so the client was never told the navigation had
committed. The remedy is in the engine.

The second test is the one that matters. Asserting that the URL changed would
pass against a browser that silently refetched the page, which is what every
other automation stack settles for and is not what going back means. It serves
the document once, counts what the server is asked for, and requires that going
back asks for nothing: a restored document, not a second download. Proven red
against a page served with Cache-Control: no-store before it was trusted.

* An authenticated HTTP proxy is a gate now, and the pinning page's examples run

Issue #206 reported that behind an authenticated HTTP proxy the browser started
without an error and the page came out of the host address, while the same
credentials over socks5 worked. The cause is in the engine. What is fixed here
is the reason nothing saw it: the two HTTP end-to-end arms of
test_proxy_reaches_the_browser.py launch with no credentials at all, the only
authenticated arm is SOCKS5 in test_proxy_socks_auth_e2e.py, and the single test
that puts http and credentials together asserts on a Python dict and never opens
a browser. The product had never once been driven out through an authenticated
HTTP proxy under test.

test_proxy_http_auth_e2e.py drives a real browser through a local HTTP proxy
that answers 407 until it is shown the right Proxy-Authorization. The assertions
are in the positive form, because "the proxy received something" is green on the
leak: a browser that connects directly leaves nothing on the proxy, so an empty
recorder and a healthy proxy are the same observation. What is asserted is that
the proxy routed the page's own request and that the page read this proxy
instance's own body, for a host RFC 2606 reserves to resolve nowhere. Measured
against two engines: red on the packaged firefox-30 with Page.goto:
NS_ERROR_UNKNOWN_HOST, which is the leak itself, and green on a local build
carrying the fix. Taking the password back out of the dict makes it red on the
fixed engine too, with NS_ERROR_PROXY_CONNECTION_REFUSED and the proxy's own
record showing it was offered the user with an empty password. The navigation
error is caught rather than left to propagate, because both known-bad engines
fail inside goto and an uncaught Gecko code says neither of those two opposite
things.

The pinning page's two GPU examples raised when copied. An RTX 4090 in the
opening block and an Iris Xe under "mimic a specific real device" name no
persona in the validated pool, so both ended in "names no validated GPU
persona". They are replaced with personas read off that exception, a GTX 980 and
an Intel HD Graphics, the second one mid_range so the class_tier written beside
it stays true. The paragraph on implausible pairings named the RTX 4090 too and
said the sampler picks the screen from the seed's own tier, which a GPU pin has
conditioned since 2026-09-15. It now says where such a pair can still be built,
by pinning both halves, and carries the measurement: over 200 seeds a low_end
persona draws a 4K screen zero times and mid_range draws one 23 times.

test_pinning_doc.py could see neither. It compared example keys against the
validator's table while the GPU refusal is on the value, so it was green on both
broken blocks; putting the Iris Xe string back confirms it, the new executing
test fails naming the string and the keys-only test still passes. The keys test
stays, as the cheaper half that names the offending key directly. And the
extraction only matched pin = {...}, so the opening block, which hands pin={...}
to the constructor as a keyword argument, was invisible: 2 examples found
before, 3 now. The count is a floor rather than a non-zero check, because with
two other examples on the page a non-zero check stayed green while a third of it
went unread. Removing the keyword arm again now fails with "found 2 pin
example(s) on the page, expected at least 3".

* Stage the changelog the ledger step rewrites, or the rewrite never happened

invisible-core's record step now realigns this version's changelog heading to
the upload date the index reports, which is the fix for a heading typed hours
before the upload it claims to describe. This is the repository that keeps a
changelog, so this is where that matters, and a file rewritten on the runner's
disk that nobody stages is a change that never happened.

Conditional for the same reason the release notes step below is: git add on a
missing path fails the step under bash -e.

* The context proxy gets the same gate, because the report measured both roads

Issue #206 listed the launch proxy and the context proxy as separate arms and
both leaked, which is what a cause living under both looks like. The fix is one
function, so this arm cannot fail for an engine reason while the other passes.
It can fail for a wiring reason: setBrowserProxy and setContextProxy are two
commands with two handlers and two stores, and the eager refusal that stops an
inexpressible proxy from becoming a silent direct connection is installed at two
call sites. Remove one and contexts go out in the clear while launches stay
proxied, which is the original bug on the road nothing was watching.

Known-bad on two real engines, both arms. Against the shipped firefox-30 both
fail with NS_ERROR_UNKNOWN_HOST and the proxy logs nothing at all, routed and
refused both empty, which is the browser resolving the name itself and leaving
directly. Against the engine that carries the fix, both pass in 12 seconds.

* Release 0.17.0 on firefox-31

The pinned engine moves to firefox-31 through invisible-core 31.23.0, and the
two fixes it carries are the reason to take it.

An authenticated HTTP or HTTPS proxy was accepted and then bypassed on every
engine from firefox-24 to firefox-30, with the page going out over the host's
own address and nothing raised anywhere. And go_back now reports the navigation
it performed, which it had been doing all along without telling the client.

Minor rather than patch: both are behaviour a caller can observe changing, and
the second removes an expected-failure marker that people have been coding
around.
2026-09-16 04:54:18 +02:00
github-actions[bot]andfeder-cr 9833d053fa record 0.16.2 as published (#208)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-16 02:32:34 +02:00
Federico 84146233e4 Date 0.16.2 the way the index dates it (#209)
The heading said 2026-09-16 and PyPI says the files went up on 2026-09-15.
Both are honest readings of the same moment: the upload landed at 23:21 UTC,
which is past midnight in Rome, and the heading is typed by hand at bump time
while the index stamps UTC at upload. The changelog gate compares the two and
went red on main, so every branch cut from it started red.

The gate is right and the heading is the thing that moved. Its own docstring
settles which record wins: a heading dated by the person writing it rather than
by the upload is a small lie a reader can check, and PyPI is the record that
settles it.

This corrects the datum. The reason a hand-typed date can disagree at all is
that it is written before the upload exists, so the author is predicting a
timestamp; that is fixed where the timestamp becomes known, in the ledger step,
and not here.
2026-09-16 02:25:20 +02:00
Federico 174ceebc89 The language gate comes from the core, and the srflx names cross into English with the pin
* The language gate comes from the core, and the three srflx names cross into English with the pin

invisible-core 30.23.0 carries the check that this repository is English, as
`invisible_core.english`. Until now it was a SCRIPT here and a copy in AIHawk,
and the copies drifted: AIHawk's exclusion list named paths that exist only
here, and this one never gained the `.js`, `.css` and `.html` coverage the other
did on 2026-09-11 - JavaScript, CSS and HTML were outside its sight entirely.
Five tracked files fall there and all five are clean, so this is a hole and not
a fire, but it is the hole the copy makes.

So `scripts/check_english_only.py` is deleted and the `english` CI job runs the
module, after installing the pinned core the way `unit` does. What this
repository exempts is declared once, in `[tool.invisible.english]`: the vendored
Playwright folder (our own patches inside it are still read, found by the
marker), the injected script extracted from the bundle, and `test_fork.py`,
whose known-bad fixture is Italian on purpose. The vendored Node driver is no
longer in the list because it is no longer in the tree - an exclusion that names
nothing is refused by the gate, which is the check the copies did not have.

Verified before this went in: with the copy's exact settings the shared module
gives an identical per-file verdict on all 722 tracked files, as they are and
with Italian injected into each of them, so the deletion changes what is
COVERED and nothing about what is judged.

The three names the core translates in the same release follow here, at the
call sites the pin move requires: `srflx_to_declare()`, the `srflx_declared`
keyword of `build_launch_env`, and the `_srflx_declared` attribute that carries
the decision. The pin moves to 30.23.0 in this same commit, because a pin move
without the renames breaks the launch with a TypeError, and the renames without
the pin move import a name the index does not have.

* The changelog has a heading for 0.16.2

The gate that asks for it is right: a version bump without an entry is how
0.13.2 went out with a changelog that ended one version short. The entry says
what a reader of this package needs - the gate now comes from the core and the
three srflx names crossed with it - and that nothing the browser receives moved.
2026-09-16 01:08:28 +02:00
github-actions[bot]andfeder-cr 5ec3ca3f6e record 0.16.1 as published (#205)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-15 20:05:02 +02:00
Federico accc852849 Pin invisible-core 30.22.0, and file uploads stop being expected-red (#204)
The preference that makes a file upload possible ships from 30.22.0, which is
on the index, so the pin moves and the two tests that covered the defect go
back to being hard assertions - the first time since B178 was opened. They
were strict on purpose so that this moment could not pass quietly.

The pin was moved with sync_core_pin.py rather than by hand, because the
script is the one place that knows which consumers exist and what the core
builds.
2026-09-15 19:54:22 +02:00
Federico c6d423db7e scroll_into_view_if_needed() scrolls, a file chooser can upload (#203)
* scroll_into_view_if_needed() scrolls, and every refusal is declared

The method sent Page.scrollIntoViewIfNeeded, and that command can never
succeed: the engine handler calls scrollRectIntoViewIfNeeded, which is
declared in no binding of Element in the tree, so it is undefined for every
caller and the else branch throws. Measured at four positions, including an
element already in view, it timed out on all four while bounding_box() on the
same element answered correctly.

The remedy was already in the file. Actions has scrolled before every click
through InjectedScript.scroll_into_view since a click below the fold was found
to miss, so the click path scrolled correctly while the public method sent a
command that cannot work: one concept, two implementations, and users called
the broken one. The dispatcher now calls the same helper. It centres rather
than scrolling the minimum, and rect is not honoured, both asserted.

Alongside it, perimeter.py stops being a partial inventory. Ten operations
refused inline with a reason beside the code and no record anywhere that they
existed, which is the exact gap the module was written to close: a caller had
no way to tell a decision from a hole. They are declared in three sets that
keep the difference between no engine command, fixed when the injected script
is built, and simply not written yet. A test reads server.py and fails in both
directions, so neither the code nor the inventory can drift alone.

* A file chooser can upload, and the two upload doors read the request once

FileChooser.set_files() holds the input element already, so the client asks
the ElementHandle for setInputFiles instead of going through a selector, and
this package had no such method. The dispatcher was right to call it a gap
rather than a decision, and a gap it was: the listening half of the
file-chooser feature - the event, the chooser object, is_multiple, element -
all led to a door that was shut.

The element handle now performs the same upload the frame does. The action
gained the element_id parameter every other action already had, which is the
only reason it could not be wired before, and the wire shape of the request is
unpacked in one function instead of once per dispatcher.

The other half of B178 is not here. Creating the File fails in the engine
unless dom.file.createInChild is set, which is a preference and belongs to
invisible-core; it reaches this package when a core carrying it is published
and the pin moves. The two tests that cover the two doors stay expected-red
until then and are now strict, so the day the pin moves they turn red and
somebody deletes the markers instead of leaving a green that proves nothing.

The Italian identifiers in that test file are gone in the same commit: this
repo is English, the language gate does not see bare identifiers, and the file
was open anyway.

* 0.16.1, because this tree is not the 0.16.0 on the index any more

The version gate asks the right question and it was answered wrong: a pull
request that changes what goes into the wheel while declaring a version that is
already published proposes content which can never reach anybody, since the
publish workflow treats an already-present version as a deliberate no-op and
cannot tell that case from a forgotten bump.

The changelog heading goes in the same commit as the bump, which is the
convention the other gate in tests/ exists to enforce at the moment the bump is
written rather than seventeen hours after the upload.
2026-09-15 17:34:54 +02:00
github-actions[bot]andfeder-cr 0f73547619 record 0.16.0 as published (#202)
* record 0.16.0 as published

* Touch the branch so the CI runs (an Action's push does not trigger it)

---------

Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-15 12:13:47 +02:00
Federico fa1533eb70 The wiki follows the documents it mirrors (#201)
The wiki follows the documents it mirrors

publish-wiki.yml triggers on `release: published`, and that event does not fire
for the releases this repository makes: GitHub does not start a workflow from an
event created with the built-in GITHUB_TOKEN, and publish.yml is what creates
the release - which is why every recent release here is authored by
github-actions[bot]. Across 43 runs, all but a couple were manual dispatches,
and the two `release` events are old enough to predate the automation. The
comment at the top of the file said "it runs on a published release".

It cannot go red. A workflow that is never triggered does not produce a failing
run, it produces no run at all, and an absence is not something a list of checks
shows.

MEASURED. Since the last dispatch on 2026-09-14 the docs have moved by 37
insertions and 15 deletions, with v0.15.2 released in between, and the published
wiki was showing neither.

The fix is the cause rather than the symptom: the wiki mirrors docs/, so it now
also runs on a PUSH to main that touches what the wiki is made of - the pages,
the converter, and this file. That is an event that actually happens here. The
release trigger stays because it costs nothing and works for a release a person
publishes; it is simply no longer what this depends on. The path list includes
this file, so merging repairs the current staleness without a dispatch.

FOUND IN THE SIBLING FIRST. AIHawk had the identical defect, the identical false
sentence in the identical comment, and the same cost - eight releases and 16
pages. It was fixed there, and the detector that found it is the general one:
of every job a repository declares, how many times has it actually run.

NO GATE IS ADDED HERE, DELIBERATELY. AIHawk carries one, and copying it would
make two statements of one rule in two repositories, free to drift - which is
the defect that detector exists to find. The single home for a rule both repos
must obey is invisible_core.hooks, which both already run on every push, and
putting it there is a core release plus a pin bump. Until that is done the
remedy in this repository is the trigger and not a check, and saying so is
better than a copy that looks like coverage.
2026-09-15 04:46:35 +02:00
Federico 8ade6f90ad One implementation of the humanize pref contract, and the pin surface follows the core (#200)
* One implementation of the humanize pref contract, not two

`_cursor.humanize_prefs` was a second answer to "which stealthfox.humanize*
prefs does this session get", and no code in src/ called it. The live answer is
the core's `compose_session_prefs`, reached through `_session.build_prefs`,
which the two front doors share.

The two disagreed. The core emits `stealthfox.humanize.stepMs`; the deleted
duplicate did not, so two tests were green about a pref set the product has
never produced. That is the shape that makes a dead path look maintained: it
had tests, so it read as load-bearing.

The properties those tests asserted are real and they move to the live path -
the two front doors emit the same humanize prefs, and a cap is never written
without the toggle - now measured through `build_prefs`. A known-bad mutation
of the live decision (always pass the cap through, which is what the duplicate
effectively did) turns them red.

`max_seconds_for` stays: it has two callers in `_session.py` and is the only
thing left that knows what a `humanize=` value means in seconds.

* The shim test stops passing an argument that is going away

`generate_profile` loses `fixed_gpu_class=` in the next core: it was a second
spelling of `pin["gpu.class_tier"]`. It was incidental here - what this file
protects is that the shim path and the core path produce the same prefs - so
dropping it leaves the property intact and the test working against the
published core as well as the next one.

The `forced_gpu_class` import stays, and gains an assertion. The import SHAPE
is what this file exists to protect, and that name is still exported; it is a
query now rather than a knob.

* The pinning page and its gate follow two keys out of the pin table

`codec.webspeech_synth` and `screen.tier` stop being pinnable in the next core:
one was drawn and never read (the pref is a constant, so the sampled value only
made the profile disagree with the browser on about 12% of seeds), the other
could not work by construction, since pins land after the draw.

The page loses both rows and says where they went, because a reader who
remembers a key needs to be told rather than find it absent - the rule this
file's own `fonts` test already enforces.

The gate gains the third level of an idiom it already had twice:
`_NOT_PINNABLE` for top-level scalars, `_NOT_PINNABLE_GROUPS` for whole groups,
and now `_NOT_PINNABLE_FIELDS` for a field inside a group. Each carries a
reason, and each refuses an excuse that has gone stale - either because the
field came back to the pin table or because it left the profile entirely.

* The page and the gate follow screen.avail_* out of the pin table

* Pin invisible-core 30.21.0, and say what it removes

0.16.0 has not shipped, so these entries join it rather than inventing a
version: the three pin keys that could not work, the sampled codec field that
contradicted the browser, and the deleted duplicate of the humanize pref
contract.

* Two e2e modules stop pinning keys that no longer exist, and a gate that would have said so

`screen.avail_width` and `screen.avail_height` left the pin surface, and these
two modules kept pinning them. Both are marked `e2e`, so the default selection
deselects them: every local run was green and the failure appeared on the Linux
CI leg as 81 errors, four minutes in. The migration was not incomplete because
it was hard - it was incomplete because the only thing that would have noticed
needed a browser.

Nothing about the question needs one. A pin dict is a dict of strings and
`_validate_pin_key` is a pure function, so `test_pin_dicts_are_valid.py` reads
every pin dict in src/, tests/, scripts/ and examples/ and asks the real
validator. It finds the two shapes this repository writes - `pin=` inline and a
module-level PIN shared across an e2e module - and it is killed by both: a
removed key returning to an e2e PIN, and an invented key in an inline dict.

Its first draft was red on a healthy repository, which is the state where a gate
teaches people to ignore it. Two exclusions came out of that, both deliberate
and both documented in the file: dicts inside `with pytest.raises(...)` hold
keys that are SUPPOSED to be refused, and `_NOT_PINNABLE` is a table of reasons
whose name merely contains the letters PIN.

The assertions in the two e2e modules get stronger for the change: availWidth
and availHeight are now read as values the engine computed, not as values the
caller believed it had set.
2026-09-15 04:32:53 +02:00
Federico 0c061e6410 A GPU pin selects a validated persona instead of setting a label (#199)
* A GPU pin selects a validated persona instead of setting a label

⛔ DO NOT MERGE BEFORE invisible_core SHIPS THE MATCHING RELEASE AND THE PIN IS
BUMPED. Two tests here assert behaviour the published 30.19.0 does not have;
against it they fail, which is the correct order working as intended (publish
the core, then move the pin, then use the new behaviour).

The two call sites here passed fixed_gpu_class=forced_gpu_class(self.seed),
restating a value generate_profile already derives. They were two of the six
places that had to agree about which GPU a session presents, and a pin reached
some of them and none of the ones that decide what the browser is told, so
pin={"gpu.renderer": ...} changed the profile object and left the page reading
the seed's own GPU. The choice lives in invisible_core now, in one function.

The docs carried the same defect and are where it was copied from.
docs/pinning.md said the renderer "lands verbatim in UNMASKED_RENDERER_WEBGL"
and "does not condition other fields"; both are now the opposite of true. The
README example pinned an RTX 4090, which no validated persona carries, so the
snippet a reader copies raises today and silently did nothing before.

test_pin_gpu_renderer_propagates asserted the pinned string came back out of
Profile.gpu.renderer, with a comment explaining that the prefs "may suppress it
on Windows for hash-coherence reasons" - that sentence is how the defect
survived as a documented feature. It follows the value to the emitted pref now,
and a companion test covers the refusal.

* Pin invisible-core 30.20.0

* Retire the webgl.* pin surface on this side too

invisible_core 30.20.0 emits the same MSAA sample count on both builds and no
longer offers webgl.msaa_samples as a pin, so the page that documented it and
the two tests that asserted the old split follow it here.

IT12 read "pinning MSAA on Linux survives the prefs translation; on Windows the
same pin is overwritten to 4" - that sentence was the tell, and it now asserts
the parity instead.

test_pinning_doc's group check gains _NOT_PINNABLE_GROUPS, the same declared
exception the scalar check already had one level up, plus a refusal when an
excuse goes stale: a group with no pin table is either a decision or an
omission, and only one of those should pass.

* Release 0.16.0
2026-09-15 02:19:02 +02:00
github-actions[bot]andfeder-cr 67bfe5beea record 0.15.2 as published (#198)
* record 0.15.2 as published

* Touch the branch so the CI runs (an Action's push does not trigger it)

---------

Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-15 02:12:29 +02:00
Federico 296fb10b57 evaluate stops rewriting the JavaScript it was given (0.15.2) (#197)
The caller's argument was placed by building the wrapper first and then
searching it for the placeholder and replacing it. That search ran over a
string that already held the caller's expression, so those three uppercase
letters were rewritten to the argument's JSON anywhere they appeared in the
caller's own code.

Found by driving it through a real browser, and measured there:

    'CARGO'.length              answered 6, not 5
    [data-role='TARGET']        matched nothing
    /ARGH/                      became /nullH/
    const ARG = 5               was a syntax error

Three of the four are silent. The letters only have to appear inside a longer
word, so MARGIN, LARGE and CHARGE are all in scope, and an identifier is
merely renamed consistently while a string, a selector or a regular expression
is quietly changed into something else. A caller gets a wrong answer and
builds its next decision on it.

The argument now goes in during the same formatting pass that inserts the
expression, so the expression is an argument to the format string and never a
place the format string looks. The sibling wrappers in element_handle.evaluate
and eval_on_selector were already written this way and were never affected;
wait_for_function repeated the two lines inline instead of calling the helper,
which is how one of the two could have been fixed and the other left alone, so
it calls the helper now.

The script the page runs is unchanged, character for character, for every
expression that did not spell the placeholder, and a test pins it against what
shipped. This call is the one place in the transport that deliberately runs in
the main world rather than the utility one, so the shape of that wrapper is
something a site can look at, and a correctness fix must not move it.

Suite green, 593 passed. Six known-bad inputs, six killed, two of them a
single space and a variable name in the template, which is what keeps the
pinned script honest. The end to end probe runs the four failing expressions
in a real engine: four wrong before, none after.
2026-09-14 23:29:25 +02:00
github-actions[bot]andfeder-cr 39fcd4cdb6 record 0.15.1 as published (#196)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-14 08:55:19 +02:00
Federico 8ebc075d49 Pin invisible-core 30.19.0: the engine is firefox-30, whose screencast survives a minimised window (0.15.1) (#195)
The screencast capture in the engine ended for good when a headed window was minimised for a moment; firefox-30 starts the capture module again for as long as the window cannot be captured, and repeats the last frame every 250 ms while the module is quiet, so a client can judge a capture by the age of its frames. The pin follows the seal and nothing else moves. Version 0.15.1.

`invisible-core` 30.19.0 is on the index (ledger #43 merged). The full e2e ran green against the firefox-30 Windows binary with the release seal: 212 passed, 1 skipped, 3 xfailed.
2026-09-14 08:45:35 +02:00
github-actions[bot]andfeder-cr c419762864 record 0.15.0 as published (#194)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-14 08:39:51 +02:00
Federico 5521fee86c A closed pipe is a closed target, and the public API exports the type a caller catches (0.15.0) (#193)
The browser being gone is one fact, and it reached a caller as two classes. A call on a disposed page, context or browser raised `TargetClosedError`; a call that was waiting when the pipe closed, or one made after, came out of the connection as a plain `Error` carrying "the pipe closed". A caller that had to tell "the page refused" from "the browser died" was reduced to matching sentences.

One class now, defined in the connection and raised by both layers, and `async_api`/`sync_api` export `Error`, `TimeoutError` and `TargetClosedError` so the type can be caught without a private import. Five tests on a pipe pair, no browser started. Version 0.15.0.
2026-09-14 03:10:05 +02:00
Federico ed2259a405 Ten pages on the Selenium, Puppeteer and Python-automation gap (#192)
* Ten pages on the Selenium/Puppeteer/Python-automation gap the wiki never covered

Measured before writing: SERP winnability and demand on the shortlist, and a
cosine-similarity gap check against the full 452-page corpus (threshold 0.52),
so every title lands where nothing already answers it above that bar.

Split from AIHawk's MCP-agent wave on purpose: this wiki is developer
mechanism (protocol, driver architecture, what a page can and cannot see),
not agent-task language, per the perimeter both wikis already follow.

Gates run: english-only clean, no em/en-dash in the new or touched files, all
internal .md links resolve to real files, build_wiki.py renders the full 473
pages with zero unresolved .md links in the output. In-body link density
(prose only, footer excluded) checked and raised where it was thin - one page
shipped at zero in-body links on the first pass, four more under 2/1000
words; all ten now sit between 3.0 and 6.2/1000, matching the range this
project already measured (2-5/1000, median 3.4) rather than assumed.

What is NOT independently verified this session: several claims (Selenium's
WebDriver architecture, CORS enforcement, headless-mode history) are sourced
to public documentation linked inline rather than fetched live in this
session, and the code/command blocks (curl, Puppeteer's API, Playwright's
launch snippet) are written, not executed against a live target. Both are
gaps against this project's own pipeline standard and are noted here rather
than left implicit.

* The same pipeline pass on these ten, and the two defects it found here

Titles averaged 42 characters against a house median of 49 and a stated window
of 50-60; descriptions ran 198-260 against a house median of 159. All 20 values
rewritten, verified by a check that refuses to write when a pair falls outside
the window.

And the first-party evidence the pipeline requires and these pages did not
have. Three now carry a measurement from this project rather than a citation to
somebody else's documentation:

- The same build rendering text across 48 family/size/weight combinations
  produced 9-19 distinct alpha levels per render on Windows and 193-256 on
  Linux, 16 of 48 using all 256. Same code, same display mode, different host.
  It is the number that separates a machine fact from a headless fact, which is
  what the headless page is arguing.
- An A/B/A on one build: a CSS system-font value read from the host rather than
  from the declared identity moved a detector from tampering=False/4/0 to
  True/12/1 and back to False/4/0. One value, both directions.
- Font ascent and descent diverged on 58 of 72 families across hosts on one
  build while every advance width already matched, because shaping is the same
  in-tree library. The layer below the frameworks is larger than the gap
  between them, which is what the Selenium-vs-Playwright page needed to say
  with a number instead of an adjective.

Gates: english-only clean, no dashes, no invisible codepoints, no CRLF, all
internal links resolve, in-body link density 2.6-10.1 per 1000 words against
the measured house range, and the full 473-page wiki renders with zero
unresolved links.
2026-09-10 11:42:34 +02:00
Federico a0e04af8e6 Tighten the patch section without turning it into a bare link list (#191)
It had become the longest section on the page at 564 words, which is what the
two sections before it were just trimmed for. The obvious cut was the wrong one:
this section exists to say what is patched, so dropping the descriptions and
leaving surface plus link would delete the thing it is for.

So the preamble loses half its words and keeps both rules, which are the part
that distinguishes this from a list of features, and eleven of the seventeen
lines lose a subordinate clause each. Every claim survives, said shorter.

480 words now. All 29 links are still there and none moved: measured by
comparing the link sets before and after, 76 distinct links to 76, nothing lost,
nothing added, nothing broken.
2026-09-10 03:34:15 +02:00
Federico 57ef9cd523 Trim the two index sections: 396 words out, no link broken and none invented (#190)
Measured first, because the page had grown past what anybody reads. Of 2305
words, the three link sections held 1572 of them, 70 percent, around 86 links;
the operating part - how it works, install, usage, the CLI - was 571 words, code
included. The page was three quarters an annotated index.

Related projects spent two or three lines per entry explaining what somebody
else's product does, while eleven of the fourteen already carried their own
comparison page on the same line. Each entry is one line now, and every link
survives. The two closing paragraphs move up into the lead, where they answer
the question a reader has before the list rather than after it.

The eleven articles listed flat at the end of Documentation are gone. The four
bullets above them exist to say the wiki organises exactly that, so the list was
the thing they replace. Checked before removing: none becomes an orphan, the
least-linked of them has three inbound pages and the rest between six and forty.

Three of those eleven were the duplicates worth removing anyway - the two font
pages and measureText also sat in `What is patched in the engine` - so of eleven
lines only eight links leave the page, and the overlap between the two index
sections is now zero.

Verified by comparing the link sets before and after, not by reading: 84
distinct links to 76, the eight expected, nothing invented, nothing broken.
2026-09-10 03:26:01 +02:00
Federico 971ecb945f Move what the engine does to the end, and say all of it instead of one example (#189)
Three changes to the same page, and they are one idea: the top answers what a
reader is deciding, the detail waits at the bottom for the reader who wants it.

The closed shadow root paragraph is gone from `How it works`. It was one patch
out of forty standing where the section says what the engine is, which made it
read as the headline feature rather than as an example. It is now a line in the
new section, next to the others.

`If you would rather prompt than script` moves out of `Install` and into
`Documentation, guides and comparisons`. It is not an installation step for this
package: it points at two other products for people who do not want this one as
a library, which is a documentation question. Install is now three lines,
Python version and platforms, and nothing between the command and the usage.

The new section at the bottom is what was missing. `How it works` names the
surfaces in one breath, and the only thing linking the engine was a bare
repository URL, so a reader who wanted to know what is actually patched had
nowhere to go. It now lists them surface by surface under the two rules that
hold across all of them, with the article for each. Twenty-nine links, every one
checked against the tree: the README carries sixty-nine links to `docs/` and
none of them is broken.

Nothing new is claimed. Every line restates what the wiki page it links already
documents, and the section is a map to those pages rather than a second copy of
them.
2026-09-10 02:44:41 +02:00
Federico c2f1764fc4 Shorten the closed shadow root paragraph to the claim and the link (#188)
It was six lines of prose in a section otherwise made of one-line bullets, and
most of it was evidence: the quote from Playwright's documentation, the date of
the measurement, the zero-match result, the three-arm table. That belongs to the
wiki page the paragraph already links, and the link was the last thing a reader
reached.

Three lines now, carrying what a reader decides on: stock Playwright cannot see
into closed-mode shadow roots in either engine, this one returns the element,
and the page still reads null from element.shadowRoot so nothing it can observe
changes. The last clause stays because it is the point - reaching the element is
useless if reaching it is visible.
2026-09-09 23:28:22 +02:00
Federico ecbf313a05 Drop the proxy section and the macOS note from the README (#187)
Two removals, both asked for by the owner.

The proxy section answered a question the README does not need to raise: it
opened by conceding that challenges still happen and then explained whose fault
that is. The line above it, pointing at the engine repository, went with it -
the wiki and the sibling block already carry that link where a reader is looking
for it.

The macOS sentence spent a full line explaining a platform the package does not
ship for. The supported list says which platforms work, which is the thing a
reader is checking; anyone on a Mac gets the same explanation from the package
itself, at launch, where it is actionable.

Nothing else moves. The `Around 90% of proxies are public` figure still lives in
docs/configuration.md and docs/vs-ulixee-hero.md, where it belongs to an
argument rather than to a front page.
2026-09-09 23:21:32 +02:00
Federico 1c0bf446ce Ask for the changelog entry where the bump is written, and let the gate see two jobs it was ignoring (#186)
Yesterday 0.14.0 was bumped, tagged and published with CHANGELOG.md still
ending at 0.13.2. Everything was green: tests, gate, the wheel and the sdist on
the index. The omission surfaced seventeen hours later in the e2e, by which
time the only repair was a second commit.

The convention was never in doubt. test_release_e2e.py carries an `in_flight`
exception written for exactly this, and says why: the changelog entry has to sit
in the commit that bumps the version. Nothing asked for it at that moment.

So the new test compares two files in the tree and asks the network nothing,
which is what lets it live in the default selection: it runs in `pytest -q`,
therefore in `unit`, therefore inside the one context main requires, and it runs
in the pre-push hook on the machine of whoever writes the bump. The e2e test
stays where it is; it has the index in hand and remains the one that checks
dates against the upload. It could not do this job: it speaks only after the
upload, it is deselected by default, and e2e.yml ignores every push touching
only `**.md`, so the file it asserts on cannot start it.

Validated against the known-bad on the real tree, not a fixture: with the 0.14.0
heading cut out, it fails and names the newest heading it found.

The second half is a defect this went looking for and found next door. `gate` is
the only context main requires and it waited for three of the five checks. The
two it ignored were `english`, written for this repository after 549 lines of
Italian shipped here, and `version`, which stands between a forgotten bump and a
release that publishes nothing and reports success. Measured by extracting the
run block and executing it: with the old needs list, either job failing still
exited 0. Thirteen combinations run against the new one, including the skips
that are normal - version on a push, unit and docs-api during the window when
the pinned core is not on the index - and each behaves as declared.
2026-09-09 17:21:59 +02:00
Federico 89563a2dd7 The changelog stopped at 0.13.2 while the index was serving 0.14.0 (#185)
The e2e has been red since the release commit itself, 2026-09-08 15:30, and
stayed that way for seventeen hours because the only push after it touched the
wiki and does not start that workflow. One test of 209:
test_the_changelog_documents_every_version_it_claims_to_cover, reading the
headings in this file against what PyPI actually serves.

That test is marked e2e, so the default selection deselects it and the `gate`
context main requires cannot see this class at all. It is the defect the test
was written for in the first place, in August: a record written by hand, read
by users, that nothing downstream breaks when it falls behind.

The date is the upload time on the index, not the day this was written, because
the test compares those too. The entry describes the only change of the seven
commits in the range that a caller can see; the rest are wiki, tests and one
internal thinning.
2026-09-09 13:32:54 +02:00
github-actions[bot] 07efe3944c record 0.14.0 as published (#183)
The upload succeeded and the ledger could not be pushed to main directly, so the entry lands here. Without it the next release is refused over a version the index serves and the ledger does not record.
2026-09-09 10:18:12 +02:00
Federico f2b648f7cf Answer the two shortcuts people try before they find frame_locator (#184)
This page explains the frame problem well and never mentions the two
workarounds the top search answers actually propose, which is why a
reader arriving from those answers does not find their question here.
Both are now addressed, with the mechanism rather than a verdict.

Clicking with JavaScript fails on a consent banner for a reason that is
not about Playwright: evaluate runs in the main frame and the
same-origin policy stops any script there from reading into a
cross-origin iframe, so querySelector never finds the button. That holds
whatever isolation strategy the browser runs. Where it does reach, a
script-synthesised click carries isTrusted false, which is the field a
handler can check.

Removing the banner from the DOM removes the overlay and does not record
a decision. Content gated behind a stored consent stays unrendered, so
the scrape returns empty, and the banner is back next run.

And the honest exception, because both statements are wrong on a
first-party banner in the main document: there the JavaScript route does
reach the button and only the trust question remains.

Two entries added to the short-answers block, which is where the
long-tail phrasings of these two questions land.

The page's load-bearing claim was verified before pushing it rather than
assumed: the emitted prefs still carry fission.autostart false,
webContentIsolationStrategy 0 and processCount.webIsolated 1.
2026-09-08 22:27:23 +02:00
Federico ff096b4d1b screencast.start() takes an fps, and the default stays at ten (0.14.0) (#182)
* screencast.start() takes an fps, and the default stays at ten (0.14.0)

The engine has taken a frame rate all along - `fps || 25` in its own registry -
and this passed the wrapper's constant to it whatever the caller asked for. So a
live view could not go past ten frames a second no matter what it did, which is
the second half of a slow pane: the first half was the client asking every
200 ms for a source producing every 100, fixed elsewhere.

Measured on the same page, interleaved arms: asking for 10 delivers 9.6-9.8 fps
at 257 KB/s, asking for 25 delivers 23.8-24.0 at 629 KB/s.

⛔ THE DEFAULT DOES NOT MOVE, and that is the whole shape of the change. Raising
the constant would put two and a half times the bandwidth on every consumer to
serve the one that is watching a window - a batch job that never looks at a
frame would pay it too. The caller decides and the constant is what happens when
nobody does, which is how `quality` and `size` on the same call already worked.

The test that pins it caught its own weakness first. It asserted that `fps` is
in the public signature, and the mutation that deletes `fps=fps` from the
generated wrapper survived that: a parameter a caller can pass and that goes
nowhere is an inert lever, and it is worse than a missing one because it looks
like it works. It now checks that every parameter the public signature declares
is forwarded, which is the property rather than this one case.

* And an e2e that asks the engine, because the unit test cannot

The unit test proves the wrapper puts a number on the wire. Only a real engine
can say the number does anything, and a lever verified from outside the system
it moves is exactly what this project has been fooled by before: seven levers
passed as prefs on the protocol, all inert, all reported green.

Two pages of one browser, same served page, same duration, and the assertion is
on the ratio - the absolute rate is a property of the machine, and the claim is
that asking for more gets more. The floor is far from the measured numbers on
purpose: it tests that the lever is connected, not that this machine is fast.
2026-09-08 17:29:57 +02:00
Federico 84192938cb Nineteen pages show the values they describe, and twenty-four stop pointing nowhere (#181)
* Four more pages get the measurement they were describing

Each of these pages asserted something a reader has to take on trust. Each one
now carries the run that produces it, on one Windows machine, one page served
from 127.0.0.1, with the numbers computed inside the page so the figure and the
figures agree by construction.

Canvas fingerprint changes every run. Four sessions: two without a seed disagree
on both readbacks and even on the device pixel ratio, two with the same seed are
identical, 0 of 79,800 pixels apart. The drawing looks the same in all four
panels, which is the useful part: the eye cannot separate them and the hash can.
Running it also contradicted a sentence the page carried, "Different seed,
different bytes": two different identity seeds can land on the same hardware
seed and return the same readback. The direction that holds is same seed, same
bytes, and the text now says only that.

Human-like mouse movement. Three ways to reach one target, with the page
recording every pointer event. All three report isTrusted true, so the trusted
flag does not separate the driver from the engine, only both from page script.
What separates them is the deltas: 3 distinct movementX values across 41 events
for an evenly stepped driver path, 26 across 34 for the engine's. And the third
panel is not a graceful arc, which is this page's whole thesis in one image.

Detecting installed fonts by width. The article's own snippet, run over ten
families against two different fallbacks. Consolas reads absent against
monospace and present against serif on the same machine in the same session,
because Consolas is what monospace resolves to there. An invented control family
stays absent under both, which is what makes that a finding. The rule now names
its exception: an identical width means the candidate did not render, or the
candidate is the fallback.

Screen size and viewport tells. The taskbar check does not fire on this browser:
bundled Firefox headless reports a 48 pixel gap, same as headful. What is a tell
is the constant, 1366x768 at two different viewports. Also states a sharp edge of
ours: an explicit viewport leaves outerWidth on the declared window while
innerWidth follows the request, 1490 pixels of impossible chrome, and
no_viewport keeps the pair at a plausible 85.

Every PNG was opened and inspected, and carries no metadata chunks and nothing
after IEND.

* Measure the new_page default instead of describing it

The page says browser.new_page() ships Playwright's stock 1280x720, and that the
same gap was closed on this engine. Both halves are now run rather than stated.

Three headless sessions on one page served from 127.0.0.1. The bundled Firefox
opened with new_page() reports inner 1280x720 on a screen it calls 1366x768. The
same build asked for new_context(no_viewport=True) reports 1366x683, a window on
that screen instead of a number from a config file. The patched engine opened
with new_page() reports 1920x947, which is exactly what its own new_context
gives, so the convenience call is not picking up a default nobody chose.

The first panel carries a second contradiction worth naming on a page about
relationships: outerHeight reads 805 while availHeight reads 720, so the window
is taller than the space the OS says exists.

PNG opened and inspected, no metadata chunks, nothing after IEND.

* Thirteen more pages show the values they describe, and the canvas page gets two corrections

Each page now carries a card of the values it names, read from a page served
from 127.0.0.1 by two headless sessions: Playwright's bundled Firefox and a
patched engine. Every card holds that page's own values, so no two are the same
table.

Eleven pages had at least one value that differs between the two browsers, so
those carry both panels. Three had none, and there the card is a single panel
with a note that the bundled Firefox returned the same values: a difference that
does not exist is not worth two identical tables.

Four cards were built and then dropped rather than shipped. Five pages named the
same trio of userAgent, platform and oscpu, which would have put the same
three-row table on five pages, and two comparison pages would have carried the
same two-row table. Kept where that trio is the subject, dropped elsewhere.

Three probes are deliberately not in the catalogue because they reveal the host
that ran the bench: the unmasked WebGL renderer prints the real GPU, the resolved
timeZone and navigator.languages print where the machine is. Measured on this
host before they were removed.

And the canvas page carries two corrections that came out of running it:

Without a seed, what changes on every launch is the device, not necessarily the
readback. Five unseeded launches moved the screen between 1920x1080 and
2560x1440, the core count between 4 and 12 and the ratio between 1 and 1.25, and
returned the same canvas four times out of five. So two unseeded runs agreeing on
a canvas hash is the likely outcome, not evidence that a seed took effect.

And hashing toDataURL partly hashes the PNG encoder. Three launches of the
bundled Firefox drawing an identical canvas returned three different toDataURL
hashes and the same getImageData bytes every time, with
privacy.fingerprintingProtection and privacy.resistFingerprinting tested both
ways. The cards read getImageData for this reason.

All nineteen PNGs opened and inspected, no metadata chunks, nothing after IEND.

* Three questions the new measurements answer, in the block that captures them

Each of these is a question a reader types and the page could not answer until
the bench ran. One per page, and all three different: a block that grew by the
same entry on three pages would be padding.

Hash getImageData rather than toDataURL when you want to know whether the drawing
changed, because three launches of the bundled Firefox returned three data URL
hashes and the same pixel bytes.

Playwright's Firefox reports 1366x768 with availHeight 720 in headless mode, and
it did not move at two different viewports, so it is a constant rather than
something derived from the session.

And a font the probe calls absent may be the fallback: Consolas reads absent
against monospace and present against serif in the same session on Windows.

* Shorten the one alt text that ran past four hundred characters

Every other figure sits between roughly one hundred and three hundred; this one
described four things a screen reader has to hear in one breath. Same content,
fewer clauses.

* Give seven mute pages their first in-body links

linkgraph counted 24 pages in the engine corpus with zero contextual
outgoing links and named none of them, so the number had sat there for a
month with nobody able to act on it. Named now, they turn out not to be
stubs: 620 to 2600 words, six to eleven H2s, with every internal link
sitting in the See also footer or the FAQ block, which the graph excludes
on purpose because boilerplate is not equity.

Seven of them get two or three links each, written for the sentence they
sit in: the four net::ERR_* pages point at the siblings that differ only
in how far the exchange got, Anubis and Turnstile point at each other on
the proof-of-work layer they share, and the CSP page places an init
script at the page-JavaScript level of the three.

Measured before and after with the tool, on this worktree: 24 to 17.

* Eleven more mute pages, and the integrations family had none at all

The eight pages under docs/integrations had zero internal markdown
links between them: only the directory README pointed in, and nothing
pointed out. They are also the pages where a reader arrives having
already chosen a tool, which makes them the ones most worth giving a
next step.

Links are placed on the sentence that raises the subject, and the
target differs per page on purpose: eight near-identical pages that all
grew the same link in the same section would be the monotemplate
signature the checklist warns about, which is the thing the See also
block already is. So the user-agent warning points at why one string is
the weakest thing to change, Crawlee's fingerprint generator at what a
fingerprint is read as, scrapy's SOCKS route at where Playwright drops
the credentials, TestCafe's missing prefs column at the seed.

One anchor was written before checking the target and described
something that page does not cover; it names the layer stack now, which
is what the page is actually about.

Link form is the corpus convention, [x](slug.md), which build_wiki
resolves from a subdirectory through its addressable table. The
../slug.md form would read correctly on github.com and dead on the
wiki, which is the surface that ranks.

Measured with the tool against this worktree: 17 to 6, median outbound
density back to 3.4 per thousand words.

* The last six mute pages: the engine corpus is at zero

Six troubleshooting and getting-started pages get their first in-body
links, and three of them sit next to each other in the error space, so
the links say which of the neighbouring errors you would be reading
instead: force-clicking through an overlay against the not-attached
error, a leaked process against a script still holding a browser that
went away, strict mode against a click that is merely covered.

Two anchors were written before reading the target and had to be
corrected. One claimed a page covered whether content arrives in the
HTML, which it does not; it names the layer stack now. One asserted the
seed page lists two things it cannot pin, which is not the shape of that
section; it points at the section by what it is. An anchor that
describes the target wrongly is worse than no link, because a reader
follows it once and stops trusting the rest.

engine: 24 mute pages to 0, median outbound density 3.4 per thousand
words, inside the 2-5 house range. aihawk still has 2, both on the
restricted themes, handled separately.

* An anchor with an underscore left one dead link on the wiki

The link rewriter's anchor class was [A-Za-z0-9-], and a heading like
"What invisible_playwright does and does not do here" produces an anchor
carrying an underscore. The pattern then fails to match the whole link,
not just the anchor, so it shipped to the wiki as
](geetest-v4-explained.md#...) - a dead target, because the wiki has no
.md pages.

One link across 463 pages, and invisible from either side: the page
renders normally and only the destination 404s. Found by building the
wiki and grepping the output for links that still end in .md, which is
worth doing on any batch that adds internal links.

Underscore added to both classes, since a page name can carry one for
the same reason a heading can. Rebuilt: the unresolved count goes 1 to
0 and exactly one of the 463 output files differs, so nothing else
moved.

* The headful panel printed this machine's display, so it comes out

The screen figure had four panels and the third was labelled "now it is
the host's display". It was: 1365 x 853, the real geometry of the
machine the bench ran on, painted into the pixels of a page about to be
published. The alt text had carefully avoided the number, so the image
was the only place it appeared.

That is the class the house rule names by name, and it got through
because the exclusion list lives in the probe catalogue, which the
value cards go through and a bespoke bench does not. A bench written
for one page reaches straight past it.

Recomposed from the three headless panels with the harness. The
argument survives: the taskbar gap is still 48 px, the screen is still
a constant across two viewports, the patched engine still declares
1920x1080. The headful measurement is now stated in prose, with the
reason it is not shown, which is the honest version of what that panel
was for.

Renamed to three-arms, free to do because the URL has never been
published. The other four bespoke figures were opened and are clean,
and the 114 strings rendered into the fourteen value cards were scanned
for IP, host timezone, host locale, GPU model, user paths and machine
names: nothing.
2026-09-08 17:03:02 +02:00
Federico 53b7996bc3 Show the headful/headless font difference instead of only asserting it (#180)
The page opens by saying that the same page rendered both ways on one machine
is not identical, and then argues it from Linux and fontconfig. Nobody had run
it on Windows.

Four arms on one page served from 127.0.0.1, same viewport, same URL: the
bundled Firefox headful and headless, then a patched Firefox headful and
headless.

The bundled build disagrees with itself across the two modes on 8,989 of
294,400 pixels, 3.05% of the frame. The shape matters more than the number.
Every sample row keeps its exact height, so no glyph got taller; the rows drift
downward by 0, 1, 1, 2, 2, 2, 2 and 3 pixels from the first sample to the
eighth. Line boxes round differently and the error accumulates, which is why a
screenshot test can pass on a laptop and fail in CI, and why a tolerance tuned
on the first viewport does not hold at the bottom of a long page.

The patched engine returned the same frame in both modes, byte for byte, on
three repeats of the whole bench.

The figure carries the browser's own pixels: labels sit on strips added outside
the panels, since GitHub strips figcaption. It includes an amplified difference
map so the 3% is visible rather than asserted, and the text states the cost of
the trade: Arial Narrow is installed on the host, the patched engine does not
carry that face, so that row renders wide instead of narrow.
2026-09-08 07:44:18 +02:00
Federico 7567dbc52b Give every wiki page a view counter of its own (#179)
* Give every wiki page a view counter of its own

A GitHub wiki serves no per-page analytics. The traffic API reports the ten
most visited paths over fourteen days and nothing below that, so a corpus of
463 pages is invisible by construction: measured today, the whole wiki index
sits at about thirty views per fortnight and no individual page reaches the
top ten. We know which pages rank and not which ones get read.

Each page now embeds a 68-byte transparent 1x1 PNG held as an asset of an
article-views release, the way the browser launch counter has worked since
May: the asset's download count is how many times the page was loaded. The
release is created with make_latest=false, so it never becomes the
repository's Latest.

What that number is not, measured rather than assumed: four deliberate loads
produced six counts, so it carries fetches we did not make and cannot
separate, download_count being a bare integer with no provenance. It counts
fetches and not visitors, crawlers like readers, and nothing at all for a
reader who blocks images. It is for comparing pages and days.

The pixel goes into the wiki only, never back into docs/: the wiki is the
surface that ranks, while the .md in the repository is served as a JSON
payload React mounts, so a counter there would measure almost nothing and put
markup in the source tree.

build_wiki.py writes no pixel unless it is told which repository it builds
for, which is right for a local preview and silent otherwise - a wiki
published that way looks entirely normal and counts nothing. So the workflow
passes the flag and then gates on it: the checker refuses a page with no
pixel, with two, or with one addressed elsewhere, and its own eleven
known-bad cases run first.

* Pace the first upload run, and say it in English

The first run on an existing corpus uploads one asset per page - 463 here -
and GitHub throttles bursts of content-creating requests with a 403 or 429
carrying Retry-After. That burst happens before the wiki push, so a throttle
would have blocked the publish itself on the one run nobody gets to rehearse.
Honour the header, retry, and pace the loop at a tenth of a second, which puts
the whole first run under a minute of added wall clock.

The backoff has its own three known-bad cases against a fake throttling
server, because retry code that has never once retried is not retry code. A
404 stays unretried on purpose: reading one is how a missing release is found.

And the file was carrying Italian identifiers and test names into a public
repository. The language gate reads git ls-files, so running it before the
file was tracked was running it against a world where the file did not exist.
2026-09-08 07:41:16 +02:00
Federico 8c24507b5a A gate on the guides, and the one live defect it found (#178)
* A gate on the guides, and the one live defect it found

Nothing was reading the 454 pages in docs/. One of them published
`tree = page.accessibility.snapshot()`, an attribute this fork does not have
and does not refuse by name, so anybody who ran that block got an
AttributeError. It is corrected to page.aria_snapshot(), which exists.

scripts/check_docs_api_surface.py asks the REAL classes what they have and
refuses any name in a ```python block that is not there. Two other designs
were measured first and rejected, and the reasons are in the docstring so
nobody rebuilds them: parsing every block fails on 82 of 1169 deliberate
fragments, so it would be born red on correct pages; and checking attributes
on a returned value would not have caught the defect that prompted all this,
because in that one the attribute was real and the runtime value was None.

Five known-bad inputs and seven that must not fire, because a gate that
refuses everything is as useless as one that passes everything. The foreign
objects that share a name - an httpx response, a pdfplumber page, pytest's
request fixture, an hrequests page - are skipped by the library the block
names, and every entry there came from a measured false positive.

Required by the gate job, and skipped rather than faked green during the
window where the pinned core is not yet on the index, exactly as unit is.

* The prose said the old name too, and the gate cannot see prose

Fixing the code block left the sentence under it still promising
accessibility.snapshot(). The gate reads only ```python blocks - that blind
spot is declared in its docstring, and it took about a minute to bite.

A page whose prose contradicts its own example is worse than either half
being wrong alone, because a reader believes the sentence.
2026-09-08 03:20:02 +02:00
github-actions[bot]andfeder-cr 39010ed45e record 0.13.2 as published, and date it the day the index took it (#176)
* record 0.13.2 as published

* Run the checks the bot's token cannot trigger

* Date 0.13.2 the day the index took it

The upload is 2026-09-07T23:53Z; the heading said 2026-09-08, which is the
local date an hour later. test_the_changelog_documents_every_version_it_claims_to_cover
compares the two and is right to refuse.

---------

Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-08 02:14:55 +02:00
Federico d34a11e886 Thin out one repeated construction, and give the last eight orphans a home (#177)
Two related pieces of corpus hygiene.

The first: "rather than" ran at 2.60 per thousand words across 454 pages, with
one page using it sixteen times. A construction repeated at that rate is a
signature and not a style, which this corpus established in July when the same
phrase was cut from 63 uses across 21 pages down to 23. The corpus has grown
twentyfold since and nobody recounted.

136 pages were over five uses. 351 of them are rewritten, bringing every page
to five or fewer and the corpus mean from 4.4 to 3.6 per page.

The rewrites are varied on purpose. Replacing all 351 with "instead of" would
have taken that phrase from 1.19 to 1.65 per thousand words, which is trading
one signature for another. The load is spread by syntactic context instead: a
gerund takes "instead of", a preposition and a bare noun take a comma and
"not", a determiner alternates between the three. The result moves "rather
than" from 2.60 to 2.14, "instead of" from 1.19 to 1.32, ", not" from 2.45 to
2.71, and "in place of" from 0.01 to 0.05. Nothing spikes.

Verbs in the base form were left alone: rewriting those needs a judgement per
sentence, they are only 30 cases in the corpus, and there were plenty of safe
candidates without them.

The second piece: eight pages published on 5 September had no inbound link
from anywhere in the prose. Each now has one entry in the body of the pillar
it declares as its parent, in the section it belongs to. Both corpora are now
at zero orphans. Worth stating plainly, because the obvious reading is wrong:
this is not an indexing fix. All eight are outside Google's index, and so are
the two pages of the same wave that did have inbound links.

Internal links all resolve, no line endings touched, and the four files with
unbalanced brackets are code samples that were already that way.
2026-09-08 02:01:55 +02:00
Federico 5f528357a6 Return the navigation Response from goto, reload and history (#174)
goto answered None on every navigation because op_goto ended with a hardcoded {"response": None}. The page loaded, the response events carried the right statuses and expect_response worked; only the return value was missing, so page.goto(url).status was unreachable. Crawlee reads that value and treats None as a failed load, so a PlaywrightCrawler driven by this package failed every request: 0 finished / 2 failed before, 2 / 0 after, against a local server.

The engine needed no change. navigationId is set only on the main document channel and is inherited by every hop of a redirect chain, so PageDispatcher can index the document request by it exactly. reload and the history commands share the fix.

Released as 0.13.2, because the version job correctly refused a head whose wheel files had moved while pyproject still declared a version the index already serves.
2026-09-08 01:50:07 +02:00
Federico 70a8164d26 Give the twenty September guides the blocks the house format requires (#175)
The wave published on 7 September went out without the question block, the
See also line and the Sources section: rules 6, 7 and 8 of the format every
article on this wiki follows, missing on all twenty. 416 of the other engine
pages carry the question block, which is the long-tail capture device, so the
gap was in these twenty and not in the convention.

Each page gets four questions in the words people actually type, answered from
what the page already argues, so no new claims are introduced. Each See also
names pages the article already links in its body, using their real titles.
Each Sources section names what the page was checked against: the Playwright
reference for the calls the code makes, and a primary source where one is
genuinely on point - RFC 5545 for the calendar feeds, MDN's getComputedStyle
and content for the pseudo-element page, MDN's aria-label for the page about
numbers drawn as images, PyPI's stats API for the download-count page. Every
one of those nine URLs was fetched and returns 200.

Purely additive: 668 lines added, none removed, no line endings touched.
2026-09-08 01:44:02 +02:00
Federico 8a8dc8d0fd Give the twenty new guides their inbound links (#173)
They shipped with zero inbound internal links, against the register's own rule
that a new page goes into the body of the relevant pillar. The pillar here is the
Scraping with Playwright hub, and adding them to it is that page's purpose rather
than stuffing: nine into the vertical section beside the flight, crypto and
directory guides, eleven into the objects section in its filename order.

The in-body links are only two, and the reason is the rule that the anchor must
already exist in the sentence. Six candidates matched a search; four were false
positives on inspection. The printer-friendly guide already writes
getComputedStyle(el, "::after").content while explaining that generated content
is not in the DOM, and the transport timetable guide already says a live
departure board is not a timetable. Those two are links. The other four were
opac inside opacity: 0, sprite sheets in a list of sub-resources, and
Playwright's platform compatibility table, and writing a sentence around any of
them would have been the stuffing the rule exists to prevent.

The hub edit is twenty added lines and no removed ones, verified against a copy
taken before the change, after restoring CRLF: the script that inserted them had
rewritten the whole file to LF, which would have shown as a 199-line rewrite.
2026-09-07 23:59:12 +02:00
Federico 648aacfabd Put our own measurements into the two guides that can carry them (#172)
The twenty guides shipped without a single measurement of our own, which is the
one thing the article method treats as more important than length. Two of them
can host one truthfully, and these are those two.

CSS pseudo-element content now carries the closed shadow root finding. Two
Playwright issues describe what look like separate problems, #23047 (locators
cannot enter mode:"closed" roots, open since May 2023, 26 comments) and #30816
(Page.content() does not serialize shadow DOM at all, closed, 2 comments). They
are one gap seen from two sides, and nobody has connected them: the search
`repo:microsoft/playwright 30816 23047` returns exactly two results, the two
issues themselves, re-verified against the API today rather than taken from the
research note. That is why advice for one symptom never helps with the other.

Numbers rendered as images now carries the canvas bench result. Hashing the PNG
bytes of the same page across three runs gave three different md5 values on
unmodified retail Firefox, which reads as canvas randomisation and is false: the
files had identical byte length and differed only in encoder metadata. Comparing
the decoded pixel array instead, all three runs were stable. The rule that falls
out is concrete for anyone watching a rendered number for change, and it comes
with the code.

The other eighteen are left alone rather than given a decorative statistic. A
measurement belongs to an article only when the article is actually about the
thing measured.
2026-09-07 22:50:47 +02:00
Federico c61579c2f4 Extend the twenty new guides to the length the corpus publishes at (#171)
They shipped at 851 words on average against roughly 1,900 for the pages that
rank, which was stated at the time as open work. Each one now carries three more
sections, and the additions are substance rather than padding:

- a complete run, end to end, with the parts production needs: a resumable loop,
  a flush per record so an interrupted run leaves usable data, and the guard that
  distinguishes an empty result from a failed read;
- what the specific target does when it decides to stop serving you, which
  differs sharply by domain. Carrier endpoints defend against enumeration,
  comparison engines are slow rather than hostile, bank sites cache hard, court
  portals rate limit and do not forgive, school sites simply go stale, and
  library catalogues degrade by session rather than by policy;
- the schema, with the question each grain exists to answer: connector-level
  transitions for charger utilisation, event logs for adoption waiting times,
  status history for permit durations, both timestamps everywhere so staleness is
  measurable rather than assumed.

Several also gained the check that separates a real absence from a silent
refusal, which is the failure this corpus keeps meeting: a table that renders
empty, a town with no stations, a docket that lost its entries, a series that
returns zeros. Each is now a distinct outcome rather than a plausible row.

Average is now 1,433 words, from 851. That is closer to the corpus norm and still
short of it, and saying so is more useful than padding to a number: the measured
data says length does not separate the pages that rank from the ones that do not.
2026-09-07 21:52:03 +02:00
Federico 0bd093d285 Twenty new scraping guides, chosen from the ranking data (#170)
Which topics win is now measured rather than assumed. Among the pages Google has
indexed, our own-title queries rank 84% of the time and generic demand queries 4%,
and the ten indexed pages that lose on their own title are the most generic
Playwright and scraping subjects: generating a PDF, rate limiting, e-commerce
product pages, headless versus headed, recording a trace. That family was
excluded on purpose.

The twenty added here are narrow objects or mechanisms, each with a different
technical problem at its centre so they do not read as twenty variants of one
article:

  duration bands rather than a price          parking rates
  live status with two distinct timestamps    EV charging availability
  the location decides the result             fuel prices
  seasonality, and cancellations as events    ferry schedules
  session-bound catalogue, copies per branch  library availability
  a timeline that reorders and gets revised   package tracking
  a DOM rewritten while you read it           flight status boards
  a unit that changes underneath you          snow reports
  the disappearance is the data               pet adoption listings
  postback forms, and a resumable run         construction permits
  never enumerate, only known cases           court dockets
  deadlines that are frequently not dates     scholarship listings
  a grid of parallel tracks, and timezones    conference agendas
  the series behind the chart                 package download statistics
  the footnote that changes the number        bank interest rates
  a quote is a function of its inputs         energy tariffs
  prefer the calendar feed, expand inclusive  school term calendars
  cascading dropdowns, a cross product        spare part compatibility
  sprites and remapped fonts, and when to stop numbers rendered as images
  not in the DOM at all                       CSS pseudo-element content

They sit at nav_order 150 to 169 under Scraping with Playwright, with no
collisions and no internal links broken. Every page carries the honest limits of
its subject, including the cases where the right answer is to stop and ask the
site for the data instead.

One deviation from the house standard, stated rather than hidden: these average
851 words against roughly 1,900 for the corpus that ranks. Length was measured
and does not separate winners from losers on its own, but extending them is
still open work.
2026-09-07 21:18:57 +02:00
Federico 61fde53457 The server's command is uvx aihawk (#169)
Since aihawk 0.11.0 the MCP server is aihawk with no subcommand, so the one line a reader copies is claude mcp add stealth -- uvx aihawk, and the pages that name the server call it aihawk. The old command keeps working through the shim but is not what a new reader should copy.
2026-09-07 00:55:24 +02:00
Federico 823217b484 The MCP server lives in AIHawk: the two repository links and the family bullets say so (#168)
The server repository was merged into AIHawk (aihawk 0.10.0, module aihawk.mcp); the PyPI name invisible-playwright-mcp stays as a shim, so the commands on these pages are unchanged and only the links move: to the wiki page that now holds the server's config blocks, settings and tools.
2026-09-07 00:54:55 +02:00
Federico b8243bb0c2 The MCP server lives in AIHawk: the two repository links and the family bullets say so (#167)
The server repository was merged into AIHawk (aihawk 0.10.0, module aihawk.mcp); the PyPI name invisible-playwright-mcp stays as a shim, so the commands on these pages are unchanged and only the links move: to the wiki page that now holds the server's config blocks, settings and tools.
2026-09-07 00:13:39 +02:00
Federico 0f14cc782d The two sibling one-liners run through uvx again (#165)
Owner decision, 2026-09-06, after a survey of comparable projects: pip refuses
outside a virtual environment on current Debian and Ubuntu, and on Windows a
Store Python leaves pip scripts off the PATH, so the one route that works for
every reader is uv. Reverts the pip form of this block from earlier today; the
sibling pages say the same.
2026-09-06 17:03:09 +02:00
Federico d4faa9ebaf The two sibling one-liners install with pip (#164)
The README block that points at the MCP server and at AIHawk showed both
through uvx. Both now read pip install followed by the command, which is how
their own pages say it since 2026-09-06. One wiki page loses the prefix too.
2026-09-06 11:12:32 +02:00
github-actions[bot]andfeder-cr 39e4dd2e0f record 0.13.1 as published (#163)
* record 0.13.1 as published

* Run the checks the bot's token cannot trigger

---------

Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-06 04:55:34 +02:00
Federico 76a7a0ce21 Pin invisible-core 29.19.0: the engine is firefox-29, which has the screencast (#162)
* Pin invisible-core 29.19.0: the engine is firefox-29, which has the screencast

page.screencast.start() shipped in 0.13.0 against a sealed engine that could
not answer it; the seal now points at firefox-29, which carries the screencast
and crops the Windows resize border out of a full-window frame. The pin
follows the seal and nothing else moves. Version 0.13.1.

* 0.13.1 is dated by the clock in UTC, not the one on the desk
2026-09-06 04:39:38 +02:00
github-actions[bot]andfeder-cr 0d65c54eb6 record 0.13.0 as published (#160)
* record 0.13.0 as published

* Run the checks the bot's token cannot trigger

---------

Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-06 03:00:21 +02:00
Federico 5a786f43d6 The 0.13.0 changelog heading is dated by the upload (#161)
PyPI records the 0.13.0 upload on 2026-09-05 UTC; the heading said the 6th,
which was the local date after midnight. test_release_e2e compares the two
and it is right to.
2026-09-06 02:45:22 +02:00
Federico 1f6f8d1ac8 page.screencast streams JPEG frames of the window, pointer included (#159)
* page.screencast streams JPEG frames of the WINDOW, pointer included

page.screenshot() is the content viewport and can never show the pointer:
it is drawn in the chrome document so that no page can see it. The engine's
screencast is back since firefox-28, rebuilt on the browser's own window
capture with a fullWindow flag of ours, and the in-process Juggler server
now answers screencastStart and screencastStop with it. Every frame the
engine sends goes up to the vendored client under the names it reads and
is acknowledged from the reader thread with a new Connection.post, which
sends without waiting: a send there would wait for a reply only that
thread can deliver. The pipe gets a write lock, because two threads now
write it. A video file (path=) is refused by name: there is no encoder.

Measured against the objdir build: under headless=True, which on Windows
is the cloaked window, 146 frames in fifteen seconds at the requested ten
per second, 782x676 with 87 percent of the pixels being the page served
and none black - the capture reads a cloaked window. The unit tests build
a PageDispatcher without a browser and were run against three known-bad
inputs, listed in the module docstring.

* Version 0.13.0: the screencast is a feature, not a fix

The changelog entry moves from Unreleased to 0.13.0, dated today.

* The screencast e2e skips, by name, on an engine that has no screencast

The CI drives the sealed engine, firefox-27, which has no
Page.startScreencast: the first run went red on that sentence with 206
other tests green. Until the seal rolls to firefox-28 the test skips
naming the engine; any other refusal is still a failure.
2026-09-06 01:51:33 +02:00
github-actions[bot]andfeder-cr 95c791d351 record 0.12.3 as published (#158)
* record 0.12.3 as published

* Let the gate run on the ledger branch

* The 0.12.3 entry carries the index's date

The upload landed on 2026-09-05 UTC; the entry said 2026-09-06, the local
calendar at the time of the tag. test_the_changelog_documents_every_version_it_claims_to_cover
compares the two and was right to refuse.

---------

Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-06 01:10:02 +02:00
Federico 907150bf60 Pin invisible-core 27.19.0: orphaned .tmp trees in the engine cache are swept (#157)
A download killed during verifying or extracting used to leave up to the whole
extracted tree under cache_root()/.tmp-<tag>-<pid>, because only a fresh
download by the same pid ever removed it. The core now sweeps the trees whose
process is gone on every ensure_binary, warm path included, and leaves alone
its own tree, a live process's tree and anything not named after a pid. The
MCP server 0.13.0 starts the download with the process, which turned a killed
download from a Ctrl-C into an ordinary event.

Pin moved with scripts/sync_core_pin.py after the core landed on the index.
Version 0.12.3, a pin bump: nothing this package launches the browser with
changed.
2026-09-06 00:37:38 +02:00
Federico d86f52c9c8 The README says the one thing the stock driver cannot do (#155)
Playwright's own docs rule out closed-mode shadow roots, and measured this
week stock Playwright returns nothing for that content in Firefox and
Chromium alike while this engine returns the element, with the page still
reading null from shadowRoot. That was documented on the wiki and nowhere a
reader would see it. One paragraph, the measurement, and the link to the
page that prints the reproduction.
2026-09-05 15:36:17 +02:00
Federico 686607738e Ten mechanics pages, and one correction the measurement forced (#154)
Three arms on one local page settled a claim this wiki had been making
confidently: stock Playwright finds nothing inside a closed shadow root,
in Firefox and Chromium alike, while this engine reaches the content with
the page still reading null from shadowRoot. The shadow DOM page said the
boundary was absolute for everyone; it now says what was measured, and
links the new page that prints the reproduction.

Two more recipes died the same way, which is why every code block in this
wave was executed before it shipped. The keyboard fallback everyone
recommends for a stubborn dropdown, click then ArrowDown then Enter, does
not move the value at all: focus without the click does. And
document.fonts.check() answers true for a font family invented on the
spot, so it cannot tell you whether a container has the font you think.

The rest: Queue-it waiting rooms and why there is nothing there to defeat,
memory on long runs with the measurement method that does not double count
a previous browser, ARM64 Linux, fonts in slim images, canvas across
operating systems, downloading linked PDFs (where the out-of-page request
API is refused by design and the in-page fetch is the route), select
options for native and custom dropdowns, a browser-use comparison with the
conflict declared, and the Windows first-launch failure with the registry
correlation reported as our observation rather than an architecture claim.
2026-09-05 13:22:23 +02:00
github-actions[bot] e2b795eea4 record 0.12.2 as published (#152)
The ledger entry the publish workflow wrote for 0.12.2, from the artifacts the index serves.
2026-09-05 12:36:32 +02:00
Federico 4ddf1f9fb7 The persistent-profiles page names the defect that was ours (#153)
The page listed two upstream Playwright reports about cookies vanishing between
runs and told the reader to look there before rewriting their own code. From
0.8.0 to 0.12.0 this client dropped them itself: the persistent launch handed
back a Juggler container whose storage dies with the session. Fixed in 0.12.1;
a reader on one of those versions should upgrade before reading anything else,
and the page now says so.
2026-09-05 12:36:12 +02:00
Federico 790a123c86 0.12.2: the launch counter lives on the engine's repository (#151)
The pin moves to invisible-core 27.18.0, which declares the launch counter's
address in every session: the usage-counter release of the 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; the ping can be turned off with invisible_firefox.usage_ping.enabled.
2026-09-05 12:24:24 +02:00
Federico 0d2dae5862 The browser launches badge is back, because the number behind it is live again (#150)
It went in 0.7.2, when the counter it read lived on a repository that had just
been deleted: the renderer would have redrawn the last real value every morning,
and a frozen figure presented as current is worse than none. The counter has
lived on this repository since 2026-08-19 and has been counting since, about
twenty thousand launches a day at the moment, so the badge shows a live number.

It is cumulative and it undercounts: engines before firefox-21 carry the old
address compiled in and rejoin the count only as their users upgrade.
2026-09-05 04:23:52 +02:00
github-actions[bot] 101b8099fe record 0.12.1 as published (#149)
The ledger entry the publish workflow wrote for 0.12.1, from the artifacts the index serves.
2026-09-05 04:09:12 +02:00
Federico 874277167f A persistent profile keeps its cookies and storage for the next session (#148)
Since 0.8.0 profile_dir kept nothing. The persistent launch handed back an
ordinary context: Browser.createBrowserContext, a Juggler container with its
own userContextId, whose destroy() calls ContextualIdentityService.remove and
deletes the container's cookies and storage with the identity. The first
session set a cookie and a localStorage entry and read both back; the second
session on the same profile read an empty jar and None; cookies.sqlite in the
profile held zero rows throughout. Measured 2026-09-05 against the published
0.12.0 from a clean environment.

Upstream's persistent context is the browser's default one, userContextId 0,
whose state is the profile's. It is addressed by omitting browserContextId,
never by null, because Juggler registers it under undefined and Map.get(null)
finds nothing; and it is never removed, closing it closes the browser. One
function now owns that rule and every command that names a context goes
through it, so the twelve option pushes, newPage, the cookie commands and
close all agree.

The e2e writes a cookie and a localStorage entry in one session, reads the
cookie row from cookies.sqlite on disk in between, and reads both back in a
second session on the same profile. Against 0.12.0 it fails on the on-disk
read. Three pure tests pin the addressing rule, including the null trap.
Version 0.12.1.
2026-09-05 03:48:55 +02:00
github-actions[bot] 0828d6b9b0 record 0.12.0 as published (#147)
The ledger entry the publish workflow wrote for 0.12.0, from the artifacts the index serves.
2026-09-04 20:58:08 +02:00
Federico 0a16b783d6 0.12.0: the engine moves to firefox-27, where the first launch on Windows works (#146)
The pin goes to invisible-core 27.17.0, which seals firefox-27. That engine
changes one thing: on Windows the launcher process forwards the Juggler pipe it
is handed in the environment instead of reading CRT descriptors this client
never opens, so the first launch from a path the browser had never run from no
longer exits with 3221226505. Everything else in the engine is firefox-26.

The changelog entry says what it was, why it failed exactly once per machine,
and since when; the test that keeps it fixed is the commit before this one.
2026-09-04 20:46:17 +02:00
github-actions[bot] 31ba882e6d record 0.11.0 as published (#143)
The ledger entry the publish workflow wrote for 0.11.0, from the artifacts the index serves.
2026-09-04 18:23:43 +02:00
Federico fc7915483f The version gate asks whether the package moved, not whether the number is taken (#145)
On its first day the gate refused the two pull requests that follow every
release: the ledger the publish workflow opens by itself, and the changelog
entry for the release. Both carry the published version, and a bump on either
would be a lie, because nothing that ships had moved.

The question it asks now is the one it always meant. Since the tag of the
published version, has anything changed that goes into the wheel, the package
tree the build backend names or pyproject.toml? The ledger, the changelog,
tests, workflows and docs alter nothing anybody installs and pass without a
bump; a change under the package does not. The tag has to be in the checkout,
so the version job fetches the full history, and a taken version with no tag
in the clone is refused rather than guessed at.

Two known-bad inputs: a pure classifier fed the ledger, the changelog, a test,
a workflow and a same-prefix sibling of the package, which must all not count,
against files under the package, which must; and the previous release's tag,
from which the package moved by definition.
2026-09-04 18:17:42 +02:00
Federico fc0a2827ac Fifteen commits of content under a version the index already served (#142)
Measured 2026-09-04: 0.10.0 is on the index while main sat on 0.10.0 with FIFTEEN
commits on top of the tag - 39 files, 841 insertions, the screenshot clip fix
among them. A release from there would have published NOTHING and reported
success, because publish.yml asks the index first and treats an already-present
version as a deliberate no-op. That is right for a re-pushed or backfilled tag
and indistinguishable from somebody forgetting to bump, so the fix could not have
reached anybody and nothing would have said so.

This is the third package with the same hole; the sibling found it first. The
check asks the index whether the version a change proposes is still free, on pull
requests only - on main straight after a release the version IS the published one
until somebody bumps, and a gate that is red at rest is one people learn to skip.
Bumping publishes nothing, so the rule costs one line in the change that earns
the release. Hence 0.11.0.

⛔ The known-bad input is PER PACKAGE, and copying it from a sibling was wrong.
It said 0.1.0, which this package has never published - the oldest here is 0.3.5.
The test failed rather than passing on a version that does not exist, which is
the only reason the mistake was visible.

Three outcomes rather than two: a network error is neither present nor absent,
and scoring it as absent turns an unreachable index into a green gate.
2026-09-04 13:15:28 +02:00
SamadhiFire f2474beb0b Two launch gates stop calling the removed path command (#141) 2026-09-04 13:10:33 +02:00
Federico 03f695d813 Merge pull request #140 from feder-cr/docs/differentiation-wave
Three twin pages stop sharing a title's intent, and the pairs the tracker cleared stay put
2026-09-04 02:03:56 +02:00
feder-cr 3b6fee9957 Three twin pages stop sharing a title's intent, and the pairs the tracker cleared stay put 2026-09-04 01:57:16 +02:00
Federico f4f5f13629 Merge pull request #139 from feder-cr/docs/audit-code-fixes
Twelve pages stop shipping code that cannot run as pasted, and two claims catch up with their sources
2026-09-04 00:43:40 +02:00
feder-cr 3fbbf6dd30 Twelve pages stop shipping code that cannot run as pasted, and two claims catch up with their sources 2026-09-04 00:36:26 +02:00
Federico c08444186e Merge pull request #138 from feder-cr/docs/strip-image-metadata
Tool metadata out of the shipped screenshots, and a code sample readers can actually read
2026-09-04 00:28:46 +02:00
feder-cr 52a1fc0859 Tool metadata out of the shipped screenshots, and a code sample readers can actually read 2026-09-03 22:12:05 +02:00
Federico 0f48c05214 Merge pull request #137 from feder-cr/docs/agent-layer-links
The engine's front page now names the agent that sits on it
2026-09-03 20:24:18 +02:00
feder-cr 4438689e40 The engine's front page now names the agent that sits on it 2026-09-03 20:17:43 +02:00
Federico bf72778dcc A screenshot photographs where the page is, and full_page means the page (#136)
* A screenshot photographs where the page is, and full_page means the page

Found by looking, not by reading. Asked to open a README in a browser and
actually look at it, I scrolled to the part I wanted and took a picture, and the
picture was the top of the page. scrollY 3000, the target element at y=0 in the
viewport, and the image showing the document's first screen.

One line. op_screenshot built its clip as {x: 0, y: 0, width: innerWidth,
height: innerHeight}. The engine reads a clip in DOCUMENT coordinates, so that
is not the viewport: it is the document's top-left corner, at viewport size. Two
promises broke on it, both silently, both returning a valid image of the wrong
place.

Scrolling did nothing. An agent that scrolls and looks got the same picture
every time, with nothing in the image to say so. That is what
browser_take_screenshot does in the MCP server, and rung 3 of the ladder that
server hands every model is "take a screenshot, then click on what you can see" -
so the server was recommending a step that could not work.

And fullPage was never read by the driver at all: 800x600 on a document asked
for at 800x4000.

Fixed where it comes from rather than where it shows: the clip is computed from
the page, either where the viewport actually is or how big the document actually
is. A clip the CALLER supplies passes through untouched, because Playwright
documents it in page coordinates already.

Six tests, and they read PIXELS. A size proves the crop has the right shape, and
the defect was a right-shaped crop of the wrong place, so the fixture page has a
red band at y=1000 and a green column at x=1400 and the assertions ask what
colour came back. The PNG reader is thirty lines of zlib rather than adding
Pillow to the dev extras so one test can read one pixel.

Six mutations, six killed. The first round had one survivor, the horizontal
axis, because nothing scrolled sideways - I had labelled it as expected to
survive, which is a polite way of saying half a two-axis fix was untested. It is
covered now.

Two of my assertions were also wrong rather than the code: adding the green
column made the document 1600 wide, so full_page correctly answered 1600x4000
while the test demanded 800x4000, and scrollTo(1400, 0) is clamped to 800 in an
800px viewport, so I was reading the wrong pixel. The test now reads scrollX
back and computes from it instead of assuming, which is the same mistake in
miniature as the defect it covers.

The vendored upstream suite could not have caught this. It is excluded from
collection, but that is the smaller half: its test_screenshot.py has three tests,
and neither fullPage nor scrolling is among them.

* Translate the identifiers I just wrote in Italian, and say why nothing stopped me

The English gate went red on CI for the test file added in the previous commit:
`landed`, `out` and `prior` were `dove`, `fuori` and `sopra`. I wrote Italian
into a public repository on the same day I wired that gate into this repo's CI
for exactly this.

⛔ And the reason it passed locally is worth more than the mistake. The gate
walks `git ls-files`, so it sees TRACKED files only. Running it before `git add`
on a brand-new file scans everything except the file being added, and reports
clean. It is not wrong to read the tracked set - that is what ships - but it
means the local run before a first commit cannot see the thing most likely to be
wrong, and only the CI run after the push does.

Nothing to change in the gate. What changes is when it is run: after staging,
not before.
2026-09-03 17:25:13 +02:00
Federico 83403b83a7 Merge pull request #135 from feder-cr/docs/discovery-links
The README learns the vendor pages exist, and the agents hub points across
2026-09-03 15:39:09 +02:00
feder-cr 12fd16385a The README learns the vendor pages exist, and the agents hub points across
Eighteen anti-bot vendor pages went live in the wiki without a single link
from the repository's own README, which is the page crawlers actually visit.
Now the documentation section names the set. The AI-agents hub also gains a
pointer to the AIHawk wiki, where the agent-experience content moved: the
split is developers wiring an agent to this engine here, people running an
agent there.
2026-09-03 15:32:36 +02:00
github-actions[bot]andfeder-cr 2b4f83f7f2 record 0.10.0 as published (#132)
* record 0.10.0 as published

* Trigger the required checks

The branch below was pushed by a workflow using GITHUB_TOKEN, and GitHub does
not let that token start other workflows. So tests.yml never ran, the required
`gate` context never arrived, and the pull request was not slow: it was
unmergeable. An empty commit pushed with a real token is what starts them.

Documented in 17-release-seal-spec.md step 8, and this is the second release it
has happened to.

---------

Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-09-03 15:02:07 +02:00
Federico 38ac9d5259 Merge pull request #134 from feder-cr/docs/agent-pages-moved-to-aihawk
Four agent pages moved to the AIHawk wiki, and their slots point across
2026-09-03 14:43:48 +02:00
Federico 9cd79b98bc Put Added first in the 0.10.0 entry, where the reader looks (#133)
Closing the changelog for the release left the three subsections in the order
they were written rather than the order this file's own header says it follows:
Documentation, Internal, then Added. The release page is generated from that
section, so the headline of the release - nine acting methods on ElementHandle -
came third, under two sections about prose and CI.

Reordered, and the release notes regenerated from it.
2026-09-03 14:41:22 +02:00
feder-cr 011b1c35d3 Four agent pages moved to the AIHawk wiki, and their slots point across
The agent-experience versions of the timing signal, the retry-loop volume
signal, computer-use detection and browser-use's config surface now live on
the AIHawk wiki, told in agent language for the audience that runs an agent
rather than builds one. The originals become pointers so the eight pages
that link them keep working, each keeping a one-paragraph summary and its
local mechanism links. The mechanism layer itself does not move.
2026-09-03 14:38:19 +02:00
Federico 2b85b111eb 0.10.0: an ElementHandle can act, and the docs stop contradicting the product (#131)
* Land four docs edits that were rescued once and then lost again

On 2026-08-30 four wiki pages were found edited in the working tree and never
committed. They were rescued onto a branch, and the branch was never merged, so
the same work has now been lost twice: once to an uncommitted tree, once to a
branch nobody opened.

Three of the four were untouched on main since 28 and 29 August, so main is
byte-identical to the rescue's parent and taking the rescued version applies
exactly the rescue. The fourth is the page I edited today, so its addition went
in by hand: a FAQ entry saying an agent is not made undetectable by one setting,
because the engine fingerprint, the machine's own surfaces and the agent loop's
rhythm are three separate problems. Both edits now stand.

The course-catalog guide's change is the one worth checking rather than trusting:
it rewrites a code example from query_selector_all plus handle methods to
page.locator, nth, get_attribute and click. The API existing on the client proves
nothing, so it was run against a real page: count, nth, get_attribute, click and
get_by_role all work, and the clicks arrive with isTrusted true. The guide teaches
something that works.

* 0.10.0: an ElementHandle can act, and the docs stop contradicting the product

`page.query_selector("#go").click()` is ordinary Playwright, and this driver
answered "ElementHandle has no method 'click'" - fifty-five methods offered by
the client, fourteen served, every one of them a read. Nine acting methods are
wired, through the same humanised path as the selector versions, because two
click paths would be two fingerprints.

That was already on main. What this release adds is the decision to ship it:
until it is on the index the method fails for everybody, and it is verified in
three places rather than one. The e2e ran it against a real browser in CI, and
both consumers were run against THIS engine rather than the published one -
invisible-playwright-mcp declares an open bound, so a release here changes what
every `uvx invisible-playwright-mcp` install resolves. 147 tests on the server
and 132 on the interface, against this tree.

The documentation half is the larger change by volume. Two pages told readers
there is no MCP server for this project, written before there was one. The
README never named either sibling, so anyone who would rather prompt than script
was handed off to the page that said no server existed. Four wiki pages edited
in a working tree on 2026-08-30 were rescued onto a branch and then lost a
second time when nobody merged it.

And the English-only gate, written for this repository and wired nowhere, now
runs in CI. It found four Italian test files on its first run here.
2026-09-03 14:21:24 +02:00
Federico 386da78813 Run the English gate here, and stop saying there is no MCP server (#130)
* Run the English gate in the repository it was written for

The rule is the owner's, from 2026-08-27, after 549 lines of Italian shipped
here in one subsystem and 852 more were found in 33 files that were already
public. The gate was written that day, in this repository, and wired into
nothing: not tests.yml, not the pre-push hook, whose steps are pytest, pin,
names, internals and publish. Both sibling packages copied the script AND the
CI step. This one kept only the script.

Ran it here for the first time today: four test files, red. Two of them were
last touched on 2026-08-31 by a commit about something else, so nothing was
going to notice.

The four are translated. The diffs are 17 lines across four files, and the
translation was checked by reconstructing each file from its HEAD blob with
only the prose substitutions applied, so every count, date and version in them
is untouched by construction rather than by inspection. One file changed a loop
variable from `nome` to `name`, which is a code identifier rather than prose,
and the rule names variables explicitly.

The job is its own, and deliberately not behind core-on-index: reading files
needs no install, and hanging a language check off the availability of a
package on an index would skip it during exactly the window when releases are
made. The selftest runs first, because a language gate that has only ever
printed clean is the same non-gate as any other.

One thing this does not fix. The gate reads prose, so it sees two Italian
function words in a file and not a lone identifier: `e2e-hunt.yml` has an input
named `giri` and passes. That limit is documented where the gate is described.

* An ElementHandle can act, not only be read

`page.query_selector("#go").click()` is ordinary Playwright, and this driver
answered "ElementHandle has no method 'click'". The client offers fifty-five
methods on a handle and the driver served fourteen, every one of them a read:
the whole acting half was missing, and the error said so honestly while being
useless to anyone migrating.

Nine are wired: click, hover, fill, type, press, focus, check, uncheck,
selectOption. Nine and not fifty-five is a decision - these are the ones a
person hits in the first hour - and the rest keep reporting themselves as
missing rather than being filled in for symmetry.

⛔ They go through the same `actions` as the selector versions, and that is the
whole design. A handle click is the humanised pointer: approach, hover, press,
release, with the hit-target check and the actionability retry. A second,
simpler path would be quicker to write and would give this package two click
behaviours with two fingerprints, which is the one thing it exists not to have.

What differs is exactly what should: the node is not looked up again, because a
handle names one node and re-querying finds a different element with the same
description; and it is not disposed afterwards, because the caller still holds
it.

The tests are in two layers because the defect found while writing them lives
in only one. The lower layer has no browser and checks that the retry loop
treats a caller's element differently from one it resolved itself. The upper
layer drives a real page through the public API, and that is the layer that
caught it: `click` and `fill` accepted the new parameter and quietly failed to
forward it, because their call is formatted differently from the others and a
pattern-based edit missed them. Every lower-layer assertion still passed. The
e2e asserts the hover arrives before the click and that the click is trusted,
because those are what a shortcut would lose.

* Stop telling readers there is no MCP server for this

Two pages said so, and both were written on 2026-07-27, before the server was
published on 2026-08-19. True when written; afterwards they steered readers
away from the thing that solves the problem they then documented a workaround
for.

The integration page opened with "You do not need a separate MCP server" and
its FAQ answered "Is there an MCP server for this project?" with "No, and there
does not need to be". It now opens with ours, and is what it actually is: how
to point Microsoft's playwright-mcp at this engine if you are already committed
to it, and precisely what that costs. The sentence about losing the seeded
profile is scoped to Microsoft's server by name, because it is not true of ours.

The engine README never mentioned either sibling. A reader who would rather
prompt than script had one hand-off, to the page above, which told them no
server existed. There is now a short block after Install with both one-liners,
and the Related projects section lists the three siblings before the eleven
third-party neighbours it already had.

Two smaller things the same audit turned up: the Python floor was stated only
as a badge image, about 200 lines below the install block a 3.10 user copies,
and the core's README described its second consumer as a desktop profile
manager, which was invisible_firefox, whose repository was deleted on
2026-08-18.

* One home for the download size, and the handle work in the changelog

Three READMEs carried a figure for the first-run download and no two agreed:
"about 700 MB" on both consumer pages, "~238 MB download (~544 MB unpacked)"
here. The seal packaged with invisible_core has the real numbers - 240 MB for
Windows, 262 and 253 for the two Linux legs - so all three were wrong, the
consumers by roughly triple.

A figure with three homes has no home. The consumers now say "a few hundred
megabytes" and point here; this file carries the per-platform numbers, taken
from the seal.

The changelog gains the ElementHandle entry under Unreleased. Nine acting
methods is a user-visible addition and the file exists to say so.

* Translate the identifiers the language gate cannot see

The gate reads prose - two Italian function words in a file - so a lone
identifier passes it. e2e-hunt.yml had `giri` as a workflow input and wrote its
artifacts under `prove/giri/giro_NN.log`, all of which the gate looked at and
found nothing wrong with, correctly.

The rule names workflow steps explicitly, so these are `runs` and
`evidence/runs/run_NN.log` now. Noting it because it is the shape of what the
gate misses, not a one-off: a name is not prose, and the check is for prose.
2026-09-03 13:12:02 +02:00
github-actions[bot] 430668e50f record 0.9.0 as published (#129)
The ledger entry for 0.9.0. Without it the next release is refused by
version_gate: the index would serve a version the ledger does not record.
2026-09-02 19:05:59 +02:00
Federico f31b7f8ee8 0.9.0: the wait that never waited (#128)
op_wait_for_timeout in _juggler/server.py read params.get("timeout"). The client
sends waitTimeout, which is upstream Playwright's own parameter name: timeout is the
reserved key on that channel, carrying the per-call action timeout for every other
call. Reading the wrong key made every wait in this package a no-op that reported
success - 2000ms returned in 1ms, in both APIs, for as long as this driver existed.

The first attempt patched the vendored client instead, to make it send the key the
server happened to read. Review caught it by reading upstream's protocol.yml.
2026-09-02 18:02:10 +02:00
github-actions[bot]andfeder-cr 7115bbeb32 record 0.8.3 as published (#126)
* record 0.8.3 as published

* trigger the required checks

The branch was pushed by the publish workflow with GITHUB_TOKEN, and GitHub
does not let a push made with that token start other workflows - a deliberate
loop-guard. So tests.yml never ran and the `gate` context the branch
protection requires could not exist: the PR was unmergeable for a reason that
has nothing to do with its content.

An empty commit pushed with a real token starts them.

---------

Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-08-31 19:05:15 +02:00
Federico cbbdda07be Back-fill 0.8.2 in the ledger, from the artifacts the index serves (#125)
0.8.2 shipped this morning and its ledger entry never landed: the publish
workflow opens a `ledger/<version>` PR and cannot merge it, and that branch is
pushed with GITHUB_TOKEN, which by design does not start other workflows - so
the `gate` context the branch protection requires never ran and the PR could
not be merged at all. The release after it was then refused, which is the
mechanism working as intended and one release too late.

⛔ NOT recorded from a rebuild, and the difference is measured rather than
assumed. Checking out v0.8.2 and running `record` produces an entry that
DIVERGES from what the index actually serves, in exactly the files the build
backend generates: METADATA and WHEEL in the wheel, PKG-INFO in the sdist. A
different hatchling version is enough. Recording that would have put digests in
the ledger that no published artifact matches - the precise failure the ledger
exists to catch, introduced by the thing meant to repair it.

So the entry is built from the downloaded wheel and sdist, through the gate's
own `wheel_manifest` / `sdist_manifest` / `manifest_digest` rather than a
reimplementation of them, and its field set is asserted against the previous
entry's before being written.
2026-08-31 18:53:03 +02:00
Federico 784c3cee1d 0.8.3: pins the core that seals firefox-26 (#124)
That engine moves every input handler in the visible-pointer overlay out of
input delivery. Only the mousemove one had been deferred; the press handler was
still creating a DOM node and starting a CSS animation synchronously in the
parent process while a mousedown was in flight - more work than what had been
removed, and on the click path rather than the move path.

The timing gain is not measured: the press-path bench is new and refuses to run
on a loaded machine, which is all that has been available.
2026-08-31 18:39:28 +02:00
Federico 8650f3b64c 0.8.2: the pinned engine has no updater (#122)
Moves the core pin to 25.16.0, which seals firefox-25.

Every session used to show an "Update available" badge shortly after start, and
no preference removed it: app.update.auto stops the download rather than the
notification, suppressPrompts only delays the doorhanger because the badge is
shown immediately and unconditionally, and disabledForTesting is inert unless
the browser is driven by Marionette or the remote agent.

That engine is now built without the update machinery at all, so nothing checks,
nothing can install over the binary the seal pins, and the badge has no code left
to draw it. The update channel is unchanged, because the remoting name derives
from it.
2026-08-31 11:42:18 +02:00
Federico 36719bb26f One silent socket froze the test servers forever (#121)
HTTPServer serves one request at a time, and BaseHTTPRequestHandler has no
timeout: a connection that is accepted and sends nothing blocks
handle_one_request forever, and with it the whole server. A browser opens
speculative connections, so the real document is never served and the test sees
an empty page.

Reproduced on an identical bench: a normal request answers 200, then one silent
socket, then the same request raises TimeoutError. With ThreadingHTTPServer and
a handler timeout, four silent sockets change nothing and the request still
answers 200.

That is B194: two cross-origin iframe tests red in CI and green locally, with
"found 0 elements", on code that had passed the same job in another run. It
reads as flakiness because it depends on whether the browser opens a
speculative socket first, which is a matter of timing - and the Python client
reaches the navigation faster than the Node driver did.

test_long_session_e2e.py was already on ThreadingHTTPServer. The lesson existed,
in one file, and the other three had not followed it.
2026-08-31 01:14:03 +02:00
Federico ba3690739d Merge pull request #120 from feder-cr/docs/round-4-cloudflare-bot-mgmt-iframe
2 more docs: Cloudflare Bot Management, sandboxed iframes
2026-08-30 22:46:10 +02:00
feder-cr b94ba47a6b Cloudflare's other product, and a sandbox iframe tell Playwright causes itself
Round 4, and honestly the last easy one: the corpus already covered Turnstile
but not Cloudflare Bot Management, a separate always-on scoring product that
runs on nearly every request regardless of whether a site uses Turnstile at
all. Both pages now cross-link and state plainly which is which.

The sandboxed-iframe page came from a real, closed GitHub issue
(microsoft/playwright#33343) that turned out more nuanced on inspection than
the initial lead suggested: the maintainer called the console warning benign,
and the reporter's real blocker was a third-party ad SDK's own detection,
unrelated to the sandbox attribute itself. Reported that accurately instead
of overstating the issue's status.

One small addition to the existing Imperva page rather than a new article:
Imperva's 2019 acquisition of Distil Networks, so a reader still searching
that legacy name lands on accurate content instead of nothing.

Checked and rejected this round: Azure WAF Bot Protection and Google Cloud
Armor (both vendor walls), User-Agent deprecation timeline and real-passkey
scraping obstacles (already covered by existing pages under different
framing), View Transitions API (no scraping-relevant demand). Playwright has
shipped nothing past 1.62 as of this check.

2 touched hub pages updated in the same commit.
2026-08-30 22:41:31 +02:00
Federico c07fbc08a8 Merge pull request #119 from feder-cr/docs/round-3-hcaptcha-and-gaps
6 more docs: hCaptcha's missing pages, 2 verbatim errors, TOTP 2FA
2026-08-30 21:36:56 +02:00
feder-cr 604de15836 hCaptcha gets the vendor page it was missing, plus 3 more confirmed gaps
Round 3 of the same gap audit: checked the corpus against a fresh clone of
main (416 files), not a stale worktree. Most candidates from this round
dead-ended into duplicates or vendor walls - documented honestly rather than
padded. Six survived verification.

hCaptcha had zero dedicated page despite being cited as a source inside the
Kasada article - an odd gap given reCAPTCHA and GeeTest both already had one.
Fixed with the same three-page pattern already used for reCAPTCHA: the
mechanism explainer, the "does Playwright trigger it more" companion, and
the Enterprise-vs-Standard comparison. Every one of the three repeats the
boundary explicitly: hCaptcha's visual puzzle is an actual image-classification
captcha, and this project does not solve, bypass, or automate past it.

Two verbatim errors this corpus was missing: SEC_ERROR_UNKNOWN_ISSUER, the
Firefox-native NSS certificate error (distinct from the already-covered
Chromium-flavored ERR_CERT_AUTHORITY_INVALID, and the one this project's own
engine actually emits), and ERR_BLOCKED_BY_CLIENT via page.route(), which
reproduces a real ad-blocker's exact error string byte for byte.

TOTP-based 2FA (pyotp, a shared secret, no inbox) gets its own page,
cross-linked both ways against the existing email-OTP page rather than
merged into it - the two mechanisms share nothing except both being called
"2FA login."

Rejected this round, for the record: Radware/ShieldSquare and Netacea (pure
vendor walls), Castle.io (same), Signal Sciences (already covered under the
Fastly page it now belongs to), DataDome alternatives as a category (vendor
buyer's-guide content, not developer troubleshooting), five more verbatim
error codes (no Playwright-specific practitioner discourse), Android WebView
and iOS Safari automation (native-app QA audience both times), mobile
fingerprinting reframings (no distinct pain point beyond the existing mobile
emulation page). Playwright has shipped nothing past 1.62 as of this check.

3 touched hub pages updated in the same commit.
2026-08-30 21:28:24 +02:00
Federico a822d11c07 Merge pull request #118 from feder-cr/docs/gap-cluster-vendors-and-errors
51 new docs: named anti-bot vendors, verbatim errors, real Playwright changes
2026-08-30 20:34:58 +02:00
feder-cr 89d56923e0 43 more confirmed gaps: more vendors, verbatim errors, real Playwright changes
Same discipline as the first 5 vendors: zero prior mentions in the corpus,
confirmed with live Serper checks, no invented internals. Detectors, Explained
grows by 13 (Imperva, F5 Shape, Fastly, reCAPTCHA Enterprise, Arkose Labs,
AWS WAF Bot Control, Anubis, Cloudflare's AI Labyrinth, Private Access Tokens,
robots.txt-adjacent crawler blocking, Vercel BotID, GeeTest v4, honeypot
fields) - every one keeps the same boundary the first batch drew: what an
engine-level Firefox answers honestly versus what stays server-side, and
never a captcha-solving promise.

12 more verbatim Chromium/Firefox network errors get their own pages, each
differentiated from its closest sibling instead of duplicated (ERR_PROXY_
CONNECTION_FAILED explicitly separated from the existing ERR_TUNNEL_
CONNECTION_FAILED; ERR_CONNECTION_TIMED_OUT from Playwright's own
TimeoutError). JA4H gets its own page as JA4's HTTP-layer sibling, cross-
linked to the existing JA3/JA4 and HTTP/2 pages rather than repeating them.

9 driver/DOM troubleshooting pages cover errors this corpus never had a
dedicated page for (strict mode violations, detached frames, CSP blocking
injected scripts, the crash-vs-OOM distinction), a benchmark-methodology
piece that turns the same scrutiny on this project's own comparisons, a
build-vs-buy piece with no invented cost figures, and 3 real, individually
verified Playwright 1.61/1.62 changes (WebAuthn virtual authenticator, MCP
bundled into core, headless clipboard isolation) - each checked against
Playwright's actual release notes and GitHub before being stated as fact.

Considered and rejected as pruning candidates: the two lowest-search-demand
pages in the corpus turned out to be cited by 7 and 24 other articles
respectively. Low direct search volume for an exact title is not the same
as no value; nothing was removed.

All 7 touched hub pages updated in the same commit.
2026-08-30 20:27:46 +02:00
feder-cr aeabf1451c Five vendors with zero coverage, and three verbatim errors nobody could search
Cloudflare, Turnstile, DataDome, Kasada, PerimeterX and Akamai appeared in
zero of the 371 existing docs, despite being the anti-bot vendors developers
hit most often - confirmed this week against live Serper data, not assumed.
Each new page explains the vendor's actual mechanism from real sources (their
own docs where public, credible reverse-engineering writeups where not), and
draws the same honest boundary this corpus already keeps everywhere else:
what an engine-level real Firefox answers versus what stays outside any
browser's reach (IP reputation, server-side risk scoring, account history).
None of them promise to solve or defeat anything - this project does not do
captcha-solving, and a page implying otherwise would misrepresent the product.

The Akamai page uses a real, public GitHub issue (daijro/camoufox#555) as an
honest case study: an engine-level Firefox patch still got blocked by Akamai
despite a matching TLS/JA3/JA4 fingerprint. It states plainly this is an open
question for any project taking this approach, ours included - no unverifiable
claim of immunity.

Three verbatim network errors (ERR_HTTP2_PROTOCOL_ERROR, ERR_TUNNEL_CONNECTION_FAILED,
ERR_SOCKS_CONNECTION_FAILED) get their own pages under Network, Proxy and WebRTC:
people search the exact string when debugging, and none of the three existed
in this corpus even though general proxy-auth pages did. Each is honest that
this is a proxy/network-layer problem the product's fingerprint work does not
touch.

Both hub pages updated in the same commit.
2026-08-30 20:27:46 +02:00
github-actions[bot]andfeder-cr 718afe93d5 record 0.8.1 as published (#117)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-08-30 20:17:28 +02:00
Federico 87ff57336d 0.8.1: the proxy is the road the page goes out on (#113)
* The proxy reaches the browser, and a persistent context opens

Two defects of one family: the Python server that replaced the Node driver does
not do everything the driver did, and neither failure said so.

op_launch read executablePath, env, userDataDir, firefoxUserPrefs and timeout
out of the launch message and never looked at proxy. The engine has carried
Browser.setBrowserProxy and setContextProxy all along. Both are now sent, and a
proxy that cannot be expressed refuses the launch instead of leaving a browser
running without the proxy its session was built around. The endpoint is read by
the core's parse_proxy rather than by a copy living here: two readings of what a
proxy is would be the same duplication one layer down.

op_launch_persistent returned only the context. The client reads result
["browser"] first and result["context"] after, so every profile_dir= session
raised KeyError: 'browser' - in the published 0.8.0, so it shipped. The comment
above the code said the client reads only the context, and the assertion was
written against that comment rather than against the client. Both come back now.

test_proxy_reaches_the_browser.py is in the positive form the reporter asked
for: not "the home address does not appear", which passed throughout the whole
regression because the page never printed an address at all, but "the bytes the
page shows came from the proxy", proved by navigating to a host that exists in
no DNS. Four browser arms: http at browser level, http per context, socks, and
the refusal.

* 0.8.1: the proxy is the road the page goes out on

Pins invisible-core 24.16.0 and the firefox-24 engine. Two of the three fixes
are Python and would work on an older binary; the third - SOCKS credentials
reaching the engine - is a line in the engine itself, so the pin is what makes
the release true rather than half true.

* A browser that exits during startup now says why

stderr is merged into stdout and read line by line while waiting for the
readiness line, and it was thrown away. When the process had already died the
client returned a Connection over a closed pipe, and the caller got
"BrowserType.launch: the pipe is closed" - which names neither the exit code
nor the one thing the browser printed before going.

Today a CI guard went red with exactly that sentence. Deciding whether the
cause was the engine or the client took a rebuilt binary, four workflow runs
and a controlled comparison against the previous engine, to recover
information the browser had already written and nobody had kept.

The lines are kept rather than tested and dropped, and an exit during startup
raises with the code, the command and the last fifteen lines.
2026-08-30 19:57:08 +02:00
github-actions[bot]andfeder-cr c6924d3fba record 0.8.0 as published (#112)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-08-30 10:49:24 +02:00
Federico 88ff9c5704 Correct the 0.8.0 size claim to a number that reproduces (#111)
0.8.0 announced "the wheel goes from about 13 MB to 7 MB". Measured on two
clean virtual environments, the wheel goes 1.61 MB to 0.68 MB and the installed
package 11.18 MB to 6.50 MB. The noun was wrong - those were never wheel sizes -
and 13 matches no reading of either. The direction was right and the saving is
real, which is exactly why the number should be the one a user can reproduce.

The 92 MB Node runtime stands: _node.py fetched it from nodejs.org on first use,
and THIRD_PARTY_FORK.md carries the same figure.
2026-08-30 04:22:56 +02:00
Federico 75372510af Merge pull request #108 from feder-cr/release/0.8.0
0.8.0: no Node driver, and the two fixes that needed firefox-23
2026-08-30 04:02:09 +02:00
feder-cr 16cd925651 Six names the linter could not resolve, and three of them were annotations
The F821/F811 step went red on all five runners. None of it is style.

server.py annotated three `conn` properties as "Connection", a name the module
never imports. It is a string annotation, so nothing raised at runtime and the
suite could not see it, but the module already imports the class as
`juggler.Connection` and that is what the annotation now says: a name that
resolves.

_profile.py imported shutil and pathlib a second time inside two functions,
shadowing the module-level imports for no reason. _session.py imported
max_seconds_for twice from the same module in two separate blocks, which is the
shape that lets the two drift; the blocks are now one.
2026-08-30 03:56:28 +02:00
Federico 0079d47334 Merge pull request #110 from feder-cr/docs/deep-quality-pass-38
Deeper quality pass on 38 more docs: factual fixes, structure, house style
2026-08-30 03:54:45 +02:00
Federico d388712977 navigator.webdriver reports false today, not undefined (#109)
The article had the current spec backwards. Before Chrome 89 (2021) and
Firefox 75 (2020), the property was only exposed under automation, so a
clean session read undefined. Both engines changed that on purpose,
Chromium's own Intent to Ship literally titled 'navigator.webdriver ===
false when automation is not active', specifically to match Gecko and
WebKit. The W3C spec declares it a plain boolean, which WebIDL does not
allow to be undefined.

That flips the article's central argument: setting the property to
false via a page-level patch gets the *value* right today. What still
gives it away is the mechanism, an own property instead of one on
Navigator.prototype, and a getter whose toString is not [native code].
Rewrote the sections and FAQ that had this backwards, verified the new
sources live (W3C IDL, Chromium's Intent to Ship thread, MDN).
2026-08-30 03:52:02 +02:00
feder-cr 9e9d569580 Deeper quality pass on 38 more docs: factual fixes, structure, house style
Second pass on files that had already received citation fixes but not
the full review: score against the corpus rubric, fix what the score
found, independent re-verify. 26 files had real content to fix, the
rest were already clean.

Recurring finds across this batch: missing Conclusion sections before
the FAQ (5 files), near-duplicate paragraphs, an unverifiable specific
claim about a Google cookie deprecation date replaced with a defensible
general statement, inconsistent Sources retrieval dates, and citations
that named a tool without linking it.

navigator-webdriver-explained.md is deliberately excluded here - its
one real defect (a wrong claim about the current spec-compliant default
of navigator.webdriver) is a separate, already-open fix.
2026-08-30 03:49:00 +02:00
feder-cr bc4a67bc73 Pin the core that seals firefox-23
The two fixes 0.8.0 announces are half Python and half engine: the UA widget
guard lives in Element::GetShadowRootForBindings, and the response body reader
is a Juggler command that had to come back. On firefox-22 the Python halves
compile and do nothing, so the pin is what makes the release true.
2026-08-30 03:27:11 +02:00
feder-cr a1ff56e2ed Response bodies read again, UA widgets stay out of selectors, and the e2e opens four browsers
Two defects reported from outside, by someone running a 24-site study, plus the
change that makes verifying them affordable.

Response.text() and Response.body() work again. The Juggler command they rest on
was removed while trimming the network observer; this restores the client half
and waits for the request to finish before asking, because the engine only has
the body then and body() does not wait. That race bit the main document almost
every time and subresources almost never: on a three-request page the JSON and
the script came back and the document answered "Request 17 is not found".

The UA widget defect is fixed in the engine and needs the matching release. What
lands here is the regression file: three tests that fail on an engine without the
guard and pass with it, and two that pass either way and exist to stop a fix in
the wrong direction - reverting the closed-root feature, or opening those roots
to page script, both of which would satisfy a count assertion.

The e2e runs four browsers at once, cutting a fourteen-minute gate. --dist
loadfile is not tuning: one file holds 65 of the 193 tests behind a single
module-scoped browser, and another has a test that only passes when its module
runs whole. Two harnesses picked a free port and released it before binding it
again, which is a race with one worker and a coin flip with four; they now bind
zero and read the port back off the listening socket, as two other files already
did.
2026-08-30 01:09:15 +02:00
feder-cr 57d235ab39 Merge main into the branch that removes Node, and open 0.8.0
One conflict, and it was two people fixing the same defect: the cancelled
teardown. PR #104 landed DatGuy1's version on main while this branch carried
its own, written the same day. Kept this branch's - same behaviour, and it
documents why the bug exists and credits the report - so the resolution loses
nothing but the duplicate.

⛔ Merged in a separate worktree on purpose. The shared checkout has fifty
untracked files belonging to another session's in-flight work, and git refuses
to merge over them. Forty-eight of the fifty are the same content as main
modulo line endings, but TWO differ for real - the clinical-trial and
course-catalog guides - so removing them was not an option. A worktree touches
none of it.

0.8.0 and not 0.7.5: this ships the Node removal, so the wheel goes from about
13 MB to 7 and a first install stops downloading a 92 MB runtime. That is not
a patch.
2026-08-29 22:39:13 +02:00
feder-cr ef8a39e337 Pin the core that seals firefox-22
Moved by scripts/sync_core_pin.py, not by hand: this literal is the only place
the expected core version is written, and _pin.py reads it back out of this
package's own metadata at import time.

⛔ THIS COMMIT IS NOT PUBLISHABLE ON ITS OWN, and that is the ordering the
runbook makes load-bearing rather than a nice-to-have. invisible-core 22.16.0
is not on the index yet, so a cold `pip install` of this package would fail to
resolve until it is. Core first, confirm it resolves, then this.
2026-08-29 21:56:19 +02:00
feder-cr b84fc56327 The cross-origin frame test waited for a duration, not for the condition
It slept 500ms and then read page.frames. By then the child frame is
ATTACHED but on a loaded machine it has not NAVIGATED, so the URLs come back
empty and the assertion reads them as the very defect the test guards.

Measured: red inside the full e2e run, with urls = ['http://127.0.0.1:.../',
'', '', ''], and green 5 times out of 5 on its own. That gap between loaded
and idle is the signature of a timing assumption rather than a regression -
and worth stating, because the obvious suspect was the teardown change
committed an hour earlier, which had nothing to do with it.

It was never retried either: run_e2e.py reruns on a fixed list of load-flake
messages and this assertion's text is domain-specific, so it can never match.
Adding it to that list was the tempting fix and the wrong one - it hides the
failure instead of removing the race.

The failure mode is deliberately unchanged: if no frame EVER reports the
child origin, the loop runs out of time and the same assertion fires with the
same message. Verified by mutation - with the origin replaced by one that
never appears, it still goes red - then the whole module, 10 passed.
2026-08-29 20:01:34 +02:00
feder-cr 6b71f77b11 The suite tests this checkout, not whatever last ran pip install -e
Found by accident: a fix applied to src/invisible_playwright/async_api.py had
no effect on the test that exercised it, because the package under test was
not this one. The editable install in the shared interpreter pointed at
C:/tmp/invisible_playwright - a SECOND working copy of this same repository,
on an older branch, with no _juggler/ package at all. A plain `pytest -q`
here reported 7 collection errors and ran zero tests, in a tree whose own
suite is green.

Failing loudly was luck, not design: the two copies happened to differ by a
whole subpackage. Had they differed by one function's behaviour, the suite
would have gone green while testing code nobody had written here - the same
false green this project keeps finding in its own instruments, this time in
the instrument that judges everything else.

`pythonpath = ["src"]` is resolved relative to this pyproject.toml, so each
checkout points at itself and two working copies stop fighting over one
interpreter. It fixes the problem without touching the shared environment,
which matters because the other copy is in active use by someone else:
repointing the .pth would have moved the breakage rather than removed it.

Verified: a plain `pytest -q`, with no PYTHONPATH and the misdirected
editable install still in place, now imports from this checkout and reports
530 passed.

⛔ invisible_core has the same exposure and does NOT have this line. It points
at the right place today by luck of install order, not by construction.
2026-08-29 18:46:41 +02:00
feder-cr 9d50caee97 A cancelled async teardown left the browser behind, on this branch too
Reported from outside as #104 (DatGuy1) against the published main, where it
is now merged. This branch carried the identical defect: the merge will have
to reconcile the two, and doing it here while the reasoning is fresh beats
discovering it during a merge weeks from now.

The bug is a type-hierarchy one, invisible from reading the happy path.
asyncio.CancelledError inherits from BaseException, not Exception, so the
`except Exception` around each close step does not catch it: cancel the task
running _teardown and it escapes at the first await, every later step is
skipped, and what survives is a browser nobody closes. This project has
measured that orphan twice - 88 stray firefox processes in one session, and
7,308 leftover profile directories over seven months - so the leak is not
hypothetical here.

A cancellation is now caught, kept, and re-raised at the end: it still
propagates as asyncio requires, but only after every step has had its turn.
The reap moves into a `finally`, because it is the one step that must run
even if the loop dies in a way this does not model.

The test pins three things, since any one alone would pass a half-fix: the
step AFTER the cancelled one still runs, the reap still happens, and the
cancellation still reaches the caller. Validated against the known-bad -
remove the CancelledError branch and it fails on the first assertion.

530 unit tests pass.
2026-08-29 18:43:09 +02:00
Federico 0960168270 Merge pull request #104 from DatGuy1/patch-1
fix(async): improve async teardown error handling
2026-08-29 18:31:29 +02:00
Federico 5f933255af Merge pull request #106 from feder-cr/docs/fourty-eight-more-guides
48 more guides for objects the docs had no page for
2026-08-29 18:09:54 +02:00
feder-cr f38909b106 Delete audit_cpt_realism.py: broken, orphaned, and superseded
The script wrote to src/invisible-playwright/_fpforge/data - hyphenated, a
path that has never existed in this repo - so its first open(..., "w") would
have raised FileNotFoundError. It could not have run for a long time and
nobody noticed, because nothing invokes it: no CI step, no other script, no
entry point.

Fixing the path would not have helped. The CPT tables it regenerates moved to
invisible_core on 2026-07-03 with the pure-config split; _fpforge/ here is a
pure alias shim re-exporting invisible_core._fpforge, and the six JSON files
this script targets were deleted from this repo then. Keeping a second,
broken generator pointed at a package that no longer holds the data is the
duplicated-source-of-truth shape rule 16 forbids.

The provenance it carried - Steam HW Survey March 2026 core distributions,
Intel ARK and AMD release-era mappings, the 100-250GB free-space baseline -
is not lost: it is one command away at
    git show 7a983e9:scripts/audit_cpt_realism.py
If the regenerator is ever wanted again it belongs in invisible_core, next to
the sampler and the data it would actually feed.
2026-08-29 17:54:55 +02:00
Federico c41b321b12 Real citations and factual fixes across the docs corpus (#105)
Every article whose Sources section named a tool, library, spec, or
paper without a working link now carries a verified URL, checked live
before being added. Where the underlying claim itself was wrong, not
just uncited, the claim is corrected too: a storage-quota page had the
mechanism backwards (total disk size, not free space) and a dead
ternary that never read the value it claimed to show; a Puppeteer
migration guide called Firefox support experimental after it went
stable; a debugger-timing page linked a Mozilla doc page that had
moved.

125 files, no rewrites: citations, factual corrections, and small
house-style fixes only. Verified after: every added URL resolves live,
zero em-dashes, zero invented statistics, house style intact.
2026-08-29 17:53:55 +02:00
feder-cr 7af6d3a068 48 more guides for objects the docs had no page for
Auction listings, book metadata, GraphQL endpoints, WHOIS records,
patent listings, weather station feeds, and 41 other specific data
shapes that came up while writing the rest of this corpus and never
got a page.

Each one names the response to capture instead of the rendered DOM
where one exists, the row shape that survives a re-run, and one
mistake the approach corrects. Cross-linked from the two live-sports
and product-stock pages where the topics genuinely overlap, and from
the guides hub so none of these ship as orphan pages.
2026-08-29 17:49:40 +02:00
feder-cr 74bbce9efa A NameError the gate could not see, and the leftovers of the Dialog fusion
upstream_baseline.py's _per_file returned `1 if morti else 0` with `morti`
assigned nowhere: a guaranteed NameError, reachable only via --per-file on
the async arm, forty minutes into a run nobody makes twice. Two loop
variables in _count and one output label were still Italian in a public repo.

check_unresolved_names.py reported "none in 102 file(s)" on a tree containing
that exact fault, because SCANNED covered src/invisible_playwright and never
scripts/. The logic was never wrong - pointed at the file by hand it named
the fault correctly - only the perimeter was, and the argument for covering
scripts/ is the stronger one: this class of defect survives because a
NameError inside a function is invisible until someone calls it, and the
package has 529 unit tests calling into it while these scripts have none.
Measured before widening: 22 files, zero findings besides the real one. The
known-bad now fires from the default path and exits 1.

Three leftovers from yesterday's Dialog fusion, all in code that reads live:
BrowserContext still registered a channel listener for a wire "dialog" event
that nothing emits any more; the comment above its auto-answer explained a
client/server race that the fusion removed, while the auto-answer itself is
now the ONLY one in the product - _juggler has no server-side equivalent, so
deleting it is a hang, not a leak, and the comment now says so; and
_dialog.py's docstring described _object_factory.py as keeping a dead Dialog
branch on purpose when the same commit deleted that branch outright.

_juggler/server.py built the console and pageError payloads twice as
byte-identical literals, once for the log and once for the emit. Populating
`args` for real - the obvious next change to those lines - would have been
applied to one copy and silently made page.console_messages() disagree with
page.on("console").

check_field_coverage.py collected ast.FunctionDef only, which was harmless
until the fusion added PageDispatcher.send_async the same day. An async
operation is absent from _methods, so reachable() returns an empty known-set
and every field it legitimately reads is reported as ignored. Two selftest
cases added; only the first guards the fix, and the comment says which.

Verified: 529 unit, both gate selftests (16 and 14 cases), english-only
clean, and the upstream dialog suite against a real browser - 10 async and 2
sync passing, with upstream_regressions.py confirming the two reds are the
two the committed baseline already records as failed.
2026-08-29 17:43:46 +02:00
DatGuy1 4d174f1b28 Improve async teardown with error handling
If the playwright's task is cancelled, then the teardown is also cancelled, and the _browser, _pw, etc. still live as zombie processes. asyncio.CancelledError inherits from BaseException and not Exception, so `except Exception` does not catch it. The change catches any async exceptions properly, continues the teardown procedure, and at the end gracefully reraises it.
2026-08-29 18:27:06 +03:00
feder-cr 572d0216fa Fuse Dialog: no more channel round trip for the smallest dispatcher
Dialog no longer goes through __create__/guid/channel. _juggler builds it
directly and hands it to the client via a new twin registry bridge
(InProcessTransport.bind_impl_objects, Connection.deliver_event) that lets
server-side code reach the live impl-side object for a guid and deliver
events under the client's own execution-context rules.

Three defects only a real browser surfaced: SyncBase/AsyncBase read
impl_obj._loop (and _dispatcher_fiber for the sync facade) unconditionally
when wrapping any object for a listener, so a fused Dialog needs to copy
both from its Page at construction time; delivering an event with a bare
call_soon_threadsafe bypasses the EventGreenlet dispatch() wraps every wire
event in, so dialog.accept() hung with no exception; and an untranslated
_juggler exception broke is_target_closed_error the same way Page.close()
did earlier, fixed by running every fused-type call through the same
parse_error translation reply_error already used.

diff_protocol.py reported PARITY the first time this ran, and that verdict
was empty: the scripted session never opened a dialog, so neither arm had
anything to disagree about. capture_protocol.py now clicks a button that
calls alert() and accepts it; the real diff shows three argued differences
(Dialog never reaches the wire, parented under Page, with a dialog event on
BrowserContext), now recorded in EXPECTED_DIFFERENCES next to the existing
previewUpdated exception.

Verified: the upstream Playwright dialog suite (9/9), three repeats each of
four sync-facade scenarios, 529 unit tests, run_e2e.py (189/0), and
upstream_regressions.py against a fresh post-fusion baseline (698 recorded,
162 passing, matching the committed reference exactly).
2026-08-29 16:48:55 +02:00
feder-cr e247b733c6 Same structure, fewer concepts to hold at once
Reach-through chains go from 70 to 3, and the three left are the definitions of
the properties that replaced them - the one place allowed to know the shape of
the tree. FrameDispatcher wrote `self.page.actions` thirty-eight times, so
thirty-eight places knew where the actions engine lives; now one does. The worst
was in RouteDispatcher, five levels on a single line, and it escaped the first
pass because that class was not on my list.

server.py loses 263 lines. The seventeen leaf helpers touched no class and sat
BETWEEN the classes, so reading ElementHandleDispatcher you fell into
`_serialize` on the way to FrameDispatcher. They are now in `_marshal` (shaping
protocol values) and `_profile` (writing the profile) rather than one
`_helpers`, which is the bucket every project grows and nobody can name.

factory.py disappears into transport.py: it chose between two transports when
one is left, which is literally a module that exists to call another one. Its
typo guard went with it - it protected against running the driver by accident,
and there is no driver. The message for anyone who still has
INVPW_TRANSPORT=driver set stays: 0.7.4 shipped with it as the default.

And the six methods the two entry points had identical are one definition.
`_session` was created on 2026-07-27 for exactly this and the duplication
outlived its own creation: it had extracted the functions, not the methods that
call them. The two classes use the same fourteen attributes of `self` across
those six, and the ASTs of the bodies compare equal - what made them look
different was comments worded differently.

What was NOT removed, which is the half that matters: the transport's worker
threads (every Juggler operation blocks; on the event loop they would kill
asyncio.gather), the out-of-perimeter `_impl` classes (they produce a refusal
that NAMES the feature; without them it is AttributeError), `protocol.py` (it is
the frozen reference the generator's --check compares against - the move was
planned and withdrawn once its function was found), and splitting the mutually
recursive dispatcher graph, which would buy navigation with import cycles.

The net was built FIRST: upstream_regressions.py does not ask for green - 162 of
698 pass - it asks that none of the 162 stop. Its first real run reports no
regressions.

Two gates learned something from the refactor. check_unresolved_names.py only
walked methods inside classes, so it reported "clean" while a moved helper used
`json` with no import - the two new modules have no classes at all. Widened to
module-level functions, plus the false positive that widening produced
(`__file__` is not a builtin): 13 selftest cases to 16.

And a rule this cost three separate breakages to learn: an import is not unused
because the file holding it does not use it. Something can be reaching a name
THROUGH it - another module's import, or a monkeypatch target. The second time,
it had been verified with a precise AST analysis of uses inside the file, which
is structurally unable to see it.
2026-08-29 10:47:39 +02:00
feder-cr 9f426d365b Translate the per-file mode: it went in in Italian, on a public repo
The gate said so on the previous commit and I ran `git commit` chained in the
same command without reading its verdict, so a red gate scrolled past into a
green-looking success. The rule it breaks is the one from 2026-08-27: module
names, functions, variables, comments, docstrings and error messages in the two
published packages are English.

Nothing about the behaviour changes. `_conta` is `_count`, `_riassumi` is
`_summarise`, `MORTO` is `DIED`, and the three notes that carry the reasoning -
why one process per file, why a file with no summary is not a file with zero
faults, why the progress line needs flush - say the same thing in English.

The helpers were re-exercised after the rename: a real summary line still parses
to the same four numbers, a dead file still yields nothing rather than zeroes.
2026-08-29 04:09:32 +02:00
feder-cr 2c76ab1dd1 Il braccio async non era non-misurato: era non-misurabile, e adesso lo e'
pytest-asyncio fa girare l'intera sessione su UN event loop. Un test che lo
blocca lo blocca per sempre: --timeout-method thread stampa gli stack e poi la
sessione MUORE, senza riepilogo. Su Windows non ci sono le due vie d'uscita che
altrove basterebbero, --timeout-method signal e --forked.

Misurato: la corsa intera si e' fermata al 13%, e riprodotta in isolamento
bastano due test dello stesso file - il primo passa, il secondo appende, la
corsa muore. Piu' di milleduecento test non hanno mai avuto la parola.

Con --per-file un appeso costa QUEL file e non la corsa. Provato su due file,
di cui uno e' quello che appende: viene marcato MORTO e il file dopo gira lo
stesso, riportando i suoi sei rossi.

E la riga che conta e' quella che distingue i due casi: un file senza riepilogo
NON e' un file con zero guasti, e' un file che e' morto. Contarlo come zero e'
il falso verde piu' facile da scrivere in un aggregatore, e questo lo elenca per
nome ed esce 1.

I progressi sono stampati con flush=True. Senza, rediretti su file, un ciclo che
dura un'ora non scrive niente ed e' indistinguibile da uno piantato: la prima
corsa vera e' stata seguita contando i processi e il tempo di CPU, e quando e'
stata fermata il parziale e' morto dentro il buffer.
2026-08-29 04:06:40 +02:00
feder-cr a27c2efc16 The judge counted tests it never ran as tests the driver failed
The driver arm imports an old `src/` from a worktree, so any test file naming
something added since that commit fails to COLLECT there and every test in it
comes back ABSENT. Those rows were landing in "only the DRIVER fails", which
prints under "ours is BETTER here" - measured 32 of 51, essentially the whole
bucket, and the number grows on its own every time this tree moves. A gate
drifting toward a more flattering verdict is a gate that has stopped answering
its own question.

They have their own bucket now, and past a certain share the judge says in words
that the worktree needs re-cutting. The comparison that does not have this
problem, because it drives a fixed scripted session rather than this tree's
evolving tests, is diff_protocol.py.

Also drops an em-dash from a test that ships. The two `_generated.py` keep
theirs: those are Microsoft's docstrings in the vendored client, and diverging
from upstream for cosmetics is the wrong direction. One public doc still carries
four, and is left alone on purpose - it is an untracked draft from another
session, and sweeping somebody else's unfinished page into a commit that does
not describe it is worse than the punctuation.
2026-08-28 21:02:43 +02:00
feder-cr d109de2264 Two user-visible changes had shipped with nothing in the changelog
The Node driver went, and the visible pointer now ships on. Both are things a
reader upgrading across this release needs told, and neither was written down:
at release time somebody would have had to reconstruct them from git, which is
the failure the changelog gate exists to catch one version too late.

An Unreleased section rather than a version heading, because no version has
been cut. The gate reads only `## [X.Y.Z] - YYYY-MM-DD` headings, so this one
is invisible to it by construction and cannot be mistaken for a release the
index never served.

Also recorded there: the recursion in event delivery and the disposal of closed
pages, both fixed in this branch. They are user-visible even though they read
as internals - the first one made a long session stop working.
2026-08-28 19:44:18 +02:00
feder-cr 9292f2e26f Event delivery was recursive, and past 330 pages the browser stopped talking
Playwright's own suite, pointed at this client for the first time, broke at 63%
with a wall of 150 identical errors: newPage still answered with its targetId
and the attach event never arrived again. Commands alive, events dead, twenty
seconds of waiting per test.

Every subscriber captured the previous on_event and installed itself on top, so
delivering one event called the whole chain nested: the Python stack depth was
the number of subscribers. Nothing ever unsubscribed, and a page registers
three. Measured: 4 links at page 0, 979 at page 325, then RecursionError on
every event - inside the catch the read loop has so a bad handler cannot kill
it, which wrote the failure to a list capped at 32 entries that nobody reads.

One registry now, EventListeners: add_listener, remove_listener, and a
dispatch_event that iterates. The test fakes INHERIT it rather than imitating
it, because a fake with its own idea of what delivering an event means made
those tests green independently of the shipped code. The unsubscribe lives in
announce_closed, the one place that already knows a page is over.

A second leak was hiding behind the first: the server's guid registry grew by
one object per page. The protocol half was real - the driver disposes a closed
Page and we did not - and was found by giving diff_protocol a fifth dimension,
because its event comparison skips every method starting with __. The other
half was not protocol at all: the leftover was a FrameDispatcher, and the
driver sends nothing for frames because its client cascades children itself. So
children are dropped silently inside dispose(), and the wire stays identical.

After: one subscriber and eight objects at page 499, against 979 and 508.

Mutations run: the old recursive implementation stops at 965 of 5000, the same
limit seen in production at 979; announce_closed without the detach and an
inert Lifecycle.detach() both go red; and the e2e reports exactly 120 leaked
subscribers over forty pages, which is three per page.

The cursor default also moves to on. The wrapper forwards show_cursor=None and
lets invisible_core resolve it - a dependency on new BEHAVIOUR that no gate
here can see, since nothing fails to import. A test now imports
DEFAULT_SHOW_CURSOR by name so the ordering is enforced: publish the core, move
the pin, then release this.
2026-08-28 18:17:18 +02:00
Federico c21449bda7 Fifty guides for objects and mechanics the docs had no page for (#100) 2026-08-28 11:48:34 +02:00
Federico e54ac12650 Link the course catalogs guide from four related pages (#99)
It shipped with six outbound links and none coming in, which left it the
only orphan in docs/. The four sources are pages that do not currently
hold a first-page position, so nothing at risk was touched.
2026-08-28 03:24:29 +02:00
Federico 2642828d8c Put a scannable tool table at the top of the comparisons page (#98)
The page was a prose index. The queries it should answer are answered
elsewhere by tables, so the format was the gap, not the content.
2026-08-28 03:18:10 +02:00
Federico c0d1a7dc26 Add a guide for scraping course catalogs (#97)
Fills a gap the docs had no page for: catalogs are a four-level tree and
the row that carries instructor, capacity and enrolment is the section,
not the course.
2026-08-28 03:01:16 +02:00
feder-cr f74aa063d6 Control characters spelled with chr(), where they are meant
test_marker_vocabulary.py caught two literals that EVALUATE to a control
character: the escape table in gen_key_layout.py, and a NUL that NumpadDecimal
genuinely carries as its key in the extracted layout.

Both are deliberate and both were still wrong to write as escapes. The gate
reads the resolved value with ast precisely because a file can be byte-clean and
still hold a corrupted string - a Windows path in a non-raw literal is the
canonical case - and nothing in the source distinguished a deliberate 0x08 from
an accidental one except saying so. They are chr(8) and chr(0) now, with the
reason next to them, and the generator emits chr(n) for a control character in
the data rather than an escape.
2026-08-28 02:34:09 +02:00
feder-cr 5e6a6ef402 Child frames, frame-crossing locators, and four defects the judge found
The two-transport judge answered for the first time: 43 tests green on both, 0
failing on both, 0 failing only on the driver - and 7 passing through the driver
and failing through us. All seven were one subject, and the verdict was correct:
not ready to delete the driver.

Child frames were never announced. The server made a FrameDispatcher for the
main frame and created others only on demand, so page.frames held one entry
where there should have been two and every iframe locator found nothing. The
message said it plainly - page.frames urls = ['http://.../'] - and it took the
judge to ask the question at all.

Frame-crossing selectors were refused, and once frames existed the refusal was
the wrong answer. `#outer >> internal:control=enter-frame >> #inner` is now
resolved server-side, because the injected script lives in ONE document and
cannot reach into an iframe's - that is the same-origin boundary, not a missing
feature. The hop recurses, because frames nest: handling one level looks right
on every page with a single iframe and is wrong on the ones that matter.

dispatch_event passed Playwright's serialised argument envelope straight to
Juggler, whose closed-world schema rejected it naming a field the caller never
wrote. Nothing to do with frames: it failed on the main frame too, and only an
iframe test happened to exercise it.

And the hit-target interceptor got a coordinate space wrong. getContentQuads
answers in the MAIN frame's space, which is what dispatchMouseEvent wants, but
the interceptor's preliminary check runs elementFromPoint inside the TARGET
frame's document. A main-frame point handed to a nested iframe asks about a
coordinate that means something else there, and it answered <html> for an
element sitting under the pointer. The preliminary check now runs only in the
main frame; the listener still validates every event with its own coordinates,
so the guarantee is unchanged and only the timing moves.

Also: every action now takes frame_id and honours it, and load states and
navigation are emitted for every frame rather than only the main one.
2026-08-28 02:01:52 +02:00
feder-cr 7f21765b4b The server leaked five gigabytes of profiles in one day
op_launch invented a temporary profile on every launch and never removed one.
Measured after a single day of development: 136 leftover invisible_profile_*
directories, 5.0 GB. Nothing failed and nothing warned - a Firefox profile is a
few dozen megabytes and the disk simply goes.

This is not a new class of defect here. The project already records the same
thing for Playwright's own throwaway profiles: 7,308 directories accumulated
over seven months, found only because somebody counted. This reproduced it in
hours, which is what a per-launch leak does.

Whoever makes the profile takes it away, and only that one. A userDataDir the
caller named is theirs and survives the session by definition; a directory we
invented is ours and must not.

The removal hook is registered AFTER conn.close, and the order is the point:
hooks run in reverse, so it runs last, when the browser is gone and no longer
holds a lock. Removing it first fails on Windows and fails SILENTLY, because
the hook runner swallows one hook's failure so it cannot stop the others. And
the removal itself never raises: it runs while the session is already going
away, and a profile left behind costs megabytes where an exception would cost a
shutdown.

The mutation was run: with the cleanup disabled the test goes red on the
leftover directory, and the caller-owned half of the same test proves the
distinction is real.

Housekeeping alongside: 239 leaked directories removed, 11.8 GB.
2026-08-28 01:23:45 +02:00
feder-cr 68fed39327 Item 1: the two writers of user.js produce the same bytes
The criterion item 1 was written with is byte parity, not "both work". Two prefs
files can each be valid, each configure the browser, and differ - a header, a
different order, an integer written as a string. Every one of those is invisible
in a running browser, and every one means the Python path configured a browser
the Node path never did.

tests/gates/prefs_byte_parity.py compares them without a browser: both writers
are pure functions of the prefs dict. The driver's rules are READ from the
bundle on every run rather than copied - a gate that compares our writer against
a transcription compares it against our own idea of the driver, which always
agrees. If the method disappears from the bundle the gate exits 2, NOT
COMPARABLE, instead of declaring parity.

It found a real difference on its first real run: our writer SORTED the names,
while the driver uses Object.keys, which is insertion order. Six prefs, six
lines, all out of place - a perfectly correct file that was not the same file.
It also had a header comment the driver does not write. Both fixed.

Six mutations killed - a header added, lines sorted, an integer quoted, a
boolean turned into a string, the trailing newline dropped, a pref missing -
plus three cases that must not fire.

What is NOT closed and is written down as such: the persistent path, where the
profile belongs to the caller, is not compared; and the e2e on both transports
has not run.
2026-08-28 01:16:05 +02:00
feder-cr 03a616e77a Item 7: a refusal that names the feature, and one perimeter instead of two
Out of perimeter used to answer `no object 'artifact@3' to answer 'read'`:
technically true, unreadable, and indistinguishable from a bug in this package.
It now says that reading an artifact is tracing, that tracing is outside the
automation core, and that this is a decision rather than a gap - with a pointer
to where the decision is written.

A gap and a decision are different failures and the message says which. An
in-perimeter method that is missing is our bug and reads as one; an
out-of-perimeter one names the feature. Collapsing them sends the reader to the
wrong place.

And the perimeter moved INTO the shipped package. It was written first in a
workbench script that measures how much work is left, which is the wrong home
twice over: the thing that has to REFUSE is this package, and a list kept
somewhere that is never shipped is a second copy of a fact. The workbench tool
now reads perimeter.py, and a test asserts it still does - if it ever grew its
own copy again, the two would disagree the first time one was edited, and the
one that matters is the one nobody would have updated.

Five tests, and the mutation was run: with OUTSIDE emptied, four go red. The
fifth checks that every courtesy entry is also out of perimeter - a courtesy
for an in-perimeter operation would make it a silent no-op, which is exactly
what section 5.4 forbids.
2026-08-28 01:10:18 +02:00
feder-cr da238664b3 Item 6 is closed: 127 of 127 in-perimeter operations answer
All eight groups are finished. What was estimated at "~270 call sites" was 127
server operations once the perimeter was applied and the count derived from the
code instead of a hand-kept table.

The last ten were classified before being written, and half of them turned out
not to be work.

drop() with an explicit data payload is REFUSED, and the reason is the protocol:
Juggler builds the DataTransfer from a real pointer drag and exposes no command
to inject one. Faking it from the injected script would emit isTrusted: false on
a form that saw trusted events for everything else, which is the mixture [B175]
exists about. drag_and_drop() is a pointer gesture and works.

register_selector_engine and set_test_id_attribute are refused for the same
structural reason: both are baked into the injected script when it is built, and
rebuilding it would invalidate every handle the caller holds.

set_storage_state refuses per-origin localStorage rather than writing the
cookies and dropping the rest, and expose_binding names which half is missing -
the reply path, not the install.

__waitInfo__ is an annotation for the trace viewer, not an operation: the client
sends it on every wait. It answers as a courtesy, because refusing would fill
the handler error log on every expect().

Implemented: ariaSnapshot, touchscreenTap, requests, launchPersistentContext,
failure, httpVersion, resolveSelector.

And the root now declares a METHODS table like everything else. initialize was
implemented from the first day but lived in an if inside handle_root, so the
tool that derives coverage could not see it - the count was wrong by one, in the
direction that makes you write code twice.
2026-08-28 01:05:09 +02:00
feder-cr c3d4ff570d Route interception, web storage, and the last of the small groups
118 of the 128 in-perimeter operations now answer. The dialogs, console and
files group is finished.

Route interception is the piece with teeth. A route that is never answered
hangs the page SILENTLY: the request sits held, nothing errors, and the failure
surfaces as a timeout on whatever the caller does next. So the route event is
emitted the instant the request is intercepted, never lazily, because
Playwright's own auto-answer only works if the object reaches it.

Three narrowings that are stated rather than discovered later.

Juggler's interception is a BOOLEAN, not a pattern list: it intercepts
everything or nothing. The client filters by url on its side and continues what
it does not want, so behaviour is right - but every request now round-trips
through this process, which is why route() on a busy page is slower here than
upstream. A cost, not a defect.

set_storage_state refuses per-origin localStorage instead of writing the
cookies and dropping the rest. Half a restored session that looks like it
worked sends the caller to debug the site.

expose_binding refuses too, and says which half is missing: installing the
function is one init script, but the reply path - bindingCalled, then resolve
or reject into the promise the page is holding - is not wired, and a binding
that never answers hangs the page that called it.

Web storage runs in the MAIN world, and that one is not a style choice: storage
is keyed by origin and the utility sandbox carries an ExpandedPrincipal, so
reading from there does not raise - it answers a DIFFERENT store, empty, and
the caller concludes the site saved nothing.

And the english-only gate stopped this commit twice more. Both times it was
right.
2026-08-28 00:59:41 +02:00
feder-cr 3696196a3e Handles, script tags, the console log, and a benchmark that closed a question
The owner asked why a server is needed on the client side at all. Measured
rather than argued: scripts/bench_transport.py times only our machinery against
a fake server that answers instantly - no browser, so what is left is the
transport and nothing else. Over 8000 rounds the median is 0.029 ms, p99 0.069,
which is 1.2% of a real Juggler round trip. Making _juggler async would touch
~110 dispatcher methods plus the whole client to recover that. The answer is no,
and it is written down with the number so nobody has to re-derive it.

Five operations that looked outstanding were out of perimeter wearing a generic
name. read, write, delete and cancel are Stream and Artifact - the files
tracing, video and downloads produce - and createTempFiles is the streamed
upload path, while set_input_files with local paths already works. They were
recognised by reading WHICH MODULE sends them rather than by their name. And
reject/resolve are not a group of their own: they are the reply path of
exposeBinding.

New here: getProperty, getPropertyList, jsonValue, requestGC, addScriptTag,
addStyleTag, waitForElementState, and the console and pageError logs.

Two things the tags get right on purpose. They are appended in the MAIN world,
because a tag added behind the Xray defines nothing the page can see - the exact
opposite of what add_script_tag promises. And a url is AWAITED: returning
immediately hands back a handle to a script that has not run, so the next
evaluate does not see what it defines.

The logs fill from the events, not on request. Filling them when asked would
only ever hold what arrived after the question, so console_messages() would
answer an empty list and look like a page that prints nothing. Capped at 500.

And the english-only gate stopped this commit once: the comments above were
written in Italian first. It did exactly what it exists for.
2026-08-28 00:53:18 +02:00
feder-cr be41de5ca8 Network events, cookies, permissions, viewport, screenshot
Request and Response cross the seam, so page.on("request") and
page.on("response") fire. Cookies, permissions and geolocation go through the
browser context. Viewport, emulated media and screenshot go through the page.

Four shapes measured rather than assumed.

Headers are an ARRAY of name/value pairs, never a dict. RawHeaders iterates the
list and a dict iterates its keys, so handing one over does not raise: every
header value comes back empty.

Every timing field is mandatory and -1 means "did not happen". Leaving one out
is a KeyError in the client; leaving it at 0 claims the phase took no time,
which is a different lie.

In a closed-world schema null and absent are different answers. Page.screenshot
was rejected with 'Object "<root>.clip" is undefined, but has some scheme'
because an Optional arriving as null is a value of the wrong type. And clip
turned out to be mandatory anyway: the declaration does not wrap it in
Optional, so it is computed from the viewport when the caller does not give
one. Reading the type declaration settled it - both obvious readings of that
error were wrong.

A cookie domain with a leading dot means "and every subdomain", so comparing
the two strings directly answers nothing for a site-wide cookie.

And clear_cookies with a filter is refused rather than widened: the engine
command clears the whole context, and quietly clearing more than asked is worse
than saying no.
2026-08-28 00:42:42 +02:00
feder-cr 1c188bb53f Events: console, pageerror, dialogs, load states, navigation
page.on(...) works through the Python server. Juggler events are translated
into protocol events, which is what everything from expect_console_message to
an unanswered alert depends on.

Two shapes that a guess would get wrong, both from reading the client.

console and pageError are emitted on the CONTEXT, not the Page.
_browser_context.py listens for them and re-emits on the page it finds in
params["page"]. Emitting them on the Page produces no error whatsoever: the
handler simply never runs, and the user concludes their page prints nothing.

And creating an object is not emitting an event. The dialog cost an hour on
exactly this: __create__ was sent, the client built the Dialog, and nothing
fired - because _browser_context.py listens for a dialog EVENT carrying the
channel. The failure did not look like a missing event. It looked like
"Runtime.callFunction: no response in 30s", because an unanswered dialog leaves
the content process blocked inside window.alert and the NEXT command is the one
that times out.

The control is what identified it: the same script through the Node driver
answered the dialog and returned. Two clients, one engine, one behaviour
different - so it was mine.

A location is always sent, never null: _browser_context.py casts it and falls
back only on a missing KEY, so a null becomes an AttributeError somewhere else.
And console arguments arrive as remote objects, so the text comes from the
preview when there is no primitive value.
2026-08-28 00:07:21 +02:00
feder-cr 9d4d89e3e6 Closed shadow roots, end to end, and the prefs the server was throwing away
The 2026-08-20 research said locators cannot reach a closed shadow root without
forking Playwright. Re-measured against the shipped binary, half of it is
already done and the other half is now possible.

Side A is DONE and was already shipped. The engine patch lives in
Element::GetShadowRootForBindings, gated on the ExpandedPrincipal that Juggler's
sandbox carries, so the utility world sees a closed root and the page still gets
null. Measured both ways in one run: the selector engine finds an element inside
a closed root, and inside a root nested in a closed root, while the page's own
script reads null off the same host and its outerHTML is unchanged.

Side B is what owning the client unlocked. content() no longer serialises with
outerHTML, which walks the light DOM only and returns every shadow root as an
empty host. It now collects the roots recursively - possible because this runs
in the utility world - and hands them to getHTML({serializableShadowRoots,
shadowRoots}), which writes them as <template shadowrootmode="closed">. On the
probe page: three roots, two closed and one open, 805 characters against 433.
This is a deliberate divergence from upstream and it is written down where it
happens.

And the finding that mattered more than either. The Python launch path was
writing NO prefs: two hundred of them arrive in firefoxUserPrefs on every
launch and the server dropped them, starting Firefox on an empty temporary
profile. Everything worked - pages loaded, clicks landed, tests were green -
and every stealth declaration the package exists to make was absent. It was
caught by a shadow root, because that engine patch is gated on
StealthEngineActive(): the same probe found the root through _juggler directly
and lost it through the public API, and the only difference was who wrote the
profile.

Three more defects the shadow tests exposed. evaluate() ran in the UTILITY
world, so user code did not see the page's own globals - caught by the
assertion that the PAGE cannot see a closed root, which failed because the code
asking was not running as the page. evaluate() also mishandled the function
form: Playwright sends "1+1" and "() => x" down the same field, and evaluating
the raw string returned a function object, so the caller got None with no error.
And a serialised container needs an id, or parse_value raises a bare KeyError
several frames from the cause.
2026-08-27 23:47:28 +02:00
feder-cr ef413f8a04 The public API drives a page without Node
This is the seam. PipeTransport spawns node cli.js run-driver and speaks the
Playwright protocol over a pipe; InProcessTransport answers the same protocol
from this process. Everything above it - channels, guids, ChannelOwner, the sync
and async facades, the 823 generated methods - is untouched, because from up
there nothing can tell whether the answer crossed a pipe.

Every shape in server.py was measured, not deduced. scripts/capture_protocol.py
records a real session against the Node driver: 113 messages, 13 object types,
and the initializers come from that recording. Reading _impl tells you which
fields are CONSUMED; it cannot tell you which are SENT, and the gap is where a
future code path breaks.

Three things the recording said that a guess would have got wrong. goto, click,
fill, title, content and querySelector go to the Frame, not the Page. mouseMove
goes to the Page and arrives nineteen times for one click, because the cursor
travels. And a BrowserContext is born with three children already alive -
Debugger, Tracing, APIRequestContext - each announced before the context that
names them, then re-parented with __adopt__; _browser_context.py resolves all
three inside its constructor, so leaving them out raises before any page exists.

Threads are not optional. send() is called on the asyncio loop and every Juggler
operation blocks, so running one inline deadlocks the sync facade rather than
slowing it. send() enqueues; a pool runs the work and posts replies back with
call_soon_threadsafe.

The driver is NOT deleted yet, and that is deliberate: it is the judge of the
Python server. Both answer the same protocol, so the only honest check is the
same session through both. INVPW_TRANSPORT picks, an unknown value is refused
rather than falling back, and the default stays the driver until the judgement
says otherwise.

Also: Lifecycle.wait_for_main_frame, because the main frame arrives as an event
and reading the attribute right after attaching is a race that passes on a free
machine.
2026-08-27 22:57:02 +02:00
feder-cr f98717c910 English only, and a gate that says so
The repo is public and the owner asked for it to be all English. It was not:
549 lines written today in the _juggler client plus 852 lines across 33
pre-existing files - launcher.py, async_api.py, _session.py, ci_font_gate.py,
three CI workflows, the CHANGELOG and the pyproject.

scripts/check_english_only.py now refuses Italian mechanically. It looks for
two distinct Italian function words in one file: one is a proper noun or a
quotation, two is prose. Nine mutations killed, nine cases that must not fire.

Two exemptions, both stated and both narrow. This file carries its own
known-bad corpus, and test_fork.py reproduces the JavaScript comment that broke
the bundle on 2026-08-24 - the defect IS the trailing apostrophe of an Italian
word, so translating it would leave a test that can no longer fail.

And vendored is not a blanket exemption. _pw/ and _driver/ are upstream, but
they hold OUR patches, and seven of those blocks were Italian and invisible:
one of them in _playwright.py, which every user imports. The gate now reads the
marked blocks inside excluded folders. Two shapes of that were wrong first: a
fixed line span reached past a one-line comment into somebody else's code, and
a line is not a unit in a bundled file whose longest line is 320,820
characters.

The marker itself moved from MODIFICATO to MODIFIED, so the generator, the
extracted injected.js and the two tests that name it moved with it.

Three defects the translation exposed rather than caused. A two-argument event
handler where three arguments arrive, in a test marked e2e that the default
selection never ran - it could not pass, and _deliver swallowed the TypeError
without a trace, so Connection now records handler_errors and the test reads
them. A walk over the protocol tree whose two keys were renamed: it stopped
descending and stayed GREEN, because a smaller set is still a subset, so it now
asserts how many nodes it visited. And a Lifecycle method that ended up with
three different names because the glossary described a method as an attribute.
2026-08-27 22:48:07 +02:00
feder-cr 6d87108b90 Input and pointer, and the hit target that closes the race
The whole input group: mouse primitives, keyboard, dblclick, check/uncheck,
focus/blur, select option, dispatch event, press, type, set files, tap, drag.

Three defects found by measuring instead of assuming.

The buttons mask is not one-shifted. Firefox wants left 1, RIGHT 2, MIDDLE 4,
read in the bundle. The code had 1 << button, which gives 1 for left and is
therefore wrong for the other two without ever failing.

The keyboard sent code "" and keyCode 0 for every character. The event fires,
the text lands, the action succeeds and the tests pass, while the page reads
an empty event.code on a key every real Firefox names. The US layout is now
extracted from the bundle by scripts/gen_key_layout.py, 111 entries, and the
keyCode field carries keyCodeWithoutLocation.

A bare string never reached the option filter. It starts from matches = true
and narrows only on valueOrLabel, value, label or index, so a plain string
matched everything and selected the FIRST option: measured, ["b"] answered
['a'] and left the value at a.

And the hit target. Between the actionability check and the event the page can
move: a page that reveals a block at 1200 ms made dblclick land nineteen pixels
high, with the action succeeding and the page seeing nothing. Every click now
runs under setupHitTargetInterceptor, and a wrong target is a retryable
condition, not a failure.
2026-08-27 21:50:23 +02:00
feder-cr 6bef5d7287 Le letture del DOM, tutte dal mondo di utilita'
Il gruppo "lettura del DOM" della voce 6: stato (i sette is_*), innerText,
innerHTML, input_value, get_attribute, title, content, bounding_box.

Tre punti che non sono ovvi e che il codice porta scritti accanto:

elementState non torna un booleano ma {matches, received}, e su un nodo
staccato received vale error:notconnected. Letto come booleano darebbe vero
per qualunque dizionario non vuoto, cioe' sempre. Il noto-cattivo e' proprio
quello: rimessa la lettura ingenua, il test che chiede stati diversi sullo
stesso elemento diventa rosso.

input_value rifiuta su un nodo che non sia input, textarea o select, invece
di tornare undefined in silenzio; e stato rifiuta un nome fuori dagli otto
che elementState conosce davvero, letti nel suo codice.

bounding_box passa da Page.getContentQuads, non da getBoundingClientRect:
quel getter appartiene al sito, e chiamarlo sarebbe contabile.
2026-08-27 20:40:11 +02:00
feder-cr 9c7be77062 Il ciclo di ritentativo, e un noto-cattivo che passava per la ragione sbagliata
Voce 5c: risolvi, verifica, agisci, e se il DOM ti e' cambiato sotto
ricomincia. Il selettore si risolve DA CAPO a ogni giro - riusare l'handle
del giro precedente e' l'errore che rende il ciclo inutile, perche' quello
punta a un nodo che il DOM puo' aver sostituito e l'azione va a vuoto senza
dire niente. E un timeout dice il motivo dell'ultimo giro, perche' un
TimeoutError nudo su un ciclo di ritentativi e' la cosa meno utile che si
possa stampare.

Misurato sul binario spedito: il click arriva alla pagina, il ciclo aspetta
un elemento che compare dopo 1,2 secondi invece di fallire, e su un selettore
inesistente dice "il selettore non trova niente" mentre su un bottone
disabilitato dice "manca enabled" - due casi che un messaggio solo
confonderebbe.

LA PARTE CHE VALE. Il primo noto-cattivo sugli eventi fidati PASSAVA, e
passava per la ragione sbagliata. Mutando dispatchTrustedInputEvents in un
dispatch dallo script iniettato, il test restava verde: quella riga non
veniva mai eseguita, perche' su un input di TESTO injected.fill torna
needsinput e il testo si digita, e gli eventi dei tasti sono fidati comunque.
Il percorso di B175 e' l'altro, quello degli input il cui valore si IMPOSTA.

Aggiunto un input type=date alla pagina di prova, la mutazione adesso muore, e
l'output e' la firma esatta di B175: TTTTTFF, cinque fidati dai tasti e due
falsi dal valore impostato, mescolati sullo stesso form.

E due contratti letti nel C++ invece che indovinati: dispatchKeyEvent conosce
solo keydown e keyup - un keypress alza Unknown type e fa fallire l'intera
digitazione - e un keyup con text alza keyup does not support text option.

Piu' una correzione al commento della connessione, che citava una misura
falsa. Diceva che un comando nudo costava 26,8 ms: quel comando era
Heap.collectGarbage, che raccoglie davvero la spazzatura. La latenza vera
della pipe e' 2,4 ms per Runtime.evaluate("1") e 4,3 ms per getContentQuads.

Suite a 488 verdi, il wheel si installa e si importa.
2026-08-27 20:15:03 +02:00
feder-cr 03d2ab7cef Il docstring del pacchetto diceva "contiene solo protocol.py"
Era vero stamattina. Adesso ci sono anche connection, lifecycle, injected e
il blob JavaScript, e la riga era diventata falsa per via di cio' che ho
fatto dopo averla scritta - la stessa classe di riga che questa cartella
esiste per non avere.

Al suo posto una tabella dei cinque moduli, e le due cose che vanno sapute
prima di toccarli: nessun modulo del prodotto importa ancora questo
pacchetto, quindi e' inerte per costruzione; e cio' che vive qui arriva
all'utente, mentre un attrezzo che serve solo a noi va in scripts.
2026-08-27 19:58:13 +02:00
feder-cr 71760d7a9f Lo script iniettato risponde a Python, e non attraversa
Voce 5b: l'actionability. Non e' stata riscritta e non poteva esserlo - i
motori di selettori e i controlli di stato lavorano sul DOM, e Python non e'
nella pagina. Il JavaScript resta JavaScript; qui c'e' il modo di caricarlo
nel mondo giusto e di chiamarlo.

Il mondo di utilita' non si crea con un comando: si manda setInitScripts con
uno script VUOTO e un worldName, e Juggler annuncia il contesto con
executionContextCreated. Il nome e' __ctx_aux__ e non e' quello di upstream,
perche' il nostro fork lo ha rinominato: c'e' un test che lo pinna, o
divergere dal driver romperebbe l'aggancio in silenzio.

Misurato sul binario spedito: i motori css, text, testid e xpath trovano
tutti, querySelectorAll conta tre su tre, e l'azionabilita' DISTINGUE - il
bottone abilitato passa, quello disabled dice manca enabled, il div con
display:none dice manca visible, e l'input dice editable.

E la verifica che conta piu' di tutte: il nostro client NON attraversa. La
pagina-trappola del gate degli attraversamenti, venti trappole armate nel
primo script e verificate vive, pilotata con _juggler invece che con
Playwright: zero su tutte le azioni, risoluzione di selettori, actionability,
lettura del testo ed evaluate compresi.

Due righe tengono fuori i tell e hanno il loro test: isUtilityWorld vero, o
il costruttore installa tredici listener sull'addEventListener della pagina;
e isUnderTest falso, o pianta window.builtins enumerabile.

Otto test, tre senza browser. Il noto-cattivo e' l'azionabilita':
checkElementStates e' asincrona, e senza await tornerebbe una Promise, che e'
un oggetto vero, quindi ogni elemento risulterebbe azionabile e il controllo
direbbe sempre si'. Mutazione eseguita: tolto l'await, quel test fallisce e
gli altri quattro restano verdi.

Lo script iniettato si estrae dal bundle con gen_injected_source.py, che
rifiuta se l'estratto non porta le nostre modifiche - 312.225 byte, quattro
marcate. Non e' ancora tagliato: il perimetro lascia fuori 87.468 byte, ed e'
un passo a se'.

Suite a 486 verdi, il wheel si installa e si importa da un venv vuoto.
2026-08-27 19:55:46 +02:00
feder-cr 7bd07a8e7e Il ciclo di vita, e il difetto che il banco ha trovato al primo giro
Voce 5 del piano, quella che decide se lo stacco sta in piedi: albero dei
frame, navigazioni, i quattro load state (commit, domcontentloaded, load,
networkidle). Provato su una pagina vera con un iframe: i quattro stati si
raggiungono, l'albero e' giusto, networkidle aspetta davvero il silenzio.

IL DIFETTO, che vale piu' del codice. Azzerare gli stati su
navigationStarted NON basta. Page.navigate risponde col navigationId PRIMA
che navigationStarted arrivi, e in quella finestra il frame porta ancora
commit, domcontentloaded e load del documento precedente: chi aspetta commit
li trova e torna. Misurato al primo giro del banco: la prima
naviga(aspetta="commit") tornava in 0,01 secondi con url=about:blank, cioe'
prima ancora di partire.

Il rimedio non e' aspettare un attimo, che sarebbe una pezza: e' pretendere
che gli stati appartengano ALLA NOSTRA navigazione. Finche' f.navigazione e'
un'altra, quello che vediamo non e' nostro qualunque cosa dica. E il
messaggio di timeout lo dice, perche' altrimenti il caso "gli stati ci sono
ma non sono tuoi" sembrerebbe un browser che non risponde.

Sedici test, quindici senza browser, ed e' voluto: una macchina a stati si
prova dandole gli eventi, e questo difetto si riproduce in tre righe qui
mentre con un browser vero si vedrebbe quasi mai. Il noto-cattivo e'
test_GLI_STATI_DI_UNA_NAVIGAZIONE_NON_VALGONO_PER_UN_ALTRA, e la mutazione e'
stata eseguita: tolta la guardia, quel test fallisce con DID NOT RAISE e gli
altri quattordici restano verdi.

Piu' le altre cose che si scoprono solo scrivendole: sameDocumentNavigation
NON azzera niente perche' e' lo stesso documento; load implica
domcontentloaded; frameDetached porta via il sottoalbero e non il solo nodo;
il contatore delle richieste in volo non scende sotto zero, o networkidle
diventerebbe irraggiungibile per sempre; e networkidle si sblocca per
scadenza di silenzio, quindi l'attesa non puo' dormire fino al prossimo
evento perche' resterebbe ferma proprio nel caso che deve riuscire.

E la connessione ora consegna il sessionId insieme all'evento: senza, gli
eventi di due pagine aperte insieme sono indistinguibili e chi aspetta un
load prende quello dell'altra scheda.

Suite a 483 verdi, il wheel si installa e si importa da un venv vuoto.
2026-08-27 19:39:35 +02:00
feder-cr 4c7e7608d2 Python parla a Juggler senza Node
La prova su cui poggia tutto lo stacco, fatta sul binario spedito
(firefox-21, BuildID 20260827000135): pipe collegata, riga di prontezza
vista, Browser.enable che risponde, un contesto creato, una pagina creata, e
l'evento Browser.attachedToTarget ricevuto. Nessun driver, nessun Node,
nessun Playwright.

Il contratto e' letto in juggler/pipe/nsRemoteDebuggingPipe.cpp, non dedotto:
messaggi JSON delimitati da un BYTE ZERO e non da un a capo; su POSIX i
descrittori sono cablati a 3 e 4; su Windows non esistono descrittori ma
HANDLE letti dall'ambiente con atoi, quindi in decimale e resi ereditabili. E
i nomi sono dal punto di vista del BROWSER: il suo PW_PIPE_READ e' dove noi
scriviamo.

Due cose che si scoprono solo provandole, e che restano scritte accanto al
codice. La prima: _winapi.CreatePipe di CPython passa security attributes
NULL, quindi gli handle NON sono ereditabili, e metterli in handle_list cosi'
com'erano fa fallire CreateProcess con WinError 87, che non nomina la causa.
Si duplicano chiedendo l'ereditarieta'. La seconda: chiudere la pipe E' il
comando di uscita, perche' ReaderLoop chiama Disconnected quando la lettura
torna zero e Juggler spegne il browser. Non si comincia da terminate(), che
su Windows colpisce lo stub del launcher e lascia vivo l'albero - in questo
progetto sono gia' stati contati 88 orfani cosi'.

Cinque test. Tre senza browser sul protocollo generato, e due e2e: il
percorso minimo, e l'input noto-cattivo, cioe' che un comando inventato venga
RIFIUTATO dal browser e non ingoiato. Se tacesse, ogni deriva del protocollo
diventerebbe un timeout muto invece di una riga che nomina il comando.

Suite a 468 verdi, il wheel si installa e si importa da un venv vuoto.
2026-08-27 19:27:13 +02:00
feder-cr bd25ec8594 Il protocollo Juggler si genera dal binario, invece di scriverlo a mano
Primo pezzo dello stacco da Playwright. `scripts/gen_juggler_protocol.py`
legge `Protocol.js` DAL BINARIO SPEDITO e produce
`_juggler/protocol.py`: 71 comandi e 34 eventi in cinque domini, con i
riferimenti ai tipi risolti (browserTypes.UserPreference espanso) e gli otto
combinatori annidati.

Legge lo spedito e non l'albero del sorgente apposta. Oggi i due file sono
byte-identici, verificato, ma possono divergere, e generare dall'albero
produrrebbe un client per un browser che nessun utente esegue. Il modo di
fallire sarebbe quello a mondo chiuso: il browser rifiuta un campo non
dichiarato a runtime, la sessione muore alla creazione del contesto, e la
build resta verde. In questo progetto quella classe e' gia' costata 97 test
su 133.

Il Juggler sta in due layout - omni.ja su Windows, albero sciolto
./chrome/juggler/ su Linux - e il generatore li prova entrambi dicendo quale
ha risposto.

--check e' un gate e porta il suo input noto-cattivo: otto mutazioni sul
Protocol.js in memoria, otto uccise, piu' tre casi che devono NON scattare.
Una mutazione che non tocca il testo si dichiara INERTE invece di contarsi
fra le uccise.

Il modulo e' inerte: nessuno lo importa ancora. Verificato che il wheel si
installa e si importa da un venv vuoto, e la suite resta a 465 verdi.

Non sostituisce protocol_drift_check.py nel repo del sorgente: quello chiede
cosa manda un client vero, questo confronta la nostra dichiarazione con se
stessa. Servono tutti e due.
2026-08-27 19:17:11 +02:00
feder-cr e5a0461559 Il mondo MAIN non tocca piu' niente della pagina
Due punti in cui l'automazione passava dai prototipi del sito invece che
dall'Xray, trovati misurando con una pagina che avvolge gli accessori nel suo
primo script e conta.

Il primo: il costruttore di InjectedScript chiamava senza condizioni
_setupGlobalListenersRemovalDetection e _setupHitTargetInterceptors, che
usano this.window.addEventListener. Nel mondo di utilita' quella window si
vede attraverso un Xray e la chiamata finisce sul nativo; nel mondo MAIN e'
quella della pagina. bounding_box() e' l'unica operazione che costruisce
l'oggetto nel mondo MAIN, e installava TREDICI listener che un sito puo'
contare: un __ctx_ping__ piu' i dodici intercettori di hit-target. Ora le due
installazioni girano solo se _isUtilityWorld, che e' il flag calcolato dalla
riga immediatamente sopra. Costo zero: nel mondo MAIN quei listener erano
gia' inerti, perche' _hitTargetInterceptor lo imposta solo il percorso delle
azioni.

Il secondo: l'anteprima di un ElementHandle la calcola previewNode, che legge
element.textContent. La riga diceva `const utility = await
this._context.injectedScript()` - il nome prometteva il mondo di utilita' e
il codice prendeva il contesto dell'handle. Ora passa da evaluateInUtility,
che era gia' li' poche righe sotto. L'anteprima resta completa anche per un
handle del mondo MAIN.

Misurato prima e dopo: bounding_box() da 13 attraversamenti a 0, le altre 22
operazioni gia' a 0 e rimaste a 0. Verificato con test_fork 11 su 11, il
controllo di fumo, il gate degli attraversamenti a zero su 20 trappole e 16
sonde, e run_e2e.py sul binario spedito: 146 passed, 2 xfailed, 0 failed.
2026-08-27 18:56:20 +02:00
Federico 53aac8e896 Merge pull request #96 from feder-cr/ledger/0.7.4
record 0.7.4 as published
2026-08-27 14:11:40 +02:00
feder-cr d929fac325 Tocca il ramo per far girare la CI
Il push che ha creato questo ramo viene dal token della Action, e GitHub non fa
partire i workflow su quei push. Il contesto RICHIESTO `gate` non arriva mai,
quindi la PR del ledger resta bloccata per sempre - e con enforce_admins non la
puo' fondere nemmeno il proprietario. Un commit vuoto con credenziali vere fa
partire la CI.
2026-08-27 13:57:23 +02:00
feder-cr fcefb6c7a3 record 0.7.4 as published 2026-08-27 11:26:53 +00:00
Federico 401533676c Merge pull request #95 from feder-cr/rilascio/0.7.4
0.7.4: il pin passa al motore firefox-21, e l'xfail del file chooser se ne va
2026-08-27 13:21:55 +02:00
feder-cr 4d5c5fb79c L'xfail del file chooser se ne va come aveva promesso: firefox-21 e' quel rilascio
La sua ragione diceva che il rimedio sta nel MOTORE - PageAgent.js ascolta
`file-input-picker-opening` invece di `juggler-file-picker-shown` - da un commit
POSTERIORE a firefox-20, e che sarebbe diventato verde da solo al primo
firefox-N che include quel commit.

Misurato il 2026-08-27 contro il binario SPEDITO, estratto dall'archivio della
release: BuildID 20260827000135, lo stesso che il sigillo dichiara. Il caso
torna XPASS, quindi il marcatore esce e l'asserzione diventa dura: 1 passed.

Gli ALTRI DUE restano xfail, e non e' una svista: sono [B178], che questa
release non tocca. Verificato invece che assunto - nessun commit fra firefox-20
e HEAD del sorgente nomina setFileInputFiles.

La ragione rimossa non e' stata cancellata: e' diventata la docstring del caso,
perche' un marcatore che sparisce senza lasciare traccia toglie a chi legge il
motivo per cui quel test era rosso.
2026-08-27 09:11:26 +02:00
feder-cr 7f89e84ff6 0.7.4: il pin passa a invisible-core 21.16.0, cioe' al motore firefox-21
Il sigillo del core e' stato rotolato a firefox-21 (tre gambe, digest
319babc718c6) e la sua versione e' diventata 21.16.0; questo consumatore ne
segue il pin, come pretende sync_core_pin.py.

CORE_REVISION non si muove: la regola dice di alzarlo per un rilascio a MOTORE
INVARIATO, e qui la versione cambia comunque perche' cambia il tag.

⛔ Questo commit NON va spinto come tag prima che invisible-core 21.16.0 sia
sull'indice: il gate di publish.yml rifiuta un rilascio il cui pin esatto non
risponde 200, ed e' il rifiuto giusto - un consumatore puo' usare solo cio' che
l'INDICE ha, mai cio' che l'albero del core ha.
2026-08-27 04:53:08 +02:00
Federico 996f4a6147 Merge pull request #94 from feder-cr/fix/font-gate-prefs-nel-profilo
Il font gate scrive le prefs nel profilo: sul protocollo il motore le rifiuta
2026-08-27 04:23:41 +02:00
feder-cr f6898155dc Il font gate scrive le prefs nel profilo: sul protocollo il motore le rifiuta
I tre job `gate` di firefox-21 sono usciti rossi sul FONT GATE con

  BrowserType.launch: Protocol error (Browser.enable):
  Browser.enable no longer applies preferences. They are written into the
  profile before startup.

Il drive gate era VERDE su tutte e tre le gambe, quindi il binario si pilota:
a cadere e' solo questo script, che passa `firefox_user_prefs` a un Playwright
UPSTREAM.

Il rifiuto del motore e' voluto e corretto. Prima quelle prefs arrivavano DOPO
l'avvio, quindi il primo lancio inizializzava gfx e font coi default e il
secondo con le prefs attive: due percorsi diversi, che sono la causa di [B150].
Ignorarle sarebbe stato peggio - un browser senza le prefs che il chiamante
crede di aver impostato, e nessun errore. Quindi il rimedio sta qui, non nel
motore: un `user.js` nel profilo piu' un contesto persistente, che e'
esattamente cio' che il messaggio indica.

VERIFICATO, e non solo "il gate passa":
- il guasto riprodotto in locale sullo stesso juggler: launch(firefox_user_prefs)
  rifiutato, launch() nudo OK, contesto persistente con user.js OK;
- la pref ARRIVA davvero: dopo il lancio la mia riga e' ancora in user.js
  (Playwright non lo sovrascrive) e la pref compare in prefs.js, che Firefox
  scrive dai valori VIVI - quindi e' stata letta all'avvio;
- il gate rifatto contro il binario locale: FONT GATE OK, 71 famiglie su 71,
  fuga dall'host 0, generici mappati.

⛔ E la mutazione (non scrivere user.js) e' SOPRAVVISSUTA su Windows, come il
commento in questo stesso file gia' prevedeva: li' i default di Gecko coincidono
per caso con la persona dichiarata, quindi i generici mappano bene comunque. La
prova discriminante e' su Linux, e la da' la CI. Scritto qui perche' un verde
locale su Windows non dimostra che la pref sia arrivata - lo dimostra prefs.js.

Corretto anche il commento in launcher.py che descriveva il meccanismo VECCHIO
come attuale ("the prefs travel over the protocol instead"). Ora e' al passato,
con quello che vale oggi: il fork scrive user.js nel profilo e passa -profile,
e manda Browser.enable senza userPrefs. Il PRODOTTO quindi non e' toccato -
verificato nel bundle vendored, dove il campo userPrefs sparisce dalla richiesta
e le prefs vengono scritte nel profilo con un errore esplicito se non ci riesce.
2026-08-27 04:13:07 +02:00
Federico aec3a11e5e Merge pull request #93 from feder-cr/fix/post-rilascio-0.7.3
Changelog 0.7.3, e i due test che cercavano un playwright che non c'e' piu'
2026-08-26 18:48:33 +02:00
feder-cr 9e1f7aa34d Il changelog di 0.7.3, e i due test che cercavano un playwright che non c'e' piu'
Tre rossi che l'e2e ha trovato DOPO la pubblicazione, tutti conseguenze corrette
del rilascio e non regressioni.

Il changelog non aveva la voce 0.7.3: il gate lo dice a voce
("published and undocumented"), ed e' un passo del rilascio che ho saltato.
Aggiunta, con il fork vendorizzato, la fine del supporto macOS, il doppio giro
corretto e pyee/greenlet.

E due test leggevano `version('playwright')` in un venv pulito. Da quando il
client e' vendorizzato quel pacchetto NON e' piu' una dipendenza, quindi in un
venv vero non esiste e la riga alzava PackageNotFoundError: i test vivevano
ancora nel mondo di prima. Il primo ora legge la versione dal client
vendorizzato. Il secondo aveva perso la sua domanda - confrontava la versione
risolta col vincolo `playwright>=...` di pyproject, che non c'e' piu' - e la
domanda vera oggi e' un'altra: il client VENDORIZZATO sta nell'intervallo che il
SEAL dichiara per questo motore? E' quello che assert_playwright_range fa a ogni
import; qui si verifica dal di fuori, in un venv vero.

Verificato nella condizione in cui fallivano, non a ragionamento: nel venv con
0.7.3 installata dall'indice il client e' 1.61.0 e il seal dichiara 1.55.0 ..
1.61.0.
2026-08-26 18:17:47 +02:00
Federico d986a7ca32 Merge pull request #92 from feder-cr/ledger/0.7.3-manuale
record 0.7.3 as published (ledger)
2026-08-26 18:15:27 +02:00
feder-cr 60a08313f3 Rilancia la CI su uno sha nuovo: le run del commit precedente restano in action_required perche' quel commit nasce da una Action 2026-08-26 17:43:19 +02:00
feder-cr 2475dc1191 Tocca il ramo per far girare la CI (il push della Action non la triggera) 2026-08-26 17:00:56 +02:00
feder-cr 958da170c3 record 0.7.3 as published 2026-08-26 14:58:27 +00:00
Federico e89ac2b26c Merge pull request #90 from feder-cr/feat/fork-e-srflx
Release 0.7.3: il fork diventa il client vero, allineato al core 20.16.0
2026-08-26 16:51:29 +02:00
feder-cr e5982d2e26 Il test dell'installazione pulita dice cosa NON copre
Non cambia comportamento: installare dall'indice verifica che la versione
pubblicata resti installabile, ed e' una domanda vera. Cambia che ora lo dice:
il bersaglio predefinito e' l'INDICE, quindi questo test NON puo' vedere un
wheel rotto che stai per pubblicare, ed e' stato verde due volte il 2026-08-26
mentre il wheel 0.7.3 non si importava.

Rimanda al gate che quella domanda la fa davvero, tests/gates/wheel_si_importa.py
nel workbench: costruisce il wheel dal codice di adesso, venv vuoto, install,
import. Non puo' stare qui perche' tutta questa suite gira su un'installazione
editable del working tree, dove ogni file esiste per definizione.
2026-08-26 16:39:49 +02:00
feder-cr 6ffc8dd4bc La riga di .gitignore che escludeva _repo_version dal wheel se ne va davvero
Il commit precedente TRACCIAVA il file ma non toglieva la riga da .gitignore:
`git add -f` mette in stage un file ignorato, e io ho verificato con
`git archive HEAD` che il file ci fosse - e c'era, perche' un file tracciato
entra nell'archivio comunque. La riga di ignore invece e' rimasta, e hatchling
la rispetta ANCHE su un file tracciato: da qui 68 file nel wheel invece di 69,
e ModuleNotFoundError su _pw._repo_version per chi installa.

E lo strumento con cui mi ero convinto del contrario era sbagliato:
`git check-ignore` TACE su un file gia' tracciato, quindi rispondeva "non
ignorato" mentre la regola era li'. La domanda giusta e' `grep` sul file di
ignore, oppure - meglio - guardare cosa finisce nel WHEEL.

La correzione e' togliere la riga, non aggiungere il file a
[tool.hatch.build] artifacts: quella sarebbe una seconda regola che contraddice
la prima sullo stesso file, cioe' due posti che dicono cose opposte. La riga non
ha ragione di esistere qui: il commento "don't track" vale nel repo di
Playwright, dove setuptools-scm rigenera il file a ogni build; da noi e'
vendorizzato e nessuno lo rigenera.

Misurata la CLASSE, non solo il caso: 92 file del fork sul disco, 91 nel wheel,
e l'unico mancante era questo. Nessun altro file del fork e' nella trappola.
2026-08-26 16:32:23 +02:00
feder-cr 2651a53dd8 pyee e greenlet vanno dichiarate: erano transitive di playwright, che non c'e' piu'
Il wheel 0.7.3 si installava e non si importava: `No module named 'pyee'`. Chi
vendorizza eredita le dipendenze di cio' che ha vendorizzato, e togliendo
`playwright` dalle dipendenze sono sparite con lui anche le sue transitive, che
il client in _pw/ importa lo stesso - pyee per gli emettitori di eventi,
greenlet per l'API sincrona.

Verificato come lo vede un utente, non a ragionamento: venv pulito, install del
wheel, `import invisible_playwright` -> ora IMPORT OK 0.7.3 e `pip check` senza
requisiti rotti. Gli intervalli sono quelli che playwright 1.61 dichiarava, per
non inventare un vincolo diverso da quello con cui il client e' stato provato.

Perche' la CI lo mascherava, ed e' la parte che vale: il job e2e fa ancora
`pip install playwright` per il solo `install-deps` (le librerie di SISTEMA di
Firefox su un runner nudo, sottocomando che il fork non espone apposta), e quel
comando si tirava dentro pyee e greenlet dalla porta di servizio. Il passo ora
dice a voce che quel pacchetto e' uno strumento di sistema e non una dipendenza
del prodotto, e rimanda a tests/test_fork.py per la garanzia che nessuno lo
importi.
2026-08-26 16:19:22 +02:00
feder-cr 7d1b19c402 _repo_version.py del fork va TRACCIATO: senza, il pacchetto si installa e non si importa
La CI ha colto il difetto piu' grave di questa tornata, e su un checkout pulito
(che in locale non si vede mai): ModuleNotFoundError su
invisible_playwright._pw._repo_version, 32 errori in collection su ogni gamba.

Causa mia, quando ho vendorizzato il fork: il file dice in testa "don't track in
version control" e l'ho aggiunto a .gitignore fidandomi di quella riga. Quel
commento pero' vale nel repo di Playwright, dove setuptools-scm lo RIGENERA a
ogni build. Da noi e' vendorizzato, nessuno lo rigenera, e _engine.py lo importa
a runtime (assert_playwright_range legge la versione del client da li'). In
locale il file c'era sul disco, quindi tutto passava; su un clone nuovo no.

E' esattamente la classe della issue #14: si installa, e si rompe solo
dall'utente. Il rilascio 0.7.3 lo avrebbe spedito a tutti.

Tolto da .gitignore e tracciato. Verificato con `git archive HEAD`: il fork ora
ha 68 file piu' questo, ed e' l'unico file del fork che mancava.
2026-08-26 16:07:10 +02:00
feder-cr 47278fa5c3 Il test del filechooser e' xfail sul binario che il seal pinna oggi
L'e2e sulla coppia SPEDITA (wrapper 0.7.3 + core 20.16.0, che pinna firefox-20)
usciva 1 failed: test_expect_file_chooser_riceve_levento andava in timeout
aspettando l'evento filechooser.

Non e' una regressione di questa patch. Il rimedio sta nel MOTORE ed e'
posteriore a firefox-20: PageAgent.js ascolta `file-input-picker-opening` invece
di `juggler-file-picker-shown` da un commit che quel binario non ha. Misurato il
2026-08-26: contro firefox-20 l'evento non arriva, contro la build locale che
porta il commit lo stesso test passa.

Marcato xfail(strict=False) come i suoi due fratelli nello stesso file, con la
ragione e la misura scritte accanto: diventa verde da solo al primo firefox-N che
include quel commit. Lasciarlo rosso avrebbe insegnato a ignorare l'e2e, che e'
il modo in cui un banco smette di servire.
2026-08-26 16:00:49 +02:00
feder-cr a02e68578e Il fork diventa il client vero, e il wrapper si allinea al core 20.16.0
Il fork di Playwright era vendorizzato ma non ancora CABLATO: launcher e
async_api importavano ancora il pacchetto playwright installato, quindi il codice
eseguito non era quello che spediamo. Ora l'import e' invisible_playwright._pw, e
playwright esce dalle dipendenze di pyproject: il client Python e il driver Node
vivono dentro il pacchetto. _node.py risolve il runtime Node per il driver.

E l'allineamento al core 20.16.0, che e' la ragione per cui questo lavoro non
poteva restare in sospeso: il core ha spostato zoom.stealth.webrtc.disable_ipv6
da pref a variabile d'ambiente e ha cambiato i pref humanize, quindi il wrapper
committato non era piu' compatibile col pin nuovo. Il pre-push lo aveva rifiutato
al tentativo di rilascio, correttamente: il pin diceva 20.16.0 e i test dicevano
20.15.0. Adesso _session, launcher e async_api parlano il contratto nuovo, e la
decisione sul srflx si legge da SessionGeo.srflx_da_dichiarare() invece di essere
ricalcolata.

Versione a 0.7.3 con pin invisible_core==20.16.0, gia' sull'indice: l'ordine
core-prima e' rispettato. 465 test verdi. Nuovi test: test_fork.py (nessuno
importa il playwright installato, il client vendorizzato e' quello che si usa) e
test_file_chooser.py.
2026-08-26 15:41:08 +02:00
Federico ba18d53cc4 Merge pull request #89 from feder-cr/mac/rimozione-macos
Il fork di Playwright entra nel repo, e macOS esce
2026-08-26 12:30:07 +02:00
feder-cr 1769635baa Il test delle piattaforme del README riconosce macOS come RITIRATA
Conseguenza corretta della rimozione macOS: il README ora dichiara Win+Linux, ma
il seal PINNATO e' ancora firefox-20, che il mac ce l'aveva, quindi il seal
sovra-spedisce rispetto a cio' che si supporta d'ora in poi. Il test asseriva
"piattaforme del README == piattaforme del seal" e andava rosso.

Aggiunto l'insieme DROPPED (le due gambe macOS): il test non pretende piu' che il
README le dichiari, e in piu' - gate positivo, non silenzio - pretende che il
README DICA che macOS non e' piu' supportato finche' il seal le spedisce ancora,
o un utente Mac non capirebbe il rifiuto. L'altra meta' (dichiarare cio' che non
si costruisce) resta vietata. 465 test verdi.

Parte della rimozione macOS del 2026-08-26 (voce 29 di 72-next-steps).
2026-08-26 06:06:19 +02:00
feder-cr 24deaeecf5 macOS fuori dalle note di rilascio e dal README
Le due superfici che nessun gate protegge, corrette a mano prima del prossimo
firefox-N: gen_release_notes.py scriveva "Builds: ... macOS arm64, macOS x86_64"
e le istruzioni xattr/Gatekeeper in OGNI corpo di release futuro - ora elenca le
tre gambe Win+Linux e niente Gatekeeper. Il README dichiarava macOS fra le
piattaforme supportate: ora dice che il mac non e' piu' supportato (le release si
sono fermate a firefox-20) e che su un Mac il pacchetto rifiuta al lancio con un
messaggio chiaro invece di scaricare un binario che non esiste piu'.

Parte della rimozione macOS del 2026-08-26 (voce 29 di 72-next-steps.md nel
workbench). Il core rifiuta al confine, il sorgente non produce piu' l'asset
mac, e queste due righe erano gli ultimi punti che avrebbero mentito all'utente.
2026-08-26 05:51:31 +02:00
feder-cr 6547cba40a Il fork di Playwright entra nel repo: senza, il pacchetto si installava e non si importava
launcher.py importa da invisible_playwright._pw, ma _pw e _driver erano sul
disco e non in git: nessuna voce di .gitignore li generava, erano semplicemente
non tracciati. Un wheel costruito da un checkout non li conteneva, quindi ogni
import invisible_playwright alzava ImportError. E' la classe di danno della
issue #14: un pacchetto che si installa e si rompe solo dall'utente.

Con loro entra anche tutto il lavoro sul bundle del driver che finora viveva
solo qui: il rimedio a set_content [B177], i 643 KB tolti (android, electron,
bidi, recorder, chromium, webkit), la neutralizzazione di _exposeConsoleApi e la
console.debug rimossa.

E' codice Apache-2.0 dentro un repo il cui codice e' MIT, e non si nasconde:
pyproject dichiara gia' "MIT AND Apache-2.0", il driver porta a monte LICENSE,
NOTICE e ThirdPartyNotices, ho aggiunto la stessa Apache LICENSE al client _pw
che non ce l'aveva, e THIRD_PARTY_FORK.md dice da dove viene il fork, quale
versione (1.61.1) e cosa e' stato modificato.

Fuori restano i .pyc (li ignora gia' .gitignore) e _pw/_repo_version.py, che
setuptools-scm rigenera e che dice esso stesso di non tracciarlo: aggiunto a
.gitignore.

Sblocca la voce 23 di 72-next-steps.md nel workbench. Il push resta una
decisione a parte, con il gate completo: qui e' solo il commit, su un ramo.
2026-08-26 04:43:31 +02:00
Federico 11892c4985 Via l'attesa dopo ogni scheda nuova: la causa e' chiusa nel motore (#88)
Via l'attesa dopo ogni scheda nuova: la causa e' chiusa nel motore
2026-08-23 12:51:58 +02:00
feder-cr 5f222f38f0 I due gate della CI girano nella configurazione che il prodotto spedisce
ci_drive_gate lanciava con sei prefs che spegnevano il newtab e ci_font_gate con
quattro, e il commento diceva che la seconda lista rispecchiava la prima: erano
gia' divergenti da chissa' quando. Il prodotto quelle prefs non le spedisce piu'
dal revert del 20 agosto, quindi un banco che le impone misura un'altra cosa con
lo stesso nome.

Fra il 20 e il 23 agosto ci_drive_gate aspettava _NEWTAB_SETTLE al posto loro.
Quella costante non esiste piu': il pericolo che descriveva non era Fission che
ricarica la pagina, era il browser preallocato della nuova scheda che si
prendeva il canale, ed e' corretto nel motore. Adesso nessuno dei due gate
aspetta niente e nessuno dei due ha liste da tenere in pari.

Provati sul binario con la correzione dentro: DRIVE GATE OK in modalita' full,
cioe' http piu' click piu' mousemove piu' tastiera piu' determinismo del canvas,
e FONT GATE OK con 71 famiglie su 71 e zero fughe dall'host.

CONTRIBUTING mandava i contributori sul ramo stealth/150, che non e' quello su
cui si lavora da un pezzo.
2026-08-23 01:40:37 +02:00
feder-cr 87dd3b4af3 Via l'attesa dopo ogni scheda nuova: la causa e' chiusa nel motore
Le due API dormivano 0,4 s dopo ogni tab creata per non farsi dirottare la
prima goto() da una navigazione ad about:newtab. Quella navigazione non era del
browser: era il browser preallocato della nuova scheda che si prendeva il canale
della pagina, perche' JugglerFrameParent riconosceva il target confrontando un
browserId con l'id di un BrowsingContext. Corretto nel motore, misurato dopo:
10 giri su 10 senza nessuna attesa.

Il ritardo non copriva niente. Con l'attesa vera, cioe' aspettando che
about:newtab fosse arrivato e caricato, la goto riusciva 0 volte su 9; i 0,4 s
riuscivano solo quando vincevano la corsa, perche' la navigazione interna si
impegna a 1,06-1,36 s mentre new_page() ritorna a 0,42 s. Tenerlo adesso
sarebbe un secondo rimedio per una causa sola.

Il test che pinnava il valore diventa un gate che impedisce di rimetterlo:
legge il codice di _patch_new_context_defaults nelle due API e rifiuta
qualunque sleep, non il nome della costante. Provato con la mutazione
noto-cattiva, un time.sleep(0.4) rimesso dentro patched_page, che lo fa
diventare rosso.
2026-08-23 01:03:11 +02:00
feder-cr b59bfd940c Il gate del mouse provava la sola piattaforma su cui il difetto non puo' accadere
Nuovo livello --click: un mouse.move e un click, con l'asserzione che siano
arrivati alla pagina. Niente altro.

Esiste perche' la motivazione di --full era falsa. Diceva: il codice di
interazione e' JS identico su tutte le piattaforme (vive in omni.ja), quindi
provarlo su una gamba affidabile basta per tutte. Misurato: una build
MOZILLA_OFFICIAL mostra il modale dei termini d'uso, che copre il viewport e
mangia ogni evento di mouse mentre la tastiera continua a funzionare, e
browser/app/profile/firefox.js spegne il preonboarding sotto #ifdef XP_LINUX.
Linux e' immune. L'unica gamba che provava il mouse era l'unica che non poteva
vedere il difetto: cinque gambe verdi su un binario col mouse morto su Windows
e macOS, cioe' sulla piattaforma bersaglio.

Resta leggero apposta: la fragilita' che aveva confinato --full a Linux veniva
da una sequenza pesante di interazioni, non da un click solo, e questa classe di
difetto produce ZERO eventi invece che eventi sbagliati.

Validato con un artefatto, non con un ragionamento: un firefox-21 con
termsofuse.acceptedDate rimessa a "0" dentro omni.ja passa SMOKE e fallisce
--click, mentre il binario riparato e quello precedente passano entrambi.
2026-08-19 23:25:35 +02:00
Federico 57f50f8b80 Le due voci piu' vecchie del changelog puntavano a tag mai esistiti (#86)
[0.1.1] e [0.1.0] rimandavano a compare/v0.1.0...v0.1.1 e releases/tag/v0.1.0.
Nessuno dei due tag esiste: 0.1.0 e 0.1.1 precedono l'arrivo su PyPI, dove
l'indice parte da 0.3.5, e il riempimento dei tag mancanti fatto a suo tempo era
guidato dall'indice, quindi non poteva raggiungerle. Due 404 in fondo a un file
che i lettori aprono per capire cosa e' cambiato.

La prova di dove vivevano c'era: git log -S sul pyproject da 7a983e9 per 0.1.0
("feat: initial public release") e 589c848 per 0.1.1.

Avrei potuto creare i tag, e NON l'ho fatto per un rischio concreto. publish.yml
si innesca sui tag v*, e per una versione che l'indice non serve
already-published non corto-circuita: un tag nuovo su 0.1.0 puo' far partire un
tentativo di pubblicarla. Un link rotto in un changelog storico non vale quel
rischio.

I due link puntano ai commit, che sono la stessa informazione senza inneschi, e
la ragione e' scritta nel file accanto perche' il prossimo che li vede diversi
dagli altri non li "sistemi" trasformandoli in tag.

Verificati entrambi: 200.
2026-08-18 20:57:30 +02:00
Federico 932d8b33b0 Remove ScrapeOrbit from the repo (#84)
The landing page, its stylesheet, its script and the company list it
fell back on, plus the two banner images. Nothing else referenced any
of them.

docs/index.md loses its permalink override and becomes the site home
again: index.html was the root, and without it the root would 404
while every other page kept working. Nothing linked to the old
/overview.html path - the declaration was its only occurrence.
2026-08-18 16:16:52 +02:00
Federico 65b72741a9 Drop the ScrapeOrbit banner from the README (#83)
The empty h2 under it goes too: it was the divider for the promo block,
not for the content, and on its own it renders as a rule above nothing.
2026-08-18 15:30:36 +02:00
Federico 835d6d2904 Il controllo sul registro andava rosso su un rilascio riuscito (#82)
Quarta occorrenza della stessa forma trovata stanotte, e questa non l'ho cercata
io: e' uscita da un audit che ha letto 363 controlli chiedendo a ognuno se puo'
essere verde mentre un rilascio e' a meta'.

Il sotto-controllo sul registro dentro test_the_published_version_has_a_github_release
confronta PUBLISHED.json, letto dall'albero, con le versioni che l'indice serve.
Ma il registro non puo' arrivare su main insieme alla pubblicazione: publish.yml
pubblica su PyPI e poi prova a spingere PUBLISHED.json, main e' protetto e la
spinta diretta viene rifiutata sempre per costruzione, quindi la voce finisce su
un ramo ledger/<versione> la cui PR resta bloccata da sola per il difetto B136
gia' aperto. Fra la pubblicazione e il merge a mano l'indice ha la versione e il
registro no, e il caso e' rosso su un rilascio andato a buon fine.

Nello stesso file, poche righe sotto, c'era gia' l'esenzione scritta un'ora prima
per il gate del changelog: la stessa cura, sul controllo accanto, mai applicata.

Esente e' solo la versione che l'albero DICHIARA nel suo pyproject, e il buco si
richiude da solo: se quel ramo del registro non viene mai unito, al rilascio dopo
la versione rimasta indietro non e' piu' quella dichiarata, ricade in unrecorded
e il caso torna rosso. E' lo stesso modello che il commento accanto descrive gia'
per version_gate, dove una pubblicazione fuori dal cancello resta invisibile fino
al rilascio successivo che la rifiuta.

Provato con l'input noto-cattivo: tolta 0.7.0 dal registro, il caso diventa
rosso; rimessa, torna verde.
2026-08-18 13:46:07 +02:00
github-actions[bot]andfeder-cr 35688cab0f record 0.7.2 as published (#81)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-08-18 11:33:37 +02:00
Federico 2073975413 0.7.2: il pin sale a invisible-core 20.15.0, e il badge dei lanci se ne va (#80)
* 0.7.2: il pin sale a invisible-core 20.15.0, e il badge dei lanci se ne va

Il pin porta agli utenti la correzione del core: un endpoint http:// o https://
passato a build_launch_plan non produceva NESSUNA pref di proxy, e il browser
usciva dall'indirizzo della macchina mentre il livello geografico aveva gia'
risolto fuso, lingua ed egress attraverso il proxy.

Questo wrapper non e' mai stato toccato e chi lo usa non deve fare niente:
consegna l'endpoint a Playwright, ed e' stato misurato - lo stesso IP di uscita
di curl attraverso lo stesso proxy, in http e in socks5. Il pin sale perche' un
consumatore che pinna in modo esatto non puo' restare indietro sull'unica
versione del core che quel difetto non ce l'ha.

Il badge `browser launches` esce dalla README. Il contatore dietro non era un
numero che calcolavamo: era un asset di release ospitato su un repository
cancellato il 2026-08-18, quindi la serie e' ferma sull'ultimo valore vero e il
renderer avrebbe ridisegnato quel numero ogni mattina. Un dato congelato
presentato come corrente e' peggio di nessun dato. La storia non e' toccata e
l'SVG sul ramo badges resta, perche' le pagine PyPI gia' pubblicate lo servono.

Nota sul gate del changelog: fra questo commit e la pubblicazione risulta rosso
con "documented and never published", perche' e' simmetrico e rifiuta anche il
caso opposto. Torna verde quando 0.7.2 e' sull'indice. Non e' stato aggirato.

* Due test dell'aggiornamento erano rossi per costruzione durante ogni rilascio

test_a_hand_pinned_old_core_is_reported_by_pip_check installa il wrapper
DALL'INDICE e poi prendeva cores[-2], la penultima versione del core pubblicata,
dandola per scontata come "piu' vecchia di quella che pinniamo". Quella
assunzione vale solo se la piu' recente sull'indice e' quella che il wrapper
pubblicato pinna, e cade per tutta la durata di un rilascio fatto nell'ordine che
il progetto impone: il core si pubblica PRIMA del consumatore.

Misurato oggi. Pubblicato invisible-core 20.15.0, sull'indice il wrapper era
ancora 0.7.1 che pinna 20.14.0, quindi cores[-2] era proprio 20.14.0: il caso
installava la versione GIUSTA chiamandola sbagliata, pip check rispondeva pulito
perche' l'ambiente era corretto, e il test leggeva quel pulito come una cecita'
del pin. Rosso su un prodotto sano. Il secondo caso, che riusa la stessa fixture,
cadeva di conseguenza: nessuna riparazione da fare, quindi "il core e' ancora
20.14.0".

Corretto all'origine: la versione sbagliata non si sceglie piu' dalla POSIZIONE
sull'indice ma da cio' che il wrapper installato PRETENDE, letto dal suo
Requires-Dist, che e' la sola fonte che non dipende da quante versioni ci siano
ne' dal loro ordine.

Dentro la finestra di rilascio la versione diversa dal pin risulta piu' NUOVA
invece che piu' vecchia. Il meccanismo sotto esame e' il rilevamento di un
DISACCORDO, e un disaccordo verso l'alto e' un disaccordo uguale; il nome del
caso resta com'e' perche' i documenti lo citano e un gate lo verifica.

* Il gate del wheel chiedeva dei file spariti sei settimane fa, e non girava mai

test_built_wheel_has_no_duplicate_entries asseriva che nel wheel ci fossero dei
.json, col commento "the Bayesian data files must still be packaged". E' falso
dal 2026-07-03: il commit 76e41e2, quello che ha creato invisible_core, ha
portato quei dati nel core, e questo pacchetto non ne ha piu' nessuno.

Ha continuato a chiedere una cosa inesistente per sei settimane senza che niente
lo segnalasse, e la ragione e' che il caso e' marcato slow: la selezione di
default lo deseleziona, quindi in CI non ha MAI girato. E' saltato fuori solo
perche' oggi ho lanciato la suite con -m "not e2e", che gli slow li include. Un
gate che non gira e' indistinguibile da uno che passa.

La regressione per cui il caso era stato scritto resta e non e' stata toccata:
un vecchio force-include in pyproject.toml scriveva ogni JSON due volte nello
zip, e PyPI rifiuta un wheel con nomi duplicati. Cambia solo il controllo di
sanita' accanto, che ora chiede cio' che deve valere per QUESTO pacchetto: che
il modulo sia dentro il wheel. E' la stessa classe di guasto - packages che
smette di puntare al sorgente - verificata su una cosa che esiste.

Provato con l'input noto-cattivo: con packages = ["src"] il caso diventa rosso.

* Il gate del changelog rendeva impossibile una PR di rilascio verde

Il gate rifiuta una versione documentata che l'indice non serve, e ha ragione:
esiste perche' un changelog che si ferma a quattro rilasci fa e' peggio di
nessun changelog. Ma la voce di una versione deve stare nel commit che alza la
versione, e in quel momento l'indice non la serve ancora. Quindi ogni PR di
rilascio nasceva rossa, e nessuna sequenza di passi poteva evitarlo: pubblicare
prima di mergiare significherebbe pubblicare da un ramo non mergiato.

Misurato oggi sulla PR #80, dove dopo aver corretto gli altri due difetti questo
era l'UNICO rosso rimasto, su 141 test passati.

La via comoda era togliere la voce dal commit e aggiungerla dopo. Sarebbe stato
curare il sintomo ricreando esattamente il buco che questo gate esiste per
impedire: 0.7.1 e' rimasta senza voce per un giorno intero proprio cosi'.

Corretto all'origine: la versione che l'albero DICHIARA nel suo pyproject e' il
rilascio in corso, non un'invenzione. Ogni altra versione documentata e mai
pubblicata resta un errore, le date restano confrontate con l'upload, e quando
il rilascio atterra quella riga torna sotto la regola generale come le altre.

Provato con due input noto-cattivi, perche' un'esenzione e' il punto in cui un
gate diventa cieco senza dirlo:
  una versione inventata diversa da quella in volo  -> rosso
  una versione pubblicata senza voce                -> rosso
2026-08-18 10:43:27 +02:00
Federico d5d92e8689 0.7.1 era pubblicata da un giorno e non era nel changelog (#79)
* record 0.7.1 as published

* 0.7.1 era pubblicata da un giorno e non era nel changelog

Il gate che confronta l'indice con CHANGELOG.md esiste da tempo e ha fatto il suo
lavoro, ma e' marcato e2e e la selezione di default lo deseleziona: e' scattato
alla prima corsa e2e completa DOPO il rilascio, e quella corsa e' avvenuta per
una ragione che col rilascio non c'entrava niente. Un gate che gira solo quando
qualcuno decide di girarlo non protegge il momento in cui serve.

Nel resto: tolti i riferimenti operativi a invisible_firefox, cancellato il
2026-08-18. Il CHANGELOG resta com'era, perche' e' storia: una riga che dice
"allineato con invisible_firefox 0.2.0" descrive un fatto vero di allora. Sono
cambiate solo le frasi che parlavano al presente di tre repo o due consumatori,
compresi un commento in tests.yml e uno in pyproject.toml, piu' il badge dei
lanci nel README che puntava a una pagina ora 404.

446 test verdi, 0 skipped. e2e sul binario firefox-20: 144 verdi.
2026-08-18 02:52:21 +02:00
github-actions[bot]andfeder-cr 25d7b73659 record 0.7.1 as published (#78)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-08-17 22:12:22 +02:00
Federico 353df4faac 0.7.1: the two gates that approved without looking (#77)
Il font gate confrontava le famiglie contro una lista che era rimasta a 68 mentre
il manifest ne dichiara 71, e la deriva non produceva un rosso: produceva un
verde. La sonda interroga la lista e nient'altro, quindi una famiglia tolta smette
anche di essere cercata, il conto torna da solo e il gate approva restando cieco.
Misurato sul binario vero. Ora un test confronta quella lista con cio' che il core
dichiara, e quel test prima esisteva solo nei documenti.

E il test su enumerateDevices ha due limiti invece di uno, perche' con una soglia
sola una risoluzione soltanto lenta veniva riportata come blocco: il verdetto del
prodotto scritto sopra quello della macchina. Il muro del blocco resta assoluto
perche' un blocco e' infinito; la lentezza si misura contro la macchina.

Il pin punta al core di firefox-20, gia' sull'indice.
2026-08-17 21:59:40 +02:00
Federico d599a95a92 firefox-20: the font gate stops approving while blind, and the media test tells slow from hung (#76)
* Forget the remembered chrome window geometry before a persistent relaunch

Relaunching a persistent profile on Windows succeeded 2 times out of 8. The cause
is in juggler: awaitViewportDimensions resolves only when innerWidth and
innerHeight equal the requested values exactly, it has no timeout, and it re-runs
its check only from a resize or navigationcommitted event. On a relaunch Firefox
restores the chrome window from the profile's xulstore.json, so the corrective
resizeBy computes a null delta, no resize is emitted, and the check is never
re-evaluated. The first launch never hits it because the window starts at the
default size, far from the target.

Confirmed with one difference on the same binary and profile: keeping the
geometry gave 3/6, deleting it 6/6, and successful relaunches went from 20-155s
to 7-10s. After the fix the gate reports 6/6 at about 7s each.

Only the five geometry keys are removed, not the file: the rest of xulstore is UI
state unrelated to this defect.

This acts on the trigger, not on the origin, and says so: the origin is the
unbounded wait, which lives in engine code re-synced from upstream at every
rebase.

Two comments corrected because they asserted things the code does not do. The
first claimed Playwright writes user.js on every launch, which is false on the
Juggler path - writePreferences lives in server/bidi/ and the base
prepareUserDataDir is empty - and that false belief is what made the
first-launch/second-launch asymmetry look impossible. The second named
INVPW_BINARY_PATH in resolve_executable, which never reads it.

Not a fingerprint change, and measured rather than argued: on a reused profile a
page sees inner=[1920,947] outer=[1920,1032] and outer-inner=[0,85], identical to
the first launch and to the declared model.

* Withdraw the cause I wrote for the persistent-relaunch hang: it is false

A dump() probe inside awaitViewportDimensions, with the remedy disabled at
runtime so the defect would reappear: over 8 relaunches the 6 that worked ran
that check twice and matched exactly on the first try every time, and the 2 that
hung never reached it. So that wait never mismatches, and the stall happens
before a target exists.

What stays measured is the correlation: 12 relaunches out of 12 with the geometry
keys removed against 5 out of 14 with them kept. But a real effect does not prove
a mechanism - deleting a file also changes timing, and on a startup race a timing
perturbation improves things for the wrong reason.

So this call is a declared patch, and worse than the patch it was first written
as: then the cause seemed known and the refactor deferred; now the cause is
unknown and this removes a trigger without explaining it.

* Remove the geometry remedy: the origin was found and it lives in the core now

The cause of the persistent-relaunch hang turned out to be Windows occlusion
tracking declaring our chrome window occluded and never revoking it, and the fix
is a pref invisible_core now applies to every session. So this file goes back to
having no remedy of its own: the function, its constant, the call and its five
tests are gone.

Measured before removing them: with the pref and this code deleted, and the
persisted window geometry deliberately KEPT, 10 relaunches out of 10 succeed at
about 7 seconds each. Keeping both would leave two places knowing the same fact,
which is what rule 16 forbids.

And the note in _session.py that presented INVPW_TRUE_HEADLESS as the escape
hatch for this hang now carries the mechanism instead of the symptom: true
headless was reliable because there is no window to occlude. It stays as a
deliberate choice of a different rendering path, not as a workaround.

Full account, including the two causes I wrote before this one and how each was
falsified: 71-bug-archive.md [B150].

* The e2e strips INVISIBLE_CORE_PIN, because one of its tests asserts what that variable disables

Setting it is the normal way to drive a locally built engine, so it is usually already
exported in the shell that starts a run, and the venv subprocess that the upgrade test
spawns inherits it. That test deliberately breaks an environment and requires importing
the wrapper to repair it. With the variable set the repair correctly declines, the version
does not move, and the test fails for a reason that has nothing to do with the binary.

Measured: one failed and a hundred forty three passed in fourteen minutes, and the same
file re-run with the variable unset gave four passed in two minutes. Refusing up front
costs a second, and discovering it costs the whole run plus the time spent believing the
product was broken.

It is stripped rather than merely warned about, because a warning at the top of a
fourteen minute run has scrolled away long before the failure appears. The line that says
it was stripped prints only when it was actually set.

* La lista delle famiglie nel font gate era rimasta a 68, e la deriva dava verde

Il manifest e' passato a 71 famiglie il 16 agosto, aggiungendo le due Segoe di
icone e Twemoji Mozilla. La lista dentro scripts/ci_font_gate.py e' rimasta a
68, quindi il gate non cercava piu' tre famiglie che spediamo.

La parte che conta non e' la deriva, e' cosa produce. Misurato sul binario vero:
la sonda interroga EXPECTED piu' i nomi dell'host e nient'altro, quindi una
famiglia tolta dalla lista smette anche di essere CERCATA. Con le tre mancanti
il gate stampa "detected 68 families (expected 68)" e FONT GATE OK, uscita 0, su
una build che ne espone 71. Un gate d'accordo con se' stesso non vede la propria
deriva, e nessuna mutazione del gate l'avrebbe scoperta.

La lista resta un letterale, e non per pigrizia: il job di release.yml che
esegue questo gate fa il checkout di questo repo ma installa soltanto playwright,
quindi importare invisible_core li' uccide ogni rilascio. La derivazione e'
stata scritta e provata, funziona in locale, ed e' stata ritirata per quello. E
anche se un giorno quel job installasse il core, quando la pipeline gira il core
pubblicato e' ancora quello del rilascio precedente: si misurerebbe il binario
nuovo contro la dichiarazione vecchia.

Quindi cio' che tiene onesto il letterale e' un test, non l'attenzione di chi lo
edita, e quel test non esisteva. Era documentato come esistente, con nome e file,
e nell'albero non c'era: e' esattamente per questo che la lista ha potuto restare
indietro per un giorno. Ora c'e', e la sua mutazione e' stata eseguita: tolto un
nome diventa rosso, rimesso torna verde.

Verificato sul binario locale: 71 famiglie rilevate su 71 attese, zero fughe
dall'host, i generici mappano su font Windows.

* Il test riportava un blocco dove c'era solo una macchina carica

Con una soglia sola, una risoluzione lenta di enumerateDevices veniva riportata
come MAI RISOLTA: scriveva il verdetto del prodotto sopra quello della macchina.
Adesso i limiti sono due e i messaggi distinti.

Il muro del blocco resta assoluto a 120 secondi, perche' un blocco e' infinito e
non deve scalare con niente: sono 83 volte la mediana e 24 volte il peggior tempo
mai osservato quando la chiamata funziona. La lentezza invece si misura contro la
macchina: la pagina cronometra ventimila microtask e il limite e' un multiplo di
quel tempo, con un pavimento e un tetto sotto il muro.

Due difetti della prima stesura di questo rimedio, colti misurando e non
rileggendo. Il riferimento contava cinquanta giri di setTimeout e a macchina
scarica dava 2624 ms, cioe' cinquantadue per giro: non era carico, era il clamp
dei timer, che Firefox applica comunque. Un riferimento va scelto per cio' che
misura, e un timer clampato misura il clamp. E da quel numero il limite di
lentezza usciva sopra il muro del blocco, quindi la prima asserzione scattava
sempre prima e la seconda era irraggiungibile: un'asserzione morta che sembrava
una protezione. Da li' il tetto.

Entrambi gli input noto-cattivi eseguiti: muro a un millisecondo fa scattare il
messaggio del blocco, pavimento e multiplo a uno quello della lentezza.

* Il messaggio del gate andava in errore proprio quando serviva

Il messaggio dell'asserzione usava un % dopo una concatenazione con +, quindi
quel % si legava solo all'ultimo gruppo di letterali adiacenti, che non ha
segnaposti, e alzava TypeError. Un messaggio di asserzione viene valutato solo
quando l'asserzione fallisce, percio' il difetto si manifestava esattamente
nell'istante in cui serviva la spiegazione: in CI e' comparso un TypeError al
posto della differenza fra le due liste.

Ora i valori si concatenano gia' resi con repr, che non ha questo modo di
sbagliare, e il messaggio dice anche cosa guardare se scatta durante un
rilascio: la CI installa il core PUBBLICATO, non quello dell'albero, quindi un
gate aggiornato prima che il core sia sull'indice vede il manifest vecchio.

Cercato lo stesso schema negli altri quattro file di test toccati oggi: nessuna
altra occorrenza.

* Il pin punta al core di firefox-20

invisible_core 20.14.0 e' sull'indice, quindi la condizione che il workflow di
pubblicazione pretende e' soddisfatta: il pin esatto risponde 200 prima che il
rilascio parta.

Il numero non e' scritto a mano da nessuna parte. La versione del core e'
derivata dal suo sigillo, e sync_core_pin la legge da li' e la porta qui, cosi'
non esiste un punto in cui qualcuno possa dimenticarsi di alzarla.
2026-08-17 21:38:47 +02:00
Federico b16b9c9438 Ask for a Telegram handle instead of an email in the scrape panel (#75) 2026-08-17 05:13:29 +02:00
Federico 5aa8c68b4e Refine the scrape panel: higher contrast, clearer fields, a gradient CTA (#74) 2026-08-17 03:00:00 +02:00
Federico 049476ad43 Drop the empty-state search hint under the search bar (#73) 2026-08-17 02:45:14 +02:00
Federico 9e650968f6 Replace the scrape chat with a single smart instruction panel (#72) 2026-08-17 02:34:53 +02:00
Federico f3814b6bb1 Replace the Telegram handoff with an in-page scrape chat (#71) 2026-08-17 02:15:34 +02:00
Federico 0dd6dd2a38 Rework the demo: click dissolves the scene into the scraped products.json (#70) 2026-08-17 01:45:14 +02:00
Federico 429798f70e Smooth the ScrapeOrbit demo to 25fps for less mechanical motion (#69) 2026-08-16 23:04:33 +02:00
Federico d486660604 Trim the ScrapeOrbit banner to the demo and one call to action (#68) 2026-08-16 22:01:21 +02:00
Federico b9f35c0bcb Animate the ScrapeOrbit banner and switch on global company search (#67)
Swap the static banner for a short looping demo (type a company, get the
real result with its logo, hit Scrape) and add a badge row under it. Set
the Brandfetch client id so the search covers every company, not only the
bundled index.
2026-08-16 21:20:14 +02:00
Federico 5fef7cc316 Add ScrapeOrbit landing page and point the README banner to it (#66)
New static page under docs/ served at the site root: a company search with logos and a scrape button that opens a direct chat. The top of the README now shows the ScrapeOrbit banner linking to it, in place of the group link.
2026-08-16 19:44:25 +02:00
Federico 7278427aa8 I test dell'installazione ereditavano l'ambiente di chi li lanciava (#65)
env=None in subprocess.run non vuol dire ambiente vuoto: vuol dire eredita.
Quindi PYTHONPATH e INVISIBLE_SEAL_FILE entravano nei venv che questi test
costruiscono, e il venv importava il core del banco invece di quello installato
o cercava un sigillo locale. Sedici rossi in un giorno, nessuno del prodotto.

Il verso pericoloso e' l'altro e resta il motivo per cui vale la pena: questi
due file sono l'unica cosa che verifica cosa riceve un utente, e un verde che
arriva da un ambiente che nessun utente ha non dimostra niente.

Adesso il default e' l'ambiente ripulito, e il messaggio di errore dice cosa ha
tolto: una variabile rimossa in silenzio e' lo stesso difetto di una ereditata
in silenzio, col segno cambiato. Ripulite anche le due subprocess.run dirette,
cosi' non resta un'eccezione da ricordare.

La duplicazione fra i due file resta, ed e' voluta: un modulo condiviso qui
sarebbe un errore di raccolta sul runner, che ha solo pytest. A tenere allineate
le due copie c'e' un test che le confronta fra loro, insieme al controllo che
riproduce il mondo di prima - con env=None la variabile deve passare, altrimenti
a essere rotto e' il banco e non il rimedio.
2026-08-14 11:25:48 +02:00
Federico f777798a7c Il ripiego del ledger non ha mai girato, e i tag non avevano release page (#64)
Due difetti nello stesso job, tutti e due misurati oggi.

Il primo: quando la protezione rifiuta il push su main, il passo dovrebbe
mettere la voce su un ramo e aprire una PR. Non e' mai successo. Da HEAD
staccato, `HEAD:ledger/1.2.3` non e' risolvibile - il ramo non esiste ancora e
la sorgente e' un commit, quindi git non sa se gli si chiede un ramo o un tag e
rifiuta con "not a full refname". Sotto bash -e il passo muore li', quindi la PR
non veniva nemmeno tentata e nessuna delle due annotazioni veniva stampata. E'
per questo che non e' mai esistito un ramo ledger/* su nessuno dei tre, in
quattro corse rosse su release che erano invece andate a buon fine.

Il secondo: creare la PR richiede anche l'impostazione "Allow GitHub Actions to
create and approve pull requests", che e' spenta su tutti e tre. Il
pull-requests: write del job serve ma non basta. Quindi la PR ora e' best
effort: appena il ramo e' spinto la voce e' salva, e il run non diventa rosso
per una comodita' che un'impostazione puo' togliere. Rosso solo se la voce si
perde davvero, che e' quello che il commento diceva gia' e il codice no.

E la release page: dopo tre tag, quattro versioni su quattro non ce l'avevano, e
le ha trovate un gate DOPO la pubblicazione. Ora la crea il workflow dal tag,
con il corpo preso dal CHANGELOG dove c'e' e generato dove non c'e'. Idempotente:
un tag rispinto o una pagina fatta a mano sono un no-op, non un rosso.

Eseguiti tutti i rami di entrambi i passi contro un remoto che rifiuta il ramo
di default come fa la protezione: push accettato, rifiutato con PR creata,
rifiutato con PR vietata da 403, tutto rifiutato. Il codice vecchio, sullo stesso
banco, riproduce parola per parola l'errore del log di produzione.
2026-08-14 04:24:04 +02:00
Federico 63752e12ec Il badge delle stelle non lo ricalcolava nessuno dal 19 luglio (#63)
Era stato disegnato a mano quando ho tolto shields.io e da allora nessuno
script lo toccava piu': diceva 1.8k con 1886 stelle vere, cioe' mancavano
14 stelle perche' diventasse semplicemente falso sulla prima pagina.

Ora lo genera lo stesso renderer del badge dei lanci, dallo snapshot
giornaliero, e legge dal ramo badges come l'altro. Il ramo serve perche' main
richiede il check gate e un commit diretto dell'API viene rifiutato con 409.
2026-08-14 03:18:27 +02:00
Federico 88e955afe5 Il badge dei lanci si pubblicava su un branch protetto (#62)
Il README mostrava 1,64M mentre il numero vero e' 1,78M. Il badge viene
aggiornato ogni giorno da un'attivita' pianificata che usa l'API dei contenuti,
cioe' fa un commit diretto su main; da quando main richiede il contesto `gate`
con enforce_admins quella chiamata fallisce con

  HTTP 409 - Could not update file: Required status check "gate" is expected.

Il difetto era invisibile perche' la stessa attivita' salva anche il CSV dei
download, e quella parte continuava a funzionare: si vedeva solo come esito 1
nell'Utilita' di pianificazione, e come un badge fermo su un numero vecchio.

Un'automazione non puo' aprire una PR e aspettarne il merge, quindi il badge
adesso vive sul branch `badges`, che non e' protetto. Verificato end to end: la
pubblicazione riesce e l'attivita' esce 0.

Effetto collaterale desiderabile: main non riceve piu' un commit al giorno per un
file che nessuno legge nella storia.
2026-08-14 02:49:12 +02:00
Federico bd6a5f7960 Su Windows GitHub usa PowerShell: shell bash sul job di caccia (#61)
Il primo lancio della caccia su windows-latest e' morto in cinque minuti con un
ParserError di PowerShell sulla riga `if [ "$RUNNER_OS" = "Linux" ]`. GitHub
esegue i blocchi `run:` con pwsh sui runner Windows, non con bash.

La cosa da ricordare non e' il difetto, e' che la verifica non lo aveva visto.
La regola dice di estrarre ogni blocco `run:` dallo YAML ed ESEGUIRLO, e l'avevo
fatto: due giri verdi escono 0, un impiccamento simulato si ferma ed esce 1. Ma
l'avevo eseguito in bash sulla macchina di chi scriveva, cioe' con un interprete
diverso da quello del bersaglio. Eseguire il blocco non basta se lo si esegue con
la shell sbagliata.

`defaults: run: shell: bash` sul job, cosi' entrambi i bracci usano lo stesso
interprete e i blocchi restano quelli gia' provati.
2026-08-13 20:21:43 +02:00
Federico c651f8e286 Il banco di caccia sceglie il sistema operativo (#60)
Sulla macchina di sviluppo i test di interazione producono ritentativi (41 su 17
giri) mentre su Linux non ce n'e' nemmeno uno in 36. Sembrava un difetto di
piattaforma, ma quel confronto e' CONFUSO: i giri Linux stavano su runner
dedicati, quelli Windows su una macchina dove prima girava la suite di chi
misurava e poi e' tornato il proprietario col suo lavoro. Il primo giro
"pulito" e' uscito con 25 processi estranei contro un riferimento di 10.

Un runner Windows dedicato separa piattaforma da contesa senza chiedere a
nessuno di stare fermo sei ore. firefox-launch-matrix.yml dimostra da mesi che
il browser parte sui runner Windows, quindi la strada esiste gia'.

Tre cose per farlo funzionare su entrambi: xvfb condizionato a runner.os ==
'Linux'; le prove sotto prove/ nello spazio di lavoro invece che in RUNNER_TEMP,
che su Windows contiene backslash e non attraversa bash in modo affidabile; e il
prefisso del comando in una variabile, vuota fuori da Linux.

Eseguito, non riletto: il ramo per sistema da xvfb-run su Linux e vuoto su
Windows, e il ciclo intero gira su quel braccio in entrambi gli esiti - due giri
verdi escono 0 con l'avviso, un impiccamento simulato al secondo giro si ferma,
esce 1 e stampa l'ultimo test piu' lo stack.
2026-08-13 19:48:33 +02:00
Federico 1d841b295c Il README non consiglia piu nessun provider di proxy (#59)
Escono le due raccomandazioni sponsorizzate: il blockquote sotto "Still
seeing captchas or anti-bot?" e il paragrafo in coda alla sezione Proxies.
Quello che resta sulle sezioni e' la spiegazione del problema, senza un
nome da cliccare.
2026-08-13 17:11:13 +02:00
Federico 7b912f6729 Il test della sessione lunga riceve la sua scadenza (#58)
Misurato sullo stesso commit: 4,3 secondi su Linux in CI e oltre 300 su Windows,
mentre l'intera suite su Windows e' solo 3 volte piu' lenta. E' il difetto aperto del
layout che non mette in cache i font fra documenti.

Con la globale a 420s una macchina piu' carica lo ucciderebbe, e un test legittimo
ucciso dalla protezione produce un rosso identico all'impiccamento che la protezione
cerca. Il marcatore si toglie quando il difetto si chiude.
2026-08-13 16:48:13 +02:00
Federico 61a15f9d69 Strumenti per debuggare l'impiccamento dell'e2e dove succede, su CI (#57)
Il difetto vive su Linux sotto xvfb e si presenta nel 12% delle corse, quindi gli
strumenti stanno su CI: una caccia sulla macchina di sviluppo gira su Windows e un
negativo li' non direbbe niente di questo ambiente.

Un cane da guardia che a 150s dentro un test scrive lo stack di ogni thread su FILE
(pytest redirige i descrittori a livello di sistema, quindi stderr si perde quando il
processo viene ucciso), l'artifact che lo porta fuori, un passo che dimostra che era
armato, e e2e-hunt.yml che cicla la suite fino a catturare.

Ogni blocco run: e' stato estratto dallo YAML ed eseguito in tutti gli esiti. Cosi' e'
venuto fuori che il controllo del cane da guardia moriva su ogni corsa VERDE, perche'
grep -c che conta zero esce 1 sotto bash -e.
2026-08-13 13:02:18 +02:00
Federico 2770891acd Una scadenza non e' un flake, e va presa con un thread (#56)
Causa dell'impiccamento del job e2e a 40 minuti, due volte. --only-rerun conteneva
`Timeout`, scritto per il TimeoutError di Playwright, e cattura anche
subprocess.TimeoutExpired: misurato, due test producono 4 rerun. I test di
release/upgrade vivono dentro pip install con timeout fino a 300s, quindi uno che
scade costa 900 secondi; la somma dei loro timeout e' 10.050 s, ritentati 30.150,
contro un tetto di 2.400.

Due --rerun-except (TimeoutExpired, `Timeout >`) piu' --timeout 420. Il metodo e'
thread e non il segnale predefinito: misurato, il segnale NON interrompe questo
blocco, perche' l'API sincrona di Playwright attende sul socket del driver e il
gestore non trova mai un confine di bytecode. Validato contro un socket in accept()
che nessuno connette: col thread il test e' nominato e lo stack indica la riga.
2026-08-13 03:34:25 +02:00
Federico 707720b691 L'e2e nomina il test su cui si pianta, e non parte su PR di sola documentazione (#55)
Due impiccamenti, il 4 e il 12 agosto: job ucciso dal timeout di 40 minuti contro
una durata normale di 4:47. Sullo stesso commit il tentativo 2 e' verde in 5, quindi
e' intermittente e non dipende da cio' che si spedisce.

Il log non diceva su quale test, e non era il buffering: PYTHONUNBUFFERED e python -u
c'erano gia' ed entrambe le corse hanno stampato la stessa riga al 50% a 78 secondi.
Era la granularita' di -q, un carattere per test su righe da 72. Con -v sono 144 righe
nominate, verificato sul run di questa PR.

E paths-ignore era su push e non su pull_request, per questo la #54 di sola
documentazione ha bruciato i 40 minuti interi.
2026-08-13 02:49:53 +02:00
Federico 33cebafd84 Via il sito Pages: la wiki e' la superficie che ranka (#54)
Il sito su github.io e' stato eliminato. Sui 313 articoli Google aveva 262 pagine
dalla wiki e 30 da Pages, e le due copie portavano lo stesso testo (95-96% di
sovrapposizione), quindi competevano sulle stesse query.

Se ne vanno il workflow di deploy, la configurazione Jekyll, il file di verifica di
Search Console e i breadcrumb JSON-LD che puntavano a URL ora inesistenti. docs/
resta: e' la sorgente da cui publish-wiki.yml genera la wiki.
2026-08-13 02:30:07 +02:00
feder-cr 93a2df7612 One aggregating gate job, and skipped is not failed
Branch protection here required four contexts, and one of them -
`pytest (windows-latest, py3.11)` - is EXCLUDED by the matrix a few lines
above where it is declared. A required context that no job can produce means
the protection could never be satisfied; with enforce_admins false every push
went through regardless and nobody noticed. Measured 2026-08-13, same shape in
the core and the manager.

A list of matrix names drifts every time the matrix changes, which is exactly
how this happened. This job depends on the whole matrix and its name never
changes.

The part specific to this repo: `unit` is deliberately SKIPPED when
core-on-index reports the pin is not on the index yet - during that window no
install can succeed, and the workflow chose to skip rather than fake green. A
gate demanding `success` would turn that choice into a red on release day, and
the first reaction would be to remove the protection. So it refuses on
`failure` and `cancelled`, never on `skipped`.

The `run:` block was executed against every outcome before pushing.
2026-08-13 01:11:51 +02:00
feder-cr 01d692be2a badge: browser launches at 1.64M 2026-08-12 09:00:06 +02:00
feder-cr 8180b624f1 README: say what the project is in the words people search for
The opening described the project in our own vocabulary. Keyword research put
real numbers on that: headless browser and playwright headless are the terms
with both volume and a reachable SERP, captcha bypass carries most of the
captcha demand, and the project name itself has none. Reword the hook, the
tagline and the two questions to lead with those, naming the challenges people
actually meet. Only the top of the file moves - Google attributes roughly the
first thirty lines to the repo home and the rest to the README blob, so this is
where the words count.
2026-08-12 07:55:40 +02:00
feder-cr 22b53847f0 CHANGELOG: 0.7.0
The gate caught it, not a person: test_the_changelog_documents_every_version
_it_claims_to_cover reads what the index serves and refuses a published
version the file does not mention.
2026-08-11 18:14:39 +02:00
feder-cr 5e5d0f516d Back-fill the 0.7.0 ledger entry the publish run could not commit
Third time today across the three repos, same cause: the upload succeeds,
branch protection declines the workflow's ledger commit, the run reports
failure for a release that shipped. Verified with check --verify-index,
which answers exit 5 - byte-identical to what the index serves.
2026-08-11 18:00:29 +02:00
feder-cr 5ed8dd6ba2 The core pin follows the seal to 19.14.0
firefox-19 is public, the core rolled its seal onto it, and the pin moves
with it. Written by scripts/sync_core_pin.py rather than by hand, which is
what keeps the two spellings - invisible_core== in the file, the hyphenated
one in every comment about it - from drifting into a gate that greps for
the wrong one.
2026-08-11 17:35:21 +02:00
feder-cr 7ca67819c6 The font gate asked a question whose answer could not mean anything
Two defects, one cause. It launched the binary raw, and it inferred "did
this face load" from a number we declare ourselves.

The raw launch used to be fine and stopped being fine when the generic
family map moved out of compiled C++ and into a declaration. An engine
without its declarations does not invent them, by design, so the gate was
measuring engine rule 7 working and calling it a defect. Measured on one
binary: raw on Linux, serif, sans-serif, monospace, cursive and fantasy
all collapse onto Arial and Arial disappears from the family list. The gate
now hands in that one declaration - zoom.stealth.fonts.generics, constant
across seeds - and the generics map to Times New Roman, Arial, Consolas and
Comic Sans on both platforms. It is a copy, and it is the only copy in the
project, so a test binds it to what the core produces and goes red if they
separate.

The .ttc check was unanswerable rather than wrong. It asked "does this
family measure differently from NO font", and the no-font face is itself
one of the bundled families: Microsoft YaHei IS the CJK fallback, proven
at the pixel level. YaHei therefore failed its own check, and so did
MingLiU-ExtB and PMingLiU-ExtB, whose cmaps cover none of the probe
characters - falling back is correct there, read from the font files. It
passed for a year on a coincidence: the fallback's line height was 91 and
theirs 95. Line heights are declared now, the fallback landed on 95, and
the coincidence ended.

What replaces it is structural. Group the families by their measureText
ink box and assert WHICH families share a face, not what the numbers are.
A face that fails to load falls into the fallback group and the grouping
changes, which is the failure the check exists for. The numbers themselves
are deliberately not asserted here: raw on Linux they come back as
FreeType's grid-fitted integers while Windows returns fractions, and they
only agree once the browser has all its declarations - so cross-OS value
parity belongs in a check that runs under the wrapper, not in this one.

Green on three binaries launched exactly the way CI launches them: this
build on Windows, this build on Linux, and the released firefox-18 Linux
asset as a known-good reference. Validated by moving one family between
groups, which turns it red and names both sides of the move. One mutation
SURVIVED and is written into the file rather than hidden: deleting a name
from EXPECTED also deletes it from what gets probed, because a page cannot
enumerate system fonts, only ask name by name.
2026-08-11 12:31:14 +02:00
feder-cr 28b6a2ccd7 Two e2e tests for failures the suite could not see
A session that dies under heavy text shaping, and a frame that reports
its parent's screen origin instead of its own. Neither was reachable by
the existing e2e tests: they open a page, assert one thing and close, so
none of them shapes enough text or lives long enough, and none looks at
geometry from inside a nested frame.

Both were validated by reintroducing the real defect in the engine and
rebuilding, not by reasoning about them. The frame test fails with
"the iframe reports mozInnerScreen (0, 235) instead of (220, 235)" and
only on the axis that was broken, which is what says it measures the
right thing.

The long-session test reads its font families from the profile manifest
rather than a list written here, so a change to the bundle moves the
test with it. Its navigation timeout is large on purpose: this engine
reloads the declared faces on every document, so 30s is a coin flip
rather than a margin, and a timeout would report a dead session for a
browser that was only busy.
2026-08-11 12:15:42 +02:00
feder-cr 5c1e5fdb88 0.7.0: the core pin moves, and one public signature changed
Minor rather than patch, because seed_recaptcha_cookies_sync, its async twin and
build_cookies now take locale= where they took timezone=. Anyone calling them by
keyword has to move, and that is what the bump is for.

The pin goes to invisible_core==18.14.0, which carries the fix for the pref that
killed a second browser context on Windows. A consumer whose pin moved has
changed and has to be published, or it pins a core its users cannot resolve.
2026-08-11 12:15:42 +02:00
feder-cr 98788cbf4a A shipped doc described navigator.buildID as doing the opposite of what it does
The page said "the property returns whatever the binary was actually compiled
from", and built an argument on it. Measured by reading the property from a page
on the real binary: it returns 20181001000000, the fixed constant every release
Firefox reports. Gecko flattens it in Navigator.cpp for any non-system caller
outside a mozilla.org origin - not gated on resistFingerprinting, not gated on
any profile pref.

The correction matters in the direction it was wrong: the doc described this
build as carrying a value nobody else carries, when what it actually does is the
same thing every Firefox does. That is the stronger position and the one the
rest of the page argues for.

Also here: the `or "en-US"` at the CONSENT call site is gone. consent_region_lang
has that fallback in its own body, so pre-empting it meant the core never saw a
falsy locale and its decision never ran - a second place deciding the same fact,
in the same file where a 22-row timezone table was deleted for the same reason
hours earlier.
2026-08-11 12:15:42 +02:00
feder-cr 46c4e43e54 Delete the timezone table the CONSENT cookie used, and derive from the locale
_TZ_TO_REGION mapped 22 IANA zones to a country and a language for the Google
CONSENT cookie. The session locale is resolved in invisible-core from the
egress country against 55 countries. Two tables for one fact, in two
repositories, and they drifted the way two tables do: a Romanian session
reported ro-RO as navigator.language and en+FX in the cookie, because
Europe/Bucharest was not one of the 22. A page that reads both sees a Romanian
browser claiming to be a non-EU English one.

Deleting beats extending here. Deriving from the locale covers every locale the
core can resolve, including the countries nobody has added to a list yet, and
the only finite part left - which countries get their own token rather than FX
- lives in the core as one set.

The old rows still give the same answer (it-IT, de-DE, en-GB, ja-JP). One
deliberate difference: Norway moves from "no" to "nb", because the locale we
declare is nb-NO and the coherence worth having is with our own language.

The new test pins Romania, which is the case the old table got wrong.
Mutation-tested: shrinking the country set to the three the old table really
covered fails exactly that case.

Needs invisible-core on the index first: consent_region_lang is a new name.
2026-08-11 12:15:42 +02:00
feder-cr 2f5f6c7869 Read the window chrome from the profile, and stop asserting the invented value
_CHROME_W = 14 and _CHROME_H = 91 were module constants here. Stock Firefox
151 answers 0 and 85 to the same two subtractions. The declaration lives in
invisible-core now, as Profile.screen.chrome_w / chrome_h, and both viewport
sites read the profile rather than the module.

The test is the part worth reading. test_chrome_offsets_are_positive_ints
asserted _CHROME_W > 0, reasoning that "any zero/negative value would let
viewport bleed past screen bounds". That is false - a viewport exactly as wide
as the screen is inside the bounds, not past them - and the false reasoning is
what kept the invented number alive through every run. It now asserts the
invariant that sentence was reaching for, on a real profile, and lets the
horizontal chrome be zero.

Needs invisible-core on the index first: CHROME_W and CHROME_H are new names
there.
2026-08-11 12:15:42 +02:00
feder-cr d3b514cf4b The font manifest travels as an env var, and the CI list had gone stale
Two leftovers from the manifest handover, committed together because they
are the same change seen from both ends.

build_env carries the manifest. The engine builds its font list during app
startup, inside InitSharedFontListForPlatform, and on this path the prefs
have not reached the profile yet - Playwright sends them over the
connection after the process is up, so a pref cannot work here no matter
how early it is written. The manifest goes as STEALTHFOX_FONT_MANIFEST
pointing at a content-addressed file, verified against the engine's own
face files first, because metrics for a font that is not there are worse
than no metrics.

The CI list had gone stale in the direction that matters. It still named
Arial Black, Franklin Gothic Medium, Segoe Fluent Icons and Segoe MDL2
Assets, which came out of the bundle on 2026-08-07 because a real Windows
Firefox does not expose them as family names to a page - measured against
the retail install with a throwaway profile. 68 now, not 72. It is a
hand-kept copy of the manifest's F| records, the docs already call that a
drift risk, and it was an audit that caught it rather than the gate.
2026-08-11 12:15:42 +02:00
feder-cr d784dbbfba The taskbar was a fourth constant here, at 40, while everyone else said 48
launcher.py carried _TASKBAR_H = 40. invisible_core.constants said 48 and
the engine's compiled floor in nsScreen.cpp said 48, so the default
viewport was derived from one number and screen.availHeight from another.
A page reads both off the same window.

Both use sites now take p.screen.taskbar_px, which is a profile field and
pinnable like anything else. _TASKBAR_H survives only as an alias of the
core's name, because async_api and two tests import it - it resolves to
the same declaration instead of competing with it.

The old test asserted the viewport against _TASKBAR_H, which by
construction could not see any of this: it passed with 40 and with 48
alike. It now asserts against the profile field, and a second test pins
72 and requires the viewport to follow. Mutation-proved - putting
_TASKBAR_H back in the expression fails the pinned case.

Needs invisible-core with TASKBAR_PX on the index before release.
2026-08-11 12:15:41 +02:00
feder-cr c813380366 Six knobs that existed and were documented nowhere
The voices, the fake media devices, the storage booleans, the generic-family
table, the accessibility overrides and the taskbar height all became Profile
fields today and stopped there. An undocumented knob is one nobody uses, and it
gets deleted by whoever next reads the code as dead.
2026-08-11 12:15:41 +02:00
feder-cr 72fb16d728 Nine knobs that existed and were documented nowhere
The screen colour depth, maxTouchPoints and the seven rasterisation parameters
became Profile fields yesterday and stopped there: not in the pin table, not on
this page, so they could be neither pinned nor found. An undocumented knob is
one nobody uses, and it gets deleted by whoever next reads the code as dead.

The test that says so was already written and was already failing.
2026-08-11 12:15:41 +02:00
feder-cr 7361ed08a2 docs: title these pages the way people search for them
The titles led with the project name, which nobody searches for, and left out
the phrase they do type. Keyword research on autocomplete and related searches
put 'playwright stealth' at over a thousand demand points and the project name
at zero. Lead with the subject instead, on the fourteen pages where the gap was
widest. Only the title and H1 move; slugs, URLs and content are untouched.
2026-08-11 12:15:41 +02:00
feder-cr c6c45cd8ff badge: browser launches at 1.56M 2026-08-11 09:00:06 +02:00
feder-cr 06096159b0 badge: browser launches at 1.48M 2026-08-10 09:00:07 +02:00
feder-cr b6c74fca67 badge: browser launches at 1.41M 2026-08-09 09:00:06 +02:00
feder-cr 14050be60b badge: browser launches at 1.34M 2026-08-08 09:00:06 +02:00
feder-cr a5f3356f94 security: serve the detector bundle from a preloaded map, not a built path
The is_relative_to containment check did not satisfy CodeQL's path-injection
query - the tainted request name still flowed into a filesystem path. Preload
the vendored files into a name->bytes dict at server start and serve by exact
key, so no path is ever constructed from the request. Same behaviour, and no
path for a crafted request to traverse.
2026-08-07 12:34:54 +02:00
feder-cr 07a931c3e3 security: clear the six CodeQL findings on main
- firefox-launch-matrix.yml declared no permissions, so its token
  defaulted wide. Add an explicit least-privilege block (contents: read).
- test_webrtc_realness sdp IP regex used (?:\d|\w)+ and (?:\d|\w|.|:)+ -
  overlapping alternatives that backtrack. Same character sets as \w+ and
  [\w.:]+, which match linearly. Behaviour is identical (v4, v6, mDNS).
- test_detectors_e2e's local vendor server built a path from the request.
  .name already dropped any directory part; make containment explicit with
  an is_relative_to check so the path provably cannot escape the vendor dir.
2026-08-07 12:28:24 +02:00
feder-cr e3219d9271 badge: browser launches at 1.29M 2026-08-07 09:00:07 +02:00
feder-cr d55bc06e68 docs: add Search Console verification file for the Pages site
Google Search Console URL-prefix verification token for
https://feder-cr.github.io/invisible_playwright/ - a public verification
handle, not a secret. Served as a static file by Jekyll.
2026-08-07 04:16:07 +02:00
feder-cr 062fea1d0a ci: trim the heaviest matrices to stop saturating the runner queue
A burst of pushes was queuing more jobs than the account can run at once,
so runs sat pending and got cancelled. Cut the redundant load:
- tests runs the full Python range on ubuntu but only 3.12 on Windows
  (8 jobs down to 5; the scarce Windows runners drop from 4 to 1). This is
  a pure-Python package, so the OS matrix does not need every version twice.
- firefox-launch-matrix, a firefox.exe-launches smoke test, runs one Python
  across the three Windows versions instead of three (9 jobs down to 3).
- user-install moves from a daily to a weekly cron.
No test coverage of behaviour is dropped; only duplicate OS/Python cells are.
2026-08-06 22:22:44 +02:00
feder-cr 0e026eb7f5 ci: cancel superseded tests/e2e runs cleanly with a concurrency group
A burst of pushes left older tests and e2e runs with their queued jobs
cancelled one at a time, which marked the whole run failed even though no
test had failed. Give each workflow a concurrency group keyed by workflow
and ref so a newer push cancels the older in-flight run as a unit; tests
and e2e keep separate groups so they never cancel each other.
2026-08-06 21:34:36 +02:00
feder-cr 0fea48789e ci: build and deploy Pages via Actions instead of the legacy branch builder
The legacy Pages builder started hanging in the building state for this
repo and never finished, so every deploy timed out while the site stayed
on an older build. The Jekyll build itself is fine, so this builds the
docs/ site in Actions and publishes the artifact directly, and Pages is
switched to the workflow build source.
2026-08-06 19:47:24 +02:00
feder-cr e61a60d9ee docs: a playbook pass over the final block of articles
Last block of the review (articles 201-301 alphabetically), completing a
full pass over the site: tightened each section's opening answer, kept the
FAQ and see-also blocks, and linked the primary source (Playwright docs,
MDN, a spec, or the relevant RFC) where a claim rests on one. Eleven pages
were already in good shape and were left untouched. No claim was changed.
2026-08-06 16:10:11 +02:00
feder-cr 6d21f5ffe8 docs: a playbook pass over the next 100 articles
Second block of the review (articles 101-200 alphabetically): tightened
the opening answer of each section, kept the FAQ and see-also blocks in
place, and linked the primary source (Playwright docs, MDN, a spec, the
relevant RFC, or the Python docs) where a claim rests on one. Nine pages
were already in good shape and were left untouched. No claim was changed.
2026-08-06 15:01:35 +02:00
feder-cr 532dd36a79 docs: a playbook pass over the first 100 articles
Went through the first hundred articles against the site's writing guide:
tightened the opening answer of each section so it reads on its own,
made sure the FAQ block and a see-also line are present, and linked the
primary source (MDN, a spec, the relevant RFC, or Playwright's docs)
where a claim rests on one. Eight pages were already in good shape and
were left untouched. No technical claim was changed.
2026-08-06 10:37:47 +02:00
feder-cr 5499a17fcf docs: cite the primary source next to API and protocol claims
Pages that describe a specific web API, spec, or network protocol now
link the authoritative reference (MDN, the WHATWG/W3C spec, the relevant
RFC, or Playwright's docs) inline at the first mention of the claim.
Pages resting on our own measurements are left as they are - no citation
was added where there is no external source behind the statement.
2026-08-06 10:00:16 +02:00
feder-cr d1c2a0fc56 docs: trim the over-long meta descriptions to a length that shows in full
72 pages had a description past ~175 characters, which search engines cut
off mid-sentence in the result snippet. Shorten each to about 150-160,
keyword first, keeping the same meaning. Only the description front matter
changes; titles and bodies are untouched.
2026-08-06 09:48:24 +02:00
feder-cr f2cd7e5424 badge: browser launches at 1.25M 2026-08-06 09:00:07 +02:00
feder-cr dcf56a9b41 guides: turn the category pages into real hubs that link their sections
Each guide landing page listed its topic but linked almost none of the
pages under it, so most articles had no internal link pointing in. Give
every category page a grouped, glossed index of the pages it covers, so a
reader on the hub can reach each one and each page gets an inbound link
from its section. No article bodies change, only the ten landing pages.
2026-08-06 04:01:28 +02:00
feder-cr 62c5649f99 pinning: write the storage-quota formula in ASCII
The quota row showed 1024 with a Unicode superscript two; render it as
1024**2 so the docs page stays plain ASCII like the rest of the table.
2026-08-06 03:37:34 +02:00
feder-cr 489d4f44b3 the wiki converter reads subdirectories, and the links into them
docs/ grew an integrations/ directory with nine pages. The converter listed
only the flat level, so all nine were missing from the wiki AND every link into
them pointed at a page that did not exist: nine dead links across eight pages,
invisible because the pages carrying them rendered perfectly.

A wiki has no directories, so a subdirectory page takes its own slug and a
directory's index takes the directory's name, which is also what a ](dir/) link
needs to land on. Two pages wanting the same flat name is now a refusal rather
than one silently overwriting the other; the case was run and it refuses.

324 pages out, zero unresolved links, against 315 and nine before.
2026-08-06 03:23:01 +02:00
feder-cr 3fcea64f9f document the download deadline, with the number checked against the seal
INVISIBLE_DOWNLOAD_DEADLINE shipped in invisible-core 18.13.0 and appeared in
no user-facing page, so the one way out of a slow-link refusal was reading the
source. The first draft of this section said the engine is about 110 MB and
that the default covers 60 KB/s; the seal says 217 to 238 MB depending on
platform, and the installation page has said ~238 MB all along. A figure that
contradicts the page next to it is worse than no figure.
2026-08-06 03:14:20 +02:00
feder-cr b70947992f the ledger goes to a pull request when protection declines the push
Every publish run on all three repos ended in failure yesterday, on releases
that had already shipped, at the step committing PUBLISHED.json back to main.
It is not a misconfiguration: the required contexts are correct and the matrix
produces them. It is inherent. A required status check cannot have passed on a
commit that does not exist yet, and this token has no bypass where a maintainer
push does, so the direct push can never succeed while main requires checks.

Adding a long-lived PAT would put a credential back into the one job holding
the OIDC one, which is what trusted publishing was adopted to remove. So the
push is tried, and when declined the entry goes to a ledger/<version> branch
and a pull request. Green when the entry is preserved, red only when it is
lost: a red run on a release that shipped is the misreading this replaces.

All three branches were executed, not read: a bare remote with a pre-receive
hook declining refs/heads/main and a stubbed curl. Push succeeds -> notice,
exit 0, no branch. Push declined, PR opens -> error annotation naming the
branch, exit 0. PR also fails -> exit 1.
2026-08-06 02:31:47 +02:00
feder-cr c53f15d9ec docs: SEO/GEO optimization pass over the final 58 older pages
Completes the answer-first optimization pass across the remaining older pages (meta descriptions in range, direct self-contained answers per section, comparison tables where apt, and - applying the methodology's cite-your-sources lever - descriptive-anchor internal links plus a handful of authoritative external citations to RFCs, MDN, the WHATWG DOM spec, Khronos and Playwright's own docs). Conservative: no fabrication, technical claims and honest caveats preserved, no keyword stuffing, one internal symbol and any residual pool detail generalised. With this, every existing page has now had the pass or was written to the methodology.
2026-08-06 01:33:12 +02:00
feder-cr 682983f393 docs: SEO/GEO optimization pass over 120 more existing pages
Extends the answer-first optimization pass (tightened meta descriptions, direct self-contained answers per section, comparison tables where apt, descriptive-anchor internal links) across 120 more of the older pages. Conservative: no new factual claims invented, technical claims and honest caveats preserved, no keyword stuffing, and a couple of pre-existing internal-detail mentions were generalised. The remaining older pages were left for a later pass.
2026-08-06 00:13:14 +02:00
feder-cr fa6cd61648 docs: 55 more guides - AI agents, Playwright APIs, detection surfaces, proxies, comparisons
Adds an AI-agent cluster (computer-use vs DOM agents, MCP browser server, per-seed reproducible and parallel agent identities, the agent timing signal, running headless on a server, persistent sessions, and honest fit notes for smolagents/Stagehand), a Playwright API set (page.route interception and mocking, HAR record/replay, tracing, video, storage_state, cookies, geolocation/permissions per context, http_credentials, context isolation, drag_to, resource blocking, waiting on a response), detection-surface explainers (WebGPU, color-gamut/HDR, Battery, Network Information, Gamepad, sensors, keystroke and mouse-dynamics biometrics, scrollbar width, storage quota), network/proxy topics (residential vs datacenter vs mobile, sticky vs rotating, DNS/DoH leaks, HTTP/3 QUIC, ASN reputation, IPv6, proxy chaining), and comparisons/migrations (Selenium and Puppeteer to Playwright, HTTP client vs browser, and several open-source tools). Every page answers honestly with a real usage example and the caveat that a real-looking browser does not fix IP, quotas, rate limits or behaviour.
2026-08-05 23:44:12 +02:00
feder-cr 48c47a1083 docs: an SEO and GEO pass over ten of the most-linked pages
Applies the answer-first structure across ten pillar and high-intent pages: tightens each meta description into the snippet range, front-loads a direct self-contained answer in the intro and per section (so an AI answer engine can quote a passage in isolation), adds comparison tables where the topic is comparative, and adds descriptive-anchor internal links to existing pages. No new factual claims were invented; a few figures were pulled in from sibling pages that already state them, and one page's description of how fingerprints are generated was generalised. Voice, technical claims and honest caveats are unchanged.
2026-08-05 23:40:20 +02:00
feder-cr 115666fb0b ci: mirror the docs site to the wiki on each release
Adds scripts/build_wiki.py, which renders docs/ into a GitHub wiki checkout (strips the Jekyll front matter, rewrites internal links to the wiki's extensionless form, names each page by its slug with index.md becoming Home.md, and regenerates _Sidebar.md from the parent and nav_order tree), and .github/workflows/publish-wiki.yml, which runs it on a published release or a manual dispatch and pushes the result to the wiki repo. Also generalises two older pages that described the fingerprint generator in more internal detail than the rest of the set.
2026-08-05 21:52:29 +02:00
feder-cr 39a5b4c55d docs: 55 scraping how-tos by category, data type, and technique
Extends the Scraping with Playwright cluster with category guides (real estate, jobs, e-commerce, prices, hotels, flights, classifieds, cars, rentals, reviews, news, directories, events, restaurants, finance, social, forums, images, video, maps, sports, crypto, deals), data-output guides (CSV, JSON Lines, SQLite, Excel, JSON-LD, Open Graph, links, RSS, images, article text, DataFrame, sitemap), and techniques (search forms, map search, autocomplete, date pickers, list-to-detail crawl, lazy images, canvas charts, wizard flows, resume, incremental, 403/429 backoff, load-more, nested pagination, SPA history). Each names the category's real structural challenge and pairs it with an honest stealth caveat.
2026-08-05 20:13:50 +02:00
feder-cr f3b300b43a docs: 53 detection answers, integrations, and tool comparisons
Adds informational answers to the questions people actually search (how do websites detect bots, what is a browser fingerprint, does a VPN stop fingerprinting, can a website detect a VM or a datacenter IP, is changing the user agent enough), the Playwright-specific versions of the same (is Playwright detectable, does it set navigator.webdriver, does it change my fingerprint), a set of integration how-tos (with BeautifulSoup, pytest, asyncio, GitHub Actions, Celery, cron, Xvfb, Airflow, httpx, FastAPI, Jupyter, and an LLM agent), three more fingerprint-surface explainers, and six tool comparisons checked against each project at source. Every page answers honestly, with a real usage example and the caveat that a real-looking browser still does not fix IP reputation, quotas, or behaviour.
2026-08-05 19:52:13 +02:00
feder-cr bfc8144bf9 record 0.6.1 as published
The workflow could not: branch protection declines the Actions token, so the
step that commits the ledger back was refused after a successful upload.
Corroborated against the wheel the index serves, all 28 files matching.
2026-08-05 16:10:13 +02:00
feder-cr e2deaa5059 0.6.1: pin invisible-core 18.13.0
Carries the wall-clock bound on the engine download. Nothing in this package
changes behaviour, which is why it is a patch.
2026-08-05 15:56:02 +02:00
feder-cr 713d501b3a README: the divider is the border line, not the 4px bar
`---` renders as GitHub's hr, which is .25em of solid colour and reads as a
slab. An empty h2 gets the same 1px border GitHub draws under a heading, which
is the line the rest of the page already uses. Inline CSS is not an option
here: the sanitiser strips the style attribute and returns a bare <hr>.
2026-08-05 15:21:54 +02:00
feder-cr 75f407b124 docs: 55 more guides, from navigator tells to scraping how-tos
Expands the guides across every group: browser-identity properties (buildID, platform/oscpu, vendor/productSub, Accept-Language, devicePixelRatio, maxTouchPoints), render surfaces (emoji, font width probing, shader precision, audio sample rate), network and WebRTC (SOCKS5 vs HTTP, IPv6 leak, HTTP/2, TLS-vs-UA, about:webrtc, offline geo), the automation layer (new_page vs new_context, TargetClosedError, dialogs, downloads, uploads, connect_over_cdp, mobile emulation, isTrusted), a set of practical scraping how-tos (pagination, downloads, uploads, cookie banners, popups, screenshots, PDF, waiting, retries, parallel, rate limiting, tables, iframes, shadow DOM, XHR capture, geotargeting), detector explainers, and comparisons verified against each project at source. Each carries a real measurement or mechanism from the notes, not a generic recipe.
2026-08-05 15:14:49 +02:00
feder-cr f3e54a6bbe README: a rule under the Telegram block
Without it the invitation and the first line of the project ran together as one
column of centered text. The rule makes it read as its own thing above the fold.
2026-08-05 13:56:45 +02:00
feder-cr 5a8ef19726 docs: a scraping how-to cluster, from blocked to behind a login
Adds a Scraping with Playwright guide group and eight practical pages: why a scrape gets blocked and in what order to check, headless machine tells, infinite scroll, proxy rotation with a matching exit, sessions behind a login, running in Docker undetected, using the package in Docker, and avoiding bot detection. Each one uses the real two-line launch and carries a specific mistake we measured rather than a generic recipe.
2026-08-05 03:16:18 +02:00
feder-cr 60b3111340 README: badges at the bottom, not above the fold
They are status, not an argument for reading on, and six of them ahead of the
first line of prose is a lot of pixels spent saying nothing new. They sit under
the footer now, where somebody who wants to check the build can still find them.
2026-08-05 03:00:53 +02:00
feder-cr 3193b819ae README: a Telegram header that asks something
It was a badge with a caption under it, which reads as decoration and gets
scrolled past. Now the first thing on the page names the problems people
actually arrive with, then says where to ask, then gives a button to press.

The banner carried about 180px of empty margin it was paying for in vertical
space, so it is cropped to the artwork.
2026-08-05 02:27:19 +02:00
feder-cr 9d9b584324 readme: say what the group is for, not just that it exists
"join the group" tells nobody why they would. The button now says join the
community and carries one line under it naming what gets asked there: proxies,
fingerprints, captchas, and getting more out of the package the reader is
already looking at.

The line is tailored per repository, because "getting more out of
invisible-playwright" is not what somebody reading the profile manager wants to
hear.
2026-08-05 01:57:54 +02:00
feder-cr 20210fddec readme: the group button first, above everything
It went into the badge row, which is not the top: it is the seventh thing in a
line people skim. Now it is the first element of the file, centred, above the
title and above the other badges.
2026-08-05 01:23:03 +02:00
feder-cr b64f800095 readme: the Telegram group as a badge, not a paragraph
Three lines of prose became one button in the header row, next to the others.
A link people have to read past is not an invitation; a button in the badge row is
where anyone already looks.

The SVG is committed here rather than pulled from shields.io, which is the same
choice every other badge in these repos already makes: nothing in the header
depends on a third-party service being up, and the file is the one this repo
serves.
2026-08-05 01:21:41 +02:00
feder-cr 00441aba97 the e2e step printed nothing for 39 minutes, then the timeout killed it
Not a nicety. Python block-buffers stdout when it is a pipe, so
`xvfb-run -a python scripts/run_e2e.py` produced ZERO output between the step
starting and the 40-minute timeout cancelling it on 2026-08-04. A run with no
verdict and no way to tell where the time went, which is the same shape this
repository keeps paying for: a job whose silence is indistinguishable from
progress.

PYTHONUNBUFFERED is set on the step rather than only passing -u, because the
output that matters comes from the pytest subprocess run_e2e.py spawns, and the
variable is inherited while the flag is not.

This does not explain WHY the run exceeded 40 minutes. It makes the next one able
to say.
2026-08-05 00:55:10 +02:00
feder-cr 8ad766a1a3 a removed flag lived on in the one test that actually runs the CLI
`test_release_e2e.py` still called `fetch --force` three days after `--force`
went with four of the six subcommands in 0.5.0. Every run of that file exited 2
on "unrecognized arguments", and the default suite stayed green the whole time
because the test is e2e-marked and therefore deselected. One stale argument, and
three red workflows: `e2e` on main, and `user-install` on two release tags.

Nothing is lost by dropping it. `fetch` verifies every cached tree against the
seal on every run, which is what --force was for, and the test builds a fresh
venv with an isolated cache root, so there is no warm tree to force past. The
rest of that run was green: 138 passed, which is also the first full e2e this
package has had since new_page started applying the profile's context.

A guard already forbade `--force` in the engine-mismatch MESSAGE. It checked what
the package tells a user to run and never what the tests themselves run, so the
flag survived in the one place that executes it. The new gate validates every
`-m invisible_playwright` invocation in the suite against the real parser, rather
than against a list of removed names that the person who forgot the call site
would also have to maintain.

It took two corrections before it worked, both of them shapes this repository has
recorded before: it flagged its own explanatory comment, and it treated `--help`
as a defect because argparse exits for that too. Exit code 0 is help, 2 is a
parse error, and only the second is a bug.

README: the third-party ad banner is gone and there is a link to the Telegram
group instead. Promotional text in a README has to be related to the project
being hosted, which an ad network is not and a group about this work is.
2026-08-05 00:04:50 +02:00
feder-cr 097671495e the job holding the credential stops installing what it does not need
The upload job carries the OIDC token and `contents: write`, which is the widest
permission set in these repositories: it can push to the default branch. It was
installing the dev extra, which pulls pytest, ruff and - in the wrapper - the
whole of Playwright, into exactly that job.

`record` needs the package importable and a build backend. Verified by running it
with `-e . build hatchling` and nothing else: same eight-field entry, same
digests. So that is what it installs.

Nothing about this was broken. It is the surface of the one job worth keeping
small, and it was large because the step was written by copying the line above
it.
2026-08-02 05:01:26 +02:00
feder-cr b096a9db6b the release walk gains its fourth record, the ledger
The index, the tag, the GitHub release and PUBLISHED.json are four independent
statements about one event, and today each of them was wrong about a different
subset: eleven versions had no release, eight had no tag, one tag sat on a commit
building a different version, two versions were missing from the ledger entirely
and twenty-one entries were missing a field.

Every one of those was found by looking at a single pair, one at a time, over
several hours. The walk now checks all of it in one pass.

The ledger dimension costs no API call - it is a file in this repository. The
publish gate compares it to the index too, but only on a release, so a version
published outside the gate stays invisible until the NEXT release is refused by
it. That is precisely how the 2026-08-02 gap surfaced: a tag push refused for a
reason nobody was looking for. Here it surfaces on every run of the install job.

Mutation: an entry deleted from the ledger. Caught, by version, with the
back-fill rule in the failure message - from the artifacts the index serves,
never from the tree.
2026-08-02 04:43:40 +02:00
feder-cr b61f82ef52 fill requires_dist on the entries recorded before it was written
The recorder omitted it until today while the hand-written back-fills included
it, so nine entries of fourteen could say which core that version asked for and
five could not. Read from the wheel the index serves, with the gate's own reader.

The chain is now readable end to end: 0.4.6 -> core 18.6.0, 0.4.7 -> 18.8.0,
0.4.8 -> 18.9.0, 0.4.9 and 0.5.0 -> 18.11.0, 0.6.0 -> 18.12.0.
2026-08-02 04:41:26 +02:00
feder-cr 8357ed7077 record what was published, and commit it back
The manager's first OIDC upload shipped 0.3.1 and wrote no ledger entry: the
upload goes through pypa/gh-action-pypi-publish, which does the token exchange,
while the thing that writes PUBLISHED.json is invisible_core.release. This
workflow has the same shape and would have done the same on its first release.

record after the upload rather than publish instead of it - the action holds the
credential, and twine cannot do the OIDC exchange itself. Recording the tree is
correct in that job and only there: it is checked out at the tag.
2026-08-02 04:19:16 +02:00
feder-cr 9ed0e035b3 the gate armed the hooks before installing what arming imports
Third real defect this workflow has surfaced by running, and all three were
ordering or wiring that only a run can show:

  1. the pin grep looked for `invisible-core==` while both pyprojects write
     `invisible_core==`, so it exited 1 on a correct file;
  2. it ran the suite in a clone whose hooks it never armed, and the suite
     asserts they are armed;
  3. and the arming step went in BEFORE the install, so `install_hooks.py` - which
     imports invisible_core - died on ModuleNotFoundError.

The install is its own step now, in the order ci.yml has had all along: install,
arm, suite. This file simply had never executed, because every tag before it named
a version the index already served and `already-published` short-circuited both
downstream jobs.

That is the fourth workflow in two days found broken at its first real execution
while looking green. The shape is always the same: a job that no-ops is
indistinguishable from a job that passes.
2026-08-02 04:09:10 +02:00
feder-cr 9facf961f5 the publish gate ran the suite in a clone whose hooks it never armed
`test_the_hooks_are_armed_in_this_clone` asserts core.hooksPath is set. A fresh
checkout has none, ci.yml arms them with `install_hooks.py`, and publish.yml did
not - so the gate job went red on that one test while every other workflow in the
repository was green.

Found by running it. This workflow had never executed its gate: the tags before
it named versions the index already served, so `already-published` short-circuited
and both downstream jobs were skipped.

It is also the same defect the 0.4.8 changelog records, three days later and one
workflow over: "only the core workflow ran install_hooks.py, so both consumers
went red on it". A rule that lives in one file gets re-broken in the next one,
which is the argument for the step carrying its reason rather than just its
command.
2026-08-02 04:00:51 +02:00
feder-cr 6c4d431ce9 record the hand-published version in the ledger, from what the index serves
The gate refuses a release when the index carries a version the ledger does not:
"those were published outside this gate, so there is no record of what shipped
under them and a re-release with different bytes would go unnoticed."

That is what today produced. Trusted publishing was not registered yet, so 0.6.0
and 0.3.0 went out through twine by hand, and the path that writes the ledger
never ran for them. The gap was invisible until a tag push hit the gate and was
refused - which is the machinery working, not failing.

The entry is rebuilt from the ARTIFACTS PYPI ACTUALLY SERVES: both files
downloaded and digested with the gate own functions. Not from today tree, which
has moved on - a record saying "this is what shipped" about bytes nobody received
is worse than the gap, because the gap is visible and the lie is not. There is
precedent in this same file: the 0.2.0 entry carries the same note from the
2026-07-25 backfill.

The first attempt wrote four of the nine fields and the gate refused it by name:
"released[8] has no wheel_filename ... it is the only thing in the entry that
corroborates the version string". seal_tag and requires_dist are read out of the
wheel too, so they come from the published wheel rather than from the tree.
2026-08-02 03:52:21 +02:00
feder-cr e4ca2b5027 docs: the pages that describe a CLI, an API and a proxy that all changed
Every proxy example on the site used `socks5://...` with no port. Since
invisible-core 18.12.0 that is refused with a ValueError instead of launching
unproxied, so the examples would now raise: they carry a real port.

The pinning page offered `fonts` and `locale` as things to pin. Neither is a
profile field and both raise `pin key ... is not valid`, so the page was handing
readers two errors. Replaced with fields that exist.

The integration pages that named removed subcommands are corrected. Two that had
their "written against 0.4.6" line bumped to 0.6.0 by the pass are back at 0.4.6:
nobody re-ran those integrations today, and a version banner nobody made good on
is the same defect in a smaller frame.

The scrapy page said `socks5://` works on both routes. It does not. Playwright's
own proxy option reaches Firefox as a browser-level proxy whose filter answers
with host and port only - the credentials it carries are for an HTTP 407
challenge, while the SOCKS handshake reads its credentials from the proxy prefs,
which only this package's own proxy argument writes. Authenticated SOCKS works on
route one and cannot work on route two, and the page now says so.
2026-08-02 02:43:29 +02:00
feder-cr d7bcb56af3 the changelog stopped four releases ago, and nothing was checking
It sat at [0.4.7] while 0.4.8, 0.4.9, 0.5.0 and 0.6.0 were on the index. 0.5.0 is
the release that cut the CLI from six commands to two, the most breaking change
this package has shipped, and a reader upgrading across it had nothing to read.

Six entries added, reconstructed from the git log rather than from memory. Two of
them - 0.3.6 and 0.4.1 - were found by the gate below, not by the reconstruction:
somebody filling gaps by hand fills the recent ones.

The gate is bounded from BELOW by the file itself. This changelog does not reach
back to the first release and does not need to; what it must not do is stop short
of the present. Every version on the index at or above the oldest documented one
needs a heading, no heading may name a version above the first published one that
the index has never served, and the dates are compared against PyPI's upload
because a date written by the person writing the entry is a small lie a reader
can check.

Its first run found three real things and one defect of its own: it flagged
fifteen pre-PyPI versions as invented. Those nine releases existed on GitHub
before this package went to the index and their entries are history, so the rule
now applies only above the first published version. The three real ones: 0.3.6
and 0.4.1 undocumented, and 0.3.5 dated a day before its upload.

Mutation: the 0.5.0 entry deleted. Caught, by name.
2026-08-02 02:01:22 +02:00
feder-cr 0bba55987d every published version needs a release, not just the latest one
The test that guards it read `info.version` - the LATEST - so the moment a
release went out without its page, the next release hid the omission: the check
moved on and the old gap stayed behind it. Its own docstring said "every version"
from the first line while the code checked one, which is the third time in two
days that a claim written beside the code turned out not to be the code.

Measured 2026-08-02: ELEVEN published versions across the three packages had no
release page and EIGHT had no tag at all, three of them published after the
backfill this test exists to protect. All 36 are backfilled now.

The walk found two things a one-call check could not:

  * invisible-playwright 0.4.4 was uploaded from an UNCOMMITTED working tree.
    PyPI records the upload 8 minutes before the only commit that carries that
    version, and the guard it was meant to ship did not make it into the
    artifact. The next release message says so: "0.4.5 - 0.4.4 shipped without
    the import guard and cannot be corrected";
  * its tag pointed at the commit that builds 0.4.5.

Two mutations, both of which changed the code:

  * deleting an OLD release passed. A rate-limit 403 two versions later hit an
    unconditional `pytest.skip`, throwing away the violation already in hand. A
    gate that discards its own findings on an unrelated error is worse than no
    gate, because it reports PASS. It now fails with what it found and skips
    only when it found nothing;
  * unauthenticated, with the limit already spent, it skipped on the FIRST call
    while saying "all clean so far" - green because it never ran, the shape this
    project met three times in two days. That skip now says NONE were checked,
    and CI passes GITHUB_TOKEN so the walk is authenticated: 60 calls an hour per
    runner IP does not cover one call per version across three repositories.
2026-08-02 01:56:35 +02:00
feder-cr a8cbe9be6c the publish gate looked for the pin by the spelling used in the comments
`invisible[-_]core==`, both separators. PEP 503 normalises the two to the same
project, and this pyproject writes the dependency with the UNDERSCORE while every
comment about it uses the hyphen. The gate was written against the prose, so the
grep matched nothing and the step exited 1 on a perfectly correct file - it would
have refused every release, for a reason that had nothing to do with the release.

Found by RUNNING it. Three workflows in two days turned out to be broken at their
first real execution while looking fine: a step reading a version out of a
pyproject that declares it dynamic, a job that had only ever been skipped, and
now this. So each step of this file was extracted from the YAML and executed
against the working tree, with mutations: a pin naming an unpublished version
(refused, 404), the pin removed entirely (refused), a tag not matching the
version (refused), and the correct state (allowed).
2026-08-02 01:10:24 +02:00
feder-cr 01c2512771 0.6.0
browser.new_page() now gives the page the same context as browser.new_context():
the profile's viewport, screen, DPR, colour scheme, locale and timezone. It did
not, because Playwright's new_page forwards to the implementation object, whose
own new_page calls new_context on ITSELF, so the wrapper installed on the api
object was never consulted. Measured in a browser with one seed: innerWidth 1280,
Playwright's stock viewport, against a fingerprint reporting screenWidth 1920 -
and a dark-pinned profile came back light.

That is a behaviour change on the call this package's README, class docstring and
every example use, which is why this is a minor bump and not a patch. A page from
new_page() is now the size the fingerprint says it is.

build_prefs takes the core's single prefs composition, so the three entry points
that used to stack layers in their own order now agree, with the difference
asserted as an exact set.

Also: the engine-mismatch message no longer tells you to run a flag that was
removed, eight dead imports are gone, four tests marked unit stopped making real
network calls and waiting out a ten-second deadline, and CI runs 3.11 through
3.14 on both platforms.
2026-08-02 00:11:40 +02:00
feder-cr eee4bd9fed build_prefs takes the core's composition, and the pin moves with it
The third of the three places that stacked layers on top of
translate_profile_to_prefs in its own order. The core composes it now; what stays
here is this path's delivery and its two decisions - the cloak, which only
Windows and macOS need, and which generator draws the pointer path.

max_seconds_for is applied HERE rather than passing humanize through, and the
test that pins it says why: humanize=0 with the binary engine selected is a cap
of nothing, not a request to disable motion, and passing it straight to the core
would make it falsy and switch the generator off. That is a different browser,
and it is the kind of edge a delegation quietly changes.

Four tests, one of them the wrapper's arm of the comparison the core added: the
same seed through build_prefs and through get_default_stealth_prefs must produce
the same prefs, with the allowed difference asserted as an exact set. It lives
here because this package pins invisible-core== exactly and the core's suite
cannot import a consumer.

Mutations: humanize passed through unmapped, and the cloak applied
unconditionally. One test each.
2026-08-01 23:09:04 +02:00
feder-cr 08cc7a90c6 publish from a tag through OIDC, and run 3.13 and 3.14
Uploaded by hand until now, from one machine, with a long-lived PyPI token on
it. The credential is the pypi environment's OIDC trust relationship now, minted
per run, and the upload job is behind a gate that checks three things a person
had to remember: the tag names the version being built, the invisible-core== pin
is already on the index, and the suite passes - a tag push does not trigger the
ordinary test workflow, so without that last one tagging is a way to publish code
no job has run.

The matrix covers every version requires-python promises. 3.13 and 3.14 have
never run here.

Before the first run this needs a GitHub publisher registered on PyPI (owner
feder-cr, repo invisible_playwright, workflow publish.yml, environment pypi).
Until then the upload fails with invalid-publisher, which is the correct failure.
2026-08-01 22:21:45 +02:00
feder-cr c735a975b3 dead imports, a message naming a removed flag, and four unit tests doing real work
Eight imports in launcher.py and async_api.py were unused. The ninth,
IANA_TO_POSIX_TZ in _session.py, is not: the import IS a probe that turns an old
core into a message about a version instead of a message about a symbol. It gets
a noqa with the reason, not a deletion.

_engine.py told a user with an engine mismatch to run `fetch --force`, three days
after that flag was removed with four of the six subcommands. A test pinned the
old string, so both were wrong together. The test now requires the fix line to
name a command the CLI actually has and no flag at all, which is a check the
string could not fail on its own.

Four tests marked unit drove __enter__ with Playwright mocked and made two real
network calls each - the geo lookup and the locale lookup, the second imported
inside the function, so patching the launcher's namespace does nothing for it -
then sat out the lifetime guard's full 10s deadline waiting for a browser tree
that a MagicMock never produces. 45.6s -> 0.34s for that file.

utcfromtimestamp returns a naive datetime and is deprecated since 3.12, which
matters now that the CI matrix is about to reach 3.14.

pytest-mock and responses were declared and never used by any test in this
package. ruff was NOT declared and CI pip-installed it unpinned on every run: the
tool that gates every push could change under us between two pushes. It is in the
dev extra now, in all three, and CI uses that one.

The suite-boundaries docstring said ten shims and named two modules that are not
shims by its own derivation, three lines below it.
2026-08-01 22:10:00 +02:00
feder-cr 060914971d browser.new_page() opened a page with the stock viewport, not the profile's
The wrapper installs the profile's viewport, screen, DPR, colour scheme, locale
and timezone as defaults on browser.new_context. new_page never went through it.

Playwright's Browser.new_page forwards to the IMPLEMENTATION object, and the
impl's own new_page does `context = await self.new_context(**params)` - itself,
the impl - so a wrapper installed on the api object is never consulted. Read on
the installed Playwright and then measured in a browser: with the seed the e2e
uses, new_page gave the page innerWidth 1280, Playwright's stock viewport,
against a fingerprint reporting screenWidth 1920, while new_context gave 1906.
A dark-pinned profile came back light on the same path.

new_page is the call in the README, in the class docstring and in every example
this package ships. A viewport that contradicts screen.width is not a missing
feature, it is the kind of internal inconsistency the package exists to remove.

Both APIs, because they have drifted apart before. Written through the public
new_page rather than by reaching into the impl, so Playwright's own ownership
wiring - closing the page closes the context it owns - stays intact instead of
being reimplemented against private attributes. The about:newtab settle applies
to this tab too: it is the same race, and a caller doing `page =
browser.new_page()` goes straight to goto(). That 0.4 is now one named constant
shared by both APIs.

Four unit tests and one e2e. The unit tests fail with the patch removed (three of
four); the e2e fails in a real browser with the exact 1280-vs-1906 difference,
which is what turns this from a reading of Playwright's source into a measurement.
2026-08-01 21:45:33 +02:00
feder-cr d737cf7d68 ruff: select F601 beside F821 and F811
A dict literal with a repeated key silently keeps only the last one and Python
does not warn. It cost an hour in the core, where a contract row added under a
key that recurred later in the same literal was discarded without a word while
the test it was meant to satisfy kept failing and naming that very entry. Zero
violations in the three repos when it went in.
2026-08-01 21:22:46 +02:00
feder-cr 6d6b45c112 badge: browser launches at 1.16M 2026-08-01 20:08:38 +02:00
feder-cr 3bfeb9535f badge: browser launches at 1.16M 2026-08-01 19:56:34 +02:00
feder-cr 9e7be64592 ledger: 0.5.0 2026-08-01 19:36:40 +02:00
feder-cr 0477dcdf3c release: 0.5.0 - six commands become two, and fetch does the checking
The CLI was fetch, fetch --force, path, version, clear-cache and doctor. Every
one of them was a step somebody had to know to take, in a package whose whole
promise is that the browser handles itself. None of the behaviour is gone.

doctor now runs inside fetch, on every run, before the download rather than
after. That ordering is the point: a cached tree that no longer matches the seal
is the case worth catching, and it is invisible to a "download if missing" that
only looks at whether a file exists. It was the thing most worth doing and the
thing least likely to be typed, which is the worst combination a subcommand can
have.

--force is unnecessary once every run verifies: a tree is replaced because it
does not match the seal, not because a flag was passed.

path is the last line of fetch's stdout, so `$(invisible-playwright fetch)` is
the scripting form - and unlike path it guarantees the thing it names exists and
matches. The mismatch report goes to stderr so it can never end up inside a
captured path.

clear-cache is deliberately NOT folded in. The cache root is shared with
invisible_firefox, so pruning trees no seal points at would delete the other
product's engine on a machine running both. `version` prints the location
instead; removing a directory is a thing a person can do without a subcommand.

The tag argument went with them. The seal decides which engine a build runs and
verify_engine refuses anything else, so a tag on the command line could only ever
name something that would then be rejected.

Breaking for anybody scripting the four that are gone, which is why this is a
minor rather than a patch. They fail loudly rather than being ignored, and a test
asserts that.

The surface is asserted as an EXACT set, not a subset: a subset check passes
while the CLI grows back one convenience at a time, which is how it reached six.
Three mutations: the verification removed, a third command added, and a line
printed after the path.

426 passed.
2026-08-01 19:36:15 +02:00
feder-cr c407928dd2 readme: drop the sponsor heading, keep the sponsor
The block reads fine without a section title above it, and the title was the first thing on the page.
2026-08-01 19:27:44 +02:00
feder-cr 2942dc4ac4 docs: the launches badge shows a real number again, and links where it lives
The badge SVG has read a hand-written 1M since it was made. It is now rendered
from the snapshot data: the total counted before 22 July plus the live counter,
which is a sum, and a download count cannot be transferred to a new asset.

The link went to the old release, whose count froze on 22 July when the ping
URL stopped resolving to it. It now points at the release the binaries actually
GET.
2026-08-01 19:14:49 +02:00
feder-cr ff5afb86ba ledger: 0.4.9 2026-08-01 18:53:10 +02:00
feder-cr 29e3dadb11 release: 0.4.9 - the pin follows the core past a shape that lasted one release
invisible-core 18.10.0 classified a 404 on the engine archive instead of raising a
bare HTTPError, which is issue #51, and 18.11.0 removed the part of it that ran
`pip install --upgrade` on the caller's environment. A library that installs
things while it is running mutates an environment nobody asked it to touch,
ignores whatever lockfile chose that version, and inside a container rewrites an
image layer at runtime.

What reaches a user of this package: a 404 on the engine now says whether the
release was retired on purpose - in which case no retry will find it and the
message carries the upgrade command - or whether the tag is current and the fault
is ours.

Nothing here changed. This release is what lets an install resolve that pair.

428 passed.
2026-08-01 18:52:56 +02:00
Federico 22f86499a6 docs: add GitAds sponsor snippet 2026-08-01 02:46:17 +02:00
Federico b6bf924edc chore: add GitAds verification code 2026-08-01 02:41:53 +02:00
Federico f505113151 docs: remove sponsor badge 2026-08-01 02:08:08 +02:00
Federico b324b27723 docs: add sponsor badge 2026-08-01 02:01:29 +02:00
feder-cr af895b9b25 docs: generate BreadcrumbList JSON-LD from a Jekyll include, not per-file
Every article had a hardcoded <script type="application/ld+json">
block right after its front matter. On the built Pages site this
renders invisibly in <head> as intended. On github.com's own blob
view - the exact page type this project has spent this whole session
converting README links toward, for its dofollow authority - GitHub's
markdown renderer doesn't execute <script> tags but also doesn't hide
them: it printed the raw JSON as visible text at the top of every
single article, right above the actual content.

Moved the breadcrumb generation into docs/_includes/head_custom.html,
the theme's documented custom-head extension point (a plain Liquid
include, not a Jekyll plugin, so it's fully compatible with GitHub
Pages' safe build mode). It reads page.parent/page.grand_parent/
page.title from front matter and emits the identical BreadcrumbList
schema into <head> at build time - same output on the live site,
nothing left in the markdown source to render badly on GitHub.

Verified the new template reproduces every existing hardcoded block
byte-for-byte by simulating it in Python against all 82 files that
had one, before removing any of them. That check caught two
pre-existing, unrelated bugs along the way: cross-origin-iframe-
unreachable.md was missing its breadcrumb script entirely, and
slow-browser-launch-timeout-budget.md's script pointed at a 404'd
slug (guides-testing-and-troubleshooting.html instead of the real
guides-testing-troubleshooting.html) and its front matter was
missing grand_parent: "Guides", which the sidebar nav depends on.
Both are now fixed automatically by the shared template; the missing
grand_parent field is also corrected directly in front matter.

Stripped the now-redundant hardcoded script block from all 82 files
that had one.
2026-07-31 22:02:37 +02:00
feder-cr 07c3e85ad9 docs: why a plain Python requests scraper gets blocked before it sends a header
New article for the non-browser scraping audience, tool-agnostic
rather than Playwright-specific: python-requests carries its own TLS
fingerprint via Python's ssl/OpenSSL stack, distinct from any real
browser's, and a site checking JA3/JA4 rejects the connection before
any header, cookie, or user agent the script sets even exists as part
of it. Names curl_cffi as the legitimate impersonating-client fix for
non-JS scraping, and points to a real browser for anything that needs
JavaScript execution. Cross-linked from ja3-ja4-tls-fingerprint.md,
the browser-side version of the same argument.
2026-07-31 21:45:42 +02:00
feder-cr e57be7b945 docs: why web scraping keeps getting blocked even with good proxies
New article targeting the broad 'web scraping getting blocked' search
space directly, tool-agnostic rather than Playwright-specific, since
that space is dominated by generic proxy/delay advice from scraping-
API vendors. The angle this site can argue better than that content:
a proxy only changes the exit IP, and a growing share of sites cross-
check that IP's country against the browser's own timezone, language
and number formatting - a mismatch that survives every proxy quality
upgrade because proxy quality was never the variable it depends on.
Summarizes and points to the existing Playwright-specific field-by-
field breakdown in timezone-proxy-mismatch.md for readers who want
the full detail, and is cross-linked from there.
2026-07-31 21:32:34 +02:00
feder-cr e53308b67d docs: invisible_playwright vs playwright-with-fingerprints, whose device and whose engine
New comparison article: playwright-with-fingerprints injects values
sourced from a remote paid service (FingerprintSwitcher) rather than
generating them locally - a genuinely different answer to where a
fingerprint comes from. Its own README states three separate facts
worth naming: Windows-only, pinned to a specific and already-ageing
Chromium build (146.0.7680.80 against a current default several
versions ahead), and self-described as beta. Same injection-layer
limitation as every other page-level tool on this site, plus an
external-service dependency none of the locally-seeded approaches
have. Cross-linked from vs-fingerprint-suite.md and added to the
top-level README's Related projects list.
2026-07-30 15:58:21 +02:00
feder-cr 50e9d92be7 docs: why automating the login form is riskier than reusing a session
New article from a real automation pain point rather than a tool-status
check: the login flow is the most heavily monitored sequence on most
sites, and Playwright's storage_state lets a script skip it entirely
by reusing a session captured from a real login. Covers the one hard
requirement that makes this safe rather than a false sense of
security: the fingerprint replaying the session has to match the one
that created it, since some sites bind a session to more than the
cookie. Cross-linked from persistent-profiles.md as the storageState
half of the same identity-continuity question.
2026-07-30 15:16:55 +02:00
feder-cr bfe801fede docs: Playwright's Chromium-vs-Chrome codec gap closed in 1.57, Widevine didn't
Significant, verified update to a cornerstone comparison article. As
of Playwright 1.57, the default managed Chromium binary (no channel
set) is Chrome for Testing, not the old custom-compiled open-source
build - confirmed against Playwright's own release documentation.
Checked directly in a live session: H.264 and AAC now play on the
current default, closing the codec half of this page's original
argument. Widevine does not: requestMediaKeySystemAccess still
rejects with NotSupportedError, because Chrome for Testing carries
Chrome's codecs but not its DRM module. Rewrote the article around the
surviving Widevine-specific gap rather than the now-partially-outdated
codec claim, and propagated the same correction to the two other
articles that repeated the old 'Chromium has no H.264' framing
(firefox-vs-chromium-antidetect.md, vs-patchright.md).
2026-07-30 14:22:04 +02:00
feder-cr 476e2f9816 docs: a real CreepJS score from an unmodified session, tightly scoped
Second live-detector run this session. CreepJS's headless module
returned 0% headless / 0% stealth (25% 'like headless' partial score)
against a stock Playwright Chromium session with no stealth layer
applied at all. Reported only the safe, aggregate percentages -
deliberately excludes everything else CreepJS collected in that run,
including real network-identifying data that has no place in a public
article. Scoped explicitly as one session's result, not a general
claim about Playwright's default detectability.
2026-07-30 13:56:49 +02:00
feder-cr e3d7bf87b0 docs: a real, live run against sannysoft, carefully scoped
Ran a live Playwright-driven Chromium session directly against
bot.sannysoft.com via the available browser tooling rather than
describing the page from memory. All eleven group-one rows passed,
including WebDriver and WebDriver Advanced, through a genuinely
native, unpatched getter reporting false on its own. Added as a
tightly scoped observation - explicit that this describes one
directly-checked session, not a guarantee about every Playwright
launch configuration, consistent with the page's own point that
clearing this table is the easy part regardless of how it happened.
2026-07-30 13:44:57 +02:00
feder-cr ec7ab894f5 docs: checked a circulating claim about a Playwright global marker, found nothing
A claim repeated by several current SEO-content pages describes a
'window.__playwright' marker as a Playwright-side equivalent of
Selenium's cdc_ variable. Checked directly in a live Playwright-driven
Chromium session by enumerating every own property on window: no such
property, and nothing resembling it. Updates the FAQ answer to state
this as a checked finding rather than a vague 'every stack has its own
artefacts' non-answer, consistent with the page's own point that a
claim should be verified by opening a real session rather than
repeated from a description of one.
2026-07-30 13:29:46 +02:00
feder-cr 2d9ae0ea5b docs: invisible_playwright vs fingerprint-suite, same generation model different layer
New comparison article: Apify's fingerprint-suite generates a coherent
fingerprint with a Bayesian network, close to this project's own
seed-to-fingerprint approach, then injects it via Playwright/Puppeteer
into a running Chromium or Firefox instance - same generation
philosophy, different layer. The injection mechanism carries the same
overwrite-signature limitation as every other page-level tool covered
on this site, independent of how realistic the underlying values are.
Cross-linked from vs-playwright-stealth.md and added to the top-level
README's Related projects list.
2026-07-30 01:51:42 +02:00
feder-cr 94faa93cba docs: rebrowser-patches independently converges on Patchright's CDP fix
New comparison article: rebrowser-patches fixes the same Runtime.enable
CDP leak Patchright addresses, on the same protocol, by close to the
same technique (manual execution-context management instead of the
automatic call), arrived at with no shared code between the two
projects. Neither reaches Firefox; both explicitly scope themselves
away from fingerprinting per their own docs. Generalized the vendor
names their own README uses for the detection side, per the site's
naming ceiling. Cross-linked from vs-patchright.md and
playwright-stealth-levels.md's existing passing mention, and added to
the top-level README's Related projects list with the same treatment
as the other five entries.
2026-07-30 01:39:01 +02:00
feder-cr 5736c9769b docs: pyppeteer's own maintainer recommends Playwright, and why that's not just staffing
New article: pyppeteer's own README opens with an unmaintained notice
pointing to playwright-python. Unpacks why the recommendation lands
on Playwright specifically rather than a more active Puppeteer fork -
Playwright's driver abstraction covers three engines through whatever
protocol each one actually supports, a wider foundation than a
CDP-only port can be extended into. Separates that maintenance
argument from the unrelated question of whether switching drivers
fixes automation detection on its own (it doesn't). Added to the
top-level README's Related projects list and cross-linked from
vs-playwright-stealth.md, same authority treatment as the other four
comparison entries.
2026-07-30 01:21:20 +02:00
feder-cr f773022a6f docs: fake-useragent's 2026 archive, plus a playwright-extra clarification
New article: fake-useragent (Python, 4k+ stars) was archived by its
own maintainer in 2026, verified directly via GitHub's archive flag -
the strongest possible signal, no inference needed. Covers the
practical break (frozen string database) and the more durable point:
a realistic string was always one claim among many that get
cross-checked, so a stale database makes the tell cheaper to find
rather than creating a new problem. Cross-linked from
playwright-user-agent.md and selenium-stealth-unmaintained.md.

Also adds a one-line clarification to the puppeteer-extra-plugin-stealth
article: playwright-extra ships from the identical repository, so a
reader searching that term specifically gets a direct answer instead
of having to infer it.
2026-07-30 00:47:32 +02:00
feder-cr 8c6652bb7a docs: AI agent detection stopped being theoretical in 2026
Adds a section to the existing AI-browser-agents article covering a
real, current development found through keyword research: a
commercial fingerprinting vendor shipped a dedicated AI agent
detection product in early 2026, and recent academic work has been
building multi-layer fingerprints specifically targeting LLM-driven
browsing sessions. Reinforces the article's existing agent-timing-
signal section with a concrete, dated reason it now matters at
production scale rather than as an edge case.
2026-07-30 00:23:22 +02:00
feder-cr 0d1236b244 docs: add the two new comparison articles to the top-level Related projects list
puppeteer-extra-plugin-stealth and selenium-stealth were written up
this session but only cross-linked between docs pages, missing the
same top-level README authority treatment every other comparison
article already gets. Added both under the Chromium side list,
matching the existing format and tone.
2026-07-30 00:16:48 +02:00
feder-cr e6a2215544 docs: selenium-stealth's real maintenance status, verified
Second keyword-research-driven article this batch. selenium-stealth
still appears in current tutorials for hiding Selenium automation;
its actual repository has had no commits since December 2021, over
four and a half years, verified directly. Same structure as the
puppeteer-extra-plugin-stealth piece: separates the staleness question
from the durable architectural ceiling shared by every page-level
property-patching approach. Cross-linked from cdc-variable-explained.md,
which covers the adjacent Selenium-specific detection surface.
2026-07-30 00:11:17 +02:00
feder-cr f69f26a45e docs: puppeteer-extra-plugin-stealth's real maintenance status, verified
New comparison article targeting a real, currently-searched keyword
gap identified through explicit keyword research: 'puppeteer stealth'
carries heavy search volume dominated by scraping-vendor content, but
the actual home repository behind the plugin (berstend/puppeteer-extra)
has had no substantive commits since July 2024, verified directly
rather than assumed. Separates the maintenance question (a frozen
patch list against evolving detection) from the durable architectural
ceiling (page-level property patching, current or not, never touches
TLS, GPU output, or font rendering). Cross-linked from
vs-playwright-stealth.md at its existing puppeteer-extra-plugin-stealth
mention.
2026-07-30 00:05:06 +02:00
feder-cr ad8827f397 docs: a packaged Firefox build that launched fine but Playwright couldn't drive
New article: a browser build passing every manual smoke test
(launch, screenshot) still failed for Playwright specifically, with
TargetClosedError and a chrome://juggler load failure. Root cause was
a packaging manifest that assembled the shipped archive from an
explicit file list and never listed the automation-layer directory
alongside its sibling component, even though the developer build
output had it. Every existing gate tested the developer output path,
never the actually-packaged artifact a user receives. Fixed with one
manifest entry plus a gate that drives the real packaged binary
instead of a proxy for it. Cross-linked with the other two release-
gate-blind-spot articles from this session.
2026-07-29 23:21:38 +02:00
feder-cr 82f148c9d3 docs: why a per-request timeout didn't bound an occasionally slow launch
New article: a launch-time network resolution step tried up to three
endpoints in sequence, each individually timed out and working
correctly, with no bound on the sequence as a whole. One launch in six
hit the worst case. Fixed with a shared budget across the step rather
than tuning any single timeout, and a failure message that reports how
many endpoints were reached before the budget ran out. Cross-linked
from orphaned-browser-process-windows.md as the same lesson in the
same layer: individually correct pieces, no bound on their sum.
2026-07-29 23:10:37 +02:00
feder-cr f082f46b0f docs: a second, distinct gap behind the same green WebRTC gate
The article already covers assertions too weak to fail on a dead
feature. Adds the separate, later discovery that even after fixing
those assertions, the test suite had been exercising a config the
wrapper's own shipped baseline never actually turned on by default -
same outward symptom (green gate, feature unavailable to real users),
opposite cause. Fixed by making the baseline match what the test
already assumed instead of the reverse.
2026-07-29 22:31:01 +02:00
feder-cr 496be20fe9 docs: why a killed test runner leaks Firefox processes on Windows
New article on the automation-layer side of process management: a
killed parent process never runs any in-process cleanup code, so a
job-object-based fix is needed at the OS level rather than in a
try/finally. Covers the wrong first diagnosis (the exception path
never actually leaked, measured by controlled A/B before trusting
the fix), the correct one, exact token-based process identification
to avoid killing a concurrent session's browser by mistake, and a
vacuous test that passed with its own guard removed. Cross-linked
from how-to-test-bot-detection.md as an example of the same false-
pass trap showing up inside a test rather than a fingerprint check.
2026-07-29 20:57:48 +02:00
feder-cr 4bd2d02668 docs: the macOS font gap that needed two separate fixes, not one
Adds the concrete macOS story behind the article's brief 'the same
check runs in CI, and it has passed there too' line: a missing
CoreText hook (found by code review, no local Mac available) and a
build-configuration default that silently disabled the whole bundled-
fonts subsystem on that one platform, which also compiled out the
hook that had just been added to fix layer one. The first fix looked
complete and was not; only an automated run on the real OS caught the
second layer.
2026-07-29 20:51:43 +02:00
feder-cr f27e2fb81b docs: how the window cloak was validated, and a crash it fixed for free
Adds the concrete validation behind the 'third option' section: the
window-hiding approach was latent-broken for several releases on
Windows (a thread-vs-process desktop-inheritance mistake, invisible
to the test suite because it happened to use the correct mechanism
itself) and never worked on macOS at all. Also documents an earlier,
unrelated-looking cross-process-navigation crash that the current
window-level cloak closed as a side effect, because it stopped
splitting a browser's processes across two desktops.
2026-07-29 20:46:11 +02:00
feder-cr 951863b94b docs: a closed cipher-drift bug as a worked example on the TLS page
One extra cipher suite in our build's ClientHello, versus stock Firefox
of the same version, traced to a channel-gated pref default that had
drifted out of sync with the currently shipped upstream release - the
TLS code itself was never touched. Fixed by forcing the pref to the
upstream-current default; JA3/JA4 and the full handshake came back
byte-identical to stock. Reinforces the article's real-browser claim
with a concrete measured gap and fix, and the maintenance point that
follows from it.
2026-07-29 20:39:44 +02:00
feder-cr 9493764cb3 docs: a closed enumeration-vs-rendering bug as a worked example
Adds a real, closed example to the bundled-fonts article: a .ttc
collection font on Linux enumerated correctly while rendering the
wrong face, because the table-reading code never checked for the
TTCHeader ttcf marker. Fixed by reading the requested face's own
offset from the collection directory instead of assuming a single-face
file. Ties directly into the article's existing gap list and the
project's enumeration-is-not-enough point, with before/after metrics.
2026-07-29 19:58:08 +02:00
feder-cr dedc60e411 docs: three Playwright failures on one iframe, one cause, two wrong fixes first
New article, mined from 71-bug-archive.md (a source file not touched before -
distinct from 70-known-bugs.md, which holds still-open bugs excluded by the
established rule; this archive holds only resolved ones, so it doesn't carry
the same disclosure risk).

The real content: content_frame() returning None, frame.evaluate() throwing
a cross-origin permission error, and frame_locator() timing out all read as
separate bugs on a cross-origin iframe, but share one root cause - Firefox's
site-isolation strategy can put that iframe in a separate process, and the
driver's parent-side frame tree only gets a placeholder for it, missing the
exact reference each of the three operations needs.

Kept the honest part of the story too: the first two fix attempts were
wrong, and worth explaining why rather than skipping past. One wrapped a
property read in try/catch for an exception that never fires, because the
property isn't exposed to that scope at all - nothing to catch. The other
compared two identifiers that were both unreachable from where the check
ran, so the comparison could never distinguish the broken case from the
working one. Neither fix was tested against a reproduction that failed
before and passed after; both shipped on a plausible theory alone.

Generalized away everything specific to the source incident that rule 13
excludes - a real target site's name, a reporter's GitHub username, and a
third-party consent-platform vendor name are not in the published version;
the technical mechanism (cross-origin iframe, site isolation, frame tree)
carries the whole article without any of them.

Wired into The Automation Layer (nav_order 9), cross-linked from
debugger-timing-detection.md's opening (same frame-tracking machinery,
different failure mode).
2026-07-29 19:46:10 +02:00
feder-cr bb6fc67b91 fix: exclude the thin README stub from the sitemap
docs/README.md is a 4-line pointer at the real site, kept only so browsing
the folder on github.com shows something. It was still being submitted in
sitemap.xml as thin, near-duplicate content of the real homepage
(index.md), which the sitemap already lists correctly at the site root.
jekyll-sitemap respects sitemap: false per page - added it here, nowhere
else needed it.
2026-07-29 10:16:10 +02:00
feder-cr 9e7b9fc1e2 docs: fix the last .html leaks and link every orphan page
Scanned all 83 pages for two things: relative .html links (dead on the
blob view, since blob serves the raw .md) and pages receiving zero inbound
links from sibling articles.

12 .html links found, all in the four Documentation pages
(installation/quickstart/configuration/cli-reference.md) - written before
the blob-vs-Pages distinction was found, so they'd missed the fix applied
to the hub pages earlier. Fixed the same way: .html to .md.

7 real orphan content pages found (three more flagged - README.md,
index.md, integrations/README.md - are entry points, not orphans, and
don't need inbound links). Added one genuine in-body link to each from a
naturally related sibling: bfcache-pageshow-persisted and
execution-context-destroyed from the detection checklist's automation-tells
section, measuretext-textmetrics-fingerprinting from canvas-fingerprint-noise
(same canvas element, different surface), permissions-api-consistency from
headless-vs-headful's observable-differences list, service-workers-storage-partitioning
from web-workers-fingerprint's ServiceWorker mention, vs-playwright-stealth
from tostring-native-code-detection's engine-argument section (a concrete
example instead of the abstract one), webrtc-ice-candidate-spoofing from
webrtc-leak-proxy's synthesized-candidate section.

Re-scanned after: 0 .html links, 0 real orphans.
2026-07-29 03:12:36 +02:00
feder-cr f77e2d5873 docs: BreadcrumbList structured data, not FAQPage - FAQ rich results are dead
Checked before building: Google deprecated FAQ rich results entirely on
2026-05-07, extending the August 2023 restriction (which had already limited
them to government/health sites) to nobody at all. Building the FAQPage
JSON-LD I'd planned would have added real engineering work for zero visible
benefit, so stopped before writing it to any file.

BreadcrumbList is still fully supported and fits this site better than FAQ
ever did: the hierarchy is already sitting clean in every page's own front
matter (parent/grand_parent), so this needed no markdown parsing at all,
unlike the FAQ approach would have. Generated a Home > Guides >
[sub-category] > [article] trail (or the 3-level Home > Comparisons/
Documentation/Integrations > [page] version) for every one of the 77 pages
that has a parent field, using the same title-to-URL mapping the site's own
nav already relies on.

Verified: all 77 generate syntactically valid JSON, the site verification
script still passes on all 83 pages (title==H1 unaffected, since this
inserts between front matter and the H1, touching neither), and no
forbidden names or secrets in the diff.

No GitHub Pages plugin needed - this is why it went in the page body as
inline JSON-LD rather than through a theme layout override: GitHub Pages'
safe build mode only allows a fixed plugin whitelist, so anything requiring
a custom Jekyll plugin to parse content at build time was off the table.
2026-07-29 01:55:34 +02:00
feder-cr 9fade94c7a docs: two openings led with another article instead of their own topic
Audited every article's H1 and opening paragraph specifically against how
Google's search snippet gets built when it ignores GitHub's generic blob
meta description: the first ~155 characters have to stand on their own,
because that's roughly the truncation point.

Found two pages, both mine, that opened by crediting a companion article
before saying what the page itself is about - bundled-fonts-cross-platform.md
led with "[Why headless browsers render different fonts] covers the
problem," and canvas-webgl-cross-platform-consistency.md did the same with
two links. Truncated to a snippet, both read as being about a different
page entirely. Reordered both to state their own value first, then point to
the companion piece afterward - same links, same content, just not the
first thing a truncated snippet shows.

Checked all 83 pages for this specific pattern (first line opening with a
markdown link) - only these two had it. Two other pages that looked flagged
by length alone (execution-context-destroyed.md, permissions-api-consistency.md)
turned out fine on inspection: both open with a code block that a naive
first-paragraph extraction stops at, but the real prose right after reads
well as a snippet on its own.
2026-07-29 01:45:36 +02:00
feder-cr d0e8e3b64a fix: hub pages linked .html on github.com, which is a 404 there
docs/index.md, documentation.md, guides.md and comparisons.md linked to
each other and to individual articles with the .html extension - correct
for the published Pages site, dead on GitHub's own blob view of the same
file, since blob serves the raw .md and .html simply does not exist there.
Verified: guides-browser-identity.html was a confirmed 404 on github.com
before this fix. Switched all four to relative .md links, matching every
other page on the site.

Also converted the individual article links in README.md's own guide list
and Related Projects section - previously all pointing at
feder-cr.github.io, which GitHub marks rel="nofollow" on every outbound
link (verified against the rendered page). Relative docs/x.md links from
README instead stay inside github.com, carry no nofollow (verified against
same-domain links elsewhere on the page, e.g. the LICENSE link), and put
the repo's own domain authority behind ~20 individual articles directly
from the single highest-traffic page in the project. Left the one link to
the bare Pages homepage as-is, since that's the genuine pointer to the
actual searchable site experience, not a page competing for the same
keyword as its own blob copy.
2026-07-29 01:19:10 +02:00
feder-cr 64f00d94ea the README made four claims nothing checked, and one of them was wrong
Audited by listing what the page asserts and asking which had a test. Sizes did.
CLI subcommands did, in both directions. The rest did not.

The engine version. "Firefox 151.0" in a badge alt text and again inside the
generated docs/badges/firefox.svg that nobody re-reads. Same defect as the
firefox-15 that was shipping in the profile manager's status bar, in a more public
place: a number the seal owns, copied, waiting for the next engine roll.

The supported platforms. Five archives in the seal, five platforms on the page,
nothing tying them together. A platform claimed but not built is a download that
404s for whoever believed the page; one built but not claimed is quieter and still
wrong.

The examples. Seven fenced python blocks and not one had ever been compiled. A
stray comma there costs a reader their first five minutes.

And the field count, which was simply wrong. "~400 fields" measured against a real
profile: 197 leaves on the most generous count, which treats every bundled font
name as a field; 155 prefs emitted; 157 including the stealth baseline. No reading
supports 400. Corrected to ~200 - the number, not the sentence.

Two of the four gates failed their own first mutation. The platform check accepted
a bare family name, so deleting the whole "macOS arm64 / x86_64" claim left it
green - the word macOS still appears in the Gatekeeper note two lines down, and a
passing mention satisfied it. Tightened to exact phrases. The other apparent
survivor was a bad mutation of mine: I broke a line inside a diff block and
expected the python-block scanner to see it.

428 passed.
2026-07-28 21:33:56 +02:00
feder-cr cd904bcdfb Revert "docs: prep_recaptcha was shipped and completely undocumented"
This reverts commit 9d21ce019b, on request.
Removes both additions cleanly: the "reCAPTCHA cookie pre-seeding" section
in configuration.md and the "Why this had to be built in Python, not C++"
section in recaptcha-v3-score.md. Nothing else touched either file since,
so this is an exact inverse.
2026-07-28 21:03:25 +02:00
feder-cr 5ba890bcc6 docs: the reason that produces no error anywhere, from the internals reference
Sixth reason on the list, from mining 90-firefox-internals.md: a preference
set correctly in the parent process can be silently empty in a content
process, and it's specific to string preferences. Numeric and boolean
preferences generated through Firefox's static-preference mechanism get
baked into a shared snapshot every content process receives at launch;
string preferences don't go through that snapshot unless explicitly allowed
through, and the failure mode is an empty string with no error rather than
anything that points at the cause.

Framed around what people actually hit this on - a spoofed string value,
not a flag or a number - since that's the case where "it works in
about:config but the page sees nothing" costs the most time. The existing
FAQ entry ("does about:config show the truth... not always what a content
process is using") already gestured at this without explaining the
mechanism; this section is what it was gesturing at.
2026-07-28 20:45:50 +02:00
feder-cr 52591e5524 docs: a measured example of noise failing a single-read check, not just a two-read one
Strengthens the existing "why substitution instead of noise" argument with
a concrete case found while mining 22-patch-port-history.md: an earlier
iteration used small per-pixel noise on WebGL readback specifically, and a
masking-detection check flagged it directly from a single read, because the
noise had a distinct high-frequency statistical signature rather than
needing two reads compared against each other. Replacing it with a
per-channel remap that resembles an ordinary GPU colour-profile difference
took a measured spike count from about 320 to near zero on the same probe.
Same lesson the rest of the article already makes, now with a number behind
it instead of just the reasoning.
2026-07-28 20:40:28 +02:00
feder-cr 9d21ce019b docs: prep_recaptcha was shipped and completely undocumented
Found while mining 22-patch-port-history.md: the wrapper has had a
prep_recaptcha=True parameter for a while - a real, tested feature
(29 unit tests internally) with zero mention anywhere on the site,
including Configuration, which is exactly where it belongs.

Added it in two places. Configuration.md gets the actual usage: the
parameter, what it does in one paragraph, the profile_dir interaction that
disables it automatically, and a pointer to the mechanism page.
recaptcha-v3-score.md gets a new section instead of just the parameter,
because there's a real engineering story behind why this lives in the
wrapper and not the engine: the first attempt wrote the cookies once in C++
before any page loaded, compiled and linked cleanly, and did nothing -
browser.new_context() gives each context its own isolated cookie jar, so
state written before a context exists has nowhere to land. Generalised and
cross-linked to playwright-proxy-per-context.md, since it's the same
isolation mechanism that separates proxies and storage between contexts.
2026-07-28 20:29:34 +02:00
feder-cr f93163d1ef docs: the font cross-platform fix, applied to canvas and WebGL pixels
Same shape as bundled-fonts-cross-platform.md, different surface: a
GPU-backed render target can crash rather than return data if read directly
in-process, which rules out patching the render itself. The fix intercepts
at readback instead - the small, enumerable set of export calls (toDataURL,
toBlob, getImageData, readPixels, the createImageBitmap chain) is the only
place content ever actually sees the pixels, for both canvas-2D and WebGL.

Kept the masking-safe design decision from the existing canvas noise
article explicit here too: a near-uniform reference probe (the kind a
masking-detection scanner uses) survives untouched, high-entropy real
renders get the full substitution, which is what stops a masking check from
immediately noticing every readback is intercepted.

The proof that generalises past "looks plausible": same seed, same canvas
and WebGL hash, byte for byte, on Windows and Linux, verified against a
commercial fingerprint scanner across multiple seeds with zero failures on
either OS - a stronger claim than a fingerprint that merely looks
consistent.

Named the honest limit at the end rather than implying completeness: this
is an enumeration problem by nature, and newer export/capture APIs need
their own coverage as the platform grows - stated generically, no specific
list of what is or isn't covered yet, consistent with the rule that an open
gap in our own shipped surface doesn't get a public roadmap.

Wired into Canvas/WebGL/Fonts/Audio (nav_order 9), cross-linked from
canvas-fingerprint-noise.md's existing consistency argument.
2026-07-28 19:46:05 +02:00
feder-cr 4fc723ae36 docs: the mouse-movement fix that had been testing the wrong call
New article, cross-linked from human-mouse-movement.md. The finding: a
humanized path validated against page.mouse.move() and the same path used
through page.hover() are not the same test, because hover's hit-target check
moves the pointer before the humanized dispatch runs and consumes almost all
of the distance first. Measured interleaved on the same page: 108 events on
a direct move() call, 3 through hover() - a teleport with two extra samples
on it, on the exact call almost every real script uses (hover, click,
dblclick, check all share the same path).

Two more measured fixes bundled in, because a good macro fix doesn't repair
what the stroke itself gets wrong: a +0.4976px systematic jitter bias
(should be zero-mean, now 0.00039px) and a duplicate-position rate measured
at a page-side listener instead of the planned path, which is the
methodological point as much as the number - 0.706 on the planned path,
0.069 measured where a detector would actually be counting.

Named what's still open rather than implying it's solved: idle-time
distribution and endpoint-always-clickable are macro-level patterns no
single stroke fix touches, stated generically since it's a property of
click-driven automation generally, not specific to one implementation.

Wired into The Automation Layer category (nav_order 8, no collisions).
2026-07-28 19:38:29 +02:00
feder-cr a483b73e3d README: the environment-variable table described things nobody does
Every row was something this package does by itself. It downloads the engine on
first use, verifies a sha256, caches it, and picks a cursor engine. None of that
is a step somebody takes, so a table of overrides in the README asks a reader to
hold five knobs in mind before they have run anything.

It was also the third copy: docs/configuration.md documents all five and
docs/installation.md two of them. The right home for an override is the
configuration page, which is where somebody looking for one goes.

The test that covered the table was covering the wrong artifact, and its subject
had already moved once. It hardcoded four names and asserted the README mentions
them, so with the section gone it failed on the README rather than on anything
real. It now reads the list OUT of docs/configuration.md and keeps the property
worth keeping: a documented knob that no shipped module reads is worse than an
undocumented one, because the reader sets it, sees no effect, and stops trusting
the page.

Deriving the list also fixed a gap the hardcoding hid: there were five knobs and
four rows, so a fifth could have been documented and read by nothing. Two
mutations: a variable removed from the page (the collapse guard fires), and one
documented that nothing reads.

424 passed.
2026-07-28 19:36:03 +02:00
feder-cr c464c11260 fix: jekyll-readme-index did not actually fix the root 404, use a real index.md instead
The previous commit added jekyll-readme-index to plugins: and the build
reported success, but the bare root still 404'd - it is evidently not on
GitHub Pages' safe-mode plugin whitelist here, so it silently did nothing
rather than erroring.

Removed it and did the reliable thing instead: docs/index.md is now the
actual homepage, with the exact content docs/README.md carried before.
docs/README.md is now a short pointer at the published site, kept only so
browsing the folder directly on github.com still shows something sensible
rather than the old full homepage duplicated in two places forever.
nav_exclude + search_exclude on it so it does not show up as a redundant
second "home" entry in the sidebar or search results.
2026-07-28 19:12:40 +02:00
feder-cr 895ea47176 fix: the bare site root 404s, and nobody had ever checked it
Every individual page built and served fine after the restructuring push -
verified guides.html, documentation.html, comparisons.html, README.html and
several article pages all return 200. Only the bare domain
(feder-cr.github.io/invisible_playwright/) and index.html returned a GitHub
Pages 404. Pre-existing, not something the restructuring introduced: nothing
in this project's verification history ever curled the root URL, only
specific article links, so a homepage that never worked went unnoticed.

jekyll-readme-index (part of the github-pages gem's plugin whitelist) is not
active by default the way jekyll-sitemap and jekyll-seo-tag are - it has to
be listed explicitly to serve docs/README.md at the root when no index.md
exists. Added it rather than adding an index.md, since docs/README.md
already carries the front matter and content the homepage needs.
2026-07-28 19:05:48 +02:00
feder-cr a33fc26f03 site: real sections instead of one flat sidebar, plus the product docs that were missing entirely
The site read as a pile of articles, not a site for this project specifically,
because docs/ only ever held the guides - everything about installing and
using the package lived exclusively in the GitHub README, which is not a page
on the published site at all. Anyone who landed on an article from a search
had nowhere to click for "how do I install this."

Five top-level sections now, all via just-the-docs' native parent/has_children
front matter, not folders - no URL changes, no broken links:

- Documentation (new): Installation, Quickstart, Configuration, Pinning
  fingerprint fields (existing page, re-parented), CLI reference. Adapted from
  the README's own Install/Usage/CLI content rather than duplicating it
  verbatim, since these needed to stand alone as pages rather than sections.
- Guides: the 48 existing explainers, grouped into 7 categories instead of one
  alphabetical list - Browser Identity (15), Canvas/WebGL/Fonts/Audio (8),
  Network/Proxy/WebRTC (7), The Automation Layer (7), AI Agents and Frameworks
  (3), Detectors Explained (5), Testing and Troubleshooting (3).
- Comparisons: the 7 "vs" and engine-choice articles, promoted to their own
  section rather than buried inside Guides, since "which tool" is the most
  direct search intent this site gets.
- Integrations: unchanged content, promoted to a top-level section; its 9
  pages had no front matter at all until now, so they also pick up real
  per-page titles/descriptions for the first time.

Each new category page is a real intro, not a bare index: why the group holds
together, not just what's in it.

Also fixed: docs/_config.yml's header comment still said "deliberately no
front matter on the pages," which stopped being true on 2026-07-27 when every
page got title/description front matter for its own meta description - the
comment now says why front matter exists and what it costs (a rendered table
on github.com) rather than the reversed decision. docs/README.md and the
top-level README's guide list were both cut down from a 40+ entry flat table
to pointers at the four new sections, since the sidebar and category pages
now do that job.

Verified: every parent/grand_parent reference resolves to a real page title,
every has_children page is referenced by at least one child, no broken
relative links, no forbidden vendor names, no secrets, title==H1 on every
page including the 15 new ones.
2026-07-28 18:51:02 +02:00
feder-cr 6370041c09 ci: a publish was racing its own verification
user-install.yml runs on `release:`, which fires seconds after twine finishes,
and PyPI does not serve a new version to pip immediately. Measured today:
invisible-firefox 0.2.6 was uploaded, the release created about forty seconds
later, and the pip install in that job still resolved 0.2.5. So the run reported
a forgotten publish that had happened two minutes earlier - the most expensive
shape of red there is, because it is indistinguishable from the real defect this
workflow exists to catch.

A bounded wait on the PER-VERSION endpoint, five minutes, scoped to the release
event. The aggregate `info.version` lags it by minutes and has its own trap, so
the poll asks for the exact URL. Scheduled and dispatched runs do not wait: they
are not racing anything, and waiting there would hide a real absence behind five
minutes of polling. It is bounded because an unbounded wait turns a genuinely
forgotten publish from a red run into a job that hangs to the runner timeout.

In the workflow rather than in the four install-e2e test files: the race exists on
one event, and those files cannot import a shared helper - the runner has no
invisible_core, on purpose. A test in the core asserts all three workflows have
the step, that it is scoped, and that it has a deadline. Three mutations, all
caught.
2026-07-28 17:47:52 +02:00
feder-cr 8497a980c4 ledger: 0.4.8 2026-07-28 17:28:55 +02:00
feder-cr d33361c862 release: 0.4.8 - the pin follows the core, and F821 found three names that resolve nowhere
The core moved to 18.9.0, which carries a clearer engine refusal (it used to
locate a missing juggler inside an omni.ja the tree does not have) and a publish
gate that no longer reports a mistyped command with the same exit code as a
broken gate. An exact pin means those reach a user only when this package's pin
moves, so this release is what delivers them.

The rest is this package's own, and none of it was findable by running tests.
Nothing here had ever run a linter. The first F821 pass found:

Renderer, used as an annotation six times in _behaviour.py and defined in no
module in the repository. It survives only because `from __future__ import
annotations` never evaluates an annotation, so the six were strings that looked
like a type - and a reader had no way to learn what the parameter accepts. It is
a real alias now, describing the one call site.

prof: Any in _motion.py, with Any unimported. Importing it would have widened
that module's deliberately tiny allowlist, which one of its own tests enforces -
and there was no need: prof is the cumulative distance table _profile_table
returns and _profile_at consumes, both annotated list[float] two functions away.

And a duplicate `import pytest` in a test file, which is only noise but is the
third thing nothing was looking for.

CI runs ruff with F821 and F811 selected, those two only: they catch a name that
cannot resolve, and neither is a style question. Zero violations here once the
three above were fixed, so it is a gate rather than a backlog.

423 passed. e2e 139 green on a real browser against the pinned engine,
CONSISTENCY PASS, ALL CRITICAL FLAGS CLEAN.
2026-07-28 17:28:31 +02:00
feder-cr 297e10d641 six annotations named a type that exists in no module
The first F821 run this repo has ever had found three things, all of them
invisible to the suite.

`Renderer` was used as an annotation six times in _behaviour.py and defined
nowhere at all. It survives only because `from __future__ import annotations`
never evaluates an annotation, so the six were strings that happened to look
like a type - and a reader had no way to learn what the parameter accepts.
It is a real alias now, describing the one call at line 346.

`prof: Any` in _motion.py had the same shape with an extra twist: `Any` was
also unimported, and importing it would have widened that module's deliberately
tiny allowlist, which one of its own tests enforces. No need - prof is the
cumulative distance table `_profile_table` returns and `_profile_at` consumes,
both annotated list[float] a few lines away. Naming it costs no import.

And a duplicate `import pytest` in test_launcher_config.py, which is only noise
but is the third thing nothing was looking for.

CI runs ruff with F821 and F811 now, those two only: they catch a name that
cannot resolve, which is not a style question and not findable by running tests.
Zero violations here once the three above were fixed. 423 passed.
2026-07-28 15:37:13 +02:00
feder-cr b2ffb14564 the install e2e imported a package the runner does not have
user-install.yml installs pip, pytest and packaging on the runner and nothing
else, deliberately: the package under test goes into a venv the fixture builds
from the index, and a second copy on the runner's path would mean every
assertion read the wrong one.

Both files here imported the venv helpers from invisible_core.testing, where
they moved so the three suites could share them. On a development machine that
is fine - an editable install is always on the path. On the runner it is
ModuleNotFoundError at COLLECTION: the job goes red having tested nothing, and
the message names a module instead of the mistake.

So the helpers are local again in these two files, with the reason written above
them. The duplication is the point, and the core's suite now parses every file
the user-install workflows name and refuses the import, so it does not depend on
that comment being read.

Verified the way it should have been the first time: a venv holding only pip,
pytest and packaging collects both files from this repo's root. 12 tests
collected, 423 passed in the ordinary suite.
2026-07-28 14:57:09 +02:00
feder-cr db1422fe41 ci: arm the hooks, because the suite asserts they are armed
The reminder that core.hooksPath must point at .githooks moved into
invisible_core.testing so all three repos could make it, and all three started
making it. Only the core's workflow ran install_hooks.py - it had needed that
step since the day its own copy of the test was written - so this repo went red
on every push, on all four matrix legs, with a message about an unset config
that reads like a developer's mistake rather than a missing CI step.

A GitHub checkout is a git work tree, so the helper's "skip outside a git
checkout" guard cannot cover this, and it should not: the honest arrangement is
for CI to do what a developer does once. It also means install_hooks.py is now
exercised on every leg instead of only on the one machine that ever ran it by
hand.

The comparison that was missing is in the core's tests now, so a fourth repo
adopting the assertion gets told about the step in the same run.
2026-07-28 14:22:08 +02:00
feder-cr 4b44acb49b docs: the Playwright wire protocol, and the release that broke 97 of 133 tests
Mined 30-upstream-playwright-patches.md, a source file not touched by any
earlier batch. Unlike the WebRTC/proxy deep-dive just done on request, this
one had genuinely new, safe material: a closed and validated fix rather than
an open bug, and about the driver/client contract rather than fingerprinting
or detection at all, so it doesn't carry the same disclosure risk.

The story: Juggler's command schema is closed-world, rejecting any
undeclared field at the moment a specific API is called rather than at
launch. A Playwright client release added fields to two viewport commands;
the first was patched by hand and felt like the fix, the second alone took
out 97 of 133 end-to-end tests in one run because every test builds a
context and only context-with-screen-size triggers that field. A bare
launch probe never sets a screen size, so the shallow check stayed green
throughout - the same shallow-probe-vs-real-usage gap the site's testing
article already names in a different context.

The decision worth keeping is declare-and-ignore over declare-and-honour:
accepting the field stops the rejection, but using its value would let a
client silently overwrite a screen dimension the fingerprint profile owns
for consistency reasons - the same principle pinning.md documents about
correlated fields. Closes on the gate that makes this repeatable: diffing
the client's actual wire behaviour against the declared schema in both
directions, validated by deliberately breaking it and confirming it flags
the break.

Wired into both indices; cross-linked from vs-patchright.md, since it's the
other half of "what Playwright's driver-side contract with Firefox breaks
on," unrelated to the CDP-specific tells that page covers.
2026-07-28 08:58:43 +02:00
feder-cr 70c8028214 README: the engine section was telling people about a step they never take
It opened with megabytes and a cache directory, which is what the download
does, not what the reader has to do about it. Both numbers were already on the
install line four sections up, so the section's whole first half was a second
copy of a figure that only has to stay right in one place.

What is actually useful there is the list of situations where you override
something - another drive, a binary you already have, a network that refuses
anonymous downloads - so that is what the section is now, said in those terms
rather than as "what it does". The heading says environment variables, because
that is what a reader looking for this would search for.

The sizes stay on the install line, where test_the_stated_download_size_matches
_the_sealed_assets derives the acceptable band from seal.json and refuses a
figure that has drifted.
2026-07-28 08:39:57 +02:00
feder-cr e860f8ff8c docs: close out the contextual-link pass, eight pages were still at zero
Found while re-measuring: these eight pages had a relative link somewhere
in the file, but every one of them was inside the FAQ block or the See-also
footer, not a genuine in-body link inside a main section. Footer and FAQ
links carry a fraction of the SEO weight a contextual in-body link does, so
by the density measurement these were still effectively at zero, same as
pages with no link at all.

One link added per page, each anchored to text already in the sentence
rather than a sentence built around a keyword: eval_length to the
toString-source page, the debugger-timing value-vs-behaviour point to the
renderer-string-vs-render page (same lesson, different surface), the
FingerprintJS component list to hardware-concurrency-device-memory, the
cdc_ page's "wrong question" line to the stealth-levels map, canvas
image fingerprinting's font-stack dependency to the bundled-fonts
architecture page, the measureText page's own opening line to
canvas-fingerprint-noise (it already named canvas fingerprinting in
prose), WebGL's ANGLE explanation to the numeric-parameters page, and
pinning's storage-quota mention to the hardware-concurrency page.

Re-measured after: all 55 pages now have at least one genuine in-body
contextual link, zero broken relative links, zero forbidden unicode.
2026-07-28 08:39:09 +02:00
feder-cr c18d5cf4f1 release: 0.4.7 - the pin reaches the index it moved to
The repo pinned invisible-core 18.8.0 and the index still served a wrapper
pinned to 18.6.0, which is the forgotten-publish state this project has a
test for. Nothing in this package's behaviour changed; what changed is which
core a fresh install resolves.

18.8.0 carries the prefs builder split into fourteen named steps with its
output hash-identical across 400 profiles, the GeoIP fetch out of download,
invisible_core.pin as a public module, and a publish gate whose index
cross-check asks about the package it is gating rather than always about the
core.

This package's own imports moved with it: it asks invisible_core for what
that package exports instead of reaching into its private modules, and its
back-compat shims are for users again rather than for its own source.
2026-07-28 03:56:43 +02:00
feder-cr 2e9feb1f86 the pin moves, and the shared helpers come back
Publish the core, THEN move the pin, THEN use the name. All three in order
this time, and this commit is the second and third: the pin names a core
release that is on the index and carries everything this package imports
from it.

The venv helpers are shared again - the local copies were what doing it in
the wrong order cost - and the two hook-wiring assertions no longer skip.

invisible_core._pin is invisible_core.pin here now. What was wrong before
was never the rename, only the order.

Verified against the PUBLISHED core in a bare venv, not against the editable
checkout, which IS the working tree and so cannot see this class of failure:
423 passed, 0 skipped.
2026-07-28 03:22:24 +02:00
feder-cr 23ca48db4c docs: measureText and TextMetrics, the fingerprinting surface with no permission prompt
Closes out this batch of docs mining. This one needed care rather than a
straight write-up: our own patch catalogue has a known, currently-open gap on
this exact surface (a self-consistency identity in the actual-bounding-box
fields that a multi-string probe can still catch), and that gap is
deliberately NOT in this article. Publishing the precise shape of an unfixed
weakness in our own shipped product is a different thing from noting a
competitor's gap or an architectural trade-off, and the honesty standard this
site holds itself to does not require handing out a detection recipe against
ourselves before we've closed it.

What the page does cover is genuinely closed and validated: the per-glyph
horizontal advance offset went through two iterations, and the first one's
mistake generalises past fonts entirely - noise that accumulates with input
length is not noise, it is a growing tell, and it measurably raised a
commercial scanner's tampering signal before the single-bounded-offset
version replaced it. The vertical metrics needed a different fix again,
because they come from a different code path than the shaper touches - not a
value that can be jittered convincingly, but one that had to be read from the
font's own metrics table to stop leaking a 1-3px host-OS delta.

Wired into both indices; links out to headless-fonts-differ.md,
bundled-fonts-cross-platform.md and canvas-fingerprint-noise.md.
2026-07-28 03:19:15 +02:00
feder-cr 4314909230 docs: front matter on the 32 pages that predated the format
Every one of these pages previously inherited the repository's own blurb as
its meta description on the live site, since jekyll-seo-tag falls back to
that when a page has no front matter of its own - the same problem the
format was adopted to fix on 2026-07-27, just not yet applied backwards.

Title is the existing H1 verbatim in every case (checked programmatically:
title equals H1 on all 32, all H1s already under the 62-character limit).
Description is a new sentence or two written from each page's own opening
hook rather than a copy of its first paragraph, since the two placements
serve different readers: the opening paragraph is for someone already on the
page, the meta description is for someone deciding whether to click.

No content changes to any page body.
2026-07-28 03:12:26 +02:00
feder-cr 283a959ab0 docs: the font architecture article, not just the symptom
headless-fonts-differ.md explains why fonts differ across machines. This is
the fix we actually shipped, and it earned its own page rather than a bullet
in that one: filtering a host's font list still leaves the host's rendering
underneath, which is a contradiction with extra steps rather than a fix.

The real content is the part nobody else documents - making three unrelated
font backends (DirectWrite, fontconfig, CoreText) agree on the same family
list from the same bundled files, without a shared enumeration mechanism
between them. Two details mattered more than the manifest format itself:
family naming has to follow the same precedence order a real OS uses, and
multi-face font files can't be indexed positionally across platforms since
face order isn't guaranteed stable everywhere.

Named four open gaps rather than claiming the surface is closed: one
backend's local() lookup isn't wired to bundle-only, one's per-glyph fallback
for an out-of-set character reaches the real host catalogue, one's system-ui
generic keeps a narrow live host query, and one platform's font-substitution
table stays host-live regardless of mode. Consistent with treating a
suppressed signal as a fail rather than a pass - these are real, found,
unfixed seams, not something glossed over for the page to read cleanly.

Wired into both doc indices and the README guide list, linked from
vs-camoufox.md's existing font section and from webgl-renderer-strings.md's
"same shape of problem" framing.
2026-07-28 03:05:22 +02:00
feder-cr 91a16d2fbd docs: three more comparisons, each one at a different layer
Patchright, nodriver/undetected-chromedriver, and playwright-stealth complete
the "vs" set against the tools already named in Related projects. None of
these three competes with this project the way Camoufox does - each sits at a
different layer of the same three-level map this site already uses, so the
honest framing for all three is "different job" rather than "which wins."

Patchright patches the Chromium driver, not the browser, so its fixes
(Runtime.enable, Console.enable, the automation-controlled launch flag) are
CDP-specific and have no Firefox equivalent - not because we solved them, but
because the surface they patch does not exist on this engine. Its own docs
admit init-script timing attacks remain and it passes "most, but not all" of
the Playwright test suite.

nodriver and undetected-chromedriver are not Playwright tools at all - they
have their own API, which makes the real decision "leave Playwright or not,"
not "which produces a less detectable browser." undetected-chromedriver's own
README states plainly it does not hide an IP address or touch fingerprinting;
nodriver drops the chromedriver binary entirely and talks CDP directly.

playwright-stealth is the widest gap on this site: four lines of init script
against a browser fork. Its own actively maintained fork calls itself "a
proof-of-concept starting point" and says not to expect it to beat anything
but the simplest detection - which is an honest scope statement worth taking
at face value rather than arguing with.

Wired into both doc indices and README's guide list; added "Full comparison"
links from the three Related-projects bullets (Camoufox, Patchright, nodriver)
to their dedicated pages, and added playwright-stealth as a fourth
Related-projects entry since it did not have one yet.
2026-07-28 03:01:50 +02:00
feder-cr 45c4e44a7b docs: the comparison with the closest peer, written to be fair rather than to win
Camoufox and this project take the same approach on the same engine, so the
comparison is about how rather than whether, which makes it the only genuinely
comparable pair in this space.

Three decisions about how it is written. It says where Camoufox covers more,
which today is geolocation and Intl, and names our own weakness on the second
rather than omitting it. It marks two areas where their documentation does not
state something and I did not read their source, so no advantage is claimed
where none was verified. And it leaves out a personal circumstance of their
maintainer that turned up in the research, because that is not a comparison
point and using it would cost more credibility than it could ever buy.

The substantive difference is philosophy: rotate a plausible device from a
real-world distribution, or derive one deterministically from a seed. Neither is
better in the abstract, and the page says what each buys instead of picking.
Ours buys replay, which is why a failing run can be rerun exactly.

The ending is the honest one: run both against your actual target ten times and
compare the reports rather than the verdicts, because two hours of that beats
any comparison page including this one.
2026-07-28 02:35:16 +02:00
feder-cr 3d33d6edaf docs: Chromium is not Chrome, which is the argument the comparison was missing
Playwright ships open-source Chromium by default, per its own browsers
documentation, not Chrome. Chromium has no H.264, no AAC and no Widevine,
because those are the proprietary parts Google adds on top. Chrome, Edge, Brave
and Opera all have them, which is to say every browser a real person runs.

Two things follow. The capability set a default Playwright Chromium reports
belongs to almost nobody, so that cohort is largely developers and automation.
And the gaps are capabilities rather than values: a missing decoder is missing
machine code, so `canPlayType` for H.264 and a Widevine request through EME are
one line each and no property override can satisfy either.

Which makes the standard advice actively harmful here. Spoofing the user agent
to say Chrome converts an unusual browser into a provable contradiction on two
independent checks, rather than hiding anything. The branded channel closes the
gap and hands you a browser you do not ship, do not version and cannot install
in a slim container.

Firefox has no equivalent split, and that asymmetry is now a section in the
engine comparison, which argued four other points and not this one.
2026-07-28 02:19:34 +02:00
feder-cr c68c21896a docs: how we faked a WebRTC candidate badly, and the Firefox case with its cost
ICE candidate spoofing. Every guide stops at the address. A candidate is a
record with computed fields, it arrives at a particular moment, and it sits
beside other candidates that have to agree with it. We got the address right
immediately and shipped three other things wrong.

The priority was hardcoded to 0xFFFF, which is not an unusual value but one the
real code cannot produce, since that stack emits a narrow band around 32256 to
32704. One integer in the SDP saying the candidate was not made by the browser.
The foundation drifted between runs and sometimes collided with the TCP host
candidate's, which is a grouping no real browser makes. And the synthetic
candidate was emitted instantly, describing a STUN server in the same room,
where published detection guidance for this exact technique names round-trip
timing as the way to spot it.

The fix in all three cases was the same shape: stop fabricating values and start
calling the function the browser already uses, replacing only the field that has
to change. Plus the failure that was worse than any of them, where gathering
died silently behind a proxy and produced no candidates at all while a
negative-only gate reported success.

Firefox against Chromium. Four structural arguments for Firefox, including that
it has no CDP and no Client Hints pipeline, each stated with the half the
comparisons omit: our own automation layer had four artefacts of its own, and
not implementing Client Hints means you cannot then claim to be Chrome. Then
the argument against, which is that Firefox is a small share of real traffic and
rarity is what the rest of this documentation warns about. Anyone selling a
Firefox tool without saying that is not being straight.
2026-07-28 01:43:28 +02:00
feder-cr 80b790995b the suite-collapse tripwire was counting a suite that moved
All 419 tests passed on every leg; the CI step that failed is the guard that
refuses a run where the selection dropped most of the suite - `if passed <
600`. It was right to fire: it cannot tell "the tests moved" from "the
selection collapsed", and that is exactly why it exists.

The number was stale. 322 tests moved to invisible_core on 2026-07-27 -
they covered core modules through this package's back-compat shims, and six
real breaks in core code were surviving the core's own suite. Nothing
shrank; the tests are in the package they test.

Floor is 380 now, a little under the real ~420, with the reason written next
to it. It is a tripwire, not an assertion about how many tests exist.
2026-07-28 01:22:27 +02:00
feder-cr 642707c785 readme: fold the search section into Related projects
"If you got here from a search" was a list of queries dressed as prose, which
reads as bait even when the content under it is honest. Removed.

Related projects now carries the same information as a real section: the
neighbours split by engine, each with a sentence on what it is actually for and
how it differs, rather than a list of things someone might have typed. Patchright
and nodriver were named only in the removed block and now have entries of their
own on the Chromium side.

The keywords survive because they belong in the descriptions anyway. What does
not survive is the framing that announced them.
2026-07-28 01:21:59 +02:00
feder-cr 5e0830f3a3 docs: contextual links inside the prose, where they were only in the footer
Measured before changing anything. Excluding the See also block, the median page
had 0.8 internal links per thousand words and 26 of 54 had exactly zero, with
every link sitting in the footer. The guidance on this is blunt: contextual
links inside prose carry far more weight than boilerplate blocks, and the
working range is two to five per thousand words.

Thirteen pages fixed in this pass, each one linking a concept the sentence
already named. The rule applied, and the reason nothing else changed: if a link
needs a sentence written around it, that is stuffing rather than linking, so the
anchor text had to exist already. Two intended edits were skipped for that
reason when the phrasing did not match.

Median is now 1.0 and pages at zero are down to 13. The rest are queued rather
than forced.
2026-07-28 01:18:40 +02:00
feder-cr 0a21a8857a the same rule, applied to the test helpers - and two tests with hidden preconditions
Reverting the pin import fixed one name and I stopped there. make_venv,
run_checked and venv_python have the same shape: added to
invisible_core.testing today, not published, and this package pins the core
exactly - so CI resolved the index and failed at collection on all four legs.

Local again, with a note saying they come back out in the same change that
moves the pin. The two hook-wiring assertions skip with a reason rather than
failing, and the skip clears itself when the pin moves.

Running the suite the way CI does surfaced two more, both hidden
preconditions rather than the change:

test_seal_floor copied `pin.py` out of the INSTALLED core to build its stub.
A core published before today has `_pin.py` only, so eight tests died before
the stub existed. It copies whichever shape is there now, and asserts it
found one.

test_it_does_not_touch_a_process_with_a_different_token asserted that the
surviving session is exactly one pid. On Windows a venv's python.exe is a
redirector that starts the real interpreter as a child, so a spawn there is
two processes and both carry the token. It passed on CI and on a system
Python and failed from a venv - a shape users have, and the shape this
package's own e2e tests build. It now asserts what the docstring says: the
other session is still findable, and nothing reaped answers to its token.

Verified against the PUBLISHED core in a bare venv: 421 passed, 2 skipped.
2026-07-28 01:14:56 +02:00
feder-cr a630a23173 docs: the two worker surfaces, and the state that survives clearing cookies
Service workers. Two facts the privacy write-ups on this topic do not cover
because they are about automation rather than tracking. A registration and its
cache are a separate store with a separate lifetime, so clearing cookies leaves
them, and a reused profile carries workers registered by whoever used it last.
And blocking them, which several stacks do by default because an intercepting
worker complicates network interception, produces a browser that never
registers one, which a site using them can see. Also states plainly what
partitioning is: it separates a third party's view across sites, and says
nothing about two of your own sessions sharing a profile.

Web Workers. The clearest demonstration of why page-level patching has a
ceiling, and now with evidence rather than assertion. A worker is a separate
realm, so a redefined navigator property reports the real value there, and the
disagreement is a tampering finding rather than a hardware one. OffscreenCanvas
takes that to the most-used surface there is: protection that hooks the HTML
element's methods misses it entirely, because no element is involved. Engines
have shipped fixes for their own gaps in worker canvas protection, which is what
tells you the technique is in use.

Both articles end on the same two-line test, which is the one we would run first
on anything claiming to be undetectable, including this project.
2026-07-28 01:11:47 +02:00
feder-cr 3a79606701 docs: what a context does not isolate, and the permission that switches off WebRTC
Proxy per context. This is the pattern every guide recommends for rotating IPs,
and the consequence is never attached to it: a context isolates storage, not
hardware. Five contexts on five proxies share one canvas hash, one GPU, one font
set, one audio profile and one screen, because there is one browser process. So
you paid for five addresses and got one identity, and that identity is now in
five countries at once while the constant fingerprint links the sessions
together. It also creates the timezone mismatch on purpose: a zone resolved once
at launch belongs to the launch-time exit, so every later context carries the
wrong one. The page is fair about when the pattern is right, which is often, and
precise about when it is not.

Permissions. The two-line headless check that compares Notification.permission
against the Permissions API is the ask-twice pattern again, which is why it
outlived the bug that made it work. Beyond the mismatch, the set of states is
itself a fingerprint, and the automation instinct to grant everything so dialogs
stop interrupting produces a browser almost nobody has. On Firefox it does worse
than that: a persisted camera grant disables two WebRTC address protections for
that origin in every future session on that profile.
2026-07-28 00:52:16 +02:00
feder-cr ed942ac5ef an exact pin means this package may only use what is PUBLISHED
Same mistake as the manager, same day. I moved this package to
invisible_core.pin in the change that renamed the module in the core's tree,
and that rename carried no version bump - so the index still serves a core
with _pin.py and no pin.py, and this package declares invisible-core==
exactly.

CI red on both legs. The import floor said the right thing; the sequencing
was wrong, and I verified the message rather than the consequence.

Reverted to invisible_core._pin. Verified against the PUBLISHED core in a
bare venv - the pin floor loads and resolves the declared version - rather
than against the editable checkout, which cannot see this class of failure
at all.
2026-07-28 00:28:32 +02:00
feder-cr f7963bbb5f docs: how to test properly, and the headers a page-level patch can never reach
Testing. Most people open a suite, read the verdict and stop, and that method
cannot tell a working feature from an absent one. Ours could not either: the
WebRTC gate asserted that nothing leaked, which a dead feature satisfies
perfectly, so it stayed green while the shipped browser returned nothing on
every proxied page. The page turns that into a method. Assert presence rather
than absence, diff against a stock browser on the same machine instead of
reading a score, run it where you deploy and through the proxy you deploy with,
repeat it because the domain is not deterministic, and open the screenshot. It
also says what none of the suites cover, so a clean sweep is not mistaken for a
clean session.

Client Hints and Sec-Fetch. Three copies of one identity in Chromium, generated
from the same internal state, which is why changing the user agent string and
nothing else is caught by comparing headers that were sent before any script
ran. Firefox implements none of it, and that cuts both ways: nothing to keep in
sync if you are Firefox, and an unfixable contradiction if you claim Chrome.
Sec-Fetch is the less discussed half and describes how the request was
initiated, including whether a user gesture triggered it, which connects to the
activation an automation driver can announce by accident.
2026-07-28 00:16:40 +02:00
feder-cr a4dd630790 docs: the agent ecosystem in one verified page instead of eight thin ones
Checked five frameworks by reading their source rather than by star count, and
the result argued against the plan that produced it.

browser-use, Stagehand and Skyvern all drive Chromium over CDP, which Firefox
does not implement in the way those drivers expect, so an executable path
pointing at a Firefox build produces nothing. Stagehand documents the option and
still expects Chromium. crawl4ai is the one Playwright-based tool where Firefox
is genuinely selectable and it has no field naming a binary, so it is one field
away rather than one protocol away. Maxun exposes neither, which for a no-code
product is a decision rather than an oversight.

Writing that as eight separate articles would have been eight pages concluding
the same thing, which is exactly the padding the format is supposed to prevent.
One page with a section per project still matches each project's own query, and
it can carry the part that actually matters: none of this is what blocks most
people. Every machine-level tell is identical whichever framework was picked,
and a container has all of them at once.

Also records the agent-specific rhythm, which explains blocks arriving after a
few actions rather than at first load, and the MCP route, which is the one
combination that does accept a different engine today.
2026-07-28 00:08:32 +02:00
feder-cr e4bef53d1a docs: the two largest Playwright-driving projects, verified from their source
Both were checked before writing, and the check changed both articles.

browser-use, 107k stars. Its BrowserProfile does expose executable_path,
channel, user_data_dir, proxy, args and headless, so there are real levers. But
chrome.py is entirely Chrome executable and Chrome profile handling and the
channel type is a Chromium channel, so a Firefox binary is not a drop-in and the
page says so rather than inventing a workaround. What it adds instead is the
signal specific to this class of tool: an agent pauses for model latency, does
not move during the pause, and lands dead centre on its targets, which explains
blocks that arrive after a few actions rather than at first load.

crawl4ai, 75k stars. BrowserConfig accepts browser_type firefox and has no
executable_path at all, so you get Playwright's managed build and a patched
engine has no supported way in. Their own stealth mode is playwright-stealth,
which their documentation admits does not support Firefox, so that combination
is largely inert. The adapter seam does exist, on the crawler strategy rather
than on the config, and it is undocumented for custom adapters. Records the one
upstream field that would fix it properly, and the process-wide browsers-path
substitution that works today with its fragility stated.

Three of the six candidates from the star list turned out not to use Playwright
at all, which is why each of these starts with reading the source.
2026-07-27 23:57:36 +02:00
feder-cr 26acc297a4 ask the core for what it exports, not for its private modules
This package named eight of the core's modules directly, five of them
private, and reached four more through its own back-compat shims. Almost
every name it wanted was already exported by invisible_core itself, so it
asks for it there now. Private-module dependency across both consumers went
from 23 names in three modules to 6 in two.

Twenty imports in this package's own source went through the four-line
shims - `from .prefs import ...`, `from ._geo import ...`. Those shims exist
so that somebody's `from invisible_playwright import prefs` keeps working
after the 2026-07-03 split; production code depending on them means they can
never be removed, which is the opposite of what a back-compat layer is for.
It is also the same confusion that put 322 tests in this suite instead of
the core's. test_suite_boundaries.py now covers the source as well as the
tests, and was driven against a shim import put back to check it fires.

invisible_core._pin is invisible_core.pin. The import floor already reports
a core too old to carry it with the right message and the right remedy, so
this costs a stale environment nothing but a clear error.
2026-07-27 23:45:16 +02:00
feder-cr 15d68ffe44 docs: four more, in the structured format, each with its own meta description
CSS fingerprinting. The one surface that operates below every layer people work
at: a stylesheet can branch on pointer type or colour scheme and report the
answer by loading a different image, with no script to patch. Two traps follow.
Firefox resolves media-query sizes through different code than screen.width, so
spoofing one side leaves them contradicting each other. And the CSS system
colour keywords resolve through the host's own theme, so a Linux machine
claiming Windows returns the wrong palette from one getComputedStyle call. That
palette is pinned here because a detector was hashing it.

Codecs. canPlayType identifies the build and the platform, and MediaCapabilities
adds a field nobody checks: powerEfficient reports whether decoding would be
hardware accelerated, which is another way of asking whether this is a person's
computer or a server.

BFCache. The driver disables the back/forward cache, so pageshow.persisted is
always false and every back navigation is a full reload, which no consumer
browser does. Enabled by default here, with the go_back timeout that costs.

User agent. Argues against what every ranking result recommends. Rotating the
string does not rotate the browser: the canvas hash, the fonts, the renderer and
the handshake are identical between your "different" sessions, so rotation
produces contradictions and a stable identifier linking the sessions at once.
2026-07-27 23:09:31 +02:00
feder-cr 4414a4fb48 docs: persistent profiles, and the first page with its own meta description
Three traps behind a user data directory. The seed has to be paired with the
directory, or the session has weeks of history on hardware that changed
overnight. A stored camera permission switches off two separate WebRTC address
protections for that origin in every future session on that profile, and it
counts a persisted grant rather than an active capture, so a debugging call from
months ago still applies. And a written profile has to be internally consistent
about its own age.

This is also the first page carrying front matter, so it gets a description of
its own instead of the repository blurb every page currently shares. The title
is set identical to the heading so the existing mechanism does not regress,
which is the thing to verify before applying this to the rest.
2026-07-27 22:58:38 +02:00
feder-cr caa263fbf1 docs: five more, one keyword pass each
Execution context was destroyed. The most searched Playwright error, answered
everywhere as a race condition, which it usually is. It is also what you get
when a site redirects you to a challenge mid-evaluation, and the two are
indistinguishable from the stack trace. Four lines separate them: read the URL
and take a screenshot when it fires.

The debugger one is the story you asked for. Attaching a JS debugger calls
setIsDebuggee on every realm, which disables the optimising JIT and adds a slow
path to every native call. A commercial service was measuring 50,000 iterations
and reporting developer tools with none open. It was right. Four separate leaks
in the end, and the one that mattered was not timing at all: the driver warmed a
serialisation helper in the page's own realm before the page's first script,
touching JSON and two prototypes in a world that should have been untouched.
That one was proven by controlled experiment.

Browser extensions, which came out of a discussion question that had been
answered by a stranger talking about a different kind of extension entirely.

Headless versus headful, where the honest answer is that headlessness is rarely
what gets detected, and where this project's headless flag actually launches
headed and hides the window, three different ways by platform.

WebGL parameters, which contradicts the most repeated advice in the field. The
numbers do not vary by GPU on Windows, because ANGLE clamps them to the D3D
feature level, so a flagship and a 2012 integrated chip return the same block.
We randomised them once and got dropped from a detector's report for producing
a combination that does not exist.
2026-07-27 22:50:05 +02:00
feder-cr c341ada26a docs: why a fresh browser scores badly on reCAPTCHA v3
The score is weighted toward history, and a clean automated profile has none.
That is not a trick to be worked around, it is the thing being measured: a
session with no past is genuinely unusual, and the number reflects the base
rate.

The part worth publishing is the trap rather than the advice. A cookie Google
stopped issuing in 2022 is worse to carry than to lack, because absence has
innocent explanations and an anachronism does not. Anyone seeding a profile from
an article written before that date is adding a tell, and seeded history has to
be maintained rather than written once. Also covers the consistency angle
nobody checks: the consent record carries a region token that has to agree with
the timezone and the exit.

States the limits plainly, since scores invite overclaiming. Cookies are one
input, a seeded history is not a real one, and a demo key measures a risk model
that is not the one in production.
2026-07-27 22:24:26 +02:00
feder-cr e840df51cc docs: Docker, the machine's own numbers, and why an override carries its source
Docker. Every page that ranks for this is about making Playwright start in a
container: install the dependencies, add the fonts, use the official image. They
are right and they answer a different question. This one is about the container
that starts perfectly and still gets a different page, which it does in six
places at once, none of them about automation. It also says the thing nobody
says about the official image: everyone following that advice has the same font
set, which is a cohort rather than a disguise. And it separates the shared
memory crash from detection, because the two land in the same search and have
completely different fixes.

hardwareConcurrency, deviceMemory and storage quota. Three one-line reads that
are checked against each other rather than alone, plus the check that matters
most: ask again from a worker. A value patched on the page's navigator leaves
the worker answering honestly, and that disagreement is a tampering finding
rather than an unusual-hardware one. Storage quota is in here because it
approximates free disk space and almost nobody thinks of it as a surface.

toString. Why every JavaScript override carries its own source, why patching
toString creates the same problem one level up, and the four techniques that
find it. This is the argument underneath the whole engine-level choice, so it
also states plainly what that choice does not fix.
2026-07-27 22:19:58 +02:00
feder-cr 5a6cd97c9f docs: three more, each one going a layer below where the ranking pages stop
Same selection method: check the demand, then read who currently answers and
find the part they leave out.

Mouse movement. Every library that ranks draws a Bezier curve, and they are
right that teleporting is a tell. What none of them cover is that a path is made
of events, and an event carries fields that say where it came from: the trusted
flag, the pointer type, the pressure, the timing distribution. A perfect arc
delivered as untrusted events fails a one-line check. The curve is drawn in the
driver here; the fields are set in the engine, which is why that half is not a
library.

Canvas noise. The four-line check that catches per-call randomisation is well
known enough now that better tools seed their noise. The second check is not:
a small canvas filled with solid reference colours, read back to confirm they
are unchanged. Any per-pixel noise fails it, seeded or not, and it is scored as
masking rather than as unusual. We shipped without that guard. Also states the
cost of substitution honestly, which is that a readback filter cannot tell a
fingerprinting probe from a QR decoder.

Screen size. The relationships matter more than the numbers, and the one that
catches everybody is that available height must be smaller than height, because
real desktops have a taskbar.
2026-07-27 22:14:36 +02:00
feder-cr 93a89b1cba give the core its tests back, and gate the boundary
322 tests in this suite covered invisible_core, reached through the
four-line aliasing shims left behind by the 2026-07-03 split. They read
like wrapper tests because they lived here and the imports worked.

They were also the only thing covering six real behaviours. Measured, one
one-line break per core module, each suite run separately: cloak_prefs()
returning {}, SOCKS detection always False, the scheme never stripped from
a proxy server, _proxy_is_set always True, the locale always en-US,
get_default_args() injecting -headless - all six survived the core's own
suite and were caught here. So a broken core could be published with its
own gates green, and the suite that could see it belonged to a package on a
different release cadence.

The tests moved. Six files that genuinely test how THIS package uses the
core kept theirs and now import invisible_core directly rather than an
alias of it, which is what they always meant.

test_suite_boundaries.py is what stops the next one landing here. The shim
list is derived from the source - a module that rebinds
sys.modules[__name__] - because a hand-kept list is a shorter list that
drifts, which is the failure being fixed. test_backcompat.py is the one
file still allowed to import them: proving the shims resolve is a wrapper
claim, and the day that stops being true is the day the shims can go.

Its own first cut used glob instead of rglob and passed over tests/unit/,
which held the only cover get_default_args had anywhere - a scan that only
looks where you remembered to put things reports a clean suite.

Markers: one vocabulary across the three repos, --strict-markers on, and
the venv harness now comes from invisible_core.testing instead of a fourth
local copy of the same two functions.
2026-07-27 22:08:44 +02:00
feder-cr 514445ba03 docs: two pages where the top search results are giving wrong advice
Both chosen by checking demand and then checking who currently answers, not by
picking topics we felt like writing.

SOCKS5 proxy authentication. The guides that rank say to pass a socks5:// server
with a username and password and that this works. Playwright's own API reference
scopes both credential fields to HTTP proxies, in those words, while listing
SOCKS only under the server field, and the upstream feature request for SOCKS
authentication has been open since November 2021 with 49 votes and a
collecting-feedback label. Nothing raises when you pass them anyway, which is
why the wrong advice survives: it fails later, as a session that quietly went
out from the wrong address. Also documents the DNS half, since a SOCKS proxy
resolves names locally unless told not to, and no browser-side leak test shows
that.

TLS fingerprinting. Explains what the ClientHello gives away, why JA3 decayed
once browsers started permuting extension order, and why nothing at the page
level can reach a value that is sent before a document exists. Our position
here is unusual and worth stating plainly: the TLS stack is one of the parts we
deliberately do not patch, so the handshake is a real Firefox handshake rather
than an approximation, and the page says what that does not buy you.

Both carry the question block and both are wired into the two indexes.
2026-07-27 22:08:03 +02:00
feder-cr be3c6e90e3 docs: give every page the questions people actually type
On github.com these pages sit on a strong domain and are crawlable, and the full
text is served. What they cannot have is a title or a description of their own:
GitHub writes the title from the file path, and it fills the meta description
with the repository's own blurb, identically on all of them. So the body is the
only thing a search engine has to work with, and the opening prose is
effectively the description.

Two changes follow from that.

Every page now ends with a short block of real questions and short answers, in
the words someone would type. Twenty-two pages did not have one; four already
did, and those four were the model. They are answers, not keyword filler, and
several of them say plainly that the answer is no.

Five openings were too thin to serve as a snippet, the shortest being four
words. They now carry a sentence that says what the page settles, without
losing the line they opened with.

Also refreshed the version citations after checking them rather than assuming:
the documented API is all still present in 0.4.6 with compatible signatures, and
scrapy-playwright is still 0.0.48, so that one was already right.
2026-07-27 21:43:53 +02:00
feder-cr 195c962dde hand the pre-push rules over to invisible-core
This repo's hook was 257 lines of shell, 207 of which were identical to the
manager's. It is a 55-line stub now: find an interpreter, hand over stdin.
The rules live in invisible_core.hooks, which this repo pins exactly, so
there is one implementation instead of three copies that drifted nine ways.

What this repo wants gated is declared in pyproject under
[tool.invisible.hooks] - the suite, the core pin, and v* as the release tag
prefix. The block is required rather than defaulted.

scripts/install_hooks.py is new here. It lived only in the core, so this
repo shipped a hook that nothing armed and nothing checked was armed: a
fresh clone pushed with every gate inert and said nothing about it. A test
now fails in an unarmed clone.

test_the_pre_push_hook_gates_release_tags used to read the hook's text for
a module name and a tag pattern, which made it a copy of the shell it was
checking - red once when the hook swapped a glob for a regex, red again
when the policy moved out of the shell, both times against a correct hook.
It drives the real policy now and checks the gate ran for THIS project.

.gitattributes pins the hook to LF so a Windows clone cannot produce a
shell script its own shebang dies on.
2026-07-27 21:02:43 +02:00
feder-cr b7bfb36452 fix(hooks): set -e killed the hook on the gate's no-op exit
The gate exits 5 for ALREADY PUBLISHED and byte-identical - a no-op, not a
refusal, and what re-pushing a release tag legitimately produces. These hooks
run under set -e, so the non-zero exit aborted the script before $? could be
read: the push died with no message at all, and the block that exists to explain
a refusal never ran.

A gate that fails silently is worse than no gate. Wrapped in an if, which is the
form set -e tolerates.
2026-07-27 19:56:17 +02:00
feder-cr 763d74aba6 docs: close the last gaps in the internal link graph
Measured it: 14 of 26 pages had no incoming link from any other page, only
from the two indexes, which is a weak graph for a reader following a thread
and for anything crawling it.

Six of those were explainers, and each one had an obvious home. The audio page
belongs in the visitor-ID page's neighbourhood because the audio hash is one of
the components that ID is made of; the timezone page belongs next to the one
about preferences that silently do nothing, since that is why people arrive at
it. No explainer is orphaned now and no markdown link is broken.

The integration pages stay linked from their own index rather than from each
other, which is the right shape for them.
2026-07-27 19:42:56 +02:00
feder-cr c1911ac28f fix(hooks): the publish gate never actually ran
--project-root is a TOP-LEVEL option, before the subcommand. The hook put it
after, so argparse exited 2 and the block read that as a refusal: it printed
REFUSED with the gate never having executed. The first check of this wiring
passed on exactly that, which is worse than no gate - a hook that refuses for
the wrong reason is one people learn to force past.

It also treated exit 5 as a failure. 5 is ALREADY PUBLISHED and byte-identical:
nothing to do, not a refusal, and it is what re-pushing or back-filling a
release tag legitimately produces. The gate gives it its own code precisely so a
caller can tell it from 'the content changed under an unmoved version', which
must stay fatal.

The wiring test now asserts the option order and the exit-5 handling, because
both were invisible to the version that only checked the gate was named.
2026-07-27 19:41:34 +02:00
feder-cr e490078927 release: 0.4.6 - published through the gate, not through twine
The first release of this package that went out the way every release should:
the gate built the artifact, digested it against the ledger, uploaded the bytes
it had just built, and recorded them. A stale directory can no longer be the
thing that ships, which is exactly how 0.4.4 went wrong.

Requires invisible-core 18.6.0, which is where the gate lives.
2026-07-27 19:30:03 +02:00
feder-cr 5f78593e53 docs: the audio feature we removed, and why setting the timezone is not enough
Two more pages written out of our own notes.

The audio one carries a result that argues against the standard advice. We
added seeded noise to the rendered audio buffer, guarded it so it never
appeared in a buffer that should be silent, and a commercial service still
scored the browser as tampered. Isolating that one feature with a kill switch
moved the score from 0.4349 to 0.0564 on the same machine and the same
identity. So it ships off. The un-noised output is host-independent anyway and
matches what a real Firefox produces, and matching the crowd is the point when
the honest value describes a class of machine and not a particular one.

It also records the check that caught the first version: a detector does not
have to recognise your noise, it only has to ask a question whose correct
answer is nothing, and see whether it gets something.

The timezone one is about a complaint we have heard often, which is that the
setting appears to be ignored. Usually it is not: the timezone and the locale
are nine surfaces fed by different mechanisms, and a mismatch check compares
them with each other and with the exit address. Includes the Windows TZ
behaviour, which took us several rounds to stop misreading, and the argument
for failing a launch rather than falling back to the host zone when a proxy is
configured.
2026-07-27 19:18:32 +02:00
feder-cr 42a7af8750 chore(release): this package could be published with no check at all
Until now a release here was a bare `twine upload` of whatever happened to be in
a directory. That is how invisible-playwright 0.4.4 reached the index built from
a tree that predated the fix it was meant to carry - nobody had opened the
artifact - and a PyPI filename is never re-uploaded, so it is wrong forever.

The gate is invisible_core.release now: one implementation for all three
packages, importable because this package pins the core exactly, resolving WHICH
project it is gating from this project's own pyproject. The pre-push hook runs
it on a release tag and refuses on a non-zero exit.

What makes it work is not the digests or the ledger. It is that `publish` builds
and uploads WHAT IT JUST BUILT, so a stale directory cannot be the thing that
ships.

PUBLISHED.json is back-filled from the artifacts the index actually serves, each
file's sha256 checked against the digest the index reports before its manifest
was taken. Without it the gate has no memory, and a content change waves itself
through as "release 1".

The wiring tests assert that the gate is importable, that it recognises THIS
project rather than the core, that the hook names it, and that the ledger is not
empty. The gate's own 73 known-bad inputs live with the gate.
2026-07-27 19:11:44 +02:00
feder-cr 42467ddb57 docs: titles that fit in a search result, and README links that feed the site
Thirteen of the twenty-six headings ran past sixty characters, which is roughly
where a search result stops showing them, so the keyword sat in the part nobody
reads. They are now front-loaded and short, and the clause each one lost was
already in its opening paragraph. This fixes the sidebar at the same time,
since the theme takes its labels from the same headings.

The README's links to the pages now point at the site instead of at the file
view. The repo root is the highest-authority page we have and its README is
indexed with it, so those links are worth more pointed somewhere that has a
title of its own. The file view keeps GitHub's own title, which matches no
query, and it stays available for anyone reading in the repo.
2026-07-27 17:40:22 +02:00
feder-cr e5d7ac01a2 docs: give the site a real documentation theme, with search and the logo
just-the-docs, pinned at v0.12.0. It brings a sidebar, a client-side search
index built at page-build time, and a readable dark layout, and it runs on the
stock Pages compiler with no build step of ours.

No front matter was added to any page, and that is the point. GitHub Pages
always runs titles-from-headings, so each page's title tag stays the full
heading we wrote it for. A `title:` key would have taken that over and traded a
search-length title for a sidebar-length one, and it would have put a metadata
table above every page on github.com.

Logo and favicon now point at the project's own mark.
2026-07-27 17:33:53 +02:00
feder-cr 0993509fe3 release: 0.4.5 - 0.4.4 shipped without the import guard and cannot be corrected
0.4.4 reached the index built from a tree that predated the fix for the very bug
a user had just reported: an environment holding an older invisible-core fails
on the browser launch path with `cannot import name 'IANA_TO_POSIX_TZ'`, a
symbol name from a package whose version the reader did not choose.

A PyPI filename is never re-uploaded, so 0.4.4 stays wrong forever and the only
remedy is a new version. That is the cost of publishing an artifact nobody
opened first.

0.4.5 is 0.4.4 plus the guarded import: it states which core version this build
needs, keeps the original error inside the message for debugging, and ends with
the command that fixes it. The artifact was opened and asserted on BEFORE the
upload this time, not after.
2026-07-27 17:29:50 +02:00
feder-cr d10452a8ad fix: an old core failed with a symbol name instead of a version
Reported by a user within minutes of the change that caused it, on the browser
launch path:

  ImportError: cannot import name 'IANA_TO_POSIX_TZ' from 'invisible_core'

_session took two core symbols with a bare module-level import. Both had existed
for about ten minutes. Any environment holding an older core - and the pin
autofix puts older cores back on its own - died with a message naming a symbol,
from a package whose version the reader did not choose.

The pin machinery exists to explain exactly this mismatch, and a module-level
import walks straight past it. That is the actual defect: not sharing the
timezone table with the core, but taking a NEW symbol without making the failure
fail like the version requirement it is.

It now says which core version this build needs, keeps the original error inside
the message for whoever is debugging, and ends with the command that fixes it.

Nothing published was affected: 0.4.3 does not import these names. It is people
running from a checkout - which is who reported it.

The probe drives a real interpreter against a real core with the symbols
stripped, because the thing under test is what happens at import time; a mocked
ImportError would only prove the except branch formats a string. Mutation-tested:
restoring the bare import is red.
2026-07-27 17:07:07 +02:00
feder-cr 725a99f56f docs: publish the docs folder as a site, and give the index a real title
The Pages defaults already take each page's title from its own first heading
and rewrite the relative .md links to the built .html, so both sets of links
keep working. Checked live before writing any config. What was missing was a
sitemap and an index page whose heading was the word "Documentation", which
would have become the title tag of the landing page.
2026-07-27 17:01:24 +02:00
feder-cr 40ff6526a3 docs: publish the docs folder as a site, so each page has its own title
Turning on Pages without this would give all 23 pages the same title tag,
which is the opposite of the point. titles-from-headings takes each title
from the page's own first heading, relative-links keeps the existing .md
cross-links working in both places, and the sitemap lists the set.
2026-07-27 16:50:46 +02:00
feder-cr 1734797148 docs: WebRTC through a proxy, and why getVoices() comes back empty
Two pages written from our own notes and aimed at the questions people
actually type.

The WebRTC one argues against the advice every other guide gives. Turning
WebRTC off does stop the leak and produces a browser with no ICE candidates
at all, which is a much more specific thing to have said about yourself than
an IP address. It also records that the IPv6 preference everyone still
recommends is not read anywhere in the gathering path of current Firefox, and
that behind a SOCKS proxy gathering can fail for a reason unrelated to
WebRTC: the default-route probe needs direct connectivity and does not have
it. The gate story is ours. It asserted only that nothing leaked, which a
dead feature satisfies perfectly, so it stayed green while the shipped
browser returned nothing on every proxied page.

The voices one separates the common async question from the real one. The
list comes from the operating system, so it answers which OS you are on and
whether the machine is a desktop or a server. It also explains why filtering
the OS list is the wrong shape: it works on Windows and returns nothing on
Linux, which is the host it was written for.
2026-07-27 16:30:17 +02:00
feder-cr f3102de8fd docs: a page on the GPU you claim versus the pixels you draw, plus a language pass
Adds renderer-string-vs-render.md, written from our own notes: a detection
flag whose first explanation was wrong, killed by a ten-seed sweep across
three vendor buckets, an A/B over two engine builds and a run on a second
operating system that came back clean. The cause was the software rasterizer
on headless Linux contradicting the GPU the profile claimed. It also covers
the second flag in the same reports, which turned out to be our own test
harness hammering one exit address.

The rest is a pass over the existing pages to vary phrasing that had become
repetitive across the set: "rather than" appeared 63 times over 21 pages and
is now 23, and the four detector footers no longer share one sentence shape.
No technical claims changed.
2026-07-27 16:22:52 +02:00
feder-cr f6450a98cd docs: the per-platform font sets and how the measurement works, folded in
The remaining mapped query was fonts across Windows and Linux, and it overlapped
this page far enough that a second one would have been a near-duplicate competing
with itself. Same call as the injection-timing section a few commits ago.

What was genuinely missing is now here: the measurement technique itself, with the
probe, since there is no API that lists fonts and everyone says "enumeration"
anyway; the families each platform actually ships, which is what makes the set
platform-shaped; and the container case, where every probe returns the fallback
width and the detected set comes back empty, which is its own strong signal because
no real desktop has one.

Also notes that the order of the list can carry information, since some
implementations return fonts in system order, which reflects how they were
installed. Two machines with identical sets can still differ in sequence.
2026-07-27 14:23:04 +02:00
feder-cr 869a987d4a docs: why a FingerprintJS visitor ID changes
The answer is one line of their source: the ID is x64hash128 of the canonical
string of about forty-one components. There is no partial match, so one component
moving moves the whole identifier as if everything had.

Listed the components from src/sources and grouped them by how likely each is to
move under a real person, which makes the instability self-explanatory: docking a
laptop moves screen_frame, turning on dark mode moves forced_colors, installing any
application can move fonts, a browser update moves vendor_flavors and
user_agent_data, and travel moves three at once.

Then the part that matters for automation, which points the opposite way from the
usual assumption. An ID that changes between runs of the same configuration is a
signal rather than safety: real machines do not transform between page loads, and a
tool adding fresh canvas noise per read rather than deriving it from a fixed seed
produces exactly that instability and is detectable by it.

Separates the open-source library from the commercial one explicitly, because
passing one is not passing the other, and a claim about defeating browser
fingerprinting that does not say which was measured has said nothing.
2026-07-27 14:20:19 +02:00
feder-cr 591c9eb10c docs: what BotD actually detects, and why most of it is not about bots
Enumerated its twenty detectors from src/detectors and read the comparison logic
rather than the README, which is where the point is. Exactly one of the twenty,
webdriver, is the check everyone knows. A handful look for named tools. The rest
ask which JavaScript engine you really are and compare that against what your user
agent claims.

Two are quotable and settle the argument on their own. eval_length: if
eval.toString().length is 37 and the engine kind is not WebKit or Gecko, that is a
bot. product_sub: a browser claiming Chrome, Safari, Opera or WeChat must report
navigator.productSub of 20030107, where Firefox reports 20100101.

So the conclusion is uncomfortable for the most common advice in this space.
Spoofing a user agent alone is worse than not spoofing it, because the string is
the only part you changed and four other engine-intrinsic values now contradict it.
Being a real instance of what you claim passes this entire class for free, since
those values are not claims at all.

Ends by saying what passing does not buy: nothing about GPU plausibility, fonts
against platform, or timezone against IP, none of which BotD looks at.
2026-07-27 14:16:46 +02:00
feder-cr 2edefa2e24 release: 0.4.3 - the async path leaked, and the guard was adopting half a tree
Two defects, one of them not the one I went looking for.

THE KNOWN ONE. The lifetime guard added in 0.4.0 reached the sync entry point
only. Verified against the artifact the index serves: async_api.py in the
published 0.4.2 contains ZERO references to _reaper, _session_token,
_lifetime_guard or _bind_process_tree, while main has ten. So every async user
on Windows kept the entire leak through three releases, and the changelog told
them it was closed. That line now says which entry point it reached.

THE ONE THE MEASUREMENT FOUND. With the async fix in place I killed a runner
mid-session and counted browsers still carrying that session's token, which is
the only thing that settles this claim - 744 passing tests did not, because
nothing enters the context manager. Result: sync 0/0/0/0, async 2/0/0/2.

JobObjectGuard.bind had `if bound: break`: it adopted whatever existed at the
first instant anything existed, then returned. Windows adds later CHILDREN of a
job member automatically, but firefox.exe is a launcher stub that exits, so the
real browser is re-parented away from whatever got adopted, and anything
arriving a moment later escaped. The same code on both APIs; only their timing
differs, which is exactly what makes a race look like a working feature. It now
scans until a full pass adds nothing for a settle window. After: ten sessions,
zero survivors on both paths.

THE GENERATOR, not just the instances. The parity test that was supposed to
prevent this looped over a hardcoded three-name tuple, so it could only catch
the bug that had already happened. It derives the expected set from the sync
class now: a member added there and forgotten on the other side goes red with
nobody editing the test. The env-var check is stronger still - NEITHER class may
name an INVPW_/STEALTHFOX_ variable, they all live in _session - because the
first version credited the shared module to both and the mutation that puts
INVPW_TRUE_HEADLESS back into async alone SURVIVED it.

And INVPW_TRUE_HEADLESS, a documented variable, was read in the async class
alone: it applied or did not depending on whether you wrote `with` or
`async with`. Both now read it through _session.

_session.py holds what the two share: prefs, the launch environment, the
IANA-to-POSIX table (which async imported FROM launcher for no reason other
than that is where it was written first). _build_prefs was a method on one side
and the same twenty lines inlined on the other, identical calls in identical
order, differing only in their comments.

Also deletes _humanize_max_seconds, which had had no caller in src/ since the
cursor engine moved into this package while six tests kept it alive. Those
tests now assert the function the live path calls, plus one that ties it to the
arming path so they cannot drift back into pinning something dead.

Mutation-tested: the async losing the reaper, the knob going back to async-only,
a member appearing on one side, and `if bound: break` returning are all red.
748 tests green.
2026-07-27 13:55:56 +02:00
feder-cr b9b4fbf1d1 docs: the timing failure, folded in rather than given a tenth near-duplicate page
The mapped query list had a separate title for injection timing, on a phrasing
close enough to this page's that a second page would have split one answer across
two documents and competed with itself.

The technical point was genuinely missing though, and it is the one that explains
the most confusing symptom in this area: a patch has to run before the page's own
scripts, so checking by hand in a console always succeeds, and a page whose first
line captures the value keeps the original forever. You cannot un-read a value that
was already read. Headed and headless differ here not by injection order but by
timing, which is why a race won on a warm laptop is lost on a loaded CI box.

Ends where the page already pointed: a value decided inside the engine has no race,
because there is no moment before which it was something else.
2026-07-27 13:48:17 +02:00
feder-cr dacdb8b0c6 docs: Firefox preferences that silently do nothing
Five reasons in the order they actually happen, and the first one is ours. Firefox
has no schema for preferences: about:config will store my.invented.pref and nothing
reads it, nothing complains, and it sits in the profile looking exactly like one
that works. A typo, a rename after an upstream bump, or a pref that only exists in
a build you are not running all produce the same silence.

This repository shipped that. Seven tests pinned preference names the engine never
reads, asserted the names were written, and stayed green while the engine ignored
all seven. So the page states the rule that follows: checking a preference was set
is not a test, the check has to be that observable behaviour changed, read back
from the page rather than from the profile.

Then the four less interesting ones: build-time prefs that are compiled in,
user.js winning over prefs.js on every launch while prefs.js is rewritten on exit,
enterprise policy overriding both, and a page-level shim answering after the
browser already reported the value.

Ends by owning the trade rather than defending it. Delivering the whole fingerprint
through preferences is what makes this page necessary, and it is also what lets one
binary be any machine without being rebuilt.
2026-07-27 13:45:42 +02:00
feder-cr 219f4246a0 docs: the test-runner page said three in four places while listing four
Folding Nightwatch in left the title, the opening claim, the shared setup line and
the WebdriverIO superlative all still counting to three. Fixed, along with the two
places the index and the top-level README described the same page.

Small, but a page that miscounts its own contents is the kind of thing a reader
notices before they notice anything it says.
2026-07-27 13:42:32 +02:00
feder-cr 54c68fa3c4 docs: Nightwatch and SeleniumLibrary, folded in rather than given thin pages of their own
Both verified from source. Nightwatch reads firefox_binary and calls setBinary,
and builds FirefoxOptions from the declared capabilities, so moz:firefoxOptions
prefs carry the profile: both halves through standard WebDriver. SeleniumLibrary
reaches both too, but through two different string-format arguments, options= for
binary_location and ff_profile_dir= for a chain of set_preference calls.

Folded into the pages they belong to rather than added as separate files. Two more
short pages would have split the same audience across four documents and made the
index longer without making anything easier to find.

The SeleniumLibrary section includes the generator one-liner, because that argument
takes several hundred preferences as a semicolon-separated string of calls and
nobody is typing that. It also says plainly that Browser is the better library, and
why the section exists anyway: a suite already on SeleniumLibrary will not be
rewritten for a browser engine and should still be able to use one.
2026-07-27 13:40:05 +02:00
feder-cr 15b1ec3741 docs: ScrapeGraphAI does not fit, and the reason is not the one the shortlist assumed
Went to write the guide and read the loader instead. The passthrough is real:
browser_config is **kwargs and firefox.launch gets it, so the binary and the
preferences arrive. Then line 252, and again at 365, calls
Malenia.apply_stealth(context) unconditionally, with no flag anywhere in the file
to turn it off.

So the framework layers undetected_playwright's JavaScript patches on top of an
engine that has already answered the same questions natively. That is the exact
failure three of the explainer pages describe: two components independently
deciding who this browser is, disagreeing, and the disagreement being louder than
either being unusual alone.

Recorded in the does-not-fit list with the line numbers rather than written up as
a guide with a warning at the bottom. A page that says "here is how, but it fights
itself" would get skimmed to the code block.
2026-07-27 13:37:09 +02:00
feder-cr 41dd303f08 docs: an index for docs/, and the pages now link each other
Nineteen pages had accumulated with nothing collecting them, and eight of the ten
explainers linked nowhere at all. GitHub renders docs/README.md when you open the
folder, so that was a free landing page nobody was standing on, and pages that
link nothing are read once and left.

The index carries a short closing section on the three ideas that turn up on
almost every page, because they had been restated eight times without ever being
said once in one place: consistency beats rarity, suppressing a signal is a
signal, and server tells are not automation tells and need different fixes.

Verified every path it claims, including pinning.md, rather than listing what I
thought was there.
2026-07-27 13:29:36 +02:00
feder-cr ebc0325448 docs: how CreepJS decides you are lying, read from its source
Read src/lies/index.ts and the module layout rather than the rendered page,
because the method is the story and the number is not. Four techniques, all
quotable: a pristine reference pulled from a fresh iframe's contentWindow, which
your page-level patch never touched; stack-trace matching on /at Function.toString/
to catch a replacement hiding behind a patched toString; descriptor and prototype
walking that notices an override moved off the prototype; and the one worth the
page, that blocking its probe is itself written down, with lie names
"client blocked phantom iframe" and "client blocked behemoth iframe" in the source.

That last one is the generalisable principle and it is one this project already
holds internally: suppressing a signal is a signal. A browser that refuses to
answer is louder than one that answers plainly, because refusing is rare.

Which explains why the two obvious strategies score badly. Overriding everything
generates a lie record per surface, so effort spent hiding actively hurts. Turning
on maximum privacy protection lands you in the resistance module, which exists to
identify exactly that.

Stops short of claiming any tool is undetectable. The claim is narrower and
checkable: this category of check bites on the seam between a patch and the
runtime, and everything else stays exactly as hard as it was.
2026-07-27 13:15:41 +02:00
feder-cr 3d66b6d216 docs: what sannysoft actually checks, read off the live page
Fetched the page and enumerated its element ids rather than writing from memory,
which is how the interesting part surfaced.

Three of the canvas tests are run twice, in the page and inside an iframe, and the
results compared: canvas3-iframe, canvas4-iframe, canvas5-iframe. That is not a
fingerprint test, it is a consistency test, and it is aimed exactly at how most
anti-fingerprinting works. A script injected into the top-level document is not in
the iframe's execution context, or seeds its noise differently there, so the two
readings disagree where a real browser's never do. The same shape appears in
media1 versus media and in the battery rows.

So the honest verdict on the famous table is that it describes headless Chrome as
it behaved around 2018 and every tool fixes it on day one. Passing proves you are
not running an unmodified headless browser and nothing else. Two of the eleven rows
still carry weight and neither is about automation: the WebGL strings, which name
your hardware, and Permissions, which is the only row that cross-checks two sources
rather than reading one value.

Says plainly that a green table is worth what it sounds like, and points at the
canvas section as the part to actually read.
2026-07-27 13:01:30 +02:00
feder-cr 5248f32f83 docs: three test runners, and the one that cannot carry the profile
Checked each from source rather than assuming they were equivalent, and they are
not. Cypress builds moz:firefoxOptions with binary and prefs, so both halves are
reachable through --browser and the before:browser:launch hook. WebdriverIO takes
both directly as a W3C capability, the cleanest of the three. TestCafe has no
Firefox preference mechanism at all, searched and found nothing, so it carries the
engine and nothing else, and the page says so in bold rather than leaving it to be
discovered.

None of the three mentions this project, checked first, so all three are new.

The Cypress trap is worth the page on its own: setting userAgent in the config
makes Cypress write general.useragent.override into the same preference set the
profile uses, so it silently wins and produces a browser contradicting itself. The
line number is in firefox.ts and the fix is to leave it unset.

Ends by saying why you would use this engine in a test runner at all, which is a
realistic rendering and font stack, not evasion. A suite running against your own
staging environment does not need an identity and should not pay for one.
2026-07-27 12:44:57 +02:00
feder-cr 79640281c8 docs: Crawlee for JavaScript, and the cost of a Python dependency in a Node project
Verified from playwright-launcher.ts: launcher takes a BrowserType, its own
comment suggesting require('playwright').firefox, and launchOptions is Playwright's
LaunchOptions, so executablePath and firefoxUserPrefs both fit. They do not mention
this project anywhere, checked first, so this is a new target rather than a page
correcting itself.

Says the awkward part in the second paragraph rather than burying it: the engine
and the identity are produced by a Python package, so a Node project takes a Python
dependency, and if that is unacceptable the answer is a Chromium tool rather than a
workaround.

useFingerprints: false gets its own section because Crawlee's generator is good and
that is exactly the problem. Two independent opinions about who this browser is do
not average out, and a generated header set disagreeing with an engine-level
fingerprint is louder than either being slightly unusual alone.

Flags the trap specific to this framework: rotating proxies across countries is
normal in Crawlee, and a prefs file carries one timezone, so the browser will
contradict most exits unless the file is selected per region.
2026-07-27 12:38:42 +02:00
feder-cr d78897e63a docs: Robot Framework Browser, the cleanest fit of the set
New Browser takes executablePath and firefoxUserPrefs as documented named
arguments, verified in Browser/keywords/playwright_state.py. No subclass, no
provider, no dictionary to reverse-engineer: both halves are first-class.

Checked first whether they already say anything about this project, as the last
two integrations turned out to. They do not, so this one is genuinely new rather
than a page correcting itself.

Two Robot-specific traps are called out because the syntax invites them. New
Browser defaults to Chromium, so pointing executablePath at a Firefox build
without passing firefox first fails confusingly. And New Context offers
timezoneId, locale, viewport and colorScheme, each of which is a value that has to
agree with the profile once you set it by hand rather than being derived from it.

Includes the inline variant that reads the prefs straight from the installed
package, since a checked-in JSON file eventually drifts from the engine it was
generated for.
2026-07-27 12:06:48 +02:00
feder-cr 8d4e817f19 docs: CodeceptJS integration, which carries both halves
Verified from lib/helper/Playwright.js on 4.x: _getOptionsForBrowser returns
{ ...config[config.browser] }, spread into playwrightOptions, so a firefox block
forwards executablePath and firefoxUserPrefs together. Both halves, no subclassing.

Their own Playwright docs already mention this project as an example of pointing
at a custom executable, so this page is the wiring that mention implies rather
than a pitch.

Says what the JavaScript route gives up, same as the other non-Python pages:
humanised pointer paths, which the Python driver draws from the seed, and timezone
and locale resolved from the proxy exit at launch. And flags the CodeceptJS
specific trap, that userAgent sits right next to the options you do want, so it is
easy to override the one value that must not be overridden.
2026-07-27 12:01:19 +02:00
feder-cr 1c29b311f3 fix(tests): the taskbar fallback asserted 40, which is the value the engine never returns
Caught by the pre-push gate on a docs-only push, against core 18.3.0.

The core states the reason in place: nsScreen.cpp:114 returns {0, 0, w, h - 48},
so the sampler's fallback has to be the same number or Profile.screen.avail_height
reports a height no browser will ever produce. Its comment records that it was 40
there, and in all 93 rows of cpt_screen_given_class_tier.json, since before the
split.

So this assertion was pinning the bug. It passed for as long as the installed core
carried the same wrong number, and went red the moment the core was fixed, which
is the correct behaviour for a test that compares two sides of a contract.
2026-07-27 11:57:55 +02:00
feder-cr ca181c4a18 docs: the Scrapy guide documented the lesser of the two routes
Went to open a pull request against scrapy-playwright and found their page was
already right, and ours was behind. They have a PLAYWRIGHT_BROWSER_PROVIDER
setting and a BrowserProvider interface, shipped in the released 0.0.48, with a
worked example for this project written by their maintainer. Verified the example
against our API: async_api.InvisiblePlaywright imports, is an async context
manager, and takes profile_dir and seed as it claims.

That route hands the provider our own class, so it reaches the whole wrapper. The
settings-only route this page previously led with reaches the engine and the
preferences and nothing else: no humanised pointer paths, since those are drawn by
the driver from the seed; no timezone or locale resolved from the proxy exit, so a
proxy in another country disagrees with the browser; and no pin check.

Rewritten to lead with the provider and keep the settings route labelled as the
fallback it is. The nothing-cosmetic list is stated rather than implied, because
someone who picks the cheap route should know what they gave up.
2026-07-27 11:51:37 +02:00
feder-cr c6b189cfd9 docs: the cdc_ variable, and why renaming it is not removing it
Five of the nine results for this query are GitHub, and the non-GitHub competition
is thin, spun-looking content. A real explainer clears that bar easily.

The substance is the distinction the popular fix obscures. Patching the binary to
replace the literal defeats a check that greps for the prefix, and leaves the
surface intact: three related own properties on document, a common random-looking
stem, typed suffixes, and a replacement constrained to the same length because it
is an in-place patch of a compiled file. A detector matching the shape rather than
the string finds it again.

That generalises past this variable, which is why the page is worth writing from a
Firefox project. Any tool that runs code in the page needs somewhere to keep state,
and the three options are a known name, a random name, or not in the page at all.
Only the third removes the surface, and it is a design decision no plugin can make
retroactively.

It also says plainly that a stock Playwright Firefox is trivially detectable by a
different two-line check, since the spec requires navigator.webdriver, and that
anyone claiming Firefox is inherently undetected is selling something.
2026-07-27 11:44:26 +02:00
feder-cr e708df2946 docs: what resistFingerprinting really does, and why this project turns it off
Chosen because the query has no vendor blog anywhere in its top five: Mozilla's
own support pages, an academic paper on intervention breakage, a Hacker News
thread and a GitHub issue. An open lane, and a question this project has a
concrete answer to.

The answer is counterintuitive enough to be worth the page. Turning Firefox's own
anti-fingerprinting mode on looks like the obvious first move for an automation
tool and is usually wrong, because RFP does not make you look like a typical user,
it makes you identical to every other RFP user. That is the Tor model and it is
correct when the population is large. On the open web almost nobody has it on, so
the signature it produces is a small, sharply defined group rather than a hiding
place, and it contradicts the residential IP the session is coming from.

The distinction is the whole piece: RFP optimises for anonymity within a set, an
automated session needs plausibility as an individual, and those want opposite
implementations. The five preference values quoted are the ones this project
actually writes, all false, and a reader can print them and check.

It also says plainly when RFP is the right tool and this is not, because for a
person wanting privacy from ad networks it is, and no automation library
substitutes for it.
2026-07-27 11:41:06 +02:00
feder-cr 2ac8524024 docs: why headless browsers render different fonts
The least contested query found in this niche. Its top five results are almost
entirely primary sources, a google/fonts issue, two Chromium bug entries and two
puppeteer issues, with a single blog anywhere in the set. No content-marketing
team is competing for it, and it is a question this project has to answer
correctly anyway.

Corrects the common belief while it is at it: headless usually ships the same
fonts, what it lacks is the desktop's font configuration, so the difference is in
how a missing font resolves rather than in what is installed. Two more causes
follow from that, the rasteriser settings and the fact that web font detection
measures rather than enumerates, which is why two containers from one image can
disagree about which fonts exist.

Ends where it should: a claimed platform implies a font set, so Windows in the
user agent on the Linux default set is a contradiction nothing can override,
because nothing was overridden. Same shape as the software-rasterizer tell, and
a server tell rather than an automation one.
2026-07-27 03:11:31 +02:00
feder-cr 9a923016d4 docs(readme): put the words people actually type into the first screen
Twelve real searches in this niche showed this project absent from every top five,
including "playwright stealth firefox", which is the most literal description of
what it is. The reason was visible in the file: the first screen said "A modified
Firefox that passes every bot detection test" and contained neither "Playwright"
nor "Python", so there was nothing to match on.

The tagline now carries all of it and gives up none of the claim. Added a short
"if you got here from a search" section that names the category in the four
phrasings people actually use, and names the nearest open-source neighbours
honestly rather than pretending they do not exist, with a link to the page that
explains what each approach cannot reach, this one included.

Naming the alternatives is deliberate. A reader comparing tools is going to find
them anyway, and being the page that explains the comparison is worth more than
being the page that hides it.
2026-07-27 03:08:34 +02:00
feder-cr 5a3249cfe2 deps: follow the core to 18.3.0, after checking it is actually on the index
The core moved to 18.3.0, which is the release carrying the WebGL persona fix: the
pool no longer hands out the string Windows prints when a machine has no GPU.

Checked before pinning rather than after. invisible-core 18.3.0 is live on PyPI
with both a wheel and an sdist, so this specifier resolves. Pinning a core that
exists only in a local checkout is the one mistake this pin cannot survive, since
it makes the package uninstallable for everyone and a filename can never be
re-uploaded.

The pre-push gate is what caught the drift, on a docs-only push, which is the
argument for having it: a wrong pin is invisible to the test suite and only shows
up at install time on somebody else's machine.
2026-07-27 03:00:07 +02:00
feder-cr 0ef2eed9fe docs: WebGL renderer strings, including the software-rasterizer tell we shipped
The strongest of the queries a repository page can still win in this niche: three
of the top six results are GitHub or Mozilla primary sources, and a competing
Firefox project's own wiki holds one of them, which is direct evidence that a
technical page from a project like this one ranks here.

It explains the parts people get wrong: that Firefox on Windows reports through
ANGLE, so the vendor really is "Google Inc. (NVIDIA)" and a Mozilla-branded string
is the anomaly; that the shader-model fields correlate with the age of the card;
and that the platform you claim and the shape of this string are one comparison
rather than two values.

The middle section is our own bug, written up as the case study rather than
quietly fixed. Sampling the persona pool faithfully from real telemetry reproduced
reality's worst case, because real users do run Windows on machines with no GPU:
21 of 1,500 seeds drew the software rasterizer, and seed 42, the seed in our own
quickstart, was one of them. Now zero of 1,500. The generalisable part is that a
pool sampled from real data still needs a rule about what is disqualifying, since
"real users have this" and "you should claim this" are different questions.

Publishing the mistake is deliberate. It is the most useful paragraph on the page
and it takes the argument away from anyone who would otherwise make it for us.
2026-07-27 02:51:11 +02:00
feder-cr 7eb68f7e34 docs: link the guides from the README, since an orphan page ranks for nothing
Seven pages were added under docs/ over the last two days and nothing pointed at
any of them. A page nobody links is a page search engines reach last and readers
never reach at all, which makes the whole exercise ornamental.

Split into the two things they are: how to run the engine inside another
framework, and how the underlying mechanisms work whether or not you use this
project. The second group is deliberately written to be useful to someone who
picks a different tool, because a page that is only an advert answers nobody's
question and gets treated accordingly.
2026-07-27 02:33:05 +02:00
feder-cr 0749935746 docs: three explainers, put where the search results actually come from
A pass over twelve real searches in this niche found the split: the broad
listicle queries are held end to end by scraping-API vendors with content teams,
and the narrow debugging queries are still held by GitHub repos and issue threads.
On "navigator.webdriver undefined not working" four of the top five results are
GitHub issues and not one is a vendor blog. On "playwright detected as bot" a
GitHub issue sits second, ahead of three of them.

So these three go in the repository rather than only on a blog, because the
repository is the venue that ranks for what they answer:

- navigator-webdriver-explained: why setting it to false is worse than leaving it
  alone, since a clean browser reports undefined, and what an audit reads instead.
- playwright-stealth-levels: the three levels a tool can work at, page, driver,
  engine, and what each cannot reach. States the costs of the engine level from
  the inside, including the software-rasterizer persona found in our own pool.
- playwright-detected-as-bot: a troubleshooting order that puts "check what you
  overrode yourself" first and the proxy seventh, because the proxy is the
  expensive fix and the least likely single cause.

Each says who wrote it and what they maintain, at the end. A comparison piece that
happens to be won by its own author's project, unsigned, would be worth less than
not writing it.
2026-07-27 02:26:39 +02:00
feder-cr afd145385a docs: the engine is not Python, and every Playwright binding can already drive it
Checked each official binding's launch options: playwright-go, playwright-dotnet,
playwright-java, playwright-ruby-client and playwright-rust all expose
executablePath and firefoxUserPrefs, because they mirror the same API. Those are
exactly the two halves this project needs, so the patched Firefox runs from Go,
Java, C#, Ruby and Rust today. The package is how you obtain and configure the
engine, not a requirement for driving it.

The page says what you give up outside Python, because it is not nothing: automatic
timezone and locale resolution from the proxy exit, humanised pointer paths, and
the pin check that refuses a binary which does not match the config that produced
the prefs. Upgrade the binary, keep an old prefs.json, and nothing warns you.

It also records a real gap rather than working around it quietly: the CLI can print
the binary path but has no command to emit the preferences, so the guide tells you
to generate them with a one-liner. A `prefs --json` subcommand would make this
route clean.
2026-07-27 02:23:24 +02:00
feder-cr da5af3a289 fix(hooks): track the pre-push hook as executable so POSIX git will run it
The previous commit added the test; this is the mode change it asserts. Git
refuses to run a hook without the executable bit, prints that it "was ignored
because it's not set as executable" and exits 0, so on every POSIX clone the push
went out with none of the gates behind it having run: not the suite, not the
core-pin check, not the forbidden-name scan.

It survived because this is developed on Windows, where core.fileMode is false.
The mode lives in the index, which is why chmod-ing the working tree never fixed
it.
2026-07-27 02:06:08 +02:00
feder-cr c164a91b4b docs: Scrapy integration, and an index that says which half each framework can carry
scrapy-playwright is the cleanest of the three so far and the only one that takes
the whole thing with settings alone. Verified from provider.py: it splats
PLAYWRIGHT_LAUNCH_OPTIONS straight into browser_type.launch, so the dict carries
executable_path and firefox_user_prefs together. Their own docs already name this
project as one of several compatible backends, so the wiring is the part that
belongs on our side.

The index exists to make the distinction impossible to miss. A framework that
forwards arbitrary launch options carries both the engine and the seeded profile.
One that only exposes a browser-path setting carries the engine alone, which means
every user of that build shares one identity. Each page now states which case it is.

It also lists, by name, the frameworks this does not fit and why: Chromium-only
launch paths, remote-CDP-only connections, and the ones that build launch arguments
as a fixed dict with no passthrough.

Not pushed. Public repo, needs an explicit go.
2026-07-27 02:06:08 +02:00
feder-cr 468343cd2b docs: the MCP channel was never blocked, and a one-liner is not the integration
Yesterday's note said MCP was unreachable because we do not ship an MCP server.
We do not, and it turns out not to matter: Microsoft's own playwright-mcp takes
--browser firefox and --executable-path, so it drives this engine today with two
settings and no code. Guide added.

Both guides now make the same distinction, because it is the one people will get
wrong. Passing only the binary gets the patched engine and not the seeded profile:
the identity lives in firefox_user_prefs, which neither --executable-path nor
Crawlee's default_browser_path can carry. That yields one identity shared by every
user of a build, which is its own signal. The crawlee page now shows the one-liner
and says plainly what it costs, next to the plugin that does it properly.

Verified against current sources: crawlee's default_browser_path field and its two
env aliases, and playwright-mcp's two flags with their env equivalents.

Not pushed. Public repo, needs an explicit go.
2026-07-27 02:06:07 +02:00
feder-cr 58e8321bcb fix: the pre-push hook was tracked 100644, so git never ran it on POSIX
git refuses to run a non-executable hook: it prints an advice line and exits 0,
so the push succeeds with none of the gates behind it having run. All three
repos were 644. It survived because core.fileMode is false on Windows, where
this is developed - the only machine that ever ran the hook was the one machine
that could.

The mode belongs to the index, so chmod-ing the working tree never changed it
and a fresh clone inherited the same broken mode.

The test asks git rather than the filesystem, because os.access(X_OK) is
meaningless on Windows and returned True the whole time.
2026-07-27 02:06:07 +02:00
feder-cr 623a542951 fix(tests): two tests that only passed on the machine they were written on
CI has been red on both since they were written, for the same underlying
reason: they asked the developer's checkout a question that only the installed
package can answer.

_REQUIRED_PREFS_KEYS listed media.webm.enabled and media.mp4.enabled. Those two
prefs were renamed to their real Firefox spellings in the CORE's checkout, and
the pinned core release does not emit them yet. But invisible_playwright.prefs
is a pure alias shim for invisible_core.prefs, so this file tests the core's
function through an alias - against whichever core pip resolved, which locally
is the checkout and on CI is the published wheel. The list was asserting a
contract the declared dependency does not meet, which is a NORMAL state between
releases. A gate that is red for a normal state is a gate people learn to
ignore. The two keys are asserted in the core's own suite, where the change
lives and where the assertion moves with it.

In exchange the proxy test got stronger: it now compares against the dict as it
was before the call rather than against the literal list, so it catches the loss
of ANY key, including ones nobody thought to list, and says the same thing
whichever core is installed.

test_readme_claims looked for two env vars in `_REPO.parent / "invisible_core"`
- a SIBLING CHECKOUT, which exists on the workbench and nowhere else. On CI only
this repo is checked out and the core arrives as a wheel, so the path was
missing, the comprehension yielded nothing, and the test reported that the
README documents a variable no module reads. It was reading the developer's
directory layout. It asks the installed package now, which is what a user's
environment actually contains either way.
2026-07-27 01:26:29 +02:00
feder-crandClaude Opus 5 cee33ba695 docs: integration guide for Crawlee, hosted here because that is where they asked
Crawlee declined a stealth-browser example in their own docs in June, and issue
1936 says why and what to do instead: they will not feature fresh third-party
tools, and third-party projects should host their own integration guides on their
side so Crawlee can link to selected ones. We never wrote ours. This is it.

Written against their current master rather than against the merged examples. That
mattered: the examples merged in March pass header_generator to
PlaywrightBrowserController and the current API takes fingerprint_generator, so
copying the accepted pattern would have shipped a guide that does not run. The
subclass also respects use_incognito_pages and the persistent-browser path instead
of ignoring them.

Verified: the snippet parses, every imported name is exported from crawlee.browsers,
and PlaywrightPersistentBrowser comes from the public package rather than the
private module.

Not pushed. Public repo, needs an explicit go.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-27 01:03:16 +02:00
feder-cr 3b49449efa docs(pinning): the page documented a knob that raises
`fonts` was listed as a top-level pin key - "complete font allowlist, the
sampler usually picks 14-24 system fonts". Passing it raises ValueError. It
stopped being an axis when the engine moved to a bundled font list: the exposed
set is the same families on every install and every OS by construction, and
varying it per profile would put back the entropy the bundle exists to remove.
The row outlived the feature by several releases because nothing read the page.

The right pin for fonts is no pin, and the page says so now rather than just
dropping the row - a reader who remembers the key needs to be told where it
went, not left to infer it from a ValueError.

browsing_history was the opposite case: a real profile field, documented
nowhere, and not pinnable either. Fixing the seed already fixes it. Said out
loud so nobody tries.

tests/test_pinning_doc.py, six cases, none of which read prose:

  every documented key is handed to the real validator through
  generate_profile, not compared against a copy of the key table - the thing in
  doubt is what a reader's call does;
  every pinnable key must appear on the page, which is the direction that
  catches the NEXT one rather than this one;
  the validator's hand-written _PIN_GROUPS must match the profile dataclasses
  it describes, or a new field is unpinnable with no error anywhere;
  the page's worked examples are parsed and their pin dicts checked, because
  examples and key tables drift apart independently and examples are what
  people copy.

Mutation-tested: putting the fonts row back, deleting a valid key from the
page, breaking a key in an example, and adding a field to the validator that
the model does not have are all red. 743 pass.
2026-07-27 01:00:09 +02:00
feder-cr da3bf64615 chore(hooks): scan the commit messages too, not just the files
The name scan only ever read what the wheel and the sdist carry. That is the
PyPI surface; this repo is public, so its workflows, its hooks, its docs and its
commit messages are published just as surely as its source. Commit messages had
never been read by anything, and that is where names went out.

The hook now reads the refs git feeds it on stdin and hands the range to the
scanner, so the messages about to be pushed are scanned while they can still be
reworded - after the push a message cannot be changed without rewriting history.
A branch the remote has never seen becomes "<sha> --not --remotes"; a deletion
pushes no content and is skipped.

It also runs the scanner's own known-bad cases first. A gate nothing tests is
not a gate, and this one had been returning a clean verdict over three of the
four surfaces it was believed to cover.
2026-07-27 00:45:40 +02:00
feder-cr 1d990408c3 docs: four of the five CLI lines in the README were command not found
They used `invisible_playwright` with an underscore. The installed console
script is `invisible-playwright` with a hyphen. The Install section two hundred
lines above is correct (`python -m invisible_playwright ...`), which is how this
survived: anybody testing the quickstart never reached the CLI block.

Also corrected, all of them things a reader checks before starting:

  the download is ~238 MB and ~544 MB unpacked, not the ~100 MB stated - a 2.4x
    understatement on the number a user weighs against their disk and their
    patience;
  `doctor` existed and appeared nowhere on the page. It is the command whose
    output a bug report needs, so leaving it undocumented cost twice;
  `path` downloads the engine if it is absent. The line described it as merely
    printing a path, so a cold `path` fetched 238 MB unannounced;
  the cache location was documented nowhere, in any of the three READMEs, and
    neither were the environment variables. There is a table now:
    INVISIBLE_PLAYWRIGHT_CACHE_DIR, INVPW_BINARY_PATH, STEALTHFOX_GITHUB_TOKEN,
    INVISIBLE_PLAYWRIGHT_SKEW, INVPW_CURSOR_ENGINE.

Eight tests keep it that way, and none of them reads prose: a bare invocation
must use the installed name, every documented subcommand must exist, every
subcommand must be documented, every documented env var must be read by a
shipped module, and every size on the page must sit inside what the seal
supports.

That last one had to be inverted after mutation testing. It first accepted the
set if ANY figure was close, so putting one of the two occurrences back to
~100 MB left it green - a check that tolerates a wrong number as long as a
right one is nearby.
2026-07-27 00:14:51 +02:00
feder-cr a9a13bf5e6 ci: two false greens, one of them demonstrated by its own only run
WEBRTC-E2E WAS GREEN WITH ITS HEADLINE ASSERTION SKIPPED. Run #1 logged
"1 passed, 1 skipped", and the skipped one is the test this workflow's header
calls the point of the gate. Two things allowed it:

  the binary path was assigned as `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 - after which both tests skip on
    "no patched binary", pytest exits 0, and the job is green having verified
    nothing. It now captures, checks the path exists, and refuses;
  it was the only one of four workflows with no floor. It now refuses on ANY
    skip, not merely on a low count, and prints the SKIPPED lines - because
    here a skip is the failure mode, not an edge case.

TESTS.YML HAD NO FLOOR EITHER, on the largest suite of the three. `addopts`
already filters two markers; one more, or a typo in one, turns 726 tests into 0
and reports success. Floor at 600.

Both gates were driven against known-bad reports using the gate's own code
lifted out of the workflow rather than a re-implementation - including, for
webrtc, the exact "1 passed, 1 skipped" text run #1 produced. It refuses it.
2026-07-26 23:47:13 +02:00
feder-cr 6cb631beca fix: seven tests pinned pref names the engine never reads
The core stopped emitting four dead prefs and this repo went red - which is the
useful part. These tests listed `zoom.stealth.screen.avail_width/height`,
`zoom.stealth.screen.dpr` and `zoom.stealth.webgl.msaa` among the REQUIRED keys
of a valid pref set, so they were guaranteeing the presence of names that appear
nowhere in the engine source. A required-key list that requires no-ops gives
confidence in nothing and makes removing dead code look like a regression.

Pointed at what actually controls the behaviour:

  the MSAA tests now read `webgl.msaa-samples`, an upstream Firefox pref we set
    and the engine honours. Only our `zoom.stealth.webgl.msaa` was dead, so the
    behaviour these tests describe still exists - they were watching the wrong
    name for it;
  the codec keys move to `media.webm.enabled` / `media.mp4.enabled`;
  device pixel ratio moves to `layout.css.devPixelsPerPx`, which is where it
    actually reaches a page;
  the two avail_* keys are dropped - nsScreen derives the available rect from
    screen.width/height and never reads them.
2026-07-26 23:42:23 +02:00
feder-cr dcdbf200ff fix: the process-leak fix shipped to half the users and said it was fixed
0.4.0 tied the browser tree to the process lifetime and the release notes said
so. It reached the sync launcher only. async_api.py did not import _reaper at
all: no token, no guard, no stamp, no reap. So every async user on Windows kept
the entire leak - a killed runner leaving eight to twelve browsers behind - for
three releases, while the changelog told them it was closed.

Nothing was red, and could not have been. This module is at 29% coverage, no
test enters its context manager, and the async test file asserted parity in its
DOCSTRING while exercising the constructor.

Now identical to the sync path: mint the token, stamp it into the browser env,
bind the tree to a job object after launch, reap unconditionally at the end of
teardown - which matters because every close step above it is individually
wrapped in `except: pass`, so a browser that refuses to close is otherwise
swallowed in silence.

Three tests, each checked against its own mutation:

  the stamp, asserted on the env the browser would actually receive, since
    that is the only thing the guard can key on;
  structural parity of the machinery on BOTH classes - deliberately about
    names, because what failed here was one module never growing the
    attributes, and a test comparing outputs would have passed on two objects
    that share nothing;
  teardown reaps, driven through the real _teardown with a recording guard.

Removing the stamp, the reap, or the guard declaration each turns exactly one
of them red.
2026-07-26 22:50:47 +02:00
feder-cr 4c2d17a475 fix: the user-path e2e could not even be COLLECTED where it is meant to run
The workflow installs only pytest on the runner, deliberately: the package
under test goes into a venv the fixtures build from the index, and a second
copy on the runner's path would mean every assertion reads the wrong one.

Two module-level imports contradicted that and killed collection outright -
exit 4, "No module named invisible_playwright", on both runners, while passing
locally where a checkout is always importable. The workflow had never been
executed before today, so nothing had ever put the two decisions in the same
room.

  tests/test_release_e2e.py imported FIREFOX_UPSTREAM_VERSION to build its
    assertions. It now reads that from the VENV, which is the more honest
    question anyway: what a user gets is what the INSTALLED package reports,
    not what this checkout says;
  tests/conftest.py imported _fpforge and constants at module level, so the
    guard above was not enough on its own. The import is now guarded and the
    fixtures that need it fail at USE time with a message naming the one
    situation where this is expected - a clear failure about one test instead
    of a collection error covering the whole run.

Verified in the condition that broke it rather than reasoned about: 11 tests
collect under a Python with the package absent, 7 e2e pass locally, and the
default suite is unchanged at 726.
2026-07-26 19:01:53 +02:00
feder-cr ffbb94adb0 fix: the fingerprint pinned float64, which no platform can agree on
Three of four CI runners red, passing locally. Measured rather than guessed, by
running the identical 576-case grid on Windows and on Linux:

  on the SAME Python, ONE case out of 576 differs, with the same waypoint
    count - a last-bit libm difference in one coordinate, at one input;
  hashing the INTEGER PIXELS instead, the two platforms are byte-identical.

That settles what the promise can honestly be. A pointer event carries integer
coordinates, so the sub-bit disagreement is not observable by a page, a
detector or a user: it exists only in a float nobody dispatches. The test was
pinning an implementation detail of libm, and a gate that cannot be green on a
supported platform is a gate somebody eventually deletes.

So it pins what reaches the wire - the rounded pixel, the millisecond, and the
number of events - and the count digest is asserted FIRST and separately.
Counts are integer-valued, so a changed count means the rng is being consumed
differently, which is a categorically different mistake from a coordinate
moving and deserves its own message.

Still catches what it was built for: both float-associativity regressions it
found during the planner extraction moved rounded pixels, not merely last bits.
A fourth test asserts the hashed coordinates really are integers, so an edit
that "tightens" this back to raw floats trips over the reason it must not.

Verified on both platforms rather than reasoned about: 4 passed on Windows and
4 passed on Linux, same file, same fingerprints.
2026-07-26 18:50:09 +02:00
feder-cr 8c5ae81873 test: the launch test skipped Windows for a reason that is not true
The skip said "headless launch path requires display server". On Windows it
does not, and never did: headless=True there keeps the real rendering pipeline
and hides the window through the binary's own cloak. Linux is the platform that
needs a display, and it gets Xvfb.

So the full-stack test - wrapper init, Firefox launch, Juggler handshake,
page.goto, page.evaluate - had never run on the primary target, behind a stated
reason that was false. The two most recent defects in this package were
Windows-only by construction, since firefox.exe is a launcher stub that spawns
the real browser and exits; neither was reachable from here.

Removed, and verified rather than assumed: 7 e2e tests pass on Windows,
including that one.

The module docstring described three tests by their old names and behaviour,
including the git install and the linux-only launch. Rewritten to describe what
the file does now, with both mistakes kept in it - a docstring that quietly
becomes fiction is how the git-install path survived a rename.
2026-07-26 18:25:16 +02:00
feder-cr 83e43cb7bd test: nothing covered the path every EXISTING user takes
The install tests all start from an empty venv, which is a route each user
takes exactly once. `pip install -U` is the one they take repeatedly, and it
was untested.

It matters more here than in most packages because of the shape of the
coupling. The wrapper declares an exact `invisible-core==X.Y.Z`, so an upgrade
has to move two distributions in step, and a half-moved environment is repaired
IN PROCESS at import rather than raising - which means a repair that silently
does the wrong thing is indistinguishable from one that worked. From outside,
the import just returns.

Four tests, driven against the live index:

  upgrading from the PREVIOUS published release moves the core with the
    wrapper, and pip agrees afterwards. The previous version is read from the
    index rather than written down, so this does not go stale on the next
    release;
  the upgraded environment holds exactly ONE core root in sys.modules, imported
    from site-packages and not from a checkout that happened to be on the path,
    and the version its metadata reports is the one the module derives from its
    own seal. A swap performed under objects the caller holds leaves two alive
    and shows up much later as behaviour that matches no reported version;
  a hand-pinned old core makes `pip check` exit 1. That is the whole reason the
    dependency is a real specifier: a direct URL has no version to compare, and
    pip reports a broken environment as clean;
  importing the wrapper repairs that environment in the SAME process. Asserted
    on the version afterwards, never on the absence of an exception - "no
    exception" is also what a repair that did nothing looks like.

One assertion in the first draft was `assert reported in path or True`, which
asserts nothing at all. It is now the check it was meant to be: the core has to
come from site-packages, or a venv test could be silently reading the
developer's working tree and passing everywhere.

CI runs both e2e files and the "did anything actually run" floor moves from 3
to 6, re-validated against a report where one of the two files skips itself
entirely - which is the failure a fixed threshold of 3 would have waved through.
2026-07-26 18:13:13 +02:00
feder-cr d0903dec60 test: the user-path e2e was testing a route no user takes
It installed from a git URL. That stopped being anybody's install path on
2026-07-26, when the three packages went to the index, and the difference is
not cosmetic: a git install never resolves `invisible-core==X.Y.Z`, so the
entire pin mechanism - the part most likely to break a release, and the reason
a binary bump is now a three-package release - was outside what this file
could see.

It also installed a blessed `playwright==<pin>` immediately afterwards, and
that line was hiding exactly what the test exists to find. If the declared
range resolves to a client the shipped Juggler cannot speak, installing the
pin afterwards REPAIRS the venv and the suite goes green while every fresh
install is broken. What a user gets is what pip resolves from the declaration,
so that is what is asserted now - including a test that the resolved
Playwright is inside the range the package itself declares, which is a
question neither side can answer alone.

`INVPW_E2E_SOURCE=git` still reaches the old route for verifying an
unpublished commit. It is a pre-release check now, not the default, and the
test says so where somebody reading a failure will see it.

CI: .github/workflows/user-install.yml runs this on ubuntu-24.04 AND
windows-latest, daily and on release. Windows is not decoration - the two most
recent defects were Windows-only by construction, since firefox.exe is a
launcher stub that spawns the real browser and exits, and the job-object fix
for it has no counterpart on Linux.

The workflow refuses a run in which fewer than three tests actually ran.
pytest's exit code cannot distinguish "all passed" from "all skipped", and
every test in this file is gated on a marker and some on a platform, so
skipping itself into a green tick is its most likely failure. That refusal was
driven against four known-bad reports - missing, all-skipped, under-threshold
and empty - using the gate's own code extracted from the workflow rather than
a copy of it.

Deliberately NOT made tolerant. There is a real window, between publishing the
core and publishing the consumers, in which this cannot pass; `|| true`,
`--no-deps` or a git fallback would each produce a green job that installed
nothing, and that lie outlives the window by months.
2026-07-26 18:03:52 +02:00
feder-cr 20e4ca010e test: the snapshot that the whole in-process repair rests on had no killing test
Replacing the three-line `any(name == "invisible_core" or ...)` in _pin.py with
a hardcoded False left this package's entire suite green. The two tests that
touched the value could not see it: one is a source-order scan, and a hardcoded
line still sits before the import; the other asserts
`seen["core_preimported"] is _pin._CORE_PREIMPORTED`, a tautology whatever the
value came from.

It matters because _CORE_PREIMPORTED is the entire soundness argument for
repairing the core in-process. repair_core refuses to swap it when the value is
true and the core-side guard is real - but THIS package computes the input.
Degraded to a constant, `import invisible_core; import invisible_playwright`
with a mismatched pin drops invisible_core.* out of sys.modules and re-imports
it underneath objects the caller already holds: two versions alive in one
process, every test still passing.

The twin already existed next door in the manager and killed the same mutation
there. Ported: a stub core echoes back what it was handed, imported once in a
child that has not touched invisible_core (must be False) and once in a child
that has (must be True). No constant satisfies both.

The stub's contents are derived from this package's real import list with ast,
because a stub that lags behind it kills the child on ImportError - and an
ImportError in a subprocess reads exactly like the assertion failing.
2026-07-26 17:52:02 +02:00
feder-cr 1060ac9f18 chore: 0.4.2 - the refactor reaches the index
0.4.1 shipped the lifetime guard's rewrite; this carries the planner and idle
and approach split, so what is on PyPI is what is in the repo. No behaviour
change: the paths are byte-identical and a fingerprint test now says so.
2026-07-26 17:08:23 +02:00
feder-cr e7711323ac refactor: three long functions become named stages, with the paths pinned
The planner was 203 lines in one function, the idle planner 134 with its
episode weights written as bare cumulative literals in an if/elif chain, and
the approach 103 mixing guard clauses, target selection and a time budget.

  _plan          -> six stages: control polygon, duration, sample times,
                    overshoot, curve sampling, tremor, duplicate collapse
  plan_idle      -> a table of episodes; the weights are data and the ordering
                    is asserted rather than assumed
  _approach      -> _choose_landing (one small scope owning the element
                    handle) and _walk_onto (spends the time budget)

Byte-identical output, which is the whole point and was not free. Extracting
looked completely safe and changed the result twice, both times through float
multiplication not being associative:

  axis.at(dist * u, ...) computes ux * (dist * u) where the original wrote
    ux * dist * u, i.e. (ux * dist) * u;
  returning amp * w from the overshoot and multiplying by the unit vector at
    the call site regrouped the same product the same way.

Neither was visible in any statistical test - they check distributions, and a
last-bit shift leaves every distribution intact - and both changed a rounded
pixel and therefore every draw downstream of it. tests/test_motion_fingerprint
now pins 576 cases and 16135 waypoints, with a second test that perturbs a
style field by one part in ten thousand and requires the fingerprint to move,
so it cannot quietly become decoration.

CHANGELOG catches up with 0.4.0 and 0.4.1. 723 tests green.
2026-07-26 17:07:10 +02:00
feder-cr 9bf507bdbf chore: the name scan no longer blocks a clone that has no word list
The first cut refused whenever the scanner was not at the workbench path, so
every clone of this repo was stopped on every push with no way to comply - the
word list deliberately lives outside it. A gate that is red by default is one
people switch off, and switching this one off disarms the rest of this hook.

Configured-but-missing still refuses, since setting the variable is somebody
saying to run it. Absent is now one printed line and a normal push, never
silence: silence reads exactly like a scan that ran and passed.
2026-07-26 16:23:02 +02:00
feder-cr 7f152229bd refactor: the lifetime guard is a strategy, not a module of flags
0.4.0 shipped the behaviour and the behaviour is right, but the module was one
file doing four jobs: minting identity, searching with psutil, killing, and
fifty lines of inline Win32 ctypes - held together by a module-level handle and
os.name tested wherever it happened to be needed. It worked and it would have
rotted.

Three pieces, one job each:

  SessionToken    a value object. Mints itself, stamps an environment, answers
                  whether a process is ours. Equality by value, and an EMPTY
                  token is falsy and matches nothing - which is what stops a
                  session that failed before minting one from sweeping the box.
  find_processes  the search, and now the only place psutil appears.
  LifetimeGuard   the strategy: JobObjectGuard on Windows, NullGuard elsewhere.

os.name is tested in exactly ONE place, guard_for(), so no launcher code
branches on the platform - it takes a LifetimeGuard and never asks which one.
NullGuard is a Null Object in the strict sense: it satisfies the interface and
REPORTS that it guarantees nothing (guaranteed is False, bind returns 0) rather
than doing nothing while looking like it worked. It still reaps, because
immediate cleanup is the part that needs no kernel.

Six mutations, each turning a test red, and two of them exposed tests that
proved nothing until this pass:

  the empty-token guard inside matches() was covered for by the duplicate guard
    in find_processes, so removing either left the suite green. There is now a
    test that calls the matcher directly;
  stamp() copying its input was untested. Mutating it to mutate in place does
    not merely fail - it poisons os.environ, every subprocess inherits the
    token, and the reaper kills the test runner. Caught by isolating the case.

Behaviour is unchanged and re-verified: the kill test still passes, and
flipping KILL_ON_JOB_CLOSE to zero still turns it red. 721 tests green.
2026-07-26 15:32:18 +02:00
feder-cr 76201aa744 chore: 0.4.0 - the cursor is drawn here, and the browser tree dies with us
A minor rather than a patch: pointer movement is generated in this package now
instead of in the engine, and psutil joins the dependencies. The core pin moves
to 18.2.0 with it, so a cold install resolves the geo budget alongside.

Also drops a comment that had gone stale under its own subject: the sdist
exclusion list still explained why the forbidden-name guard was excluded, and
that guard is no longer in this repository at all.
2026-07-26 14:38:09 +02:00
feder-cr 6b15f275e8 fix: the browser tree now dies with this process, even when it is killed
Twelve runs of one test left eleven browsers alive. The first diagnosis blamed
"any path where teardown does not run cleanly - a timeout, an exception out of
the with block, a killed runner". Those are not the same thing, and only one of
them leaks.

The exception path does NOT leak. Interleaved A/B over four launches on a real
browser, arms differing only in whether the new cleanup ran: zero survivors in
both. __exit__ executes and Playwright tears the browser down correctly. The
first version of this fix was a careful solution to a path that was not broken,
and it only came out because the measurement was run before the fix was
believed rather than after.

The killed-runner path leaks badly, and the bug report said so in a detail that
was read past: three of the twelve runs had TIMED OUT. Reproduced directly -
launch, kill the runner, count what is left: eight survivors, then twelve.
There __exit__ never runs at all, so nothing written inside _teardown can help
however well written.

So the guarantee comes from the kernel. The tree is bound to a Windows job
object with KILL_ON_JOB_CLOSE; this process holds the only handle, and when it
ends - cleanly, by exception, or killed outright - the kernel empties the job.
Processes created inside a job join it automatically, so content processes
spawned later are covered without being tracked. Same probe after: 0 and 0.

Identification is exact, not heuristic. Each session mints a random token and
stamps it into the browser's environment; children inherit it, so every process
in the tree carries it, and only processes positively carrying it are touched.
The alternative - "a firefox that appeared after we started" - eventually kills
a healthy browser belonging to a session running beside it, and a leaked
browser is recoverable where that is not. A process whose environment cannot be
read is left alone.

Windows only, which is where the bug is: on Linux the launched process IS the
browser and Playwright keeps hold of it, while firefox.exe is a stub that
spawns the real browser and exits, re-parenting the tree out of reach. psutil
becomes a hard dependency rather than an optional one, deliberately - an
optional reaper is absent exactly on the machines that need it, and silently.

Ten tests, each validated against a known-bad input: flipping KILL_ON_JOB_CLOSE
to zero turns the kill test red, and failing OPEN on an unreadable process
turns five red. One was vacuous as first written - "an empty token matches
nothing" passed with the guard removed, because a process without the variable
answers None and None is not "". It is now written around a process whose token
IS the empty string, the only input that separates the two.
2026-07-26 14:13:03 +02:00
feder-cr 275d3df7f1 chore: the forbidden-name scan moves to the workbench gate
It was a test in invisible_playwright that failed closed without the word
list. Correct behaviour, wrong home: the list is deliberately not carried in
any public repo, so a fresh clone got red tests it could never make green, and
a suite that is red by default gets pushed past with --no-verify - which turns
off every other gate in this hook at the same time.

The scan now runs from the workbench, resolved the same way as the core-pin
gate, and a gate that cannot be reached refuses instead of passing quietly. It
runs on every push rather than only on release tags: a name is public the
moment the branch lands, and a force-push does not take it back.
2026-07-26 13:56:30 +02:00
feder-cr 640f931aab feat: draw the cursor here, from the session seed, instead of in the engine
The engine's generator builds every stroke from constants: a fixed knot-box
padding, exactly two knots, one quadratic easing, one step-count law, one jitter
probability. Constants are shared by every install, so the shape they produce is
the same for every movement of every session of every user - and a shape that
never varies is an identity, not a detail. Measured over 1.94M points before any
work started:

  the Y residual mean is +0.4976 px and EVERY path is biased (per-path minimum
    +0.000 over 4000 paths), so one movement is enough to see it;
  the X residual's distinct-value set is literally {0.0} - no noise at all, so
    every waypoint lies exactly on an analytic cubic and FOUR events solve the
    control polygon in closed form. The Y jitter cannot hide a curve whose X is
    exact;
  the velocity profile has sd <= 0.0057 and peaks at the FIRST step in the
    median case, i.e. infinite initial acceleration and decay. A hand's profile
    is bell-shaped and peaks near the middle;
  a move under 50 px detours 3.87x the straight-line distance, a 2 px move
    dispatches 24 events, and every movement ends with at least 3 events at one
    coordinate.

This needs no new binary, which was verified in the source before starting: the
humanize hook dispatches waypoints with jugglerSendMouseEvent passing
pressure, inputSource 1 and the synthesis flags, and the ordinary sendEvents()
path that serves a plain page.mouse.move() passes byte-identical arguments. A
move driven from Python is indistinguishable from one the engine generates.

WHAT THIS ADDS
  _motion.py    draws one stroke, every shape parameter from the session seed
  _behaviour.py plans WHEN and WHERE movement happens - drift while reading,
                motion while the wheel turns, overshoot and correction, and
                movements that end on nothing (if every endpoint is a control,
                the endpoint set is a signature however good each path is)
  _cursor.py    wraps the six funnels every pointer action already goes through,
                so page.click written a year ago gets this with no edit. A
                weak-keyed registry leaves a plain sync_playwright() browser in
                the same process untouched, and aiming is a hint that is fully
                swallowed: it can neither delay a call that would have passed
                nor invent an exception on one that would have failed.

MEASURED AFTER
  jitter mean +0.00039 px, CI contains zero, 0.499 of paths positive
  both axes carry noise; a cubic through 4 neighbours misses the 5th by 0.239 px
  tremor is two-dimensional (sd ratio 0.601, was rank-1 with corr 1.000)
  speed peaks mid-stroke; backtracking 2.75% of steps on 32% of paths
  per-seed shape divergence 1.79x at 600 px, was 1.05x
  Fitts uses the real target width: 908 ms to a 20 px control, 423 ms to a 220 px

ONE STROKE MODEL, ENFORCED. _behaviour carried its own as a fallback, so two
intra-move laws could ship and a detector would see a different one depending on
which call site ran. Deleted, and the renderer is a required argument in all
five planners: forgetting it is a TypeError, not a silent second law.

ONE PHYSICAL FLOOR. MIN_EVENT_INTERVAL_MS was an independent 4.0 here while the
generator reasoned from 125 Hz / 8 ms. Two numbers for one physical fact, and
the looser one won wherever it was applied last - the generator emitted 3.52 ms
gaps (284 Hz) and _fit_timeline produced 1.83 ms (547 Hz). One constant now.

NOT BETTER, and recorded rather than buried: duplicate positions run 7-10%
through the macro path against the engine's 8.07%, i.e. parity. Raising the
merge threshold was tried as the lever and reverted - it moved the rate from
0.098 to 0.095. The cause is the small reading movements themselves.

Seed determinism is intact: same seed, byte-identical fingerprint hash.
709 tests green.
2026-07-26 13:43:46 +02:00
feder-cr 251a94853a ci: ask the package where the binary is, instead of rebuilding the path
Every Windows cell of firefox-launch-matrix has been failing since the seal
landed, and failing in the worst possible way: the verify step assembled the
cache path by hand as `Cache/firefox-7/firefox.exe`, while the cache has been
content-keyed as `Cache/<tag>_<version>_<buildid>/` since then. So the step
reported NOT FOUND - which is indistinguishable from the launch failure the job
exists to detect. Nine red cells read as "the bug reproduces on every Windows
edition". It does not; the binary was simply not where the script looked.

The path now comes from `python -m invisible_playwright path`. That is the only
thing that knows it, and a string assembled anywhere else is a second copy of a
naming rule that has already moved once.

Two other things the same drift had hidden. The step named "Fetch firefox-7
binary" runs `fetch` with no argument, so it has been fetching the SEALED tag
for a while - the name was the only part still saying 7. And the job cannot do
what it was written for at all any more: a sealed core serves its own tag and
refuses every other, so `fetch firefox-7` is a SealMismatch by design. Driving
an old tag needs the core that was sealed to it. The header says so now rather
than implying an investigation that can no longer run.
2026-07-26 02:11:25 +02:00
feder-cr 4f8f546d44 chore: declare the distribution as invisible_playwright, pin core 18.1.0
The declared name now matches the import name. Nothing functional: pip and
importlib.metadata normalise the two spellings to the same project, and
`pip install invisible_playwright` already worked.

The rename found a real defect while landing. test_pyproject_declares_the_pin_
exactly_once still carried its own regex, `r'"invisible-core==[^"]+"'` - the
seventh copy of the requirement parsing the consolidation was meant to remove,
and the one the file's own header warns about ("a test that parses the pin its
own way tests its own regex"). It survived because nothing had ever handed it a
spelling it did not anticipate. Writing the pin as invisible_core did, and the
test read zero of a pin that was present and correct. It counts through the
shared parser now, so every legal spelling passes and a missing pin still fails.

0.3.5 -> 0.3.6; the core pin follows to 18.1.0.
2026-07-26 00:08:50 +02:00
1359 changed files with 390917 additions and 16457 deletions

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
# The pre-push hook is a shell script, and git must never hand it to a POSIX
# shell with CRLF line endings: `/bin/sh^M: bad interpreter` is how a gate stops
# running on a machine where nothing else looks wrong. This repo is developed on
# Windows with core.autocrlf=true, so without this line a fresh Windows clone
# gets CRLF in the working tree - and Git-for-Windows' sh is the one that runs it.
#
# The index has always stored LF, so a Linux clone was never affected. That is
# exactly why this was worth pinning rather than leaving to a default that
# happens to be right today.
.githooks/** text eol=lf
# The publish ledger is compared byte for byte across an autocrlf checkout and a
# Linux one. The gate folds CRLF vs LF deliberately, but there is no reason to
# make it do that work.
PUBLISHED.json text eol=lf
# The persona seeds are compared byte for byte with their canonical rendering (tests/test_persona_cover.py): LF on every checkout.
ci/persona-seeds.json text eol=lf
# The wire-method budget is compared with what `dump()` writes, byte for byte
# (tests/test_every_wire_method_is_served_or_refused.py): a Windows runner checks
# out with autocrlf and would hand the test CRLF that nobody wrote.
tests/gates/wire_method_debt.json text eol=lf
# The lock of the gate is hashed byte for byte: its header names the sha256 of gate.in, so neither file may be rewritten with CRLF on a Windows checkout.
ci/py-lock/** text eol=lf
# The vendored bundles are third-party bytes whose sha256 is pinned in tests/vendor/README.md: no checkout converts their line endings
# (a Windows runner with core.autocrlf=true would hand them over with CRLF and the hash would no longer match).
tests/vendor/*.js -text
# The evidence of the known-defects tests and the copy of the core's matcher are hashed byte for byte against tests/data/known_mozilla_defects/sources.json: no checkout converts their line endings.
tests/data/known_mozilla_defects/** -text
# The ready security state is hashed byte for byte against ci/security-state.pin.json.
ci/security-state/** -text
# The page of the password-mask e2e is the same bytes as the page of the retail capture (its sha256 is checked), so no checkout may change its line endings.
tests/data/password_mask_page.html -text
Regular → Executable
+46 -96
View File
@@ -1,105 +1,55 @@
#!/bin/sh
# Pre-push hook: blocks push if the test suite isn't fully green.
# Pre-push gate. THE POLICY IS NOT IN THIS FILE - it is `invisible_core.hooks`,
# and this stub exists only to find an interpreter and hand over stdin.
#
# Enable once with:
# It used to be here, in three repositories, as 743 lines of shell that were 207
# identical lines out of 211 between two of them. Nine of the eleven differences
# were accidental: the core ran no pytest, the core set a variable three times
# that only the other two ever read, the core resolved an interpreter and then
# called bare `python` anyway. Every fix landed in whichever copy was open.
#
# What this repository wants gated is declared in its own pyproject, under
# [tool.invisible.hooks]. That is the only per-repo part, and it is data.
#
# Install once with:
# git config core.hooksPath .githooks
#
# Bypass for a known-broken WIP push (NOT for releases):
# git push --no-verify
# The --no-verify flag is the only escape hatch. Use it sparingly and never
# for branches that feed into a release.
# A test in this repo fails in an uninstalled checkout, so nobody has to
# remember. Bypass a known-broken WIP push with `git push --no-verify`; that is
# the only escape hatch, and never for a branch that feeds a release.
set -e
# No `set -e`: exit codes here have to be READ and explained, not turned into a
# silent abort. A gate that dies without a message is the worst shape of all.
echo "[pre-push] running unit + integration tests before push..."
# Run from the repository root regardless of where `git push` was invoked.
cd "$(dirname "$0")/.." || exit 1
# Run from this script's directory so it works regardless of where the user
# invoked git push from.
cd "$(dirname "$0")/.."
# Default pyproject addopts skip slow/e2e. That's the gate we want for every
# push, fast feedback. e2e is reserved for explicit release runs.
if ! python -m pytest -q --tb=short; then
echo ""
echo "[pre-push] TESTS FAILED - push aborted."
echo "[pre-push] Either fix the failure or use 'git push --no-verify' if"
echo "[pre-push] you really know what you're doing (NOT for release branches)."
python_bin=""
for candidate in "$INVISIBLE_GATE_PYTHON" python3 python py; do
[ -n "$candidate" ] || continue
if command -v "$candidate" >/dev/null 2>&1; then
python_bin="$candidate"
break
fi
done
if [ -z "$python_bin" ]; then
echo "[pre-push] REFUSED - no python on PATH, so no gate can run." >&2
echo "[pre-push] Nothing must be pushed past a hook that could not check it." >&2
echo "[pre-push] Set INVISIBLE_GATE_PYTHON to an interpreter and push again." >&2
exit 1
fi
# The invisible-core== specifier in pyproject.toml must name the version the
# core checkout actually builds. The core's version is derived from its release
# seal, so it moves on its own when a new engine is rolled in; this pin does
# not. Checked here because a wrong pin is not visible to the test suite: it
# only shows up at install time, on someone else's machine.
#
# The checker lives in the local workbench, one level above this checkout, and
# is not part of this repository. It used to be wrapped in a bare
# `if [ -f "$PIN_CHECK" ]`, which skipped with NO output and then fell through
# to a line reading "all tests green - push proceeding". Renaming or moving the
# workbench, or pushing from a worktree at a different depth, disarmed the gate
# and printed something that looks exactly like success. A gate that cannot run
# is now a refusal, and the only way past it is to say so out loud.
PIN_CHECK="${INVISIBLE_PIN_CHECK:-../../scripts/sync_core_pin.py}"
PIN_SKIPPED=""
if [ "$INVISIBLE_PIN_CHECK" = "skip" ]; then
echo ""
echo "[pre-push] ###################################################################"
echo "[pre-push] # WARNING: INVISIBLE_PIN_CHECK=skip #"
echo "[pre-push] # The invisible-core pin was NOT compared against the core. If it #"
echo "[pre-push] # is stale, every install of this package resolves a core it was #"
echo "[pre-push] # never tested against, and no test downstream can see it. #"
echo "[pre-push] ###################################################################"
echo ""
PIN_SKIPPED=yes
elif [ ! -f "$PIN_CHECK" ]; then
echo "" >&2
echo "[pre-push] REFUSED - the invisible-core pin gate is not reachable." >&2
echo "[pre-push] looked for: $PIN_CHECK" >&2
echo "[pre-push] from: $(pwd)" >&2
echo "[pre-push] The workbench moved, or this is a clone/worktree at another" >&2
echo "[pre-push] depth. Point INVISIBLE_PIN_CHECK at sync_core_pin.py, or push" >&2
echo "[pre-push] with INVISIBLE_PIN_CHECK=skip to state on the record that the" >&2
echo "[pre-push] pin is going out unchecked." >&2
exit 1
else
# The gate's own known-bad cases, before the gate's verdict is trusted. They
# live next to it and take about a second. Nothing else in either repo runs
# them, so without this they are 18 cases that execute when a human
# remembers - which is a runbook note wearing a gate's clothes, the same
# shape as the silent skip above.
PIN_TESTS="$(dirname "$PIN_CHECK")/test_sync_core_pin.py"
if [ ! -f "$PIN_TESTS" ]; then
echo "" >&2
echo "[pre-push] REFUSED - $PIN_TESTS is missing, so the pin gate is" >&2
echo "[pre-push] unverified. A gate that has only ever printed PASS is not a" >&2
echo "[pre-push] gate; do not trust this one until its own cases run." >&2
exit 1
fi
echo "[pre-push] running the pin gate's own known-bad cases..."
if ! PIN_TEST_OUT="$(python "$PIN_TESTS" 2>&1)"; then
echo "$PIN_TEST_OUT" >&2
echo "" >&2
echo "[pre-push] REFUSED - the pin gate's own test suite is RED, so its" >&2
echo "[pre-push] verdict on the pin means nothing. Fix $PIN_TESTS first." >&2
exit 1
fi
echo "[pre-push] $(echo "$PIN_TEST_OUT" | tail -n 1)"
echo "[pre-push] checking the invisible-core pin..."
if ! python "$PIN_CHECK" --check; then
echo ""
echo "[pre-push] the invisible-core pin does not match the core - push aborted."
echo "[pre-push] Fix it with: python $PIN_CHECK"
exit 1
fi
fi
# The closing line never claims more than what actually ran.
if [ -n "$PIN_SKIPPED" ]; then
echo "[pre-push] tests green, PIN GATE SKIPPED - push proceeding (see the warning above)."
else
echo "[pre-push] all tests green, pin matches the core - push proceeding."
fi
exit 0
# `src` first so a checkout gates itself with the policy in the tree being
# pushed. os.getcwd() rather than $PWD on purpose: under git-bash on Windows
# $PWD is /c/... and Python does not resolve that mount.
# exec, so stdin (the refs git is pushing) reaches the policy untouched.
exec "$python_bin" -c 'import os, sys
sys.path.insert(0, os.path.join(os.getcwd(), "src"))
try:
from invisible_core.hooks import main
except ImportError as exc:
sys.exit("[pre-push] REFUSED - cannot import invisible_core.hooks (%s).\n"
"[pre-push] The pre-push policy lives in invisible-core. This repo is\n"
"[pre-push] either that package (so src/ is not where it should be) or\n"
"[pre-push] pins it exactly (so install it). Either way, nothing is\n"
"[pre-push] pushed past a hook that could not check it." % exc)
sys.exit(main())'
+1 -1
View File
@@ -42,7 +42,7 @@ body:
id: install_cmd
attributes:
label: How you installed
placeholder: pip install invisible_playwright
placeholder: uv add invisible-playwright
validations:
required: true
@@ -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.
+2 -1
View File
@@ -13,7 +13,8 @@
# this repo now has to RESOLVE that dependency from the index.
#
# The publish order is fixed and non-negotiable: invisible-core is uploaded
# FIRST, the two consumers after it. So there is a window - from the first push
# FIRST, its consumers after it - two until invisible_firefox was deleted on
# 2026-08-18, this package since. So there is a window - from the first push
# of this repo to GitHub until the core's first upload - in which every install
# step here cannot possibly succeed, for a reason nobody can fix from inside
# this repository.
+78
View File
@@ -0,0 +1,78 @@
# ─────────────────────────────────────────────────────────────────────────────
# counters.yml - the daily snapshot of the launch counter, and the README badges.
#
# GitHub keeps only the running total of a release asset's downloads, so the
# launches of a day exist only if someone records the total every day. This is
# that someone: no machine and no personal token, just the scheduler and the
# built-in GITHUB_TOKEN. A run that fails sends GitHub's failure mail, and the
# run's log warns when a day between two snapshots is missing.
#
# Everything it writes lives on the `badges` branch, which is not protected:
# counters/history.csv date,key,value - every counter, once a day
# counters/launches_daily.csv day_utc,launches - one row per measured day
# docs/badges/launches.svg, docs/badges/stars.svg
# docs/badges/launches.json, docs/badges/downloads.json - read by shields.io
# for the big row at the top of the README
#
# 00:10 UTC, so the snapshot dated D closes calendar day D-1.
name: counters
on:
schedule:
- cron: "10 0 * * *"
workflow_dispatch: {}
permissions:
contents: write
concurrency:
group: counters
cancel-in-progress: false
jobs:
snapshot:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out the script (main)
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
with:
path: main
- name: Check out the badges branch
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
with:
ref: badges
path: badges
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: Self-test
run: python main/scripts/launch_counters.py --selftest
- name: Record today's counters and redraw the badges
env:
GITHUB_TOKEN: ${{ github.token }}
run: >
python main/scripts/launch_counters.py
--history badges/counters/history.csv
--daily badges/counters/launches_daily.csv
--badges badges/docs/badges
- name: Commit to the badges branch
working-directory: badges
run: |
set -euo pipefail
git config user.name "feder-cr"
git config user.email "85809106+feder-cr@users.noreply.github.com"
git add counters docs/badges
if git diff --cached --quiet; then
echo "nothing changed"
exit 0
fi
total=$(awk -F, '$2=="launches_total"{v=$3} END{print v}' counters/history.csv)
git commit -q -m "counters: $(date -u +%F), browser launches at ${total}"
git push origin HEAD:badges
+227
View File
@@ -0,0 +1,227 @@
# ─────────────────────────────────────────────────────────────────────────────
# e2e-hunt.yml - runs the e2e suite in a LOOP until it catches a hang.
#
# Why it exists. The e2e job hangs in 12% of runs (4 out of 33 between
# 2026-08-01 and 08-13), and the 40-minute ceiling kills the job. At 12% a
# green run proves nothing, and it takes ~18 runs to have a 90% probability
# of seeing one: waiting for it to happen on its own on a PR means waiting
# days and burning someone else's time every time.
#
# And why HERE and not locally, for TWO different reasons depending on the
# `os` input.
#
# ubuntu-24.04 - the job hang lived there. CLOSED on 2026-08-13 with 36
# runs (two hunts of 18): zero hangs, zero retries. Stays as a
# non-regression check.
#
# windows-latest - a different question, still open: on the dev machine
# interaction tests produce retries (41 out of 17 runs) and on Linux not
# even one in 36. But that machine was not idle - whoever was measuring
# was running on it, and later the owner came back to it - so the
# comparison is CONFUSED between platform and contention. A dedicated
# Windows runner separates the two without asking anyone to stay off it
# for six hours.
#
# A second use, chosen by the input `ab_network_webrtc_seed` (empty = the loop
# above, as always): the network oracle's WebRTC walk of that seed, alone,
# `runs` times for each engine of its A/A (the published engine twice). It
# exists to tell two readings apart when the A/A of that walk differs from
# itself in the number of TURN Allocate datagrams (scripts/ci_ab_network.py:
# AB_NETWORK_HUNT): each repetition keeps every datagram with its time and its
# STUN transaction id and the page's own ICE times (network/hunt/<engine>-<i>.json,
# summary in network/hunt/summary.json). It decides nothing: the step exits 0.
#
# Doesn't start on its own: `workflow_dispatch` only. It's not a gate, it's
# an investigation tool, and it must not be added to the required contexts.
# ─────────────────────────────────────────────────────────────────────────────
name: e2e hunt
on:
workflow_dispatch:
inputs:
runs:
description: "How many runs at most (at 12% it takes ~18 for a 90% chance)"
required: false
default: "18"
ab_network_webrtc_seed:
description: "A seed (e.g. 4) to repeat ONLY the network oracle's WebRTC walk of, `runs` times for each engine of its A/A, instead of the e2e loop. Empty: the e2e loop."
required: false
default: ""
os:
description: "Where to hunt. windows-latest answers a DIFFERENT question: are the interaction retries seen on the dev machine the product or contention?"
required: false
default: "ubuntu-24.04"
type: choice
options:
- ubuntu-24.04
- windows-latest
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# 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:
# The Ubuntu packages of the Linux hunt, from Ubuntu's archive once per runner image and list (linux-deps.yml), never by the hunt. On Windows this job is
# skipped and the hunt runs on (the condition below accepts `skipped` and `success`, nothing else).
linux-deps-hunt:
name: linux-deps-hunt
if: startsWith(inputs.os, 'ubuntu')
uses: ./.github/workflows/linux-deps.yml
with:
name: hunt
packages: xvfb
playwright_wrapper_ref: ${{ github.sha }}
hunt:
name: hunt (${{ inputs.os }})
needs: linux-deps-hunt
if: ${{ !cancelled() && (needs.linux-deps-hunt.result == 'success' || needs.linux-deps-hunt.result == 'skipped') }}
runs-on: ${{ inputs.os }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(inputs.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(inputs.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
# 18 runs of ~6 minutes plus install time. Deliberately generous: the
# ceiling here must NEVER be the thing that stops the hunt, or we're back
# to a killed job that explains nothing, which is the original defect.
timeout-minutes: 300
# On Windows GitHub runs `run:` blocks with POWERSHELL, not bash, and the
# first launch on windows-latest died in 5 minutes with a ParserError on
# the line `if [ "$RUNNER_OS" = "Linux" ]`. The block had been run before
# shipping it, as the rule requires - but in bash, on the writer's own
# machine, i.e. with an interpreter different from the target's.
# Running the block is not enough: it has to run with the runner's SHELL.
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 (+ pinned Playwright)
run: |
python -m pip install --upgrade pip
python -m pip install ".[dev]"
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
# Linux only: on Windows the browser launches on the runner's desktop,
# and `firefox-launch-matrix.yml` has shown for months that it really
# starts there.
- name: The Linux packages (the run's linux-deps-hunt job, no mirror)
if: runner.os == 'Linux'
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-hunt.outputs.artifact }}
path: /tmp/linux-deps
- name: System deps (xvfb + Firefox runtime libs; the repository of the linux-deps-hunt job)
if: runner.os == 'Linux'
run: |
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
- name: The security state (a fixed directory of the repository)
if: inputs.ab_network_webrtc_seed != ''
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 GeoIP database (made by the repository, same bytes every run)
if: inputs.ab_network_webrtc_seed != ''
run: python scripts/ci_lab_geoip.py build
# The hunt of the network oracle's WebRTC walk: instead of the loop below, never with it. `runs` is the number of repetitions per engine.
- name: The network oracle's WebRTC walk of one seed, repeated (decides nothing)
if: inputs.ab_network_webrtc_seed != ''
env:
PYTHONUNBUFFERED: "1"
AB_NETWORK_HUNT: webrtc:${{ inputs.ab_network_webrtc_seed }}:${{ inputs.runs }}
run: |
set -u
if [ "$RUNNER_OS" = "Linux" ]; then PRE="xvfb-run -a"; else PRE=""; fi
mkdir -p network
$PRE python -u scripts/ci_ab_network.py ab --a-a --out network --published-binary "$FF"
- name: Loop until it catches one
if: inputs.ab_network_webrtc_seed == ''
env:
PYTHONUNBUFFERED: "1"
INVPW_TEST_WATCHDOG_FILE: evidence/e2e-watchdog.log
run: |
set -u
runs="${{ inputs.runs }}"
mkdir -p evidence/runs
# `evidence/` inside the workspace, not RUNNER_TEMP: on Windows that
# variable contains backslashes and does not cross bash reliably.
# xvfb only where it exists; on Windows the browser goes to the
# runner's desktop.
if [ "$RUNNER_OS" = "Linux" ]; then PRE="xvfb-run -a"; else PRE=""; fi
captured=0
for n in $(seq 1 "$runs"); do
log="evidence/runs/run_$(printf '%02d' "$n").log"
t0=$(date +%s)
set +e
$PRE python -u scripts/run_e2e.py "$FF" > "$log" 2>&1
code=$?
set -e
dur=$(( $(date +%s) - t0 ))
# A hang is no longer a killed job now: the per-test deadline
# turns it into a failure, and the banner names it.
if grep -aq "Timeout" "$log" && grep -aq "Stack of" "$log"; then
echo "::error::run $n: HANG CAUGHT after ${dur}s"
echo "--- the last test that spoke ---"
grep -aE "::.*(PASSED|SKIPPED|FAILED)" "$log" | tail -3
echo "--- the stack ---"
sed -n '/Timeout/,$p' "$log" | head -60
captured=1
break
fi
echo "run $n/$runs: exit=$code, ${dur}s"
done
if [ "$captured" = "0" ]; then
echo "::warning::$runs runs, no hang caught."
echo "If the rate here is the same 12%, the probability of this"
echo "outcome is $(python -c "print(round(100*0.88**$runs))")%, so this is not proof"
echo "the defect is not there: it is a measurement of the rate with this sample."
fi
# The step fails ONLY if it caught one: that way red means "found",
# not "broken", and red is what you go read.
exit "$captured"
- name: Upload all the evidence
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: e2e-hunt-${{ inputs.os }}-${{ github.run_id }}-${{ github.run_attempt }}
path: |
evidence/runs
evidence/e2e-watchdog.log
if-no-files-found: warn
retention-days: 14
- name: Upload the hunt of the network oracle's WebRTC walk
if: always() && inputs.ab_network_webrtc_seed != ''
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: e2e-hunt-network-webrtc-${{ inputs.os }}-${{ github.run_id }}-${{ github.run_attempt }}
path: network/hunt
if-no-files-found: warn
retention-days: 14
+1506 -12
View File
File diff suppressed because it is too large. Load diff
+198
View File
@@ -0,0 +1,198 @@
# 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
# The Ubuntu packages of the Linux legs, from Ubuntu's archive once per runner image and list (linux-deps.yml), never by a leg.
linux-deps-fakeweb:
name: linux-deps-fakeweb
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
uses: ./.github/workflows/linux-deps.yml
with:
name: fakeweb
packages: xvfb
playwright_wrapper_ref: ${{ github.sha }}
walk:
name: fakeweb ${{ matrix.profile }} (${{ matrix.os }})
needs: [core-on-index, linux-deps-fakeweb]
if: needs.core-on-index.outputs.available == 'true'
runs-on: ${{ matrix.runner }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(matrix.runner, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(matrix.runner, 'windows') && 'D:\a\_temp' || '/tmp' }}
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: The Linux packages (the run's linux-deps-fakeweb job, no mirror)
if: matrix.os == 'linux'
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-fakeweb.outputs.artifact }}
path: /tmp/linux-deps
- name: System deps (xvfb + Firefox runtime libs; the repository of the linux-deps-fakeweb job)
if: matrix.os == 'linux'
run: |
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
- 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"
+67 -23
View File
@@ -1,14 +1,19 @@
name: firefox-launch-matrix
# Cross-Windows-edition smoke for the shipped firefox-N binary.
# Triggered by issue #22 (firefox-7 SxS mismatch on Win11 build 26200,
# reporter `jannusdorfer-create`).
# Cross-Windows-edition smoke for the SEALED binary, on every Windows runner
# GitHub offers, from a fresh checkout.
#
# Runs the exact reporter snippet on every Windows runner GitHub offers,
# from a fresh checkout. If any matrix cell fails the same way, the bug
# is reproducible on at least one clean-ish environment and we ship a
# sidecar mozglue.manifest fix. If all cells pass, the bug is confined
# to the reporter's specific environment (Pro/Enterprise GPO, EDR, etc.).
# HISTORY, and what this can no longer do. It was written for issue #22 (a SxS
# mismatch on Win11 build 26200) and ran the reporter snippet against firefox-7.
# It cannot: a sealed invisible-core serves the sealed tag and refuses every
# other one, so `fetch firefox-7` is a SealMismatch by design now.
#
# It was also SILENTLY WRONG from the seal landing to 2026-07-26: the verify
# step rebuilt the cache path by hand as Cache/firefox-7/firefox.exe while the
# cache is content-keyed (Cache/<tag>_<version>_<buildid>/), so every cell failed
# with NOT FOUND - a failure that looked exactly like the bug under investigation
# and was not. Nine red cells read as "reproduced everywhere". The path now comes
# from the last line of `fetch`, the command that verifies the sealed tree.
on:
workflow_dispatch:
@@ -17,6 +22,20 @@ on:
paths:
- '.github/workflows/firefox-launch-matrix.yml'
# Least privilege: this smoke matrix only checks out the repo and launches
# firefox.exe, so it needs nothing but read access to the contents. Without an
# explicit block the token would default to the repo's broader permissions.
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 .` below resolves `invisible-core==N.M.0` from the package
# index, and the core is published BEFORE this package. This gate answers
@@ -31,17 +50,25 @@ jobs:
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
runs-on: ${{ matrix.os }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: 'D:\a\_temp'
TMP: 'D:\a\_temp'
strategy:
fail-fast: false
matrix:
os: [windows-2022, windows-2025, windows-latest]
python: ["3.11", "3.12", "3.13"]
# This is a "does firefox.exe launch" smoke test across Windows versions;
# the Python version does not change the answer, so one is enough. That
# takes this all-Windows (2x-cost) matrix from 9 jobs to 3.
python: ["3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: ${{ matrix.python }}
cache: pip
@@ -67,17 +94,35 @@ jobs:
python -m pip install --upgrade pip
pip install .
- name: Fetch firefox-7 binary
run: python -m invisible_playwright fetch
- name: Verify firefox.exe can launch standalone (the snippet that fails for issue #22)
- name: Fetch the sealed binary
shell: pwsh
run: |
# The platformdirs path has the duplicated `invisible-playwright` segment
# on Windows (user_cache_dir convention).
$ffPath = "$env:LOCALAPPDATA\invisible-playwright\invisible-playwright\Cache\firefox-7\firefox.exe"
if (-not (Test-Path $ffPath)) {
Write-Error "firefox.exe NOT FOUND at $ffPath"
$fetchOutput = @(python -m invisible_playwright fetch)
$fetchExit = $LASTEXITCODE
$fetchOutput | ForEach-Object { Write-Host $_ }
if ($fetchExit -ne 0) {
exit $fetchExit
}
$ffPath = [string]($fetchOutput | Select-Object -Last 1)
$ffPath = $ffPath.Trim()
if (-not $ffPath -or -not (Test-Path $ffPath)) {
Write-Error "fetch reported no firefox.exe at '$ffPath'"
exit 1
}
"FF_PATH=$ffPath" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
- name: Verify firefox.exe can launch standalone
shell: pwsh
run: |
# CARRY the path from fetch, never rebuild it. The cache directory is
# keyed on tag + base version + BuildID, so any string assembled here
# is a second copy of a naming rule that has already moved once - and
# when it drifts the step fails with NOT FOUND, indistinguishable from
# the launch bug this job exists to detect.
$ffPath = $env:FF_PATH
Write-Host "Package reports: $ffPath"
if (-not $ffPath -or -not (Test-Path $ffPath)) {
Write-Error "firefox.exe NOT FOUND at '$ffPath' (reported by fetch)"
exit 1
}
Write-Host "Launching: $ffPath --version"
@@ -106,11 +151,10 @@ jobs:
- name: Upload diagnostics on failure
if: failure()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 (v4.6.2)
with:
name: launch-failure-${{ matrix.os }}-py${{ matrix.python }}
path: |
${{ env.LOCALAPPDATA }}/invisible-playwright/invisible-playwright/Cache/firefox-7/firefox.exe
${{ env.LOCALAPPDATA }}/invisible-playwright/invisible-playwright/Cache/firefox-7/mozglue.dll
${{ env.FF_PATH }}
if-no-files-found: warn
retention-days: 7
+188
View File
@@ -0,0 +1,188 @@
# ─────────────────────────────────────────────────────────────────────────────
# linux-deps.yml — the Ubuntu packages of a workflow's Linux jobs, read from Ubuntu's archive ONCE per runner image and list, never by the jobs.
# The same file in the series and in the wrapper.
#
# Republish 45297517213: wrapper.e2e.fakeweb-linux-x86_64 was cancelled at its 25 minutes with every step green, because `playwright install-deps
# firefox` fetched 48.8 MB from the archive's mirror at 102 kB/s ("Fetched 48.8 MB in 7min 59s"). The speed of a mirror is a third party's.
# The first form of this file handed the jobs only the packages missing on ITS runner image and installed them against the job's own image: the
# wrapper's PR #584 ran that job on ubuntu24 20261116.376.1 and the legs on 20261116.133.1, and the legs' apt wanted a package the files did not
# hold ("E: Unable to fetch some archives"). GitHub mixes builds of an image in one run, so the files cannot depend on the image they were read on.
#
# So this job hands the jobs a REPOSITORY: the roots (the packages named with their recommends, the recommends themselves, the packages named without,
# and the roots `playwright install-deps firefox` installs for the Playwright of the wrapper's pin, read from its table), their whole closure of
# Depends and Pre-Depends with the virtual packages' providers, INCLUDING what the image already has, a Packages index, and roots.txt. A job
# installs the roots BY NAME with an apt that reads only that repository (its own sources list and lists folder) and --no-download: whatever its
# image has or lacks is resolved from the files, and a package that is not there is named by apt, red, never fetched from a mirror.
# The files are kept in a cache entry keyed by the image's OS, the date of its release and the sha of the list (an entry of .deb files on GitHub's
# runners, this file only), and handed to the run's jobs as the artifact linux-deps-<name>. Not by the image's build: the repository does not depend
# on it, and the builds of one release are mixed in a run (20261116.133.1, 20261116.376.1), so a key per build missed the entry run after run and
# read the archive each time (wrapper PR #585: 13 minutes for a closure, from a slow mirror). The download runs 8 at a time: the slowness seen is
# per connection.
# ─────────────────────────────────────────────────────────────────────────────
name: linux-deps
on:
workflow_call:
inputs:
name:
description: the artifact is linux-deps-<name>
type: string
required: true
packages:
description: packages installed with their recommends (as `apt-get install -y` did)
type: string
default: ''
packages_no_recommends:
description: packages installed without their recommends
type: string
default: ''
playwright_wrapper_ref:
description: the oss-invisible/playwright ref whose scripts/playwright_pin.txt names the Playwright of `install-deps firefox`; empty for none
type: string
default: ''
outputs:
artifact:
description: the artifact that holds the repository
value: ${{ jobs.debs.outputs.artifact }}
permissions: { contents: read }
jobs:
debs:
name: debs
runs-on: ubuntu-24.04
timeout-minutes: 20
outputs:
artifact: linux-deps-${{ inputs.name }}
steps:
- name: Checkout wrapper (its Playwright pin)
if: inputs.playwright_wrapper_ref != ''
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: oss-invisible/playwright
ref: ${{ inputs.playwright_wrapper_ref }}
path: linux-deps-pin
fetch-depth: 1
sparse-checkout: scripts/playwright_pin.txt
sparse-checkout-cone-mode: false
- name: Set up Python
if: inputs.playwright_wrapper_ref != ''
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.11' }
- name: The list and its entry (the runner image and the sha of the list)
id: spec
shell: bash
env:
PACKAGES: ${{ inputs.packages }}
NO_REC: ${{ inputs.packages_no_recommends }}
PW_REF: ${{ inputs.playwright_wrapper_ref }}
run: |
set -euo pipefail
: "${ImageOS:?no ImageOS: not a GitHub runner image}" "${ImageVersion:?no ImageVersion: not a GitHub runner image}"
PIN=""
if [ -n "$PW_REF" ]; then PIN="$(tr -d '[:space:]' < linux-deps-pin/scripts/playwright_pin.txt)"; [ -n "$PIN" ] || { echo "ERROR: empty scripts/playwright_pin.txt at $PW_REF"; exit 1; }; fi
mkdir -p "$RUNNER_TEMP/linux-deps-spec"
printf 'form: repository of the closure\nrecommends: %s\nno-recommends: %s\nplaywright-roots-firefox: %s\n' "$PACKAGES" "$NO_REC" "$PIN" > "$RUNNER_TEMP/linux-deps-spec/spec.txt"
cat "$RUNNER_TEMP/linux-deps-spec/spec.txt"
SHA="$(sha256sum < "$RUNNER_TEMP/linux-deps-spec/spec.txt" | cut -c1-16)"
echo "pin=$PIN" >> "$GITHUB_OUTPUT"
RELEASE="${ImageVersion%%.*}"
echo "key=linux-deps-$ImageOS-$RELEASE-$SHA" | tee -a "$GITHUB_OUTPUT"
- name: The entry of this image and list
id: restore
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: /tmp/linux-deps
key: ${{ steps.spec.outputs.key }}
- name: A new image or list - the repository from Ubuntu's archive, once
if: steps.restore.outputs.cache-hit != 'true'
shell: bash
env:
PACKAGES: ${{ inputs.packages }}
NO_REC: ${{ inputs.packages_no_recommends }}
PIN: ${{ steps.spec.outputs.pin }}
run: |
set -euo pipefail
printf '%s\n' 'Acquire::http::Timeout "60";' 'Acquire::https::Timeout "60";' 'Acquire::Retries "5";' \
| sudo tee /etc/apt/apt.conf.d/80-ci-network >/dev/null
sudo apt-get update -qq
command -v apt-ftparchive >/dev/null || sudo apt-get install -y -qq apt-utils
PW_ROOTS=""
if [ -n "$PIN" ]; then
python -m pip install --quiet "playwright==$PIN"
# The roots `playwright install-deps firefox` installs (with --no-install-recommends): the `tools` and `firefox` lists of this system's
# entry in the driver's table, the list install-deps itself reads.
PLATFORM="ubuntu$(. /etc/os-release && echo "$VERSION_ID")-x64"
PW_ROOTS="$(python - "$PLATFORM" <<'PY'
import os, re, sys
import playwright
path = os.path.join(os.path.dirname(playwright.__file__), "driver", "package", "lib", "coreBundle.js")
text = open(path, encoding="utf-8").read()
at = text.find('"%s": {' % sys.argv[1])
if at < 0:
sys.exit("no entry %s in %s" % (sys.argv[1], path))
roots = []
for group in ("tools", "firefox"):
m = re.compile(r"\b%s: \[(.*?)\]" % group, re.S).search(text, at)
if not m:
sys.exit("no %s list after the entry %s" % (group, sys.argv[1]))
roots += re.findall(r'"([a-z0-9][a-z0-9.+-]*)"', m.group(1))
if "xvfb" not in roots or len(roots) < 10:
sys.exit("the roots read from %s are not install-deps' list: %s" % (path, roots))
print(" ".join(sorted(set(roots))))
PY
)"
echo "playwright install-deps firefox roots: $PW_ROOTS"
fi
# The recommends of the packages named with their recommends (as `apt-get install -y` installed them), one level, as roots themselves.
RECS=""
[ -z "$PACKAGES" ] || RECS="$(apt-cache depends --no-depends --no-pre-depends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances $PACKAGES \
| sed -n 's/^ *|\{0,1\}Recommends: \([a-z0-9][^ <>]*\)$/\1/p' | sort -u | tr '\n' ' ')"
NAMED="$(echo $PACKAGES $RECS $NO_REC $PW_ROOTS | tr ' ' '\n' | sed '/^$/d' | sort -u | tr '\n' ' ')"
# A name only provided (libgtk-3-0, libgtk-3-0t64's on noble) is its provider, as `apt-get install` resolved it: `apt-cache depends
# --recurse` does not walk from a virtual root (wrapper PR #585: the closure of libgtk-3-0 came without libgtk-3-0t64, 92 packages of 230).
ROOTS=""
for r in $NAMED; do
if apt-cache show --no-all-versions "$r" 2>/dev/null | grep -qx "Package: $r"; then ROOTS="$ROOTS $r"; continue; fi
p="$(apt-cache showpkg "$r" | sed -n '/^Reverse Provides:/,$p' | sed '1d' | awk 'NF {sub(/:.*/, "", $1); print $1}' | sort -u)"
[ "$(echo "$p" | wc -w)" = 1 ] || { echo "ERROR: the root $r is not a package and is provided by [$p], not by one package"; exit 1; }
echo "the root $r is provided by $p"
ROOTS="$ROOTS $p"
done
ROOTS="$(echo $ROOTS | tr ' ' '\n' | sort -u | tr '\n' ' ')"
echo "roots: $ROOTS"
# The closure: Depends and Pre-Depends, recursively, the providers of every virtual package, what the image has included.
CLOSURE="$(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances $ROOTS \
| grep -E '^[a-z0-9]' | sed 's/:amd64$//' | grep -v ':' | sort -u)"
REAL="$({ apt-cache show --no-all-versions $CLOSURE 2>/dev/null || true; } | sed -n 's/^Package: //p' | sort -u)"
rm -rf /tmp/linux-deps && mkdir -p /tmp/linux-deps
# The lists were refreshed above (apt-get update), so every closure name has its current version; each fetch retries 5 times. The MB and
# the seconds of the download go to the log, so the archive's speed is measured run after run.
T0="$(date +%s)"
( cd /tmp/linux-deps && echo "$REAL" | xargs -n 20 -P 8 apt-get download -qq -o Acquire::Retries=5 )
T1="$(date +%s)"
echo "download: $(echo "$REAL" | wc -w) packages, $(du -sm /tmp/linux-deps | cut -f1) MB in $((T1 - T0)) s"
( cd /tmp/linux-deps && apt-ftparchive packages . > Packages )
for p in $REAL; do grep -qx "Package: $p" /tmp/linux-deps/Packages || { echo "ERROR: $p of the closure was not downloaded"; exit 1; }; done
# A root is a package of the repository or a name one of them provides (libgtk-3-0 is libgtk-3-0t64's on noble, as `apt-get install` resolved it)
for r in $ROOTS; do
e="$(printf '%s' "$r" | sed 's/[.+]/\\&/g')"
grep -qE "^(Package: $e|Provides: (.*, )?$e( \(.*\))?(,.*)?)$" /tmp/linux-deps/Packages || { echo "ERROR: the root $r is not in the repository"; exit 1; }
done
echo "$ROOTS" | tr ' ' '\n' | sed '/^$/d' > /tmp/linux-deps/roots.txt
cp "$RUNNER_TEMP/linux-deps-spec/spec.txt" /tmp/linux-deps/spec.txt
echo "$ImageOS $ImageVersion" > /tmp/linux-deps/image.txt
echo "$(wc -l < /tmp/linux-deps/roots.txt) roots, $(find /tmp/linux-deps -name '*.deb' | wc -l) packages in the closure, $(du -sh /tmp/linux-deps | cut -f1)"
- name: Keep the entry
if: steps.restore.outputs.cache-hit != 'true'
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: /tmp/linux-deps
key: ${{ steps.spec.outputs.key }}
- name: The repository for the jobs of this run
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: linux-deps-${{ inputs.name }}
path: /tmp/linux-deps
retention-days: 1
if-no-files-found: error
+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@6d048ac02fc886a50791a4ae0423cbca2a547d72 # core main, the last change of noreply-identity.yml
+113
View File
@@ -0,0 +1,113 @@
# ─────────────────────────────────────────────────────────────────────────────
# publish-wiki.yml - mirror the docs/ site into the GitHub wiki on every release.
#
# The wiki is a SEPARATE git repo (<repo>.wiki.git) with no Jekyll front matter
# and its own _Sidebar.md navigation, so this is a render, not a copy:
# scripts/build_wiki.py strips the front matter, rewrites [x](slug.md) internal
# links to the wiki's extensionless form, names each page by its slug (index.md
# becomes Home.md), and regenerates _Sidebar.md from the parent/nav_order tree.
#
# ⛔ THE RELEASE TRIGGER DOES NOT FIRE FOR THE RELEASES THIS REPOSITORY MAKES.
# GitHub does not start a workflow from an event created with the built-in
# GITHUB_TOKEN, and publish.yml creates the release - which is why every recent
# release here is authored by github-actions[bot]. Measured 2026-09-15 across
# 43 runs: all but a couple were manual dispatches, and the two `release` events
# are old enough to predate the automation. The sibling package AIHawk had the
# identical defect and the identical false sentence in this comment.
#
# The cost is the same too: since the last dispatch on 2026-09-14 the docs have
# moved by 37 insertions and 15 deletions with a release in between, and the
# published wiki was showing neither.
#
# So it also runs on a PUSH to main that touches what the wiki is made of - the
# pages, the converter, and this file - which is an event that actually happens
# here. The release trigger stays: it costs nothing and works for a release a
# person publishes. It is simply no longer what this depends on.
#
# It runs on a published release (the docs the release ships are what the wiki
# should show) and on manual dispatch. The wiki checkout is wiped and rebuilt
# each run so a page deleted from docs/ also disappears from the wiki; nothing
# but generated output is ever committed.
#
# AUTH. Pushing to <repo>.wiki.git needs contents:write. The built-in
# GITHUB_TOKEN carries it here; if a run ever gets a 403 pushing the wiki
# (some org policies withhold wiki write from GITHUB_TOKEN), set a PAT with
# `repo` scope as the secret WIKI_TOKEN and it is used instead. No long-lived
# credential is committed either way.
name: publish-wiki
on:
push:
branches: [main]
paths:
- "docs/**"
- "scripts/build_wiki.py"
- "scripts/sync_article_pixels.py"
- ".github/workflows/publish-wiki.yml"
release:
types: [published]
workflow_dispatch: {}
permissions:
contents: write
# A publishing workflow is never cancelled half-way: the second run waits for
# the first (a newer pending run replaces an older pending one, which is
# harmless: the wiki is rebuilt in full from the repository each time).
concurrency:
group: publish-wiki
cancel-in-progress: false
jobs:
publish-wiki:
runs-on: ubuntu-latest
steps:
- name: Check out the repo (docs + the converter)
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: Render docs/ into a wiki build directory
run: python scripts/build_wiki.py docs wiki_build --pixels "${{ github.repository }}"
# The view counters. Upload BEFORE the push, never after: a page that
# reaches the wiki without its asset serves a 404 for its own pixel and
# counts nothing until the next release. Uploading only what is missing
# makes this a no-op on a run that adds no pages.
- name: Give every new page its view pixel
env:
GITHUB_TOKEN: ${{ github.token }}
run: python scripts/sync_article_pixels.py --repo "${{ github.repository }}" wiki_build
# And the gate. `build_wiki.py` writes no pixel when it is not told which
# repository it is building for, which is the right default for a local
# preview and a silent disaster here: the wiki would publish, look
# perfectly normal, and count nothing. This is the step that notices.
- name: Check every page carries its own pixel
run: |
python scripts/sync_article_pixels.py --selftest
python scripts/sync_article_pixels.py --repo "${{ github.repository }}" --check wiki_build
- name: Publish to the wiki
env:
WIKI_PUSH_TOKEN: ${{ secrets.WIKI_TOKEN != '' && secrets.WIKI_TOKEN || github.token }}
run: |
set -euo pipefail
repo="${{ github.repository }}"
git clone "https://x-access-token:${WIKI_PUSH_TOKEN}@github.com/${repo}.wiki.git" wiki
# wipe old generated pages (keep .git) so deletions propagate
find wiki -maxdepth 1 -name '*.md' -delete
cp wiki_build/*.md wiki/
cd wiki
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
if git diff --cached --quiet; then
echo "wiki already up to date"
else
git commit -m "docs: sync wiki from docs/ (${{ github.ref_name }})"
git push origin HEAD:master
fi
+391
View File
@@ -0,0 +1,391 @@
name: publish
# Publishing invisible-playwright from a tag, with no long-lived credential anywhere.
#
# WHAT REPLACED WHAT. This package was uploaded by hand, from one machine, with a
# long-lived PyPI token sitting on it. Two things follow from that and neither is
# hypothetical: the token is a standing credential whose blast radius is the whole
# project, and a hand-run twine has no gate in front of it - the ordering rules
# live in a person's memory.
#
# The credential here is the `pypi` GitHub Environment's OIDC trust relationship,
# minted per run and valid for minutes. Only the `upload` job names that
# environment, and `upload` declares `needs: gate`, so a red gate means the only
# job that can authenticate never starts. The ordering is a dependency, not a
# convention.
#
# BEFORE THE FIRST RUN, on PyPI: Manage project -> Publishing -> add a GitHub
# 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
# first successful OIDC publish, not before.
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: read
# One publish at a time per repository, whatever started it and on whatever
# ref. Two runs of one tag (a delayed delivery, or a dispatch plus the push)
# would both pass the already-published check before either had uploaded, and
# both would upload. Keyed on the ref, a dispatch on a branch and a push of the
# tag would not wait for each other, so the group is the workflow alone.
# Serialised, the second run waits for the first and then finds the version on
# the index, so it ends as a no-op. Never cancelled in progress: an upload that
# has started must be allowed to finish.
concurrency:
group: publish
cancel-in-progress: false
# 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:
# Asked of the INDEX, first, because a tag can legitimately name a version that
# is already published: a tag backfilled for a hand-published release, a tag
# re-pushed, a re-run of this workflow. In all of those there is nothing to do
# and nothing wrong, and reaching twine would fail on a filename the index has
# already served - a red run for a situation that is fine.
already-published:
runs-on: ubuntu-latest
outputs:
present: ${{ steps.probe.outputs.present }}
version: ${{ steps.probe.outputs.version }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- id: probe
shell: bash
run: |
VERSION="$(grep -m1 '^version = ' pyproject.toml | cut -d'"' -f2)"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
CODE=$(curl -s -o /dev/null -w '%{http_code}' "https://pypi.org/pypi/invisible-playwright/$VERSION/json")
case "$CODE" in
200) echo "present=yes" >> "$GITHUB_OUTPUT"
echo "::notice::invisible-playwright $VERSION is already on the index. No-op, not a failure." ;;
404) echo "present=no" >> "$GITHUB_OUTPUT" ;;
*) echo "the index answered $CODE for $VERSION, which is neither present" >&2
echo "nor absent. Refusing rather than guessing." >&2
exit 1 ;;
esac
gate:
needs: already-published
if: needs.already-published.outputs.present != 'yes'
runs-on: ubuntu-latest
# `checks: read` for the step below, which asks what the e2e concluded on
# this commit. Job level rather than workflow level: no other job needs it.
permissions:
contents: read
checks: read
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
with:
fetch-depth: 0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: the tag names the version being built
# A tag pointing at a different version publishes something nobody asked
# for, under a name that says otherwise. Skipped on workflow_dispatch,
# where there is no tag to compare against.
if: github.event_name == 'push'
shell: bash
run: |
TAG="${GITHUB_REF_NAME#v}"
HAVE="${{ needs.already-published.outputs.version }}"
if [ "$TAG" != "$HAVE" ]; then
echo "tag v$TAG does not name the version in pyproject.toml ($HAVE)" >&2
exit 1
fi
- name: the e2e is GREEN on the commit being tagged
# ⛔ THE SUITE BELOW IS THE DEFAULT SELECTION, WHICH DESELECTS `e2e`. So
# until this step existed, the job that decides whether a release goes
# out had never looked at the suite that drives a browser: a red there
# stopped neither a merge nor a tag. 0.22.1 was tagged from a main whose
# e2e was red, and nothing said so because nothing was looking.
#
# It ASKS rather than re-runs. The e2e has already run on this commit;
# running it again here would cost five minutes to learn what one API
# call answers. What was missing was not a second measurement, it was
# somebody reading the first one.
#
# The selftest runs first, because a gate that has only ever printed
# PASS is not a gate - and this one's verdict is a pure function, so its
# ten known-bad cases cost nothing and need no network.
if: github.event_name == 'push'
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python scripts/e2e_is_green.py --selftest
python scripts/e2e_is_green.py --repo "$GITHUB_REPOSITORY" --sha "$GITHUB_SHA"
- name: the pinned invisible-core is ON THE INDEX
# THE ordering rule, as a gate instead of a sentence in a runbook. This
# package declares `invisible-core==X.Y.Z`, so pip resolves the PUBLISHED
# core - and a consumer released against a core that is not there yet is
# red on every runner and broken for every user while passing locally,
# because the workbench core is an editable install and cannot see this
# class of failure at all. Measured 2026-07-28: both consumers moved to a
# name a new core had, neither release could resolve it.
shell: bash
run: |
# BOTH spellings. PEP 503 normalises `invisible_core` and
# `invisible-core` to the same project, and the dependency here is
# written with the UNDERSCORE while every comment about it uses the
# hyphen. Written against the prose first, this grep matched nothing
# and the step exited 1 on a correct pyproject - caught by running it
# by hand before the first release rather than during one.
WANT=$(grep -oE 'invisible[-_]core==[0-9]+\.[0-9]+\.[0-9]+' pyproject.toml | head -1 | cut -d= -f3)
if [ -z "$WANT" ]; then
echo "no exact invisible-core== pin found in pyproject.toml" >&2
echo "(looked for invisible-core== and invisible_core==)" >&2
exit 1
fi
CODE=$(curl -s -o /dev/null -w '%{http_code}' "https://pypi.org/pypi/invisible-core/$WANT/json")
if [ "$CODE" != "200" ]; then
echo "invisible-core $WANT is not on the index (HTTP $CODE)." >&2
echo "Publish the core FIRST, then this package. In this order every" >&2
echo "install resolves; in the other one none of them do." >&2
exit 1
fi
echo "::notice::invisible-core $WANT is on the index"
- name: install the package and its dev extras
# 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
# all along; this workflow had simply never run.
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: version gate
# The version and the ledger against what the index serves, as the
# pre-push hook checks them: in layers, not as alternatives, because the
# hook is per clone and can be missing or skipped, and this cannot
# ([B353]). Exit codes: 0 pass, 1 refused, 2 gate broken, 4 no usable
# ledger; only 0 continues. The check builds the package to compare
# it, without isolation, so the build backend is installed here: the
# dev extra carries `build` and not `hatchling`, and without it the
# check stopped as "gate broken" on the first tag (v0.40.0).
run: |
python -m pip install build hatchling
python -m invisible_core.release check --verify-index
- name: arm the pre-push gates
# The suite asserts core.hooksPath is set and a fresh checkout has none.
run: python -m invisible_core.hooks install
- name: the suite
# A tag push does not trigger the ordinary test workflow, which runs on
# branches and pull requests. Without this, tagging is a way to publish
# 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@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
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, real-geoip-database]
if: needs.already-published.outputs.present != 'yes'
runs-on: ubuntu-latest
environment: pypi # the trust relationship lives HERE, behind the gate
permissions:
id-token: write # trusted publishing; no token in a secret anywhere
contents: write # to commit the ledger entry back
pull-requests: write # and to open one when protection declines the push
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
with:
fetch-depth: 0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- run: python -m pip install --upgrade pip build
- run: python -m build
- name: twine check
run: |
pip install twine
twine check dist/*
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
- name: record what was published, and commit it back
# The action above holds the OIDC credential and does the upload; the
# thing that writes PUBLISHED.json is invisible_core.release. So the
# first successful run of this workflow published 0.3.1 and recorded
# nothing - re-creating, on its first green run, the exact gap that had
# been back-filled by hand an hour earlier for 0.6.0 and 0.3.0.
#
# Recording the TREE is correct here and only here: this job is checked
# out at the tag, so the tree is what was built and uploaded. A backfill
# of a version published elsewhere must come from the artifacts the index
# serves instead, because the tree has moved on.
run: |
# `-e .` and not `.[dev]`: this is the job holding the OIDC
# credential and `contents: write`, and `record` needs the package
# importable plus a build backend, nothing else. The dev extra
# pulls pytest, ruff and - in the wrapper - the whole of
# Playwright into the one job that can push to main.
python -m pip install --quiet -e . build hatchling
python -m invisible_core.release record
if git diff --quiet -- PUBLISHED.json; then
echo "::warning::nothing recorded - the ledger did not change"
exit 0
fi
# The direct push CANNOT succeed while the branch requires status
# checks: a required check cannot have passed on a commit that does
# not exist yet, and since 2026-08-13 `enforce_admins` is TRUE, so
# not even a maintainer push has a bypass. Measured 2026-08-05 -
# every publish run on all three repos ended in failure with GH006,
# on releases that had shipped. So the push is tried, and when
# declined the entry goes to a branch and a pull request rather than
# nowhere. Green when it is preserved, red only when it is LOST.
#
# THE FALLBACK HAD NEVER RUN ONCE - repaired 2026-08-14, the same fix
# in all three repos. Two defects, and the first hid the second:
#
# 1. `HEAD:$LEDGER_BRANCH` cannot work from the detached HEAD a tag
# build checks out: the destination branch does not exist yet and
# the source is a commit object, so git cannot tell a branch from
# a tag and refuses with "The destination you provided is not a
# full refname". Under `bash -e` that aborts the step, so the
# pull request below was never even attempted and neither
# `::error::` was ever printed - which is why no `ledger/*`
# branch and no pull request has ever existed on any of the three
# repos, across four red runs on releases that had shipped.
# 2. Creating the pull request also needs "Allow GitHub Actions to
# create and approve pull requests" ON THE REPOSITORY, which is
# off on all three. The job's own `pull-requests: write` is
# necessary and not sufficient. So the pull request is BEST
# EFFORT: once the branch push lands the entry is safe, and the
# run does not go red over a convenience that a repository
# setting can withdraw.
VERSION=$(python -c "import json;print(json.load(open('PUBLISHED.json'))['released'][-1]['version'])")
git config user.name "feder-cr"
git config user.email "85809106+feder-cr@users.noreply.github.com"
git add PUBLISHED.json
# `record` also realigns this version's CHANGELOG heading to the upload
# date the index reports, and this is the repository that keeps a
# changelog, so this is where it matters. A file rewritten on the
# runner's disk that nobody stages is a change that never happened, and
# the whole point is that the date stops being written by hand: 0.16.2
# shipped dated a day ahead because the heading is typed at bump time,
# hours before the upload it claims to describe, in whatever timezone
# the author is in. Conditional to match the release notes step below,
# and because `git add` on a missing path fails under `bash -e`.
if [ -f CHANGELOG.md ]; then
git add CHANGELOG.md
fi
git commit -m "record $VERSION as published"
BRANCH="${{ github.event.repository.default_branch }}"
if git push origin "HEAD:refs/heads/$BRANCH"; then
echo "::notice::ledger entry for $VERSION committed to $BRANCH"
exit 0
fi
echo "the direct push was declined; falling back to a branch and a pull request"
LEDGER_BRANCH="ledger/$VERSION"
if ! git push -f origin "HEAD:refs/heads/$LEDGER_BRANCH"; then
echo "::error::the ledger entry for $VERSION reached NEITHER $BRANCH NOR a branch of its own. It exists only in this run. Back-fill it by hand from the artifacts the index serves, or the next release is refused over a missing entry."
exit 1
fi
echo "::notice::the ledger entry for $VERSION is preserved on branch $LEDGER_BRANCH"
CODE=$(curl -s -o /tmp/pr.json -w '%{http_code}' -X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/${{ github.repository }}/pulls" \
-d "{\"title\":\"record $VERSION as published\",\"head\":\"$LEDGER_BRANCH\",\"base\":\"$BRANCH\",\"body\":\"The upload succeeded and the ledger could not be pushed to $BRANCH directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.\"}")
if [ "$CODE" = "201" ] || [ "$CODE" = "422" ]; then
echo "::error::the ledger for $VERSION is NOT on $BRANCH. Branch $LEDGER_BRANCH carries it and a pull request is open (HTTP $CODE; 422 means one already exists). Merge it before the next release."
else
echo "::error::the ledger for $VERSION is NOT on $BRANCH. Branch $LEDGER_BRANCH carries it and the pull request could NOT be created (HTTP $CODE - 403 means the repository forbids Actions from creating pull requests). Open and merge it by hand before the next release."
fi
exit 0
- name: create the release page for this tag
# Measured 2026-08-11: after pushing three tags, FOUR versions out of four
# had no release page, and it was this repo's own gate
# (`test_the_published_version_has_a_github_release`, in
# `test_release_e2e.py`) that found them AFTER publication. A tag with no
# release page is not cosmetic: that gate walks EVERY version on the
# index, so one omission refuses a later run for a version nobody is
# releasing that day.
#
# Runs only on the tag path - `workflow_dispatch` has no tag to describe.
# Idempotent on purpose: a re-pushed tag, a re-run, or a page created by
# hand must all be a no-op rather than a failure, which is the same rule
# `already-published` follows one job up.
#
# The body comes from CHANGELOG.md when the repo keeps one (only this one
# does) and is generated otherwise. One step, both cases, so the three
# repos carry the same text instead of three variants that drift.
if: startsWith(github.ref, 'refs/tags/')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="${GITHUB_REF#refs/tags/}"
VERSION="${TAG#v}"
if gh release view "$TAG" > /dev/null 2>&1; then
echo "::notice::the release page for $TAG already exists - nothing to do"
exit 0
fi
if [ -f CHANGELOG.md ]; then
awk -v v="$VERSION" '
$0 ~ ("^## \\[" v "\\]") { p = 1; next }
p && /^## \[/ { exit }
p { print }
' CHANGELOG.md > /tmp/notes.md
else
: > /tmp/notes.md
fi
# A body that is only whitespace reads as a page nobody wrote. Say what
# is true instead: the version, and where the artifacts actually are.
#
# The PyPI name is the repository name with hyphens: the repo is
# `invisible_playwright` and the project is `invisible-playwright`.
# PyPI redirects the underscore form, so getting this wrong would have
# produced a link that works and is still wrong to read. And no
# backticks in the body - they would be command substitution inside a
# double-quoted shell string, which is how fourteen quoted terms once
# became empty strings.
PKG=$(printf '%s' "${{ github.event.repository.name }}" | tr '_' '-')
if [ -z "$(tr -d '[:space:]' < /tmp/notes.md)" ]; then
printf '%s\n' \
"$PKG $VERSION is on PyPI." \
"" \
"Artifacts and checksums: https://pypi.org/project/$PKG/$VERSION/" \
> /tmp/notes.md
fi
if gh release create "$TAG" --title "$TAG" --notes-file /tmp/notes.md; then
echo "::notice::release page created for $TAG"
exit 0
fi
echo "::error::the release page for $TAG could not be created. The package IS published; create the page by hand or a later run of the release gate will refuse over it."
exit 1
+44
View File
@@ -0,0 +1,44 @@
# ─────────────────────────────────────────────────────────────────────────────
# published-set.yml - the control side of the A/B oracles is the last PUBLISHED SET, and this keeps its lock equal to the index.
#
# An A/B oracle holds a candidate against the engine published before it, and that engine is launched by the core it was built for (it refuses a launch whose
# declarations that core does not emit). So the control is a set: the last `invisible-playwright` on the index, the `invisible-core` it pins exactly, and the engine
# that core's seal pins, in a venv of their own, installed by hash (ci-03): ci/py-lock/published.txt, made by scripts/ci_published_set.py. Nothing in it is chosen
# by hand; a new release is the new baseline.
#
# The lock is a committed file so that a run installs it offline (the wheelhouse of the run holds the files it names). What can go stale is the lock, the day a
# release is published: this reads the index (the JSON of the two packages, nothing is installed or run) and is RED when the committed lock is not the index's last
# release. The fix is one command, `python scripts/ci_published_set.py resolve --write`, in the pull request that records the release.
# ─────────────────────────────────────────────────────────────────────────────
name: published-set
on:
schedule:
- cron: "41 5 * * *"
pull_request:
paths:
- ci/py-lock/published.txt
- scripts/ci_published_set.py
- .github/workflows/published-set.yml
permissions:
contents: read
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:
lock-is-the-index:
name: the committed published set is the index's last release
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out the lock and the script
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: The lock against the index (reads the index, installs nothing)
run: python scripts/ci_published_set.py check
+379
View File
@@ -0,0 +1,379 @@
# 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"
# The Ubuntu packages of the Linux legs, from Ubuntu's archive once per runner image and list (linux-deps.yml), never by a leg.
linux-deps-real-sites:
name: linux-deps-real-sites
needs: plan
uses: ./.github/workflows/linux-deps.yml
with:
name: real-sites
packages: xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
round:
name: round (${{ matrix.os }})
needs: [plan, linux-deps-real-sites]
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]
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
VERSION: ${{ needs.plan.outputs.version }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.12' }
- name: The Linux packages (the run's linux-deps-real-sites job, no mirror)
if: runner.os == 'Linux'
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-real-sites.outputs.artifact }}
path: /tmp/linux-deps
- name: Linux runtime libraries for the browsers (the repository of the linux-deps-real-sites job)
if: runner.os == 'Linux'
run: |
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
# 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, linux-deps-real-sites]
if: needs.plan.outputs.admission == 'true'
runs-on: ${{ matrix.os }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
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: The Linux packages (the run's linux-deps-real-sites job, no mirror)
if: runner.os == 'Linux'
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-real-sites.outputs.artifact }}
path: /tmp/linux-deps
- name: Linux runtime libraries for the browser (the repository of the linux-deps-real-sites job)
if: runner.os == 'Linux'
run: |
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
- 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
+441 -4
View File
@@ -10,7 +10,144 @@ on:
permissions:
contents: read
# One run of this workflow per branch at a time. A newer push cancels the older
# in-flight run as a whole, cleanly, instead of leaving its queued jobs to be
# cancelled one by one - which left the run marked failed even though nothing
# had actually failed. Keyed by workflow + ref so tests and e2e never cancel
# each other; only an older run of THIS workflow on the same branch is replaced.
# A newer push to a pull request cancels the run it supersedes. Never on main:
# outside a pull request the group is unique to the run (`github.run_id`), so
# every commit of main keeps its own finished run (see e2e.yml for why).
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' }}
# 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:
# The gate was written FOR this repository on 2026-08-27, after 549 lines of
# Italian shipped here in one subsystem and 852 more were found in 33 files
# that were already public. It has been wired nowhere ever since: not into
# tests.yml, not into the pre-push hook, whose steps are pytest, pin, names,
# internals and publish. Both sibling packages copied the script AND the CI
# step; this one kept only the script, so the one repository the rule exists
# for is the one that never checked. Measured 2026-09-03, the first time
# anybody ran it here: four files, red.
#
# Its own job, and deliberately NOT behind core-on-index. Reading files needs
# no install, and hanging a language check off the availability of a package on
# an index would silently skip it during exactly the window when releases are
# being made.
english:
name: the repository is English
# ⛔ The gate is `invisible_core.english` since core 30.23.0, not a script of
# this repository: the script was a COPY, one here and one in AIHawk, and the
# copies drifted - this one never gained the `.js/.css/.html` coverage the
# other did. So this job needs the pinned core on the index, like `unit`.
needs: core-on-index
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: install the pinned core, which carries the gate
run: |
python -m pip install --upgrade pip
pip install -e .
- name: check the prose
# --selftest first: a language gate that has only ever printed "clean" is
# the same non-gate as any other, and this one can go blind from a single
# edit to its word list. What this repository exempts is declared in
# `[tool.invisible.english]` in pyproject.toml, and an exclusion that
# names nothing is refused.
run: |
python -m invisible_core.english --selftest
python -m invisible_core.english
# A README that promises to beat everything was live here on 2026-09-22 ("it
# passes every bot detection test"), and the check that found it ran by hand,
# from outside the repository, after the text was public. The logic is
# `invisible_core.claims` since core 34.29.0, shared with the MCP server's
# repository; what this one reads is declared in `[tool.invisible.claims]`,
# and without a declaration it is the README, which is also what PyPI shows.
claims:
name: the README promises nothing it cannot support
needs: core-on-index
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: install the pinned core, which carries the gate
run: |
python -m pip install --upgrade pip
pip install -e .
- name: check the claims
# --selftest first, for the same reason as the language gate: a check
# that has only ever printed "clean" may have gone blind.
run: |
python -m invisible_core.claims --selftest
python -m invisible_core.claims
# The way in is uv (the owner, 2026-09-06 and "uv everywhere" on 2026-10-17),
# and on that day this repository still taught pip in its README, its
# CONTRIBUTING, its docs and the messages its code prints, with nothing
# comparing any of them with the decision. `invisible_core.way_in` since core
# 49.45.0 refuses an install instruction that is not uv, in the tracked
# Markdown, the issue templates and the string literals of src/.
way-in:
name: every install instruction is uv
needs: core-on-index
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: install the pinned core, which carries the gate
run: |
python -m pip install --upgrade pip
pip install -e .
- name: check the way in
# --selftest first: a check that has only ever printed "clean" may
# have gone blind.
run: |
python -m invisible_core.way_in --selftest
python -m invisible_core.way_in
# The user-install job installs what was published, as a user would. It ran
# on `release: published`, which never fires: the Release is created with
# GITHUB_TOKEN, and an event that token causes starts no other workflow
# ([B347], core 50.48.0). `invisible_core.install_job` judges this tree: the
# job runs on the ledger pull request, its wait for the index is scoped to it
# and bounded, and every test file it runs keeps out, in a `_LEAKS`, every
# variable the pinned core's library reads.
install-job:
name: the user-install job runs on the ledger pull request
needs: core-on-index
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: install the pinned core, which carries the gate
run: |
python -m pip install --upgrade pip
pip install -e .
- name: check the install job
run: |
python -m invisible_core.install_job --selftest
python -m invisible_core.install_job
# `pip install -e ".[dev]"` below resolves `invisible-core==N.M.0` from the
# package index. The core is published BEFORE this package, so between the
# first push of this repo and that upload there is a window in which no
@@ -23,22 +160,51 @@ 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@6d048ac02fc886a50791a4ae0423cbca2a547d72 # core main, the last change of noreply-identity.yml
unit:
name: pytest (${{ matrix.os }}, py${{ matrix.python }})
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
runs-on: ${{ matrix.os }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python: ["3.11", "3.12"]
# Every version `requires-python = ">=3.11"` promises. Two of them were
# 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"]
# 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.12" }
- { os: windows-latest, python: "3.13" }
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
# 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
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: ${{ matrix.python }}
cache: pip
@@ -48,5 +214,276 @@ jobs:
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: arm the pre-push gates
# A fresh clone has no core.hooksPath, and the suite says so - the
# reminder moved into `invisible_core.testing` on 2026-07-28 and all
# 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 `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 -m invisible_core.hooks install
- name: undefined names and duplicate definitions
# F821 (undefined name) and F811 (redefinition) only. Not a style pass:
# these two are the rules that catch a name that cannot resolve, which
# `from __future__ import annotations` hides in an annotation and which
# a suite only finds if it happens to execute that line. Both bit on
# 2026-07-28 - a `throwaway_venv` used and imported nowhere took a
# user-install job red at RUNTIME, and six annotations named a type that
# was defined in no module at all.
#
# Zero violations in all three repos when this was added, so it is a
# gate rather than a cleanup backlog. Keep it that way.
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
run: pytest tests/ -v --tb=short
if: matrix.python != '3.11'
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 legs of Python 3.11 (the version the engine series' gate runs, on both of its systems) run the suite the way that gate does: the files and the
# marker of the row wrapper.unit.all.<os> of ci/required-suites.json (printed by scripts/ci_verdict.py args), one junit, and the judge below reads
# it. Until 2026-11-24 this workflow ran `pytest tests/` with a floor of 380 and nothing judged the exact counts the gate holds: PR #590 added a test
# without raising min_tests, this workflow was green, and the gate went red on main's next series run ("the suite is exact").
# No test runs twice: the row leaves out the files of the environment (a clone with its hooks armed, one with origin/main, the package index, ...: named,
# each with its reason, in tests/test_the_unit_suite_is_accounted_for.py), so a second pytest, with --ignore for every file of the row, runs those
# and any file that is in no row: together the two runs are what `pytest tests/` ran.
- name: Run pytest (the selection of the gate, then the files outside the row)
if: matrix.python == '3.11'
shell: bash
env:
SUITE_OS: ${{ startsWith(matrix.os, 'windows') && 'windows' || 'linux' }}
run: |
unset PYTEST_ADDOPTS
python scripts/ci_verdict.py args --required ci/required-suites.json --suite "wrapper.unit.all.$SUITE_OS" --os "$SUITE_OS" --with-marker | tr -d '\r' > "$RUNNER_TEMP/unit_args.txt"
mapfile -t ARGS < "$RUNNER_TEMP/unit_args.txt"
IGNORE=()
for a in "${ARGS[@]}"; do
case "$a" in tests/*::*) ;; tests/*) IGNORE+=("--ignore=$a") ;; esac
done
rc=0
python -m pytest "${ARGS[@]}" -o addopts='' -o junit_family=xunit2 -q --tb=short -p no:cacheprovider -p no:rerunfailures -rs --junitxml="$RUNNER_TEMP/unit-junit.xml" || rc=$?
python -m pytest tests/ "${IGNORE[@]}" -v --tb=short -rs || rc=$?
exit $rc
# 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`
# already filters on two markers - one more, or a typo in one, silently
# turns 726 tests into 0 and reports success.
- name: Refuse a run in which the suite deselected itself
if: matrix.python != '3.11'
shell: bash
run: |
python - <<'PY'
import pathlib, re, sys
text = pathlib.Path("tests-report.txt").read_text(encoding="utf-8", errors="ignore")
m = re.search(r"(\d+) passed", text)
passed = int(m.group(1)) if m else 0
# FLOOR, not a target. It exists because a mis-wired selection runs
# almost nothing and still exits 0 - the exit code cannot see it.
#
# Was 600 until 2026-07-27, when 322 tests MOVED to invisible_core:
# they covered core modules and reached them through this package's
# four-line back-compat shims, so six real breaks in core code were
# surviving the core's own suite. Nothing shrank; the tests are in the
# package they test. This suite runs ~420 now.
#
# Keep it a little under the real count. It is a tripwire for "the
# selection collapsed", not an assertion about how many tests exist.
if passed < 380:
print(f"only {passed} test(s) ran (expected 380+) - the selection "
f"dropped most of the suite and the exit code cannot see it",
file=sys.stderr)
sys.exit(1)
print(f"{passed} tests ran")
PY
# The judge of the engine series' gate on the junit of the step above: the exact count of the row (not one test more, not one less), no skip, every
# file of the row passed, and the list only grows against main. The judge and the list it compares with are read from main, never from the branch under
# judgment (a branch that edits its own judge or its own list cannot pass itself): a PR that adds a test and does not raise min_tests is red here.
# The suite launches no browser, so --binary names the interpreter that ran it (the judge wants a file to hash; nothing reads that hash: no --out).
- name: Judge the suite wrapper.unit.all (the exact count, with the judge and the list of main)
if: always() && matrix.python == '3.11'
shell: bash
env:
SUITE_OS: ${{ startsWith(matrix.os, 'windows') && 'windows' || 'linux' }}
run: |
mkdir -p "$RUNNER_TEMP/main"
git show origin/main:scripts/ci_verdict.py > "$RUNNER_TEMP/main/ci_verdict.py"
git show origin/main:ci/required-suites.json > "$RUNNER_TEMP/main/required-suites.json"
if git cat-file -e origin/main:ci/retired-tests.json; then git show origin/main:ci/retired-tests.json > "$RUNNER_TEMP/main/retired-tests.json"; fi
python "$RUNNER_TEMP/main/ci_verdict.py" judge --required ci/required-suites.json --suite "wrapper.unit.all.$SUITE_OS" --os "$SUITE_OS" --junit "$RUNNER_TEMP/unit-junit.xml" --binary "$(python -c 'import sys; print(sys.executable)')" --main-required "$RUNNER_TEMP/main/required-suites.json"
# ONE SINGLE CONTEXT FOR BRANCH PROTECTION. Measured 2026-08-13: this
# repo's protection required `pytest (windows-latest, py3.11)`, which the
# matrix explicitly EXCLUDES a few lines up - a context no job can ever
# produce, so a protection that could never be satisfied. With
# `enforce_admins` set to false every push went through anyway and nobody
# noticed. Same shape in the core and in the manager.
#
# A list of matrix names drifts every time the matrix changes, and that is
# exactly how it got here. This job depends on the whole matrix and its
# name never changes.
#
# SKIPPED IS NOT FAILED, and that is the part specific to this repo. `unit`
# is skipped on purpose when `core-on-index` says the pin is not yet on the
# index: during that window no install can succeed, and the workflow chose
# to SKIP instead of faking green. A gate that required `success` would
# turn that choice into a red and push toward dropping the protection on
# release day of all days. So it refuses on `failure` and `cancelled`,
# never on `skipped`.
# The guides are the surface a stranger copies first, and until 2026-09-08
# nothing read them: one page published `page.accessibility.snapshot()`, which
# this fork does not have, so anybody who ran that block got an AttributeError.
# A broken test is seen by whoever runs the suite; a broken guide is seen once,
# by a reader who then leaves.
#
# It needs the package importable, because it asks the REAL classes what they
# have rather than carrying a list that would drift from them - so it takes
# core-on-index's answer exactly as `unit` does, and is SKIPPED during the
# window rather than faked green.
docs-api:
name: the guides name an API that exists
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
cache: pip
- name: Install package
run: |
python -m pip install --upgrade pip
pip install -e .
- name: check the guides against the API
# --selftest first, for the same reason the English gate does it: this
# one goes blind from a single edit to the list of names it inspects.
run: |
python scripts/check_docs_api_surface.py --selftest
python scripts/check_docs_api_surface.py
# `gate` is the ONLY context main requires, so a check this job does not wait
# for is a check the branch protection cannot see. It waited for three of the
# five, and the two it left out are not minor ones: `english` is the gate
# written FOR this repository after 549 lines of Italian shipped here in one
# subsystem, and `version` is what stands between a forgotten bump and a
# release that publishes nothing and reports success. Either could go red
# while this job went green and the push landed on main regardless - which is
# the decorative protection this project has already met once, on the branch
# rules that required job names no job produced any more.
#
# `skipped` is not a failure and must not be treated as one: `version` runs on
# pull requests only and is skipped on every push to main, and `unit` and
# `docs-api` are skipped during the window when the pinned core is not on the
# index yet. The case arms name failure and cancelled, so a skip passes on
# purpose. That is also why each arm carries its own sentence: a gate that
# 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, noreply-identity]
if: always()
runs-on: ubuntu-latest
steps:
- name: refuse unless nothing failed
run: |
echo "core-on-index: ${{ needs.core-on-index.result }}"
echo "unit: ${{ needs.unit.result }}"
echo "docs-api: ${{ needs.docs-api.result }}"
echo "english: ${{ needs.english.result }}"
echo "claims: ${{ needs.claims.result }}"
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
case "${{ needs.core-on-index.result }}" in
failure|cancelled) echo "the index check did not run"; exit 1 ;;
esac
case "${{ needs.docs-api.result }}" in
failure|cancelled) echo "the guides name something that does not exist"; exit 1 ;;
esac
case "${{ needs.english.result }}" in
failure|cancelled) echo "the repository is not English"; exit 1 ;;
esac
case "${{ needs.claims.result }}" in
failure|cancelled) echo "the README promises what no measurement supports"; exit 1 ;;
esac
case "${{ needs.way-in.result }}" in
failure|cancelled) echo "an install instruction is not uv"; exit 1 ;;
esac
case "${{ needs.version.result }}" in
failure|cancelled) echo "the version this change proposes is already taken"; exit 1 ;;
esac
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
# FIFTEEN commits of different content on top of the tag - 39 files, 841
# insertions, the screenshot clip fix among them. A release from there would
# have published NOTHING and reported success, because publish.yml treats an
# already-present version as a deliberate no-op: right for a re-pushed tag,
# indistinguishable from somebody forgetting to bump. The fix could not have
# reached anybody, and nothing would have said so.
#
# Pull requests only: on main straight after a release the version IS the
# published one until somebody bumps, and a gate that is red at rest is one
# people learn to skip. Bumping publishes nothing - publishing happens on a
# tag push - so main on an unreleased version is the normal state between
# releases and the rule costs one line.
version:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
with:
# The gate diffs the tree against the tag of the published
# version; a shallow clone has no tags and cannot tell.
fetch-depth: 0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: the version this change proposes is still free
env:
IPW_CHECK_VERSION: "1"
run: |
python -m pip install --upgrade pip
pip install pytest
python -m pytest -q tests/test_version_is_not_taken.py
+282
View File
@@ -0,0 +1,282 @@
# ─────────────────────────────────────────────────────────────────────────────
# user-install.yml - can a person who has never seen this repo install it and
# drive a browser, on the two operating systems we claim to support?
#
# WHY THIS EXISTS, SEPARATELY FROM e2e.yml.
# e2e.yml installs the wrapper FROM THE CHECKOUT and then pins Playwright by
# hand. That is the right shape for testing a change: it exercises the code in
# the PR. It is the wrong shape for answering "does the published thing work",
# and the difference is not academic:
#
# * a checkout install never resolves `invisible-core==X.Y.Z` from the index,
# so the entire pin mechanism - the part most likely to break a release,
# and the reason a binary bump is now a three-package release - is outside
# what that job can see;
# * installing a blessed `playwright==<pin>` afterwards REPAIRS the venv. If
# the declared range resolves to a client the shipped Juggler cannot speak,
# that manual line turns the job green while every fresh install is broken.
# What a user gets is what the installer resolves from the declaration,
# and that is what has to be under test.
#
# So this workflow installs nothing from the checkout except the test files.
# test_release_e2e.py runs the README's install block for the runner's system
# as written - uv from its own installer, `uv init`, `uv add
# invisible-playwright` from the index, `fetch` - and then drives the browser
# from the project it made, the way somebody's first script would.
# test_upgrade_e2e.py stays on pip on purpose: it is the path of the people who
# installed before the README said uv, and they are still there.
#
# WHY IT MUST NOT BE MADE TOLERANT.
# There is a real window in which this cannot pass: between publishing the core
# and publishing the consumers. The tempting fixes - `|| true`, `--no-deps`, a
# git fallback - all produce a GREEN job that installed nothing, and that lie
# outlives the window by months. A red run during a publish is correct and
# readable. See core-on-index.yml, which makes the same argument at length.
#
# WHY BOTH OPERATING SYSTEMS.
# Windows is the primary target, and the two most recent defects were
# Windows-only by construction: firefox.exe is a launcher stub that spawns the
# real browser and exits, so a killed runner used to leave the tree behind, and
# the job-object fix for it has no counterpart on Linux. A Linux-only matrix
# would have seen neither.
# ─────────────────────────────────────────────────────────────────────────────
name: user-install
on:
workflow_dispatch:
inputs:
source:
description: "index (what users get) or git (an unpublished commit)"
required: false
default: index
type: choice
options: [index, git]
schedule:
# Weekly (Monday). The published artifacts do not change on their own, but
# everything around them does: pip resolves a new Playwright, GitHub moves a
# release asset, an index mirror lags. Those break users without any commit
# here, so a run triggered only by pushes would never see them. Weekly is
# enough to catch that drift without adding a Windows job to the queue daily.
- cron: "17 6 * * 1"
# ⛔ THE LEDGER PULL REQUEST, not `release: published` ([B347], core
# 50.48.0). The Release is created by the publish workflow with GITHUB_TOKEN,
# and an event that token causes starts no other workflow: on `release:` this
# job had never run at release time. The ledger PR exists only after the
# upload and `record`, and merging it waits for this run, so a release does
# not close before what it published installs. `python -m
# invisible_core.install_job` checks the wiring (tests.yml).
pull_request:
paths:
- PUBLISHED.json
permissions:
contents: read
# Only a new push to a ledger pull request cancels the run it supersedes. The
# weekly schedule and a manual run (both on main) never cancel each other.
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:
# The Ubuntu packages of the Linux leg, from Ubuntu's archive once per runner image and list (linux-deps.yml), never by the leg.
linux-deps-user-install:
name: linux-deps-user-install
uses: ./.github/workflows/linux-deps.yml
with:
name: user-install
packages: xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
install:
needs: linux-deps-user-install
name: ${{ matrix.os }} - install from ${{ github.event.inputs.source || 'index' }} and launch
runs-on: ${{ matrix.os }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
timeout-minutes: 45
strategy:
fail-fast: false # one OS failing must not hide the other's result
matrix:
os: [ubuntu-24.04, windows-latest]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with: { python-version: '3.11' }
# Only what the TEST needs, from the wrapper's hashed lock (ci/py-lock/gate.txt), the one the other test jobs read: never a hand list, which is how
# `psutil` (imported by the OS-cursor helper of the tests since #609) was missing here and ledger #618 was red. The lock holds `uv` (the wait below asks it, and the
# release test installs the package with it) and holds neither invisible-playwright nor invisible-core: 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. The runner's own pip, nothing unhashed.
# A rule test of the unit suite (the install job has every module its tests import) holds every third-party module the tests import to that lock.
- name: Test harness only
run: python -m pip install --require-hashes -r ci/py-lock/gate.txt
# ⛔ THE VERSION OF A LEDGER PULL REQUEST IS THE ONE IT ADDS TO PUBLISHED.json, NOT THE ONE THE TREE DECLARES.
# The ledger PR of a release is merged after this job is green, and the next release's tree can already be on main: ledger #534 recorded
# 0.56.0 while the tree said 0.57.0, which is not published until that ledger is merged (its tag asks for it), so a wait on the version of
# pyproject.toml could never end and the PR could never merge. The versions are compared as data: the ledger at the base of the pull
# request against the ledger at its head. Nothing added is an error (there is no release to check), and so is more than one (the job
# installs and launches one version). INVPW_E2E_VERSION then carries it to the wait, the install and the launch below, in every step.
# A scheduled or dispatched run has no pull request and no such version: it installs the latest, as before.
- name: the version this ledger pull request records
if: github.event_name == 'pull_request'
shell: bash
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
set -euo pipefail
git fetch --no-tags --depth=1 origin "$BASE_SHA" "$HEAD_SHA"
git show "$BASE_SHA:PUBLISHED.json" > "$RUNNER_TEMP/ledger-base.json"
git show "$HEAD_SHA:PUBLISHED.json" > "$RUNNER_TEMP/ledger-head.json"
version="$(python scripts/ci_ledger_added_versions.py --base "$RUNNER_TEMP/ledger-base.json" --head "$RUNNER_TEMP/ledger-head.json" --tree-pyproject pyproject.toml)"
echo "INVPW_E2E_VERSION=$version" >> "$GITHUB_ENV"
echo "::notice::this ledger pull request records invisible-playwright $version"
# PyPI does not serve a new version to pip the instant twine finishes, and
# this workflow runs on the ledger pull request, which the publish run
# opens seconds after the upload (it ran on `release:`, just as soon).
# MEASURED 2026-07-28: invisible-firefox 0.2.6 was uploaded, the release was
# created about forty seconds later, and the pip install below still resolved
# 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.
#
# 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 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 os, subprocess, sys, tempfile, time, tomllib
dist = tomllib.load(open("pyproject.toml", "rb"))["project"]["name"]
# 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
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)
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: The Linux packages (the run's linux-deps-user-install job, no mirror)
if: runner.os == 'Linux'
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-user-install.outputs.artifact }}
path: /tmp/linux-deps
- name: Linux runtime libraries for the browser (the repository of the linux-deps-user-install job)
if: runner.os == 'Linux'
run: |
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
- name: The user path, end to end
env:
# The release walk asks the GitHub API once per published version.
# Unauthenticated that is 60 calls an hour PER RUNNER IP, and the
# walk hit 403 on its eleventh call when measured by hand. A
# 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
if [ "${{ runner.os }}" = "Linux" ]; then
xvfb-run -a python -m pytest tests/test_release_e2e.py tests/test_upgrade_e2e.py -m e2e \
-o addopts="" -v -rs | tee e2e-report.txt
else
python -m pytest tests/test_release_e2e.py tests/test_upgrade_e2e.py -m e2e \
-o addopts="" -v -rs | tee e2e-report.txt
fi
# A run whose tests all SKIPPED is not a pass, and it is the failure this
# suite is most exposed to: every test here is gated on `-m e2e` and
# several on a platform. `-rs` above prints the skips; this turns "nothing
# ran" into a refusal rather than a green tick.
- name: Refuse a run in which nothing actually ran
shell: bash
run: |
python - <<'PY'
import pathlib, re, sys
# pytest's own exit code cannot distinguish "all passed" from "all
# skipped", so the count is read back from the report it wrote.
report = pathlib.Path("e2e-report.txt")
if not report.is_file():
print("no report written; the step above did not run", file=sys.stderr)
sys.exit(1)
text = report.read_text(encoding="utf-8", errors="ignore")
m = re.search(r"(\d+) passed", text)
passed = int(m.group(1)) if m else 0
if passed < 6:
print(f"only {passed} test(s) actually ran (expected at least 6) - a suite that skipped "
f"itself is not a pass", file=sys.stderr)
sys.exit(1)
print(f"{passed} tests ran")
PY
-61
View File
@@ -1,61 +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".
# Until that binary ships, test_not_blocked_behind_tcp_only_socks is EXPECTED
# to fail (the old binary is fully blocked behind a SOCKS proxy), which is the
# whole point of the gate.
#
# 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
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
run: python -m invisible_playwright fetch
- name: Resolve binary path
run: echo "STEALTHFOX_E2E_BINARY=$(python -m invisible_playwright path)" >> "$GITHUB_ENV"
- name: Run WebRTC realness e2e (xvfb for the headless Firefox)
run: |
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
+3131 -15
View File
File diff suppressed because it is too large. Load diff
+17 -17
View File
@@ -4,20 +4,20 @@ Thanks for your interest in improving this project. Contributions are welcome vi
## Quick links
- **Bug?** Open a [bug report](https://github.com/feder-cr/invisible_playwright/issues/new?template=bug_report.yml).
- **Idea?** Open a [feature request](https://github.com/feder-cr/invisible_playwright/issues/new?template=feature_request.yml).
- **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/150`). 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
This repository ships the **Python wrapper** (`invisible_playwright`) around a pre-built patched Firefox. In scope:
- The `InvisiblePlaywright` sync/async API and launcher
- The fingerprint sampler (`_fpforge`)
- Binary download/caching, CLI, proxy plumbing
- The `InvisiblePlaywright` sync and async API, and its Playwright compatibility layer
- 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/oss-invisible/core).
Out of scope (belongs in `firefox_antidetect_patch`):
- Changes to the Firefox C++ source
@@ -26,19 +26,19 @@ Out of scope (belongs in `firefox_antidetect_patch`):
## Development setup
To *use* the package you do not need any of this: `pip install invisible-playwright`.
The steps below are for working on the code.
To *use* the package you do not need any of this: see [Install](README.md#install) in the README.
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
python -m venv .venv
git clone https://github.com/oss-invisible/playwright.git
cd playwright
uv venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
python -m invisible_playwright fetch # download the patched Firefox binary
uv pip install -e ".[dev]"
invisible-playwright fetch # download the patched Firefox binary
```
Requires Python 3.11+ and one of: Windows x86_64, Linux x86_64.
One of: Windows x86_64, Linux x86_64.
## Running tests
@@ -66,13 +66,13 @@ 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:
- OS and version, Python version, `invisible_playwright` version (`invisible_playwright version`)
- OS and version, Python version, the output of `invisible-playwright version`
- A minimal reproduction
- Expected vs actual behavior
- Relevant logs / stack traces
+46684
View File
File diff suppressed because it is too large. Load diff
+233 -46
View File
@@ -1,30 +1,35 @@
<p>
<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 151.0"></a>
<a href="https://github.com/feder-cr/invisible_playwright/stargazers"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/stars.svg" alt="GitHub stars"></a>
<a href="https://github.com/feder-cr/firefox_antidetect_patch/releases/tag/usage-counter"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/launches.svg" alt="browser launches"></a>
</p>
<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/7a8693c6b4386e9a84dd93bedc479ca8654482e1/docs/banner-dark.png">
<img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/7a8693c6b4386e9a84dd93bedc479ca8654482e1/docs/banner-light.png" alt="invisible_playwright" width="620">
<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/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>
<h3 align="center">A modified Firefox that passes every bot detection test.</h3>
<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/feder-cr/invisible_playwright/7a8693c6b4386e9a84dd93bedc479ca8654482e1/docs/screenshots/hero.gif)
![invisible_playwright - 5/5 detection suites passed](https://raw.githubusercontent.com/oss-invisible/playwright/7a8693c6b4386e9a84dd93bedc479ca8654482e1/docs/screenshots/hero.gif)
## How it works
Anti-bots ask two questions. invisible_playwright answers yes to both.
Anti-bots ask two questions, and reCAPTCHA, hCaptcha and Cloudflare Turnstile score the answers. invisible_playwright answers yes to both.
**1. Is this a real browser?** Yes. It is Firefox, patched at the C++ source level.
- Fingerprint set inside the engine, not injected into the page: Navigator, screen, GPU/WebGL, Canvas, fonts, audio, WebRTC, timezone, network.
- The browser fingerprint is set inside the engine, not injected into the page: navigator, screen, GPU/WebGL, canvas, fonts, audio, WebRTC, timezone, network. Headless or headed, the same values either way.
- No JS shim, no override, no seam to read.
**2. Is a real person using it?** Yes. The actions are humanized in the driver.
@@ -32,31 +37,41 @@ Anti-bots ask two questions. invisible_playwright answers yes to both.
- Every click, hover and drag follows a natural mouse path with human timing, no teleporting cursor.
- Each input is byte-identical to a real mouse: real input source, pressure, trusted events.
Driven by the standard Playwright API. Full breakdown: [feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch).
---
## Still seeing captchas or anti-bot? It's the proxy.
Once the browser is handled it stops being the variable. If you are still getting challenged, the tell is no longer the browser, it is the IP you come from. Around 90% of proxies are public: anyone can rent the same address, so it is already known and sits on the blocked-IP lists sites check. A perfect browser on a known IP still loses.
> The fix is the clean 10%, residential IPs that aren't already known. For those we recommend [sx.org](https://sx.org/?c=invisible_playwright), who filter for and serve only IPs that aren't already on those lists.
---
## Install
```bash
pip install invisible-playwright
python -m invisible_playwright fetch # one-time ~100 MB download, SHA256-verified
Windows, in PowerShell:
```powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
$env:Path = "$env:USERPROFILE\.local\bin;$env:Path"
uv init --python ">=3.11" my-project
cd my-project
uv add invisible-playwright
uv run invisible-playwright fetch # one-time download, sha256-verified: 240 MB, about 550 MB unpacked
```
Supported platforms: **Windows x86_64**, **Linux x86_64 / arm64**, **macOS arm64 / x86_64**. On macOS the app is ad-hoc signed (not notarized): if Gatekeeper complains, clear the quarantine flag once with `xattr -dr com.apple.quarantine` on the cached `Firefox.app`.
Linux:
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env
uv init --python ">=3.11" my-project
cd my-project
uv add invisible-playwright
uv run invisible-playwright fetch # one-time download, sha256-verified: 262 MB, about 550 MB unpacked
```
Supported platforms: **Windows x86_64**, **Linux x86_64**. Linux arm64 is no longer supported from firefox-56 (firefox-55 is the last engine built for it).
Then save one of the examples below as `main.py` in `my-project` and run it with `uv run main.py`.
---
## Usage
### Random fingerprint per session
**100% Playwright-compatible** - sync and async, all methods, zero API changes. If you already use Playwright, switching is two lines:
**Playwright's API, sync and async, with no code changes.** The same objects, the same calls, the same return values. A few surfaces are out of scope - tracing, HAR, CDP, the API request context - and each one refuses with a sentence saying why rather than misbehaving quietly. If you already use Playwright, switching is two lines:
```diff
- from playwright.sync_api import sync_playwright
@@ -66,7 +81,7 @@ Supported platforms: **Windows x86_64**, **Linux x86_64 / arm64**, **macOS arm64
+ with InvisiblePlaywright() as browser:
```
Every session gets a distinct fingerprint (GPU, audio, fonts, screen, ~400 fields) and Bezier-curve mouse motion.
Every session gets a distinct fingerprint (GPU, audio, fonts, screen, ~200 fields) and Bezier-curve mouse motion.
**Sync**
```python
@@ -120,7 +135,49 @@ with InvisiblePlaywright(proxy=proxy) as browser:
Schemes supported: `socks5`, `socks4`, `http`, `https`. DNS is routed through the proxy by default, no local leak.
Around 90% of proxies are public, so their IPs are already known and blocked. For the clean 10%, residential IPs that aren't already known, we recommend [sx.org](https://sx.org/?c=invisible_playwright), who filter for and serve only IPs that aren't already on those lists.
### Serving one browser to many clients
`launch_server()` serves one browser on a WebSocket to any Playwright client. Install the
extra that carries the WebSocket library with `uv add "invisible-playwright[remote]"`.
```python
# server.py
from invisible_playwright import launch_server
with launch_server(seed=42, headless=True) as server:
print(server.ws_endpoint) # ws://127.0.0.1:<port>/<secret>
input("serving, press Enter to stop")
```
```python
# client.py: any Playwright client; this one is Playwright for Python (uv add playwright)
import sys
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.firefox.connect(sys.argv[1]) # the address the server printed
page = browser.new_page()
page.goto("https://example.com")
print(page.title())
browser.close() # ends this client; the server's browser keeps running
```
The server listens on `127.0.0.1` with a random secret path; `host=`, `port=` and `path=` choose
another address. A client in another language (Node, Java, .NET, Go) connects to the same
address with the `connect` call of its own Playwright. The browser belongs to the server and
ends with `server.close()` (or with the `with` block).
On Linux, set `MALLOC_ARENA_MAX=2` in the environment of the process that runs it (glibc keeps a memory
arena per thread otherwise); the server already hands freed memory back with `malloc_trim`
(`INVPW_MALLOC_TRIM=0` turns that off).
The server keeps its protocol objects in a registry and, like Playwright's own server,
collects the oldest ones when a type grows past a limit (`__dispose__` with reason `gc`).
Its limits are Playwright's, except `Request`, `Response` and `Route`, which are 2000
instead of 10000, and nothing younger than 10 seconds is ever collected. A client that
keeps more than 2000 requests or responses in hand for longer than that gets "Target
closed" on the oldest ones; one that uses them inside its callback is not affected. Set
`INVPW_GC_LIMITS="Request=10000,Response=10000,Route=10000"` to get Playwright's numbers.
### Timezone
@@ -145,8 +202,8 @@ By default everything comes from `seed`. To force specific values while the rest
with InvisiblePlaywright(
seed=42,
pin={
"gpu.renderer": "ANGLE (NVIDIA, NVIDIA GeForce RTX 4090 Direct3D11)",
"gpu.vendor": "Google Inc. (NVIDIA)",
"gpu.renderer": "ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0, D3D11)",
"gpu.vendor": "Google Inc. (AMD)",
"screen.width": 2560,
"screen.height": 1440,
"hardware.concurrency": 16,
@@ -155,33 +212,157 @@ with InvisiblePlaywright(
...
```
Full list of pinnable keys, how pinning interacts with the Bayesian sampler, and common patterns are in **[docs/pinning.md](https://github.com/feder-cr/invisible_playwright/blob/main/docs/pinning.md)**.
A GPU pin picks one of the validated personas rather than setting a free string,
because the ~81 `getParameter` values and the extension list travel with the
renderer name and a detector cross-checks them against it. A name the pool does
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
The installed command is `invisible-playwright`, with a hyphen. `python -m
invisible_playwright` works identically and needs nothing on PATH.
```bash
invisible_playwright fetch # download the binary if missing
invisible_playwright fetch --force # re-download even if cached
invisible_playwright path # print the absolute path to the cached binary
invisible_playwright version # wrapper and binary versions
invisible_playwright clear-cache # remove all cached binaries
invisible-playwright fetch # download the engine if missing, check every cached
# one against the seal, print the path
invisible-playwright version # wrapper, core and engine versions, and where the
# engine is cached
```
## Documentation, guides and comparisons
**If you would rather prompt than script.** This page is the engine, as a Python
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/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/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/oss-invisible/playwright/wiki)**,
organised into four sections instead of one flat list:
- **[Documentation](docs/documentation.md)** -
installation, the two-line switch from plain Playwright, proxy/timezone
configuration, pinning specific fields, the CLI.
- **[Guides](docs/guides.md)** - how
detection actually works, in seven groups: browser identity, canvas/WebGL/fonts/
audio, network and WebRTC, the automation layer, AI agents, the detectors themselves
explained from source, and testing.
- **[Comparisons](docs/comparisons.md)** -
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
frameworks it does not fit, by name.
If you don't know where to start: [Three ways to make Playwright undetected](docs/playwright-stealth-levels.md)
is the map most other pages link back to, [Playwright detected as a bot on one site](docs/playwright-detected-as-bot.md)
is the troubleshooting order, and [navigator.webdriver is not the tell you think it is](docs/navigator-webdriver-explained.md)
explains the most famous property in this space and why patching it alone buys you
almost nothing.
The detectors section now covers the commercial anti-bot products by name, each
read from its own documentation or from confirmed reverse engineering:
[Cloudflare Bot Management](docs/cloudflare-bot-management-explained.md) and
[Turnstile](docs/cloudflare-turnstile-explained.md),
[DataDome](docs/datadome-explained.md), [Kasada](docs/kasada-explained.md),
[Akamai Bot Manager](docs/akamai-bot-manager-explained.md),
[PerimeterX](docs/perimeterx-explained.md), [hCaptcha](docs/hcaptcha-explained.md),
[Imperva](docs/imperva-incapsula-explained.md), and
[the rest of the set](docs/guides-detectors-explained.md).
## Related projects
Related projects that cover similar ground:
**The other pieces of this one.** The engine is the middle of three, and the
two around it are how most people reach it:
- **[arkenfox/user.js](https://github.com/arkenfox/user.js)** - Firefox privacy hardening via prefs. invisible_playwright patches C++ where prefs are insufficient.
- **[LibreWolf](https://librewolf.net)** - Firefox fork with privacy defaults. LibreWolf ships a configured binary; invisible_playwright ships source patches + automation wrapper.
- **[Camoufox](https://github.com/daijro/camoufox)** - open-source anti-detect Firefox. Patches a wider surface and ships its own fingerprint database; invisible_playwright uses a Bayesian sampler.
- **[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/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
to the browser.
**The open-source neighbours.** Which one fits depends on the layer your problem is
at, and on whether you need Firefox or Chromium:
[three ways to make Playwright undetected](docs/playwright-stealth-levels.md) works
through what each layer can reach, and [AI browser agents and stealth](docs/ai-browser-agents-stealth.md)
covers the frameworks that pick Chromium over CDP for you.
**On the Firefox side**
- **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.
**On the Chromium side**
- **[Patchright](https://github.com/Kaliiiiiiiiii-Vinyzu/patchright)** - a patched Playwright fork: the work lands in the driver, not the binary. [Comparison](docs/vs-patchright.md).
- **[nodriver](https://github.com/ultrafunkamsterdam/nodriver)** - successor to `undetected-chromedriver`, driving Chrome over CDP. [Comparison](docs/vs-nodriver.md).
- **[rebrowser-patches](https://github.com/rebrowser/rebrowser-patches)** - fixes the `Runtime.enable` CDP leak. [Comparison](docs/vs-rebrowser-patches.md).
- **[fingerprint-suite](https://github.com/apify/fingerprint-suite)** - a Bayesian fingerprint generator, then injected into the page. [Comparison](docs/vs-fingerprint-suite.md).
- **[playwright-with-fingerprints](https://github.com/bablosoft/playwright-with-fingerprints)** - values from a paid remote service, Windows-only. [Comparison](docs/vs-playwright-with-fingerprints.md).
- **[playwright-stealth](https://github.com/Mattwmaster58/playwright_stealth)** - an init-script patch; its maintainer calls it a proof-of-concept. [Comparison](docs/vs-playwright-stealth.md).
- **[puppeteer-extra-plugin-stealth](https://github.com/berstend/puppeteer-extra)** - the original of that lineage, last substantive commit mid-2024. [What that means](docs/puppeteer-extra-stealth-unmaintained.md).
- **[selenium-stealth](https://github.com/diprajpatra/selenium-stealth)** - the same approach on Selenium, last commit December 2021. [What that means](docs/selenium-stealth-unmaintained.md).
- **[pyppeteer](https://github.com/pyppeteer/pyppeteer)** - unmaintained by its own README, which points to `playwright-python`. [What that recommendation is about](docs/pyppeteer-unmaintained-playwright.md).
---
## What is patched in the engine
Two rules hold across everything below. Every value is decided **before a page can
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:
[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).
- `navigator.languages` and the `Accept-Language` header are the same declaration, sent and read: [Accept-Language and navigator.languages](docs/accept-language-navigator-languages.md).
- Screen geometry, `devicePixelRatio` and the media queries exposing it are declared, not read from the host: [devicePixelRatio and the Firefox pref](docs/devicepixelratio-firefox-pref.md), [CSS media query fingerprinting](docs/css-media-query-fingerprinting.md).
**Rendering**
- Canvas readback is deterministic per seed and keeps the real shape, rather than blocked or noised: [canvas fingerprint noise](docs/canvas-fingerprint-noise.md), [why a canvas fingerprint changes every run](docs/canvas-fingerprint-changes-every-run.md).
- WebGL reports a coherent GPU persona: vendor, renderer and the parameter limits are cross-checked, not set one at a time: [WebGL renderer strings](docs/webgl-renderer-strings.md), [WebGL parameters are identical](docs/webgl-parameters-are-identical.md).
- Fonts ship with the browser, so the same faces exist on every host and the platform font engine no longer chooses: [bundled fonts across platforms](docs/bundled-fonts-cross-platform.md), [why headless browsers render different fonts](docs/headless-fonts-differ.md), [detecting installed fonts from JavaScript](docs/detect-installed-fonts-javascript.md).
- Text metrics follow those fonts: `measureText` returns ten-plus numbers from one call, with no permission prompt: [measureText and TextMetrics](docs/measuretext-textmetrics-fingerprinting.md).
- Canvas and WebGL agree across operating systems for the same seed: [cross-platform consistency](docs/canvas-webgl-cross-platform-consistency.md), [canvas differs across operating systems](docs/canvas-differs-across-operating-systems.md).
**Audio and media**
- The audio stack answers from the profile rather than from the host device: [AudioContext fingerprinting](docs/audiocontext-fingerprinting.md), [sample rate and latency](docs/audiocontext-samplerate-latency-fingerprint.md).
- 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**
- 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).
**The automation layer**
- Input events come from the real input path, so `isTrusted` is true because it is true: [Playwright clicks and isTrusted](docs/playwright-clicks-istrusted.md).
- The pointer follows a human path and timing, at a cadence a real device could produce: [human mouse movement](docs/human-mouse-movement.md), [mouse dynamics as behavioural biometrics](docs/mouse-dynamics-behavioural-biometrics.md).
- The debugger surface does not answer the timing questions that give a driven browser away: [debugger timing detection](docs/debugger-timing-detection.md).
- Closed-mode shadow roots are reachable, which stock Playwright cannot do in either engine, while the page still reads `null`: [closed shadow roots](docs/closed-shadow-root-playwright.md).
---
## 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).
---
@@ -189,10 +370,16 @@ MIT - see [LICENSE](https://github.com/feder-cr/invisible_playwright/blob/main/L
This project is for educational purposes only. It is provided as-is, with no warranties. I take no responsibility for how it is used. Use it at your own risk and in compliance with the laws of your jurisdiction.
---
<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/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
+4
View File
@@ -0,0 +1,4 @@
{
"format": "ab-host-expected/1",
"differences": []
}
+38
View File
@@ -0,0 +1,38 @@
{
"format": "ab-network-volatile/1",
"about": "The leaves of the network transcript that differ between two runs of ONE engine (the A/A of scripts/ci_ab_network.py). Each entry: `pattern` (fnmatch over the leaf path seeds/<seed>/<category>/...), `reason` (why that leaf is noise), `aa_run` (the A/A run that proved it). Born from the evidence of the A/A, never written ahead of it. It may only shrink: an entry that matches no leaf of a run is red as stale.",
"entries": [
{
"pattern": "seeds/*/journey/connects/counts/*",
"reason": "How many TCP connections the browser opens to each destination of the journey (the DoH, the two origins) is the connection pool's: parallel and speculative connections, keep-alive connections that close and reopen, DoH connections. The CONNECTs of the launch stage are counted with the journey ones (the DoH connection at start-up lands in either). The set of destinations and the order they were first reached stay compared (journey/connects/order). Totals of the two runs: Linux DoH 226 and 225, origin A 14 and 13, origin O 20 and 12; Windows DoH 222 and 230, A 23 and 15, O 22 and 14.",
"aa_run": "44946411675 (linux, windows)"
},
{
"pattern": "seeds/*/webrtc/connects/counts/*",
"reason": "The connections to the DoH during the WebRTC page: 14 and 25 between the two Windows runs. Same pool; the destinations of the page (webrtc/connects/order) stay compared.",
"aa_run": "44946411675 (windows)"
},
{
"pattern": "seeds/*/https/*/wire/resumed_connections",
"optional": true,
"reason": "Whether a connection that resumes a session carried a request at all follows the ticket and the pool: an origin had one in a run and none in the other (seed 2 and seed 4 on Linux, h1: 108 leaves each), so what is under it is compared where both runs have a resumption and excused where only one has. The fresh connections (wire/connections) and the protocols stay compared always.",
"aa_run": "44982522362 (linux)"
},
{
"pattern": "seeds/*/h3/wire/resumed_connections",
"optional": true,
"reason": "The same for the HTTP/3 site's resumed connection.",
"aa_run": "44982522362 (linux)"
},
{
"pattern": "seeds/*/https/*/wire/*connections/*/tls/extensions/encrypted_client_hello/aead",
"reason": "The engine sends an ECH extension with no real configuration (GREASE) and picks its AEAD at random for each ClientHello it builds, whether the handshake is fresh or resumed: NSS security/nss/lib/ssl/tls13ech.c:2257, `aead = (rawData->data[0] & 1) ? HpkeAeadAes128Gcm : HpkeAeadChaCha20Poly1305;` where rawData is HKDF output of a freshly generated key (tls13_MaybeGreaseEch, called from ssl3con.c:5888 for every ClientHello that has no real ECH, with or without a pre_shared_key). 1 (AES-128-GCM) or 3 (ChaCha20-Poly1305): Windows h2 first connection 1 then 3, h1 3 then 1, both values inside one run; resumed h1 connections 3 and 1 (seeds 2 and 4 on Windows, seed 63 on Linux). The rest of the extension (type, kdf, enc and payload lengths) stays compared.",
"aa_run": "44946411675 and 44982522362 (linux, windows)"
},
{
"pattern": "seeds/*/h3/wire/*connections/*/tls/extensions/encrypted_client_hello/aead",
"reason": "The same ECH GREASE draw (tls13ech.c:2257) on the TLS connection of the HTTP/3 site (the HTTP/2 connection that opens before QUIC): 1 in one run and 3 in the other, on Linux and on Windows.",
"aa_run": "44946411675 and 44982522362 (linux, windows)"
}
]
}
+749
View File
@@ -0,0 +1,749 @@
{
"format": "ab-oracle-expected/1",
"differences": [
{
"id": "linux-seed6-state.after_fullscreen.events.mousemove",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.events.mousemove",
"published": [
[
0,
86
],
[
0,
85
]
],
"candidate": [
[
0,
85
],
[
0,
84
]
],
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed6-state.after_fullscreen.innerHeight",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed6-state.after_fullscreen.mozInnerScreenY",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "linux-seed6-state.normal.events.mousemove",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.events.mousemove",
"published": [
[
0,
86
],
[
0,
85
]
],
"candidate": [
[
0,
85
],
[
0,
84
]
],
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed6-state.normal.innerHeight",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed6-state.normal.mozInnerScreenY",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "linux-seed6-surface.visualViewport.height",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.visualViewport.height",
"published": 730.4000244140625,
"candidate": 731.2000122070312,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: visualViewport.height, the viewport height in CSS px."
},
{
"id": "linux-seed6-surface.window.innerHeight",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.window.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed6-surface.window.mozInnerScreenY",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.window.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "linux-seed63-state.after_fullscreen.events.click",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.click",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a click event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.after_fullscreen.events.mousedown",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mousedown",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousedown event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.after_fullscreen.events.mousemove",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mousemove",
"published": [
[
0,
85
],
[
0,
84
]
],
"candidate": [
[
0,
73
],
[
0,
72
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.after_fullscreen.events.mouseup",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mouseup",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mouseup event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.after_fullscreen.innerHeight",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed63-state.after_fullscreen.mozInnerScreenY",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "linux-seed63-state.normal.events.click",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.click",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a click event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.normal.events.mousedown",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mousedown",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousedown event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.normal.events.mousemove",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mousemove",
"published": [
[
0,
85
],
[
0,
84
]
],
"candidate": [
[
0,
72
],
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.normal.events.mouseup",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mouseup",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mouseup event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.normal.innerHeight",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed63-state.normal.mozInnerScreenY",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "linux-seed63-surface.visualViewport.height",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.visualViewport.height",
"published": 587.3333129882812,
"candidate": 599.3333129882812,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: visualViewport.height, the viewport height in CSS px."
},
{
"id": "linux-seed63-surface.window.innerHeight",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.window.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed63-surface.window.mozInnerScreenY",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.window.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed6-state.after_fullscreen.events.mousemove",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.events.mousemove",
"published": [
[
0,
86
],
[
0,
85
]
],
"candidate": [
[
0,
85
],
[
0,
84
]
],
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed6-state.after_fullscreen.innerHeight",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed6-state.after_fullscreen.mozInnerScreenY",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed6-state.normal.events.mousemove",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.events.mousemove",
"published": [
[
0,
86
],
[
0,
85
]
],
"candidate": [
[
0,
85
],
[
0,
84
]
],
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed6-state.normal.innerHeight",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed6-state.normal.mozInnerScreenY",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed6-surface.visualViewport.height",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.visualViewport.height",
"published": 730.4000244140625,
"candidate": 731.2000122070312,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: visualViewport.height, the viewport height in CSS px."
},
{
"id": "windows-seed6-surface.window.innerHeight",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.window.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed6-surface.window.mozInnerScreenY",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.window.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed63-state.after_fullscreen.events.click",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.click",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a click event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.after_fullscreen.events.mousedown",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mousedown",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousedown event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.after_fullscreen.events.mousemove",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mousemove",
"published": [
[
0,
85
],
[
0,
84
]
],
"candidate": [
[
0,
73
],
[
0,
72
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.after_fullscreen.events.mouseup",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mouseup",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mouseup event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.after_fullscreen.innerHeight",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed63-state.after_fullscreen.mozInnerScreenY",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed63-state.normal.events.click",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.click",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a click event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.normal.events.mousedown",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mousedown",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousedown event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.normal.events.mousemove",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mousemove",
"published": [
[
0,
85
],
[
0,
84
]
],
"candidate": [
[
0,
72
],
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.normal.events.mouseup",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mouseup",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mouseup event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.normal.innerHeight",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed63-state.normal.mozInnerScreenY",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed63-surface.visualViewport.height",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.visualViewport.height",
"published": 587.3333129882812,
"candidate": 599.3333129882812,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: visualViewport.height, the viewport height in CSS px."
},
{
"id": "windows-seed63-surface.window.innerHeight",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.window.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed63-surface.window.mozInnerScreenY",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.window.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
}
]
}
+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
}
File diff suppressed because it is too large. Load diff
+18
View File
@@ -0,0 +1,18 @@
[
{
"id": "D31",
"bug": "",
"firefox": {
"from": "159.0",
"to": "159.*"
},
"signature": {
"process": "backgroundtask",
"phase": "exit",
"thread": "FSBroker",
"reason": "MOZ_CRASH(mozilla::detail::MutexImpl::mutexLock: pthread_mutex_lock failed)"
},
"seen": "oss-invisible/firefox_antidetect_patch/actions/runs/46539190316/job/142310624770",
"why": "at the exit of a -backgroundtask process the FSBroker thread unregisters from the profiler after the static destructors ran and locks a destroyed mutex"
}
]
+566
View File
@@ -0,0 +1,566 @@
{
"candidate": [
0,
2,
4,
6,
63
],
"core_version": "71.85.0",
"counts": {
"audio": {
"audio.sample_rate=44100|audio.output_latency_ms=20|audio.max_channel_count=2": 4315,
"audio.sample_rate=44100|audio.output_latency_ms=40|audio.max_channel_count=2": 14437,
"audio.sample_rate=44100|audio.output_latency_ms=50|audio.max_channel_count=2": 8614,
"audio.sample_rate=48000|audio.output_latency_ms=20|audio.max_channel_count=2": 21542,
"audio.sample_rate=48000|audio.output_latency_ms=20|audio.max_channel_count=6": 7783,
"audio.sample_rate=48000|audio.output_latency_ms=25|audio.max_channel_count=2": 5091,
"audio.sample_rate=48000|audio.output_latency_ms=30|audio.max_channel_count=2": 19799,
"audio.sample_rate=48000|audio.output_latency_ms=40|audio.max_channel_count=2": 18419
},
"codecs": {
"media.av1.enabled=false|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f": 4264,
"media.av1.enabled=false|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f": 18331,
"media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a": 12026,
"media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=false|media.webm.enabled=true|media.decode_support=sha:960968735a": 4065,
"media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=false|media.decode_support=sha:960968735a": 4500,
"media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a": 56814
},
"cores": {
"hw_concurrency=10": 591,
"hw_concurrency=12": 21879,
"hw_concurrency=14": 1593,
"hw_concurrency=16": 13914,
"hw_concurrency=2": 2532,
"hw_concurrency=20": 3999,
"hw_concurrency=22": 1038,
"hw_concurrency=24": 2270,
"hw_concurrency=28": 1047,
"hw_concurrency=3": 1215,
"hw_concurrency=32": 2317,
"hw_concurrency=4": 16106,
"hw_concurrency=5": 800,
"hw_concurrency=6": 2189,
"hw_concurrency=7": 572,
"hw_concurrency=8": 27517,
"hw_concurrency=9": 421
},
"dark_theme": {
"ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1": 59856,
"ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0": 40144
},
"dpr": {
"layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31": 70210,
"layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38": 18299,
"layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.popup_ui=106|screen.popup_client_top=45": 11491
},
"gfx_device": {
"adliris_7085": 7197,
"arl_6629": 2281,
"gtx1650_62101": 5882,
"gtx980_58278": 6133,
"icl_2145": 2398,
"irisxe_7085": 9685,
"renoir_21925": 8650,
"rpl770_7092": 3631,
"rtx3060_62101": 6058,
"rtx4060_62101": 6044,
"rtx5060_62101": 6044,
"rtx5060ti_62101": 5881,
"rtx5070_62101": 6289,
"rtx5080l_61742": 5891,
"rx580_21925": 1855,
"rx6600_32015": 1817,
"rx7600_32015": 1865,
"uhd620_2145": 2680,
"uhd630_2145": 7419,
"uhd770_7092": 2300
},
"gfx_feature_status": {
"gfx.feature_status=sha:05ce56d3c0": 22813,
"gfx.feature_status=sha:098c0bf836": 2281,
"gfx.feature_status=sha:2f5fe3776b": 14187,
"gfx.feature_status=sha:80c00ab015": 9817,
"gfx.feature_status=sha:b153aef69f": 48222,
"gfx.feature_status=sha:d1db3983c9": 2680
},
"render_noise": {
"fpp.hw_seed=11": 11111,
"fpp.hw_seed=16": 11111,
"fpp.hw_seed=19": 11111,
"fpp.hw_seed=20": 11111,
"fpp.hw_seed=28": 11111,
"fpp.hw_seed=5": 22223,
"fpp.hw_seed=6": 11111,
"fpp.hw_seed=9": 11111
},
"screen_panel": {
"screen.width=1280|screen.height=720|screen.avail_device_width=1920|screen.avail_device_height=1008|layout.css.devPixelsPerPx=\"1.5\"": 9276,
"screen.width=1536|screen.height=864|screen.avail_device_width=1920|screen.avail_device_height=1020|layout.css.devPixelsPerPx=\"1.25\"": 15893,
"screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"": 41031,
"screen.width=1920|screen.height=1200|screen.avail_device_width=1920|screen.avail_device_height=1152|layout.css.devPixelsPerPx=\"1.0\"": 5228,
"screen.width=2048|screen.height=1152|screen.avail_device_width=2560|screen.avail_device_height=1380|layout.css.devPixelsPerPx=\"1.25\"": 2406,
"screen.width=2560|screen.height=1080|screen.avail_device_width=2560|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"": 1918,
"screen.width=2560|screen.height=1440|screen.avail_device_width=2560|screen.avail_device_height=1392|layout.css.devPixelsPerPx=\"1.0\"": 19886,
"screen.width=2560|screen.height=1440|screen.avail_device_width=3840|screen.avail_device_height=2088|layout.css.devPixelsPerPx=\"1.5\"": 2215,
"screen.width=3840|screen.height=2160|screen.avail_device_width=3840|screen.avail_device_height=2112|layout.css.devPixelsPerPx=\"1.0\"": 2147
},
"webgl_renderer": {
"ANGLE (AMD, Radeon HD 3200 Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)": 8650,
"ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0, D3D11)": 5537,
"ANGLE (Intel, Intel(R) HD Graphics 400 Direct3D11 vs_5_0 ps_5_0, D3D11)": 16030,
"ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)": 21561,
"ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)": 48222
}
},
"dimensions": {
"audio": [
"audio.sample_rate=44100|audio.output_latency_ms=20|audio.max_channel_count=2",
"audio.sample_rate=44100|audio.output_latency_ms=40|audio.max_channel_count=2",
"audio.sample_rate=44100|audio.output_latency_ms=50|audio.max_channel_count=2",
"audio.sample_rate=48000|audio.output_latency_ms=20|audio.max_channel_count=2",
"audio.sample_rate=48000|audio.output_latency_ms=20|audio.max_channel_count=6",
"audio.sample_rate=48000|audio.output_latency_ms=25|audio.max_channel_count=2",
"audio.sample_rate=48000|audio.output_latency_ms=30|audio.max_channel_count=2",
"audio.sample_rate=48000|audio.output_latency_ms=40|audio.max_channel_count=2"
],
"codecs": [
"media.av1.enabled=false|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"media.av1.enabled=false|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=false|media.webm.enabled=true|media.decode_support=sha:960968735a",
"media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=false|media.decode_support=sha:960968735a",
"media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a"
],
"cores": [
"hw_concurrency=10",
"hw_concurrency=12",
"hw_concurrency=14",
"hw_concurrency=16",
"hw_concurrency=2",
"hw_concurrency=20",
"hw_concurrency=22",
"hw_concurrency=24",
"hw_concurrency=28",
"hw_concurrency=3",
"hw_concurrency=32",
"hw_concurrency=4",
"hw_concurrency=5",
"hw_concurrency=6",
"hw_concurrency=7",
"hw_concurrency=8",
"hw_concurrency=9"
],
"dark_theme": [
"ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0"
],
"dpr": [
"layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38",
"layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.popup_ui=106|screen.popup_client_top=45"
],
"gfx_device": [
"adliris_7085",
"arl_6629",
"gtx1650_62101",
"gtx980_58278",
"icl_2145",
"irisxe_7085",
"renoir_21925",
"rpl770_7092",
"rtx3060_62101",
"rtx4060_62101",
"rtx5060_62101",
"rtx5060ti_62101",
"rtx5070_62101",
"rtx5080l_61742",
"rx580_21925",
"rx6600_32015",
"rx7600_32015",
"uhd620_2145",
"uhd630_2145",
"uhd770_7092"
],
"gfx_feature_status": [
"gfx.feature_status=sha:05ce56d3c0",
"gfx.feature_status=sha:098c0bf836",
"gfx.feature_status=sha:2f5fe3776b",
"gfx.feature_status=sha:80c00ab015",
"gfx.feature_status=sha:b153aef69f",
"gfx.feature_status=sha:d1db3983c9"
],
"render_noise": [
"fpp.hw_seed=11",
"fpp.hw_seed=16",
"fpp.hw_seed=19",
"fpp.hw_seed=20",
"fpp.hw_seed=28",
"fpp.hw_seed=5",
"fpp.hw_seed=6",
"fpp.hw_seed=9"
],
"screen_panel": [
"screen.width=1280|screen.height=720|screen.avail_device_width=1920|screen.avail_device_height=1008|layout.css.devPixelsPerPx=\"1.5\"",
"screen.width=1536|screen.height=864|screen.avail_device_width=1920|screen.avail_device_height=1020|layout.css.devPixelsPerPx=\"1.25\"",
"screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"screen.width=1920|screen.height=1200|screen.avail_device_width=1920|screen.avail_device_height=1152|layout.css.devPixelsPerPx=\"1.0\"",
"screen.width=2048|screen.height=1152|screen.avail_device_width=2560|screen.avail_device_height=1380|layout.css.devPixelsPerPx=\"1.25\"",
"screen.width=2560|screen.height=1080|screen.avail_device_width=2560|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"screen.width=2560|screen.height=1440|screen.avail_device_width=2560|screen.avail_device_height=1392|layout.css.devPixelsPerPx=\"1.0\"",
"screen.width=2560|screen.height=1440|screen.avail_device_width=3840|screen.avail_device_height=2088|layout.css.devPixelsPerPx=\"1.5\"",
"screen.width=3840|screen.height=2160|screen.avail_device_width=3840|screen.avail_device_height=2112|layout.css.devPixelsPerPx=\"1.0\""
],
"webgl_renderer": [
"ANGLE (AMD, Radeon HD 3200 Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)",
"ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0, D3D11)",
"ANGLE (Intel, Intel(R) HD Graphics 400 Direct3D11 vs_5_0 ps_5_0, D3D11)",
"ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)",
"ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)"
]
},
"dpr": {
"0": 1.0,
"107": 1.0,
"11": 1.5,
"134": 1.0,
"1633": 1.25,
"190": 1.0,
"19013": 1.0,
"2": 1.0,
"258": 1.0,
"271": 1.25,
"29735": 1.0,
"3580": 1.0,
"4": 1.0,
"49": 1.0,
"50": 1.0,
"5469": 1.5,
"59": 1.0,
"6": 1.25,
"610": 1.25,
"63": 1.5,
"7": 1.0,
"72": 1.0,
"89": 1.0,
"9219": 1.0
},
"excluded": {
"zoom.stealth.media.enumeration_ms": "the time of the first enumerateDevices(): a draw from its own stream, hundreds of values, no class of seeds to cover"
},
"features": {
"0": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=40|audio.max_channel_count=2",
"codecs": "media.av1.enabled=false|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"cores": "hw_concurrency=12",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx5070_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=5",
"screen_panel": "screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"107": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=40|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=22",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "uhd630_2145",
"gfx_feature_status": "gfx.feature_status=sha:80c00ab015",
"render_noise": "fpp.hw_seed=6",
"screen_panel": "screen.width=2560|screen.height=1440|screen.avail_device_width=2560|screen.avail_device_height=1392|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (Intel, Intel(R) HD Graphics 400 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"11": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=20|audio.max_channel_count=6",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=32",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.popup_ui=106|screen.popup_client_top=45",
"gfx_device": "rpl770_7092",
"gfx_feature_status": "gfx.feature_status=sha:05ce56d3c0",
"render_noise": "fpp.hw_seed=16",
"screen_panel": "screen.width=1280|screen.height=720|screen.avail_device_width=1920|screen.avail_device_height=1008|layout.css.devPixelsPerPx=\"1.5\"",
"webgl_renderer": "ANGLE (Intel, Intel(R) HD Graphics 400 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"134": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=20|audio.max_channel_count=2",
"codecs": "media.av1.enabled=false|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"cores": "hw_concurrency=5",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "gtx980_58278",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=6",
"screen_panel": "screen.width=1920|screen.height=1200|screen.avail_device_width=1920|screen.avail_device_height=1152|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"1633": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=20|audio.max_channel_count=6",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=24",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38",
"gfx_device": "adliris_7085",
"gfx_feature_status": "gfx.feature_status=sha:05ce56d3c0",
"render_noise": "fpp.hw_seed=5",
"screen_panel": "screen.width=2048|screen.height=1152|screen.avail_device_width=2560|screen.avail_device_height=1380|layout.css.devPixelsPerPx=\"1.25\"",
"webgl_renderer": "ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"190": {
"audio": "audio.sample_rate=44100|audio.output_latency_ms=50|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=false|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=6",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "gtx1650_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=20",
"screen_panel": "screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"19013": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=25|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=20",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "uhd620_2145",
"gfx_feature_status": "gfx.feature_status=sha:d1db3983c9",
"render_noise": "fpp.hw_seed=28",
"screen_panel": "screen.width=3840|screen.height=2160|screen.avail_device_width=3840|screen.avail_device_height=2112|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (Intel, Intel(R) HD Graphics 400 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"2": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=40|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=8",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "renoir_21925",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=16",
"screen_panel": "screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (AMD, Radeon HD 3200 Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"258": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=40|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=14",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx3060_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=19",
"screen_panel": "screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"271": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=20|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=16",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38",
"gfx_device": "rx580_21925",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=20",
"screen_panel": "screen.width=1536|screen.height=864|screen.avail_device_width=1920|screen.avail_device_height=1020|layout.css.devPixelsPerPx=\"1.25\"",
"webgl_renderer": "ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"29735": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=20|audio.max_channel_count=2",
"codecs": "media.av1.enabled=false|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"cores": "hw_concurrency=28",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "irisxe_7085",
"gfx_feature_status": "gfx.feature_status=sha:05ce56d3c0",
"render_noise": "fpp.hw_seed=6",
"screen_panel": "screen.width=2560|screen.height=1080|screen.avail_device_width=2560|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"3580": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=30|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=false|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=4",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "icl_2145",
"gfx_feature_status": "gfx.feature_status=sha:80c00ab015",
"render_noise": "fpp.hw_seed=11",
"screen_panel": "screen.width=2560|screen.height=1440|screen.avail_device_width=2560|screen.avail_device_height=1392|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"4": {
"audio": "audio.sample_rate=44100|audio.output_latency_ms=20|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=12",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "uhd630_2145",
"gfx_feature_status": "gfx.feature_status=sha:80c00ab015",
"render_noise": "fpp.hw_seed=5",
"screen_panel": "screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (Intel, Intel(R) HD Graphics 400 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"49": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=25|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=8",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rx6600_32015",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=5",
"screen_panel": "screen.width=2560|screen.height=1440|screen.avail_device_width=2560|screen.avail_device_height=1392|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"50": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=40|audio.max_channel_count=2",
"codecs": "media.av1.enabled=false|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"cores": "hw_concurrency=4",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx5060_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=28",
"screen_panel": "screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"5469": {
"audio": "audio.sample_rate=44100|audio.output_latency_ms=20|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=8",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.popup_ui=106|screen.popup_client_top=45",
"gfx_device": "arl_6629",
"gfx_feature_status": "gfx.feature_status=sha:098c0bf836",
"render_noise": "fpp.hw_seed=19",
"screen_panel": "screen.width=2560|screen.height=1440|screen.avail_device_width=3840|screen.avail_device_height=2088|layout.css.devPixelsPerPx=\"1.5\"",
"webgl_renderer": "ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"59": {
"audio": "audio.sample_rate=44100|audio.output_latency_ms=40|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=3",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx5080l_61742",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=28",
"screen_panel": "screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"6": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=25|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=12",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38",
"gfx_device": "adliris_7085",
"gfx_feature_status": "gfx.feature_status=sha:05ce56d3c0",
"render_noise": "fpp.hw_seed=19",
"screen_panel": "screen.width=1536|screen.height=864|screen.avail_device_width=1920|screen.avail_device_height=1020|layout.css.devPixelsPerPx=\"1.25\"",
"webgl_renderer": "ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"610": {
"audio": "audio.sample_rate=44100|audio.output_latency_ms=20|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=7",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38",
"gfx_device": "rx7600_32015",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=11",
"screen_panel": "screen.width=1536|screen.height=864|screen.avail_device_width=1920|screen.avail_device_height=1020|layout.css.devPixelsPerPx=\"1.25\"",
"webgl_renderer": "ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"63": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=20|audio.max_channel_count=2",
"codecs": "media.av1.enabled=false|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"cores": "hw_concurrency=32",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.popup_ui=106|screen.popup_client_top=45",
"gfx_device": "rx7600_32015",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=5",
"screen_panel": "screen.width=1280|screen.height=720|screen.avail_device_width=1920|screen.avail_device_height=1008|layout.css.devPixelsPerPx=\"1.5\"",
"webgl_renderer": "ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"7": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=30|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=4",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx5060ti_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=11",
"screen_panel": "screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"72": {
"audio": "audio.sample_rate=48000|audio.output_latency_ms=25|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=10",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "uhd770_7092",
"gfx_feature_status": "gfx.feature_status=sha:05ce56d3c0",
"render_noise": "fpp.hw_seed=5",
"screen_panel": "screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (Intel, Intel(R) HD Graphics 400 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"89": {
"audio": "audio.sample_rate=44100|audio.output_latency_ms=50|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=9",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx4060_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=6",
"screen_panel": "screen.width=1920|screen.height=1080|screen.avail_device_width=1920|screen.avail_device_height=1032|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)"
},
"9219": {
"audio": "audio.sample_rate=44100|audio.output_latency_ms=40|audio.max_channel_count=2",
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=false|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=2",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "renoir_21925",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=9",
"screen_panel": "screen.width=1920|screen.height=1200|screen.avail_device_width=1920|screen.avail_device_height=1152|layout.css.devPixelsPerPx=\"1.0\"",
"webgl_renderer": "ANGLE (AMD, Radeon HD 3200 Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)"
}
},
"final": [
0,
7,
11,
49,
50,
59,
72,
89,
107,
134,
190,
258,
271,
610,
1633,
3580,
5469,
9219,
19013,
29735
],
"format": "persona-seeds/1",
"max_seed": 100000,
"sha256": "82547e9f34ece0c17075d812dcc009c7e8e6f348eb33fb4cc5cdbff6253cc4f0"
}
+28
View File
@@ -0,0 +1,28 @@
# Input of the gate lock; `python scripts/ci_py_lock.py` writes it and gate.txt from the sources below. Wrapper-owned (ci-03), read at the wrapper_ref.
# python-version: 3.11
# exclude-newer: 2026-11-25T00:00:00Z
# wrapper: pyproject.toml sha256 93d8d0940284352ad53e189e17b9ad6e3109ce52e54ab138ecdfa01d8571b193 (at generation); its dependencies without invisible_core, and its `dev` extra
# core: invisible_core==71.85.0, tag v71.85.0, pyproject.toml sha256 c0d14a4d26d3650005076ab72347eb24fba4b89e643f514e7f7334bd0a2ac174 (at generation); the core is a wheel of ours, only what it depends on is locked
# core-requires: platformdirs>=4 | psutil>=5.9 | requests[socks]>=2.31 | maxminddb>=2.2 | tzdata>=2024.1
# playwright: 1.61.0 from scripts/playwright_pin.txt (the stock client the gate drives the engine with)
# cryptography: 44.0.3 (the lab's PKI)
# harness: uv>=0.5 (the installers of the install-from-index job)
aioquic>=1.2
build>=1
cryptography==44.0.3
cryptography>=41
greenlet>=3.1.1,<4.0.0
h2>=4,<5
maxminddb>=2.2
platformdirs>=4
playwright==1.61.0
psutil>=5.9
pyee>=13,<14
pytest>=7
pytest-timeout>=2
pytest-xdist>=3
requests[socks]>=2.31
ruff>=0.6
tzdata>=2024.1
uv>=0.5
websockets>=13
+845
View File
@@ -0,0 +1,845 @@
# Generated by `python scripts/ci_py_lock.py`: do not edit. Wrapper-owned (ci-03).
# input: ci/py-lock/gate.in sha256 7de18cd95f842ff5df52b931d6fb2f318936f54b0ff1be1c8d66df1d6706d9df
# resolver: uv pip compile --universal --generate-hashes --no-build --python-version 3.11 --exclude-newer 2026-11-25T00:00:00Z
# Every file of each version is hashed (Linux and Windows wheels of every Python from 3.11, and the sdist): one lock for every OS.
# A consumer installs it with: pip install --no-index --find-links <wheelhouse> --require-hashes -r <this file>
aioquic==1.8.0 \
--hash=sha256:12333f99f7493af4bc6b9af24f5ac45ae993a2780b9c469c38bdf4461189d5db \
--hash=sha256:14c8f0e4d7a74ee6ba3ade9434601f21ab8d6f9948f602efddbfc082d2bbb385 \
--hash=sha256:3da2c9609cd7299ee2965ff4b0df7a5d50ebe4eacd0cf50f8243686612c2d801 \
--hash=sha256:6fd3cd612aa739be38ab15005e596087cfc0ecbbe935a0343dc82f8b60532669 \
--hash=sha256:78616046a99831c55ca3aac3405b6353e79a923c67a6e5b1dd134585cfcc8e66 \
--hash=sha256:90d1a379ff0057a84863ba7d886af7f49eedfd1a14def5ba5a3ba719ab99c37f \
--hash=sha256:a17bf2347cb9f92c5ccb93fd88be65550e47db2a76e086602b226259f814b111 \
--hash=sha256:a4b57b3235014074fd7316dae5f4ee08cf46fa9b9c7bdf8718c3f310aaff9155 \
--hash=sha256:ac365806f09cba9127fe716f570219bf1fb7d733e847eef7535ade5c08aed721 \
--hash=sha256:b2acf9f4b7214502792d3430a341907f872cedd25042430f2c4138f9b7092d87 \
--hash=sha256:d9de93041c7749f1a93dbc0367408572ed76d710566fd7d74241ce7f69388350 \
--hash=sha256:eb44d2276ad670e8608bc2f2a926afc8e06f62de87275afb56d7ed8aa8a4f298
attrs==26.1.0 \
--hash=sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309 \
--hash=sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32
build==1.6.1 \
--hash=sha256:51cc11666391ab6f092070437ac747002ff46f3e4113a3622177ee6b488bfc53 \
--hash=sha256:ecd351a4be9d35a9eaaba244a7687143c9c7d4aea6ac964e7e7ddab20cbcf4e7
certifi==2026.11.20 \
--hash=sha256:7422df25243767b9877031a2248cb14d09ddac9beee846f4cef3d5c9191d488f \
--hash=sha256:af1cb240a8133f105aa52684a3a3258339d7f2fd0bd4e2812698ff5cf5588c4e
cffi==2.1.1 ; platform_python_implementation != 'PyPy' \
--hash=sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e \
--hash=sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66 \
--hash=sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2 \
--hash=sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0 \
--hash=sha256:194cffa889098ced9976c3fc6340305e43f6303657d298da55366907c05c22d6 \
--hash=sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971 \
--hash=sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c \
--hash=sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d \
--hash=sha256:1dea0e4d7d4f11f619fe8c1d76caf49e24405b4b5743c0e3be16a500ecd930c9 \
--hash=sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517 \
--hash=sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735 \
--hash=sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80 \
--hash=sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f \
--hash=sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1 \
--hash=sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29 \
--hash=sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8 \
--hash=sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c \
--hash=sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e \
--hash=sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48 \
--hash=sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813 \
--hash=sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac \
--hash=sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632 \
--hash=sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6 \
--hash=sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1 \
--hash=sha256:3d22a20b1fb1632cc72c22f95f7b0d2961c3e1c235f245ba4c606c4771035659 \
--hash=sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688 \
--hash=sha256:42e2f76b9455f5a9a844f770bf3e200ed3da0e15f5df3db9c31fe80b04b3d004 \
--hash=sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0 \
--hash=sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062 \
--hash=sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779 \
--hash=sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94 \
--hash=sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50 \
--hash=sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab \
--hash=sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac \
--hash=sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6 \
--hash=sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676 \
--hash=sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1 \
--hash=sha256:5a59cc1c4442bc3d5c703bf720b51138d0bfc173618807c9ee2490a7541dd3d9 \
--hash=sha256:5bb4e7ea95dcd6a014a6fef62e62467d67d8e582326443f3d68e71d6320a9fcf \
--hash=sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13 \
--hash=sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e \
--hash=sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e \
--hash=sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973 \
--hash=sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527 \
--hash=sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72 \
--hash=sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890 \
--hash=sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c \
--hash=sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990 \
--hash=sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd \
--hash=sha256:75f80557d1389eddbd0de2681f6a390a0c5338c31ddaa821381c203fc3fd50d9 \
--hash=sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94 \
--hash=sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3 \
--hash=sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80 \
--hash=sha256:7ce713ace7c0e4520535b42b77eaa742c16dab813978064913e5a3cf82973b41 \
--hash=sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5 \
--hash=sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c \
--hash=sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a \
--hash=sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4 \
--hash=sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e \
--hash=sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6 \
--hash=sha256:9f8d177621de5cb38ee3e731eda45d421db093ec0739f46a5594babda7987a98 \
--hash=sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b \
--hash=sha256:a48d62ab9d6f4f98c983223a547af44be6ca3691074c31cecced6facd3ba2dc1 \
--hash=sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03 \
--hash=sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af \
--hash=sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231 \
--hash=sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2 \
--hash=sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3 \
--hash=sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836 \
--hash=sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5 \
--hash=sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399 \
--hash=sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96 \
--hash=sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e \
--hash=sha256:baed1e86cc735622097354b9d1281406caf42ff42a886d29faa8e8d1630333be \
--hash=sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf \
--hash=sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc \
--hash=sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455 \
--hash=sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0 \
--hash=sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12 \
--hash=sha256:ca82be1a1d406ecfe1d25dc16cb33488e5a16bf4438c9fb590484ea29d92478b \
--hash=sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7 \
--hash=sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692 \
--hash=sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54 \
--hash=sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3 \
--hash=sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b \
--hash=sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be \
--hash=sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d \
--hash=sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358 \
--hash=sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a \
--hash=sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7 \
--hash=sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc \
--hash=sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960 \
--hash=sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125 \
--hash=sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb \
--hash=sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a \
--hash=sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa \
--hash=sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf \
--hash=sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3 \
--hash=sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4 \
--hash=sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264
charset-normalizer==3.5.3 \
--hash=sha256:00edb7682962c596f774bfa126e6b6f885b7af2319f448d327591c284a482de8 \
--hash=sha256:01b35bec964b92b89bdf94adf931d2e80a15f1c7b93bf850b4430cca23f7a2a2 \
--hash=sha256:020cabbb90926b2d8b022a5e057ab349f28844b61f34117323fc08c2971915e3 \
--hash=sha256:02b1abf64742b2d0782172cd2542616e462c201c829c23aff833390babe2967f \
--hash=sha256:06d07272f70d9880fba32d4876e966ae4dc9961134bc989066a0901509dfd8cf \
--hash=sha256:0810592b80dc5a97f8103443460264b588f31c6baa8a20abae7c683435d8117a \
--hash=sha256:085a5d1f49eaf96596d79494fcab18d9a32db6e345da15d6debfc90110b20679 \
--hash=sha256:09833ba78c91f0d1fd06387c69dae9f079428b77ea05eaaf1553eecead31fb68 \
--hash=sha256:0b3fc6f7dd9db4a7782e65dc98eb80b2a91a854cf54a03dd93649be2f7ca638d \
--hash=sha256:0c0fe07631dce6dae788a59c20ed927adc6feeb2d9ed440747eb367d89822a45 \
--hash=sha256:0ca25f1b1167e9fb94d93d3708df0b631de241bf8440947b0cb9f8c4cb66fed0 \
--hash=sha256:0ca2da4a505fae7ef95922f8d48235b2e49ff8f10f4edcc0481e5f6526ba3841 \
--hash=sha256:0cf4cb8d75090a8da3bd30c0963b2c6c6114e791c6fc060c3cef8971497b1f04 \
--hash=sha256:106b9d0438e2ff0a0e8ebd869273fcb3640af28323bba8651c714c57efb38e51 \
--hash=sha256:11ad35a0b856ad8bbd0c9e900c069461a4661694714aa17b6e6e2e8621e1c373 \
--hash=sha256:139aeb8ca63946dc79364c37f2c9cfe5c1b7f3882f2c47484d0e54bf14b921b0 \
--hash=sha256:1714ff1ba001da5241a585fbd17a7742a61ad34efb4be8404aca5679f51e53ea \
--hash=sha256:183aee7e84789391e547ec1609f8269332b9b123d21e97f7ef79eaa474c47e08 \
--hash=sha256:1a34385837db59d5de814c9f1e0f4157b571f9ce0eabdaeace410aa93bf5df62 \
--hash=sha256:1b2704f4651539eab50ba104a975b96c3cd5246011aa0755d2dd71ac12546644 \
--hash=sha256:2246873913d7db43ed5a3d98ace398b989b2ae20b77c8d761a7bef5fdb9bed42 \
--hash=sha256:249bf0b6f43985c33c83adbbab0ca71246ec24c82d960fa00c4ddb2cfed25db9 \
--hash=sha256:256b434b2860ef9da1cb6a5fd4ebb5d600936668e50e2035858948b96b068ecd \
--hash=sha256:26c6ad87bb79628954b52f8f7b9e18ab5cd9667546712ded9689fb7677e630d6 \
--hash=sha256:277b72183b96879887f0c3aa0bdac1fee08a6c7e67bad53145c4fd416d99dfd3 \
--hash=sha256:28ba8e6361e0f319641707484994096ceb77e05c29eaad2919756218c0c89001 \
--hash=sha256:28d954a437bfa5fcdfe7ad8902cf4347a8486f34a86c5f39003bc1288eb67d72 \
--hash=sha256:2978c799237eb66619d8951d2ab7efd317414cb6682160e05614ce1c8b5c905f \
--hash=sha256:29ac44f5878142128ffe4fa7e041ddc4cc5fafe43983245b9a141908c40b515d \
--hash=sha256:2a6f937e0b70133d1f826d0a253331b6fe1a4c874808cc12e16f2fb8177042f4 \
--hash=sha256:2b7797a5b0cb197f118fd13b41c14c5a3c38dd625a87c1da58a3066cf53254fd \
--hash=sha256:2c4e0050b732ee3dca3676a5f5cf7fbd0c131761c194f1bb1d24c055fad071cf \
--hash=sha256:2e7fbd98443f28a5ed8004f0b058edcc4720a3d344adf007c0b7f1adbff2f59f \
--hash=sha256:2f2d973d3c79fbd1066d63d1bafb2ade66934c0840ed149f6fac13c3fdf80793 \
--hash=sha256:323d5cf6df3ea724afcc3bfb07c73be06d2e8200a8b6b37979a300ae1e7836d0 \
--hash=sha256:326a7a0e3715c3ac24c21e7a3b831d6799cc795bff260aa49c23b69025852f99 \
--hash=sha256:34054580168b04e90e6c7c0f6c80173fa2d4f72c4db91c9095598454f96d6389 \
--hash=sha256:366f5efe95a6149ecbcebf779c2594a6a4ff6fc116402826c72ed0eccd6aabe9 \
--hash=sha256:390ef7c7e018c0abb8c0ec2d28ee137567ff50c3706facf6d115cac832ac993b \
--hash=sha256:39229c222445415db07a0be4dff8ad1addc3126644d7aa72d73f1575b637d69e \
--hash=sha256:396fdf2d4367674531a7c8d54ecabbc8e5131e3a1a06270285eb99f3140143df \
--hash=sha256:39e019884c8f857393df954d35f42bf99c5ab85af226fe74d1410188c6fec31f \
--hash=sha256:3ce4e4587e451ebc7d9899a7a1f539ea30a3c712d7bc8e0d256923c697fd5dcc \
--hash=sha256:3e8da696ef1935a019c10ec16555a062183ddf6d5901e296edeca4b2a8f84e1d \
--hash=sha256:40b2ba91f0851aa864994b3c7022e4d96d09026717e6a72e44410d6fb3a74a13 \
--hash=sha256:45aa4ccf5a6caba138dd0f8bf36fa3e26654585d534881b62ce5e4fea2487772 \
--hash=sha256:4831fb33e98e92140fa17d4d673a9f49f9c0ddd056115b722858793e4b86b0c5 \
--hash=sha256:48f7c7f537246bb3af2b3139f44716a30b21e78c2fd1cff0f3e392fbd55d8044 \
--hash=sha256:499e4bbeb1e79b14756311a1d12cb88112f244423e152d80981d9bcaff3279fa \
--hash=sha256:4a991dbd7aec868fe10802b02bddbf898173a47ba236f2d6afb4ab1f98243534 \
--hash=sha256:4ff5e27478681ef1b13b036baaf9beaf9b4c6990e903c752ad3b8764692c6d6c \
--hash=sha256:56405211fa124c393eea14b3aeacf5b90de72b1f69b0a60c9bc40b01dfe71a42 \
--hash=sha256:581d6e7df9b58d34147e21efde42a480b5087fe54f31e42550c26321566ba1e4 \
--hash=sha256:5970d148182b6b7c22b8290a81f02fb521c4e7aee6747743b3e645db58d5001a \
--hash=sha256:5f86753952f7de3abc7ce871f8239ce4e0d32a91c84d22f3a667e669907c3897 \
--hash=sha256:6118055f4ad0d94e016eadbb86caed9caf2c9033631ed70964ba631c1336984f \
--hash=sha256:61e32fdbf56f4cd25a1efa451c8b5fe886fc5e00143ccaacafdf21f301fad059 \
--hash=sha256:61f3258f700412c68fde407e7c749ed6930e795ea8f5ead9a40afddefbec12c4 \
--hash=sha256:6423accb6ecd1456bf824bbac98ba919398523a69ee5f1680dd1da88769de866 \
--hash=sha256:643724071b01cc0369026e259850791212cc187c6031d0e930abcd253f128e0c \
--hash=sha256:656b9744bac4493561d28b56d7d646afd7a8471254ef7004d849aa8368020037 \
--hash=sha256:6651fecdac146ecfa52700e02a5fa3b3677bddf5fced4983b43e904244de3f6a \
--hash=sha256:67bb767a8de7a2b1164c74fdbe5cdc32b9c15d7142efd9a6dc77ff63da94e846 \
--hash=sha256:6b702d36c565f6c650f4b479488f475b2982132ab8d0840d42b1442462c21056 \
--hash=sha256:6bfbbb9414dd0f5b81c259deb7e50b4b44e65e05879eee482351bdabed49d7f4 \
--hash=sha256:6c80b4e83e2fbddd25fe27804cdfc45ef71bb387522caa575af42118d72dc970 \
--hash=sha256:6c8abe7d59bbc891e5080b8b142c36db93154f840c4baf7c83ad6273a1a15397 \
--hash=sha256:6dde7edd9ba5005389bc7c0ab461411f281dbacb2b06e52bd23592eba42bb503 \
--hash=sha256:6eea31136fd924ecbb4e7c4f3df4b18230409629a22b3896f38a6754d5857794 \
--hash=sha256:70f65dd0c2ed79ea2d9776096e9c7d25e398c2c03eb31877753598d201d91784 \
--hash=sha256:73b4ddf1230df56c9e7017a16e3f5171b6ef0e4ff554a418a370d7ac7245bd84 \
--hash=sha256:747e83d415939612284afdc99f15295382639c0d3fc69a73aeb84b380d1f4af3 \
--hash=sha256:7a7e5bb8974842ad747d4a2b9fb928f84c3cdbe2c2fd7e405197fc1a1badaeaa \
--hash=sha256:7c313b46730b4a68bb31450973467313b2c496fefa42ae316b86c186cba74613 \
--hash=sha256:7fd816f466883dcaac196ac77271d0292eee4a81f4db1191b95d15328f335937 \
--hash=sha256:7fdd11094a0b07bce306b359fa7311c71d93466d967b3b345f2e9f03d8b2c959 \
--hash=sha256:806e72ebaeef54d7faa03414be9e8409eb3dcae49fba089d62063a60c0b5a4e5 \
--hash=sha256:81132eaffa984f0a399233df4cd383caad18e8cadc6c24c568cf9324732a9768 \
--hash=sha256:8231365b03b702b516aad35c9515694177ac31c9dc6240326f07308a4c45c708 \
--hash=sha256:826d82356907350f345cf0aa744d43a69ac7948bd60f460f997cde86928beadf \
--hash=sha256:84356c7b7ddf090e3e4692cb99fc820e6189b5f6662ca7e8589f41095cc8efca \
--hash=sha256:87d5a237d6531c654e7b9b319be9ba7e368665c466e02a03cfd4d3d77730782e \
--hash=sha256:87f7d6c595465a25d33fa3d5215a571a98c4cad00ead3ad18ebfb62adb3d3e6e \
--hash=sha256:885f202d6e4e2298bea9802ffc6d8c7dc45394199a8dd9e1492f05fe32dce311 \
--hash=sha256:8b969f0309de905101bc3d2471c112e9ccbba711a7590b12d51f372b4163688a \
--hash=sha256:8baddc6349faf49edae4d1322f12b681b9e86acacd01874457c997437ef4ccaa \
--hash=sha256:8c4dfcd3269f13dff7f29f9c332d54a4a21f17be818b49e769e111befd4d39e6 \
--hash=sha256:90b1ff6cb9c7a204a3b79b1b0ed6ac8a1d8fed3b6dc69e50ae5de0f358ee81d4 \
--hash=sha256:92bf85ecec3ad6374ae50d870bd1deb34de12bc1158b5fd09036d4c435c6f58c \
--hash=sha256:92ddc32b6a1508ea145f4f7995e00666db454b8fd3e2cae6c2ecbde4f4d44616 \
--hash=sha256:948fb3649416a70bcdbb267d79c7048e8aa16e989ab9da09f416e67cdd3d6b8c \
--hash=sha256:94b595e64bc2927f679774de50df340b7828dc1c07c99149ba7c2d0828dd8bf3 \
--hash=sha256:94c9d5d91c16554f6397b823d9e47181ba100d830ab16b5d720adc229e17b2e2 \
--hash=sha256:9510da88bdebc903be7844f31523ac8d7b3f63e167db54b6045104a2354afa6a \
--hash=sha256:96387278c3b17bc1170f80693398d0babac7b41df128ced8e27588a7155d95b2 \
--hash=sha256:96e268b0cbda016ac519513294fcd17032264085b600abaac58b93049477e132 \
--hash=sha256:9902e80096a94cf70fb72d12ae40e3b187b40e96fa722873d4d62afcd0333c46 \
--hash=sha256:9a6b95b1737f9b5942c35676c52db0c302d60fa806efde3fc2d9f54247ecf4be \
--hash=sha256:9b887e8a7103ae2171dccbab00a4bb2bf1560f5c10c28227e5513bc90a608cad \
--hash=sha256:9c1bd8321a840729a6b2620774cf4000fafe66c54cac9064972a10c4f607794b \
--hash=sha256:9eba4613d45b49196af04a5cbadfc5e9379ba94aac85184b72cb1107ad31af0d \
--hash=sha256:a094178c51530c9ebd1775e72d160af0eac4be244fb06ff1b6f182128c71903c \
--hash=sha256:a09ca76391f6e17b12d55c1068b4b5f8f6c9b44b432d936075372fa12782292d \
--hash=sha256:a250888753faa289e2997962fbb17c4960cbdb58575533ca6fceee68c224bdff \
--hash=sha256:a312fedd182357f2c22f066d17dcd7413b6a205ee3d063d36950e94e3019d3de \
--hash=sha256:a36bba41dc7fd263417688c4daf95a1091f93e1f6957c0f71ad7798907c5a10c \
--hash=sha256:a3f4044dd5d2f7b958be6b9903cb432e6a0fd944d673707ca5cab68137d0592c \
--hash=sha256:a43831574e14423103d69fb1357e76e4f2347041c98e8357ab88ef21812e80d9 \
--hash=sha256:a491d4afb361aba32d55d7df7ccde766a3aa9a34c002d2c32c2743bf6e77c13c \
--hash=sha256:a5a7e0326566759f9a7bc44f4b9a179cc40a297e09e759b0bc7c848c06347527 \
--hash=sha256:a6eba94fc00d899f8d268712772c8dcafc40215aa9b51701a397afc9426e012b \
--hash=sha256:a8f92cc9080bff47555c79b88e7fb8655438ce3bcf29c5f01ed2ed5efdf174a4 \
--hash=sha256:aa2476abf8669be493689634bdb79f468a6fe57b005a5126db7e9f61d1954fe2 \
--hash=sha256:aa8be1f24fbc03a07cfe002b70ba0716effc6b3011fd9e5560ca399d3d0605ad \
--hash=sha256:aa9390d89822dd06f9920ae3038819cb121643a72f4753b2eee1a79b2f1215f8 \
--hash=sha256:acaa0e100f39287dc5d13de96e33ba0786f1cdfb5b4ca28918913ab0eec3af72 \
--hash=sha256:ad1becd776f5a41a4d91cb9ee51778f4fd687ef15e4919779e00a33c6cff6948 \
--hash=sha256:af217012cfdaf6ea5dc0c538aac29b7bd030eb865056cc60f1d973b982b7917b \
--hash=sha256:b013417037c931583578639cab2523d5a2efc35a584c192d07f4c909b133f6b0 \
--hash=sha256:b0aa6b81bc632af7cac7b270c933298cb5ee858506dcf344e0da006667e0c351 \
--hash=sha256:b30e5496e453ac971bb17f5e096b84fbaae16d09e2613f6148ff528c08a54a0c \
--hash=sha256:b66a0e045cf859d7418f26a554509b65f21ebb6d90a95152460781939e8264f4 \
--hash=sha256:b6dad86d938104f9d43404029e5fc8392f82762d171933be4f192a6008bffa53 \
--hash=sha256:b6ea5bf7e3c39f6e56957d82274ac7cfab469590085883fdbc86e754cde76b11 \
--hash=sha256:b8fc4fe56992b089d6177021fe6db641321bb2bc2fc7a1abf815c29a80ca2137 \
--hash=sha256:ba26e4d073a4f7f2594676f2ff20ab80a7f03332b81c3f9964e9e53bf2305329 \
--hash=sha256:bed05639ae1bc23df7996a4fd13ea5064ddf60dc7dabd754f8badf060daec63f \
--hash=sha256:c08e06fc69750827d7ccebba63ebc97a85e479cd5c9dbdb80f5e08a77b774fdb \
--hash=sha256:c39a4fe28a16e8fa667c55c154f62c6c3cd9ca2491cca9f16330dd7360d05b76 \
--hash=sha256:c437ed8775d201d37206f37d233f547506e3aef60b9711584c65444c686b4905 \
--hash=sha256:c43d9737c3b85ccd16b1862b1e7aa5c4bf30a6033068403713c0a2bba5bda979 \
--hash=sha256:c9d1f467d121b33b06865c94ed5ed8388a9ef76f5e1acc1c8a854ac653493f5d \
--hash=sha256:caefc441edff6070a9f9749ca880a22731a1715d9e74b24304a546eec44bfc16 \
--hash=sha256:cb18428af7399e0a6f7e3b45f110d57a1a47cf07fd4b3ce50e2366d99a38959a \
--hash=sha256:cb4c25a9d3410262216b5c7447e51bfd2de0efae0a7640772dc6d2a8741590de \
--hash=sha256:cbd09b22b340f846671e79e8d832167fac60c1884be4c71fd667211486a3b58e \
--hash=sha256:cd5422fd4f8a7859846c9289e310dd95c0d1890c31819667942753e510f88f69 \
--hash=sha256:d12571adb9ceeb9ba0640db46433430062f5f1dec89e39713a2a5a8ce3016c37 \
--hash=sha256:d1b7a3fe4cf679eb3870b91b86b8ce12cacd5cf4d74bc114864a5cd65319ddac \
--hash=sha256:d313494077f849d8199f36166947785da1eeb36335fda15fde2e8f801ef271b6 \
--hash=sha256:d3c9d5284d64f4c1015d95b751577b260fd6d14e3f8edf21710f4436e7ac4c49 \
--hash=sha256:d4e7ecaa25f0dae672ac783c2e5aa9054a62e011749d64ff47b887af360a3e82 \
--hash=sha256:d57f1b6affc3581fbf0bc6d783cc60e7c9957adfd9c7b89f8a9f3573ad1cd49a \
--hash=sha256:d8f85e019c9f08ec134648a378ddd3f6f073c1e4b5ce9bdacd9a9e7b60749cd2 \
--hash=sha256:d93403a13c8f6f2d027185d90ab695e81d95e3ebd000f0078e201a1c3159d4d1 \
--hash=sha256:da606e3015dbd4b9a31c0468898a0c4c998846197ddfda78308821dc8c9e9be3 \
--hash=sha256:db2eedef732424346f98d0aba5c6ad688b648bc79847f4cc70dfca830130b1e6 \
--hash=sha256:dbdd407104ebf2360464ce02c7933c6ffac58bd5b64cdf6ef7dc0e787e782aaf \
--hash=sha256:ddea089587432e3df6771a4a405ef249cc9727f7becb1de3f00ab571b2432002 \
--hash=sha256:dfbde696fb427301ec40cd82b8eec0b528e44c6af8239f33ede2b2552d9a085a \
--hash=sha256:e1cdbde56f9fa6d426b78941c381e2ba160c1214809baa47e02c1d0d8881d598 \
--hash=sha256:e282983b8def5ada758fa1f18bf9060bb8ce6cdd73be32f62a2de59820d3286d \
--hash=sha256:e34f591669498a03cd70993b0a79b9f0ef40c4e6f8232466bac33c42f0c15742 \
--hash=sha256:e405cce4170de1fe520d9a92de9d7ececc23dfcf6888c62ab608a21be50838eb \
--hash=sha256:e4a0f2adf29a69dd8fe58e42bb191f3c87067b05fcc63279983e8c9ce5092abd \
--hash=sha256:e4f85c34f9be32ec5568a0668fb8bc029d3e729285fb8fccc38695e185379a9b \
--hash=sha256:e5e4785d8a0adeadfbdf75f4efc357911842674651cbafd7e97f69b11ec3cbc6 \
--hash=sha256:e86a27ab632d2e888c22b79263864eaff8b7dea9e87328a9bb0ea04eff24786f \
--hash=sha256:ea880ae1a692ae694c11bca7be74864614ff1a58bdfff4605f36d1956b4b1588 \
--hash=sha256:ee9de080e8d6221bbe4ba2667367b1cee0f47a53f60ffc5e431b698cd2f2b214 \
--hash=sha256:ef8b925f2b331a1f17d6fb32625e09fd571cf41844f578379f934dab0067cf0d \
--hash=sha256:f06e257ee0cc85a7e4ec44f171ae2595fd901c34212f3c9e7ab8fd8621401e99 \
--hash=sha256:f1214052966421a88ed526ba93e4463b39346862fa4721be5306434b33dae795 \
--hash=sha256:f160f03e15bd1e3c35db9bfc20c42ff83155d37f9b0c79806cb10051ca725f13 \
--hash=sha256:f1b357340e4cd29011683bd81226175611ad835fec22e5b7df83b96701571226 \
--hash=sha256:f39290a0c2e3f4196563189bb45e6ef5d5badf50864e1bfaafa9003f0595573f \
--hash=sha256:f5a5c311e5de6954c36230a37863b5ca58ce232589bd637ad2881c4056897b12 \
--hash=sha256:f7a841170fde40b0e1345884bee09ceca7db49a9291fa340089bec66a366c243 \
--hash=sha256:f7fb9a3275f1a1528e542a0f5a3d2c89fcaf68e797fc5c6530434cbd92a852c4 \
--hash=sha256:fc540d1618c5638fcf5aea97060cf011467918b010bf682a84ecc0c9474e6cd0 \
--hash=sha256:fcb17f1d40c38912a2cdb56ea47aadac3527cd0b06fe24f3a0c4896febbea063 \
--hash=sha256:fd0341b9dea133d187d7c5a2cd7e21ae6449a7b68ea8c2454f9cf77def11ec1b
colorama==0.4.6 ; os_name == 'nt' or sys_platform == 'win32' \
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
cryptography==44.0.3 \
--hash=sha256:02f55fb4f8b79c1221b0961488eaae21015b69b210e18c386b69de182ebb1259 \
--hash=sha256:157f1f3b8d941c2bd8f3ffee0af9b049c9665c39d3da9db2dc338feca5e98a43 \
--hash=sha256:192ed30fac1728f7587c6f4613c29c584abdc565d7417c13904708db10206645 \
--hash=sha256:21a83f6f35b9cc656d71b5de8d519f566df01e660ac2578805ab245ffd8523f8 \
--hash=sha256:25cd194c39fa5a0aa4169125ee27d1172097857b27109a45fadc59653ec06f44 \
--hash=sha256:3883076d5c4cc56dbef0b898a74eb6992fdac29a7b9013870b34efe4ddb39a0d \
--hash=sha256:3bb0847e6363c037df8f6ede57d88eaf3410ca2267fb12275370a76f85786a6f \
--hash=sha256:3be3f649d91cb182c3a6bd336de8b61a0a71965bd13d1a04a0e15b39c3d5809d \
--hash=sha256:3f07943aa4d7dad689e3bb1638ddc4944cc5e0921e3c227486daae0e31a05e54 \
--hash=sha256:479d92908277bed6e1a1c69b277734a7771c2b78633c224445b5c60a9f4bc1d9 \
--hash=sha256:4ffc61e8f3bf5b60346d89cd3d37231019c17a081208dfbbd6e1605ba03fa137 \
--hash=sha256:5639c2b16764c6f76eedf722dbad9a0914960d3489c0cc38694ddf9464f1bb2f \
--hash=sha256:58968d331425a6f9eedcee087f77fd3c927c88f55368f43ff7e0a19891f2642c \
--hash=sha256:5d186f32e52e66994dce4f766884bcb9c68b8da62d61d9d215bfe5fb56d21334 \
--hash=sha256:5d20cc348cca3a8aa7312f42ab953a56e15323800ca3ab0706b8cd452a3a056c \
--hash=sha256:6866df152b581f9429020320e5eb9794c8780e90f7ccb021940d7f50ee00ae0b \
--hash=sha256:7d5fe7195c27c32a64955740b949070f21cba664604291c298518d2e255931d2 \
--hash=sha256:896530bc9107b226f265effa7ef3f21270f18a2026bc09fed1ebd7b66ddf6375 \
--hash=sha256:962bc30480a08d133e631e8dfd4783ab71cc9e33d5d7c1e192f0b7c06397bb88 \
--hash=sha256:978631ec51a6bbc0b7e58f23b68a8ce9e5f09721940933e9c217068388789fe5 \
--hash=sha256:9b4d4a5dbee05a2c390bf212e78b99434efec37b17a4bff42f50285c5c8c9647 \
--hash=sha256:ab0b005721cc0039e885ac3503825661bd9810b15d4f374e473f8c89b7d5460c \
--hash=sha256:af653022a0c25ef2e3ffb2c673a50e5a0d02fecc41608f4954176f1933b12359 \
--hash=sha256:b0cc66c74c797e1db750aaa842ad5b8b78e14805a9b5d1348dc603612d3e3ff5 \
--hash=sha256:b424563394c369a804ecbee9b06dfb34997f19d00b3518e39f83a5642618397d \
--hash=sha256:c138abae3a12a94c75c10499f1cbae81294a6f983b3af066390adee73f433028 \
--hash=sha256:c6cd67722619e4d55fdb42ead64ed8843d64638e9c07f4011163e46bc512cf01 \
--hash=sha256:c91fc8e8fd78af553f98bc7f2a1d8db977334e4eea302a4bfd75b9461c2d8904 \
--hash=sha256:cad399780053fb383dc067475135e41c9fe7d901a97dd5d9c5dfb5611afc0d7d \
--hash=sha256:cb90f60e03d563ca2445099edf605c16ed1d5b15182d21831f58460c48bffb93 \
--hash=sha256:dad80b45c22e05b259e33ddd458e9e2ba099c86ccf4e88db7bbab4b747b18d06 \
--hash=sha256:dd3db61b8fe5be220eee484a17233287d0be6932d056cf5738225b9c05ef4fff \
--hash=sha256:e28d62e59a4dbd1d22e747f57d4f00c459af22181f0b2f787ea83f5a876d7c76 \
--hash=sha256:e909df4053064a97f1e6565153ff8bb389af12c5c8d29c343308760890560aff \
--hash=sha256:f3ffef566ac88f75967d7abd852ed5f182da252d23fac11b4766da3957766759 \
--hash=sha256:fc3c9babc1e1faefd62704bb46a69f359a9819eb0292e40df3fb6e3574715cd4 \
--hash=sha256:fe19d8bc5536a91a24a8133328880a41831b6c5df54599a8417b62fe015d3053
execnet==2.1.2 \
--hash=sha256:63d83bfdd9a23e35b9c6a3261412324f964c2ec8dcd8d3c6916ee9373e0befcd \
--hash=sha256:67fba928dd5a544b783f6056f449e5e3931a5c378b128bc18501f7ea79e296ec
greenlet==3.5.6 \
--hash=sha256:0616b8f878098c5681fd8f0dc92d887551717402342a70f0abcbfea5f5ad8a44 \
--hash=sha256:06c0e933290fba8ffe53ead4ae1b8044b0e9754b75cebf381aa2bc3e50d82fac \
--hash=sha256:128813fc29f2336a21b4d06eedd5e16bcc7ea46f59e9ff1cb30ea70e48195d88 \
--hash=sha256:188bf333769b7145e2b0b4a7f09615ec550ed44d3a2a8395fb7b36f0e9901e13 \
--hash=sha256:1c20ea32a73d17b9b60e3371240e17b0068120c98a5ec01a224a7dd8c89733ba \
--hash=sha256:2ab5f42ac6c238eb71770715e6e909ad9a1a92b6c681ccb64cd5a0f07edb953f \
--hash=sha256:301102a49120b095e72a7838792b41233975fc1c155daec6d98f81c00c9280e0 \
--hash=sha256:311018b46472fb26ee85870847fb89eb64cc8aaddb617400789d87076f7cfeec \
--hash=sha256:3ac3494c381dab876cad7d0b22f3a722f3e0c8deb3a65b9e7f35ad7f58b8fcb3 \
--hash=sha256:3c6dede9133e1da41d561bc3fb14e92b47e2ce39ae60edefaad145658ea7c5e2 \
--hash=sha256:3dbb4596a6a4e5d47121a33ff20533a81e60f302d9e67b69909a8bc21a43f0a7 \
--hash=sha256:3deccbb57a481e3a408fe61cdfd5c13e0678fc0a30fdd09597917ca87b4be877 \
--hash=sha256:45663c01a4de48b9a64a2ee1509d92d1dfd3afb02b2ccfc9333029d11aef996a \
--hash=sha256:45bfd2b51e38aaa5f9849f114d9c7c1d75f69187c849b3549cd64c465283abfa \
--hash=sha256:460e70b033aba8ed47e2ac9b5d0d2157b05a34fbfa30a241400aef4118902cdc \
--hash=sha256:4fb8e59f68845d56c23c031dcd79c329f345e4a9d2ffac91c3d1ab366bdc457b \
--hash=sha256:520648db8fb92eef7b3e6013f5a6f901cdf0d6685f639c2f7a245879f865bef7 \
--hash=sha256:5599b380c1f28efeb724e81569eac80cd92f99a85bd9775456caaf3225d40b11 \
--hash=sha256:59deccd347735a7774223b05a93773fddbb298aba3cea21be4337fb4752dbe32 \
--hash=sha256:5a0b2791239c99992a86c1b635b787fe2a877d9eaaa26f8891ce943832b585ae \
--hash=sha256:5adcbbfe78bdc242c71740a02e0991cc1b2f34d33c8bb15ca45eee8fd1140942 \
--hash=sha256:5b602b4201b965a8354d74e232364a66ff243dd142e350d035f46169bb36e13d \
--hash=sha256:5bbda3c70dd35d60671bc33b01916802707a052130d9e50cdb871d34594d35cb \
--hash=sha256:602024dae6d77e161f4b89491b62ca1d4f19949d79d47b2db057e476d21179d6 \
--hash=sha256:61a61b4a95a4f97922c3a6f5606d3e360851584bd47e500a5161373c53810e3d \
--hash=sha256:63aff70fe5aac59c72215f42ec39fcb59ff46774fa966e717f8ecb6ee2273577 \
--hash=sha256:71890d5247020c25c21a6b65202782bfc281d4e6e244842419d30e3492bb6dcc \
--hash=sha256:73a29b5ba642e35433166a03a3e02935e7238c4b3467fbd77523b99edea23e5b \
--hash=sha256:7969bffa322c097bd46ae595ada6a931cefda613f18ba64587e9cff4cb320756 \
--hash=sha256:7ac4abb3877c43af320392c664774eef6fa2cc063c79a55fc02d844a3cbe7395 \
--hash=sha256:7f731ebac68ea06d628658295cb2d217b10186329fcf9a3b6a149045059bf92e \
--hash=sha256:7f924a5a9d5890649566f2f6682e0d8ad8ca23028bacffbbac36dbd7fd680176 \
--hash=sha256:874cea8bb1ec1ddccbacbd027856f6bf496f6bc18aba97a918c20e067edab236 \
--hash=sha256:876077e7ebb8c84ed068e2b23d4c62ebb010d60df84b9591af1be2f39010ffb2 \
--hash=sha256:886bcf1870af74c32bc310fd00a6b803445e17e51b7d5a107c7b35c0f362cc16 \
--hash=sha256:8b27df301f56e3b3d2298095c8f7d6b68f2521f6b1693e901fa039bdbae34424 \
--hash=sha256:8b7c73d1cef3d9ae963e9ff03f6222df43efbb9054ffd2f1969c935b7fc84c02 \
--hash=sha256:8cda13494d86a4f12429641117cb6ac4bbbc9c30a33f711f7d3a2e5fbe4b0b7e \
--hash=sha256:8cddea1b8339451c2fb3388e138347b6126744f33b611bdb55b7357361cfef46 \
--hash=sha256:8dba0129b93e7091dfefaf4cf7000172741bff7f47bf6326fcf17f32fbb54d6b \
--hash=sha256:8e67c43bdfc88d5fee6db0d3e40175b362fc95fb85f0412d233b9b203c53a575 \
--hash=sha256:9133d68624b1f2e89ec2f554d56aea8a5b0d7168cd9320200ba58d4d794845a4 \
--hash=sha256:916f92f2a8db10508f739d0b5e00b83defe5d1115a997c54532a6d7cf8c95404 \
--hash=sha256:9297fb9c39b9a2c039dbcd306c410bd6906b95244dec3bba4318d36c718c164c \
--hash=sha256:95e7c44d072db623a1aab04ce488cf9533294a77ed9d072cd503a3596f4106ac \
--hash=sha256:975736b002ed080d124cf81a79cb7e05cb26d6b3f5c7a7b651c0fcce70353aa1 \
--hash=sha256:97c5a53e8c1754df58e73f047a99e287d4da1bdfe64b0072fb25c87000897951 \
--hash=sha256:9a09d59bef1db94f384b5bcc2d523694d338f3df6b757aeeaf7baca5d0c0be88 \
--hash=sha256:a364c1ea75dc51b83a17f52fe0c79cf8bc4ddf740403bebd4581c7666eea017d \
--hash=sha256:a3b4a01c6da07ef9f80d4fe8933b994bc99747bcea3eab0330a9c34d3c12655b \
--hash=sha256:a5876d0a60355af98d535c47f6cd6eb0f8a432396dab26845d380b92f8412422 \
--hash=sha256:a6a4b98a9132e0f45c9fc245a63894cfd8c45fb7a0d6bffc5eab3ec327cf7324 \
--hash=sha256:a6b4ff33f7e011bbaa148238d131c4fd4f8afbab3c104ddfbdb2b12b74ff7016 \
--hash=sha256:a93ee7c6e8fd0f8a83525a51bd777be57ee17787e91d805bd8d6faf9dcada18e \
--hash=sha256:b374e79ffa7511afc11773aef40a4ccea6191fba1c856ea2f9c56738dca69d7a \
--hash=sha256:b7d501d5eb5d4f67207df364752ad697465b834268744be7581c18d81d35d41d \
--hash=sha256:c59acfa8eb73a1e0d484392dc002bdf001fd4ce73394e0132df3d1ab6093d7cb \
--hash=sha256:c75116c9de79949de23006e2d9b35ee82874c594fcf5c0311b439acaa14b8441 \
--hash=sha256:ca80a49b53ed1d22f7282da7255f7bb2fd1935fd0f623d8613fda38745f18961 \
--hash=sha256:cad5782f93f7f738b62c6527b6f32a60694d924029f299a8b524758cfa53d815 \
--hash=sha256:ccadce0130fd813ec86ebfe969a6c58b42acc1d0fe55a47525375b740e07b605 \
--hash=sha256:d701eab36200c36224833d07dbdb709adb7fd4253429548ddb5e547b8ed40586 \
--hash=sha256:dad3d233d441a022c1f7155f0fb9d5aff7b97c1ea8c7dfa02cce586b16ab2d0b \
--hash=sha256:dd0b83bed3405b586a3133629f1d1a5bc7bfd64822a3b7ab342bdc68e6dbc61b \
--hash=sha256:de3de000d459402cda015068fd135aa50c0bf6f2477a80d4da1e646f123b4e78 \
--hash=sha256:de9923832f2d8c1a5ecd8d7260465a6ca5a86888a0d129e3bd5cf0406d2fc5bf \
--hash=sha256:df19e2d0b1620039af5102563fbd96e8938c7f5c3f5828528d641d9fc585525e \
--hash=sha256:e85880b538e59a59f55117b81f208a6660ad5ac328aad9305f812d9b8bc67a0f \
--hash=sha256:ee7d9da3bf493909cf811a3f038840cb34fab5ae2956b8a263919f6e289ab188 \
--hash=sha256:eed88b64a5e5da72d6a71cdc5aaeefaa5ced9b748f8d19f89800b339961dad39 \
--hash=sha256:f0ba7c2a329d650628f4c8572fd1db29f0a59dd70a3e3e0710dcf18a35cce9d8 \
--hash=sha256:f8e63209c3e1e828ee6a457529b4a6d8b05d050fe0ae03a7ae49e967c5d312e0 \
--hash=sha256:f8f0bd690e1a41294ac87905e8121c81a3761ec2583c768f13467428606c8c7a \
--hash=sha256:f96f0e30b5a95c7631b12bfe214cbc90ec8fe8cfa36920596c10514a65743519 \
--hash=sha256:f98e8215e172f567ce80eeaed9107fb4d32b6c44f26983d9b8334658136a205a \
--hash=sha256:f9fe868463ec7e1363733af77e38a5fda3e9b63940337048c945d69e0c80ff24 \
--hash=sha256:fdacf26402389bdd89857ad3c045a26fe8f3314f9a8b28226f82f88463a65b77 \
--hash=sha256:fe3170a69fe039b18ad18171e66faa9a75f6fe9d78f968fd9b54e09fbd714d81 \
--hash=sha256:fea4427d1ffdb3b523d7daa6712038428a4c16c450b9777bdd1221cfee0eab49
h2==4.4.1 \
--hash=sha256:0e25f1462b23c9cb82d9eb02e28bc706dac2a68cb457c6a0d74d63c8a2a5d0e6 \
--hash=sha256:4e866ffb1a869ae14dd9b5e6beb5c24a13da0495ad72b65925ded182521c1516
hpack==4.2.0 \
--hash=sha256:0895cfa3b5531fc65fe439c05eb65144f123bf7a394fcaa56aa423548d8e45c0 \
--hash=sha256:858ac0b02280fa582b5080d68db0899c62a80375e0e5413a74970c5e518b6986
hyperframe==6.1.0 \
--hash=sha256:b03380493a519fce58ea5af42e4a42317bf9bd425596f7a0835ffce80f1a42e5 \
--hash=sha256:f630908a00854a7adeabd6382b43923a4c4cd4b821fcb527e6ab9e15382a3b08
idna==3.20 \
--hash=sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44 \
--hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c
iniconfig==2.3.1 \
--hash=sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960 \
--hash=sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7
maxminddb==3.3.0 \
--hash=sha256:02cc5c537c4114e28d016df20038782bb58ac8b2ff0c2b565c98b2d98b5f0fe5 \
--hash=sha256:07319eff57ffd7098e03134617ad5c7f914d142e480c8c94e03c1f6de5fac730 \
--hash=sha256:0bbe7c13bfbd2f31b07814af15aa3c00143f8ffb0d29395b9eea1be6455961e6 \
--hash=sha256:0ce3807a0152b15d3f21786df65b111a8125bbf6791116f8f7fc4bfa9400f1b3 \
--hash=sha256:0de3312ba04de27cadb94cb929a70e4e766e2c6ef2e03c7fe00d539aa37ac0f3 \
--hash=sha256:0e0ee21668fc19e363220f3ada0c711840d9a2113969196f72f839e693e04c71 \
--hash=sha256:0f5eb14e7aa94cd0a527d2204eec5300990dd625312ebc149fc3404dcaeeeb98 \
--hash=sha256:0faf21b6af26e16714c1a5a3bc25ed33fd54e36cc569a6d237fd933747c2bf88 \
--hash=sha256:1522beddd9469584592259adbeb7a8e9c245c711340e3d69ec119455122cc6d0 \
--hash=sha256:1ae6c42bb73a1d1fc49c444968226d7badc692da325bf7933fdd4914f3594f99 \
--hash=sha256:1d00629a61610b79049c58a038f2b153b753a3c49705feddddd5794e0fdb8ffe \
--hash=sha256:20f49792c0cbcc7ca471beb4fe2d672166f80214d995ca1904f7cdee9ec22a7f \
--hash=sha256:21f4f14eb7952be84ad8545c47b3dc6f74ec9c9376f558bfcc3010e8f39ab698 \
--hash=sha256:258dae2eaf1d41fd2cec24c35f4416db1fc5f229bf4e166e48b95ec63a56a14c \
--hash=sha256:27dcb821921058222f482a07e0197234acb20115f1d306ddc6a8366166119016 \
--hash=sha256:28dc9fdf062804d4f45f2a1db22a53bca4efb0a7819a91135e66f5a3128889f2 \
--hash=sha256:2c2ce11abe1e95024a89c94760363018117991c5beedabba31bdb8919233588b \
--hash=sha256:2c5b2e1d004bad06a5b69287b2f5e9dc62e627d53687add975fa2eb89e8935bc \
--hash=sha256:349efe73c27482bc2cf8102a54afbfb8d9edb354251f92f153f68ba37b337c90 \
--hash=sha256:365d4f1e278062669e67911c83a5e6cc0b6a7056eb809dab9510aaa2f3598039 \
--hash=sha256:3a04a057569c7a25f22bb09d2eb3642afdd68229f553d1fce45a5671ecb10933 \
--hash=sha256:3a9e909ea42c485f36827193a0c2e308b2507ec9f3dcc20a15007d9311da917a \
--hash=sha256:3e644605506108fc186b51cb4b8d0689a9b6e645e437d3a0d44aa9eaa703c929 \
--hash=sha256:3ff1a4df2f3bed1e59cc2e6d133b5958cc8ef0809099ea1832ef9254a512e704 \
--hash=sha256:40b3221611c5e7f4e2ea763f126750f0d07cd9008cf4dcbd2be556e2bcfef1df \
--hash=sha256:4116b442797b7abe627e0602a2bd18962f6334b6de9c8ac84975be1b1275cf57 \
--hash=sha256:41c76b7477242d750ba445cc546ba4f35b5e0c25697c5152394ada7a1e09201b \
--hash=sha256:467dbdc1057ef3654d67caf5786aefca06875601620d9b82b431863d95caf29b \
--hash=sha256:46bf4d61e7756c05eeaded62f1c4972937fd1f78565e2506a186819ba066b46c \
--hash=sha256:476f017ef7de4297c67e53e2f09797e467932192308e7076db5b1e92c875c3db \
--hash=sha256:49c265a28764299c80c42c571d61d04c636a2a2ba12cd9b03ef8ab7ba6da2405 \
--hash=sha256:4dcc5db21722eda1ef390da04ac07b404776f9883c04266ebfdeb0bda2d45173 \
--hash=sha256:509249b07366262792532ec08191eb342a50310001ce9a14ecb1750b82392f10 \
--hash=sha256:5a3a7921ab8c3d9ee885ece3111b91722fa5a376413de10caff61331108c6714 \
--hash=sha256:5c35330ff224d61c10a3d3b3d34eeb9b21cbb1639a8bfe7a7a8dc9eda745ca33 \
--hash=sha256:5cefe4162a1a61dc4a9e2b9dccfe24bc6e5e5f49f713f6d4fcb062bdba1bb326 \
--hash=sha256:5d07281b67c3db198073780657e452a7d75664bddc75b462246335569475b8d1 \
--hash=sha256:5ecacf5d13421d5222368874e98bec96b634aca4743f92384f0aead15fa16147 \
--hash=sha256:5efc65479e474059ae7f85aede693ad3a8e31c255437d39aa03528dc17d369cf \
--hash=sha256:5f82f74e1e15cd828a55ab392d0fd80d4fc6d51eb31b5262d3481b7027c18efc \
--hash=sha256:610fc2a2e62037e4b23b17391897b63be600fae99a92a7ae68169c73e7a4a4ae \
--hash=sha256:61acddb7247a405fe944368574d44e11bc0d1dcd6b61008abab75d0f5472e6bd \
--hash=sha256:6267226f6664c3f0260841295ef0c9af70a6ba05b70f2dc7475ac560aa3fbb90 \
--hash=sha256:64f2d3635d2cc9dc5271d84c4d05a4577b60e10abff5af52b2fd6b60959107b8 \
--hash=sha256:71aba1b8f867e62724beae2a23fa92cbf4276375067abfd225d0ac1f021ee500 \
--hash=sha256:7a9ad4ddddf7bc20798975a1171cbccf7c0f50cecb3e86be30659253d2d8bee7 \
--hash=sha256:7b81da613941cc7d9e82db57c1772f6bef5c100954cacc7d9876232aca59505e \
--hash=sha256:833121c30e701edf8ac2464b1c310607e51a3f54c0f26b2b9922344f363e596a \
--hash=sha256:8827cd2d85ef250460d9dd96a0e67c57ef8deaa14599caa3f06e290cc1838389 \
--hash=sha256:88d6c904009e5bec0e6a38ab5dfe421646a0d14f7084fa86a8b36142117418ce \
--hash=sha256:890bc8115b8750fa4af1cd548b1064e844f4804ec39527b11c794830bade51fd \
--hash=sha256:8ab285825e128d211f31d11a46517e44235bf5dca79cba9a2cb1f10bcf99ad27 \
--hash=sha256:8ab7572acf78e2ef8d630b667a0b85690278221cca76339803488fa6c1272786 \
--hash=sha256:8ac0f9fdd7e27f5b9815684616759bd6fb367bd37cd7f4217c5aa5c0541f0aed \
--hash=sha256:8cb0027692908d9c302ba8dd0dae0eb8a9955b7ccf72335b4651ef66778df284 \
--hash=sha256:8f12c30c765cd6181bcd91affc2f0138f5364daff567f4672a9ae7b77e631480 \
--hash=sha256:91c1cc2989d4e392a37c26de67505a79ba213c90eecc83740b7c81e2df3e60db \
--hash=sha256:9639ca7810411293c9c576ed9843d3e7a8666474a1371fd9982a6f62728e6c35 \
--hash=sha256:99620535d26c8da868bae2018affde754e59e5b43b8705902f0f4a6003356a13 \
--hash=sha256:9a1bebada95181fd1602ef554e9d5d36da00403691dc8520efb99751c52d9162 \
--hash=sha256:9a9c7ada72b6af6dc2920be812867ff17cb6168892f3cba87f052986d2125f2a \
--hash=sha256:9add6485ddb57071d919dcb8ee98617392d143ac39dad797d9786701d8397c7c \
--hash=sha256:9cc2c7c166f87080f1471f1c1b256fef57ff9f3db436d69f1659837b98793d98 \
--hash=sha256:a00220f8c1b5427eb541fed03329ed122b731de571f9379ce1c7b235ef43e75d \
--hash=sha256:a04d62ae564795a630e4e375b30ef2166933ba887862f825494b2ad40cfcf622 \
--hash=sha256:a2438674f20fa9a86961ef121d0e07baa27000e186356ebf29cebf1af3ea9db3 \
--hash=sha256:aae50ff65f1252476587c351af9b6509bef7931bafe2cb90bf76f14fc4a2c1af \
--hash=sha256:ac035833b9792e045eb425c887b95a2e31ef657edf7923c5e80989580c69c604 \
--hash=sha256:b0006b64890a98a88faf89cad185deb7b519c0bfbf405a8273ede74a521b64fb \
--hash=sha256:b4b808b90b6f7a360d7bd7a3c5093e072b8a7f5c8e58bad9747e7f072dec9434 \
--hash=sha256:b7ba63a56028e629205ecf09820a92247a43f2ec90177aebbc745a36d7504805 \
--hash=sha256:bb4bc63ec6599362f7d8dcef412b17d7231a828af4ae0961f570a99a13096f72 \
--hash=sha256:bda0e715d702b847ab2082be1ef298f2b4a6cdffb72435d9967b057e88e8d8ec \
--hash=sha256:bf0d031ae8536c3f255db2677712f32802a3075e19c5638fb39868e439fd8dfd \
--hash=sha256:c56dacc8b9a4c85c62e5363ba718f628c93ae542df9e2d4c806362ac823d99be \
--hash=sha256:c85a62953aece0e4ae5ae54bfef64bd6b5af5945febfb9d587cbca848b9e4bd9 \
--hash=sha256:c8d81122ae0c7433ff40b32ae15b033e092ab2d00a2dfdd14f1a281e5d34015c \
--hash=sha256:c928a8ec2bf02166fdb7ea2f7c34221a4cd7870efe9eb9880adb85c994e9d044 \
--hash=sha256:c9ac07bb579fe86b61eaf1afebacc814be9310735e57764b18ccdb4988ef18d8 \
--hash=sha256:c9caa99bc6c724d83b28ecb047ecf4025df3fca551dc55361277fa24fcb41294 \
--hash=sha256:caa27e2adfaf74e9543f7cab81c1ce7247ff6a916fa122aa5af9e2bf9ebfd074 \
--hash=sha256:d09e124045edeaa0d81f3682e58b7b7e4c661f7a4b5ca1fad51746ef3b88df60 \
--hash=sha256:d2c45dc64167e177241c875e43d6baef2c36add9e1494bbb695a802eb8958e1d \
--hash=sha256:d926424a2ab007733913698f85d229e3cc5063fc95fc425b9088ec565de35a84 \
--hash=sha256:db36ff8dad59bc58882ea3374f191557783203588cf9aa2f9c4542adce36eb63 \
--hash=sha256:de07a78680594a9b4c49bab13c7b3d280068ee4846a1580787ed3ca800e1604f \
--hash=sha256:df8121c8af59e9ec51810f54d47d3bf9b89ac20a8305a890d5b97133325d10c1 \
--hash=sha256:e0971046ef19aa64e77446e45d8a87a7aa4a7b867312253d0ae90f12dd53ab6c \
--hash=sha256:e1dc4c12292fc9629a95daa7c98ebf74cf59368e62b5eec79975a2598c91b5e5 \
--hash=sha256:e30ded32a953398b001a8856ddd2eae2ff79656cf25db62b26fdf8fc3e7597f5 \
--hash=sha256:e31dd47a404093a3b257285c70e230bcd76952ab11c1b326c21abe400a252a12 \
--hash=sha256:e4bf04ee9373307becc3e6cb70ae47b4c0dcf9e566d5f9bf59a97e569ef7d38e \
--hash=sha256:e621394915e565f671958e2453e5fb6cc7e34552c1e51a2768686d4b1501c2c3 \
--hash=sha256:e72ae1be344ee834ba6e9951b2a2b4866968f85443505078847b139549921884 \
--hash=sha256:ec86c26da32501ba0fa0ed47de784c61500614b1b2d9e2a78e6c621bdd17d2c1 \
--hash=sha256:ed94f267f0c5caaac4ab2430b11cad3af7b98a882498ea73101776ac881735eb \
--hash=sha256:eda4be57322b09230af7e3cbec89f8f3f90709835137902d5d741cfecda862fd \
--hash=sha256:edda68f4ea05a3ac537bc1505f916019d7a9eb47d88244904713aec5a2761421 \
--hash=sha256:f0fdc32d7b2e9890de5bf5c24d11f0740bbc7d137b97764a2e47374bbd581efb \
--hash=sha256:f198f726c515dac34a9a75fe663a475506f30b430631e10ea8f14dc15370154e \
--hash=sha256:f19a0a42d3c99a80edd14d0bd972cb83993989c714d54d41f5fe170031aca7b8 \
--hash=sha256:f21ff2e354e15b865af7cf393366c2c5b1169eacd5d5b1ca3660ac10a04706f1 \
--hash=sha256:f22a60827975d1ef37cfadf87cafda030e669c1b298deaee823e1f45cef7f886 \
--hash=sha256:f5a7a57ad94f2ac03cdd8f345c1d17f33a97f12fe75ff04c3a0d050fce91cad0 \
--hash=sha256:fc6bb1b23a4614377d6ca090e01da624d5141193abcc58be27b9bbe67ae86d02 \
--hash=sha256:fcaf3aa27b2872da169818c5f44bd55161ef509f83216cb9669499a0aa0f41cb \
--hash=sha256:fd7a6faa680a285f2747d22185401f09dbde094e40267201e743c91a8c6e2813 \
--hash=sha256:fff5ae9e651fb2098b8634e6a1bbec07077279d2fd0f20a1da529b9353515336
packaging==26.4 \
--hash=sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2 \
--hash=sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a
platformdirs==4.14.8 \
--hash=sha256:1e34af590de4d978631b751eb2202f2fee4497537a17c1720b12fcf57b331392 \
--hash=sha256:96893d686e84e9e6f358a9ea41a8de544df66dbf2ba6cda250e7dc73acf85b9b
playwright==1.61.0 \
--hash=sha256:009588c2a7e499bc5a8b425b61fa65490968bbda9cd69e0cf2cff10f8304659a \
--hash=sha256:35c6cc4589a5d00964a59d7b3e59641e0aac0c02f15479a7af77d20f6bc79597 \
--hash=sha256:372d55a6f1248fa1dd47599686980cb8fb5bbe6fcda59eab793eb657c11d8a9b \
--hash=sha256:54f3b39f6eab832e33458c1dd7da0b5682aedab3b09ae731b5c59fa12fd2024e \
--hash=sha256:93454322ade8c11d5d6c211bfd91bdfb9ffb4810e3e026371bcbc4bec1b7ee4c \
--hash=sha256:9f7de4536088d12037c13a52b7ea34b59270b78926bb56935070597ffac6b1af \
--hash=sha256:e9fcbffcf557a8620fdedd92491eb59a32d18e23d6f3b4f6214b952be324fe51 \
--hash=sha256:ff138c3a604f69911e9d42fd036e55c2a171e5616edf04c1e7f60a2a285540b0
pluggy==1.7.0 \
--hash=sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec \
--hash=sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8
psutil==7.2.2 \
--hash=sha256:0746f5f8d406af344fd547f1c8daa5f5c33dbc293bb8d6a16d80b4bb88f59372 \
--hash=sha256:076a2d2f923fd4821644f5ba89f059523da90dc9014e85f8e45a5774ca5bc6f9 \
--hash=sha256:11fe5a4f613759764e79c65cf11ebdf26e33d6dd34336f8a337aa2996d71c841 \
--hash=sha256:1a571f2330c966c62aeda00dd24620425d4b0cc86881c89861fbc04549e5dc63 \
--hash=sha256:1a7b04c10f32cc88ab39cbf606e117fd74721c831c98a27dc04578deb0c16979 \
--hash=sha256:1fa4ecf83bcdf6e6c8f4449aff98eefb5d0604bf88cb883d7da3d8d2d909546a \
--hash=sha256:2edccc433cbfa046b980b0df0171cd25bcaeb3a68fe9022db0979e7aa74a826b \
--hash=sha256:7b6d09433a10592ce39b13d7be5a54fbac1d1228ed29abc880fb23df7cb694c9 \
--hash=sha256:8c233660f575a5a89e6d4cb65d9f938126312bca76d8fe087b947b3a1aaac9ee \
--hash=sha256:917e891983ca3c1887b4ef36447b1e0873e70c933afc831c6b6da078ba474312 \
--hash=sha256:ab486563df44c17f5173621c7b198955bd6b613fb87c71c161f827d3fb149a9b \
--hash=sha256:ae0aefdd8796a7737eccea863f80f81e468a1e4cf14d926bd9b6f5f2d5f90ca9 \
--hash=sha256:b0726cecd84f9474419d67252add4ac0cd9811b04d61123054b9fb6f57df6e9e \
--hash=sha256:b58fabe35e80b264a4e3bb23e6b96f9e45a3df7fb7eed419ac0e5947c61e47cc \
--hash=sha256:c7663d4e37f13e884d13994247449e9f8f574bc4655d509c3b95e9ec9e2b9dc1 \
--hash=sha256:e452c464a02e7dc7822a05d25db4cde564444a67e58539a00f929c51eddda0cf \
--hash=sha256:e78c8603dcd9a04c7364f1a3e670cea95d51ee865e4efb3556a3a63adef958ea \
--hash=sha256:eb7e81434c8d223ec4a219b5fc1c47d0417b12be7ea866e24fb5ad6e84b3d988 \
--hash=sha256:ed0cace939114f62738d808fdcecd4c869222507e266e574799e9c0faa17d486 \
--hash=sha256:eed63d3b4d62449571547b60578c5b2c4bcccc5387148db46e0c2313dad0ee00 \
--hash=sha256:fd04ef36b4a6d599bbdb225dd1d3f51e00105f6d48a28f006da7f9822f2606d8
pyasn1==0.6.5 \
--hash=sha256:4017b0fce125096b8573b39c989fdb1a4b19cf761e683398184550fea0e66587 \
--hash=sha256:6b11616a6bcf3a40e635f082bb232fa57b5e0dd7f517bd7ddd69ec3794508a47
pyasn1-modules==0.4.2 \
--hash=sha256:29253a9207ce32b64c3ac6600edc75368f98473906e8fd1043bd6b5b1de2c14a \
--hash=sha256:677091de870a80aae844b1ca6134f54652fa2c8c5a52aa396440ac3106e941e6
pycparser==3.12 ; implementation_name != 'PyPy' and platform_python_implementation != 'PyPy' \
--hash=sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e \
--hash=sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6
pyee==13.0.1 \
--hash=sha256:0b931f7c14535667ed4c7e0d531716368715e860b988770fc7eb8578d1f67fc8 \
--hash=sha256:af2f8fede4171ef667dfded53f96e2ed0d6e6bd7ee3bb46437f77e3b57689228
pygments==2.21.0 \
--hash=sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9 \
--hash=sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c
pylsqpack==1.1.3 \
--hash=sha256:11242dfb87124853c1af0931dc766c34f99e000ceca9cf1912883297b19509c5 \
--hash=sha256:20e870f903bfad70c3b65536049091d5d325367bcde6855dd6d2b7b419c45ae6 \
--hash=sha256:4cac49c32d9f455bea012223b8e2bc64e79d4b94eb8a8a7f60a239947b09df97 \
--hash=sha256:6ba422e788309d0564f80cde1704d8857ae288951b7707f9fee7ab660ae56109 \
--hash=sha256:8fdb02cb2d4c7e5b31ad6959398ccc2d6963f449f5776bf754a3425fbbb830f2 \
--hash=sha256:b220afff798cf59baf15489a4f1bd8d5f167d0f3224695380b767e8dffe8316b \
--hash=sha256:b733be9fc7ea9ac37945a3333a11c79838d8d9886fb9f6169376fc258333530b \
--hash=sha256:bc3967c423fbba759b4353d0b467753b8f510c6f769bf3f68317ac4b8dfef9db \
--hash=sha256:c1f1c495c161415a371535e524ab1a68753fe15c6534aaf87a3a50bfd804e85c \
--hash=sha256:cd4de1c914be239e99b6251f0c03ceeca5fe4d19dc67b727e921dcf3d3587d4d \
--hash=sha256:f25a63d645a3e3ad59c5d453048f91b2d9b0f3655b146d1491c18c783d584a56 \
--hash=sha256:ff53d63bf96a90973fbfceb7381c11bf1656bd9704f703259f9ba38f71c6040d
pyopenssl==25.1.0 \
--hash=sha256:2b11f239acc47ac2e5aca04fd7fa829800aeee22a2eb30d744572a157bd8a1ab \
--hash=sha256:8d031884482e0c67ee92bf9a4d8cceb08d92aba7136432ffb0703c5280fc205b
pyproject-hooks==1.3.3 \
--hash=sha256:5fc53fdac9f7bd63fbcdc868fb5f90b4784d78a53a3d3388cd738b807441a20b \
--hash=sha256:defda19b854fa0d3bd4f76ea4ddcba8abd7dcfcdd585a6690ade050744fc5f43
pysocks==1.7.1 \
--hash=sha256:08e69f092cc6dbe92a0fdd16eeb9b9ffbc13cadfe5ca4c7bd92ffb078b293299 \
--hash=sha256:2725bd0a9925919b9b51739eea5f9e2bae91e83288108a9ad338b2e3a4435ee5 \
--hash=sha256:3f8804571ebe159c380ac6de37643bb4685970655d3bba243530d6558b799aa0
pytest==9.2.0 \
--hash=sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588 \
--hash=sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b
pytest-timeout==2.4.0 \
--hash=sha256:7e68e90b01f9eff71332b25001f85c75495fc4e3a836701876183c4bcfd0540a \
--hash=sha256:c42667e5cdadb151aeb5b26d114aff6bdf5a907f176a007a30b940d3d865b5c2
pytest-xdist==3.8.0 \
--hash=sha256:202ca578cfeb7370784a8c33d6d05bc6e13b4f25b5053c30a152269fd10f0b88 \
--hash=sha256:7e578125ec9bc6050861aa93f2d59f1d8d085595d6551c2c90b6f4fad8d3a9f1
requests==2.34.2 \
--hash=sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0 \
--hash=sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed
ruff==0.17.6 \
--hash=sha256:0692088e6b33455572fb18465e891b443f196e98dc1986825685c77ff6f4c5ac \
--hash=sha256:084d9c8f5ec718e7eba007dba339e7cb4f7571d2f267558ae080bf428fb6a69b \
--hash=sha256:1939b3d701c7b6981b7cf93473de5bf88b129b9ba84efaed5154cc517c44634d \
--hash=sha256:1a0bea6aa1216e0ec4cd35d3dbccec0d772a7c2aad28ec9c6e82571dff2c20b0 \
--hash=sha256:2b04276561331300325040bdca21460770029ec574d4c479099e39e8ad1ed43c \
--hash=sha256:3db61f5015600543a581b07fa7f6f64afa0eeedefe16034cadd88c4074087582 \
--hash=sha256:435241c61af5909a022f76219d3d1bf24730dc1bf0acabb5ddf4b569ab3cbb30 \
--hash=sha256:6a12c50a33936dc00db2be21ba25fb168a8b95c55eda2a3ac85005af69885e4b \
--hash=sha256:9cd2fd9923e9806b8b6b67a3469e2258e84bd4d21e45d5a1a690afdfb9c8e57d \
--hash=sha256:9d44ef2140402043fd6f689ef541858b80883a8b0a02e38539ef0614ebe57d0c \
--hash=sha256:9fbddc08577592e283c265d865e0182de6e33db185494db7b06290d989d888e5 \
--hash=sha256:aa3b08254a732acba246891089a152c47c5733dc36b8ecb76ce8602f8326e5e4 \
--hash=sha256:b5aba93b3db4b70c5697e4fee6e0d5b9c8452a9a3a03679611cadc25915a2173 \
--hash=sha256:c2f4af6670b7a0501904e881bb3f1f24bd0d964dec1eedbd85f0eb73786e1128 \
--hash=sha256:d006bbb2945edb17b0ce6a0c1b5f5a8d81ba11dbac294a0a925effa22ce34feb \
--hash=sha256:d8b14e1473dc86ab9069cf7a2ba5041dc012f59110201844ed04cfddf07055a0 \
--hash=sha256:fb589e032806bb942e4fb526f30b80a1a64112147ed9f1d38cc3de2e255b6f45 \
--hash=sha256:fd661702202a89c00a4c9d0339008805fa5876bfa1c57e165495c2e62230dfbf
service-identity==24.2.0 \
--hash=sha256:6b047fbd8a84fd0bb0d55ebce4031e400562b9196e1e0d3e0fe2b8a59f6d4a85 \
--hash=sha256:b8683ba13f0d39c6cd5d625d2c5f65421d6d707b013b375c355751557cbe8e09
typing-extensions==4.16.0 \
--hash=sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8 \
--hash=sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5
tzdata==2026.6 \
--hash=sha256:0a10eec6e13ef16b627fabed9a5f2ba61a62b1c67f327305f4e7e412a70b4aec \
--hash=sha256:85d2cd9c09f81f0bb29db27759fc83af4f1e620efb814f8c5bf8b4cc4feece6d
urllib3==2.8.0 \
--hash=sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3 \
--hash=sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63
uv==0.13.10 \
--hash=sha256:19a76fd50a6a2bba38ee088d8336566856569be08196865f98132a08806581fc \
--hash=sha256:2a9ff188b442419c7aadebc445fcc1f287b25f99af50fa6d563b90cc0047b7cf \
--hash=sha256:30e75714a9cff3aa56281c7bf533a4e93cb5bdfcc0325d3aae54b9106460bd63 \
--hash=sha256:3bf1c1b13cac2533a342ca16b1c5f41347cd399404c9477a04ff79c5f7cb4dea \
--hash=sha256:50bee2a59ea9422b493aabc0cde9288f58fbcf6e8d688c30c4ecd8309459cac1 \
--hash=sha256:5bcf77c50760146ff7b41022ab7aeb1954d42dd47b89fad36b43a1a8a43da994 \
--hash=sha256:771a749b34477501092c9fe6d5e52f45cef944d875b0f2e2c989047a2ee647ab \
--hash=sha256:7cc9c41b43d583e34c781fd3446405b06e9c5fa2db468ce2a534d353db6429e5 \
--hash=sha256:7fa025c4b0f33b9a5357252e1be058d94157e13bfb8ae45d7e27cfce3759c65d \
--hash=sha256:8b0a15613aae9a3e1c134bb5ee706583af0addced7eb1add992f8b1b3e3a92a0 \
--hash=sha256:a52ee170c00d4de1d42026c4dbb00c5d7f327edcf2b2bddeecd0cfb169868ac7 \
--hash=sha256:a9636b4430a9b8a37ecc4d85111d1fd2560ef616edf5301b84f474073bf89e2f \
--hash=sha256:bf7174b00c88879d4a1019b51256bbdb2dd61c55c7dc896031e16d090e380ce6 \
--hash=sha256:c85a2ecb62d09d61904f5405b525fcc51f971d081f8508a881fa2f9bae7543a7 \
--hash=sha256:d87b9cf8165f2b3cc596e856b5bf794da9cfad6d1b110ca9d87eed42a15b3684 \
--hash=sha256:e52a1af7f97b717572f9e2bd69e54eb253b2c88a705500e35811c21106c439d4 \
--hash=sha256:e89dd26ea831dde70639ba0a798fa04a4c7c0226fd2b241da86218bfa370e495 \
--hash=sha256:ee3bca6523ed93c3ae0d1a90c2733be307f5f7cc5287c746214e93a3bae0da13 \
--hash=sha256:ee403b6bbcfda1bc7db269be5c40c1624df27b3b838d3f8a416648e00e2de5d4
websockets==17.4 \
--hash=sha256:00ad98e4bb0df7a6711c645eec16d5a9fdf99f0692bd4f5b6cb85a68677ba8df \
--hash=sha256:0132e3cbd3f5cfc1ec77588961b302d72a02e2603b82c2c23fd5fb59dc4fa206 \
--hash=sha256:023dc13bdc42a55e152acc81c39c90ec6cc4159ed17d23c6d73460fa2a73ab16 \
--hash=sha256:02f380df26de14999ecace203fe1396ac14d1c6132afc7924eb6f8c8b646c69d \
--hash=sha256:03ddf4eb76ced8725dcbb000ff60b0fb8d7330ed011f6dc725a1925c5fe02051 \
--hash=sha256:043945a43873c7c11a3f75238d475c95f902e967de329eb8763704546cfaa6b6 \
--hash=sha256:046ed16d3d83d64594e4a40655fef061ccf36059d8c30a01feca8a9481fe13b8 \
--hash=sha256:06ea46717553cdd10f2682126cf7a66e91c8ed17b6969f4a95e94b4e01d06188 \
--hash=sha256:09d3939b70df0c8ad2da145ebd50978bccaee1d565e838b0e7921a34d38571eb \
--hash=sha256:0a57b99f2e28922b5a2434317580fd23fdf118caff4c5b752f5452836426205a \
--hash=sha256:0c22a9c6b2349204f56123dd0ca7779e989d68e336d0dc02ad823485d44925de \
--hash=sha256:0dcce83837328e6795225ead920d3aa8d867cc9d6922aa558b0e9111599fdbb9 \
--hash=sha256:0e51546a3bedadd80dfa5c2efaed840ac51b8632d8db7f9f502175f5349382a9 \
--hash=sha256:156221ad7638b5abccefd6f798916bf3f8ffd6ac51480eb4ba5b05df914ccbf3 \
--hash=sha256:16550e24ac22c27e0a728100d8de196b5f054bab6748ef9f0b168fb8b3c32e35 \
--hash=sha256:18d3710becc612ec6f0229425bd6495133dfcbf30f7b6569585acc8ed2f1b452 \
--hash=sha256:1962f3bfde085af18878f1bb1aafb300c9a6ac33da886d0b0d97e33c9ce7a222 \
--hash=sha256:203e42eb77e06f85778a908b34c5ad032f34e98a68ef33920d6685c1e65a9420 \
--hash=sha256:2103982762460a764a7ef0021443bb471f46d45ecc6858276e4fe699ebac6b94 \
--hash=sha256:25eb661d8ba7e2b85ebb4e7a1bb9f6a3280910ed10b84330a7abfb5ed32d2764 \
--hash=sha256:29b615c2d5dd883f89c107a782681b73a7aa8b2bd894130310e45eb09b143913 \
--hash=sha256:2a9cb5bbfc33b4ebd3c8d3714d6e09805437f60a14977774e4bd11b5ace46c23 \
--hash=sha256:2b23dacf7a8a88afe92f77bcdbf4cf043a84692bac2f2da02f4011c687e19b48 \
--hash=sha256:2fd562372d4afaf18d1c7f1c68e39bd32818bb16d5f57f778a4a4ed88eedcaae \
--hash=sha256:32110d954d9d0e51f36edb0396673bf4d35193a0a80ba7013bf7f7d58a33ca07 \
--hash=sha256:332b88022d0acd47c44158bcd43f47f14eaddcd979247f242b1a33291c45cdd1 \
--hash=sha256:361f9a21a33191d5287e7a75f508fc3b9bf47aaffb0241198d6b7be3384f294e \
--hash=sha256:37ed7782972545e67d97ef9a172e9499d25459b1e32cb99d1c2a30c572f2441b \
--hash=sha256:3acc45494c08a4d27375a2c28474537f68910219f42624a08011221b04623d04 \
--hash=sha256:3b76837cd051d8875913f3934b27205f7a592f78b8a4f4a1f3abc36a2420c5bc \
--hash=sha256:3b78b39377630a70aa2198e5f03be416e690364a046b1d8af80a9263733083d0 \
--hash=sha256:3d27153a0413696767b98b5d96173a2a7e27cbfca02000a6069cea7b977765a7 \
--hash=sha256:3d512e3a6c528c42ce220ed9c3caff83c6fdcd98a1b98249f08ccfc66ad111b1 \
--hash=sha256:4073ab7cefe5a2e7dc368c1f01eb27716dc8ea8f1c69e9b7725ebce05aa53cf7 \
--hash=sha256:42d7a6e818214336cf7af9a3aae5c6923f94f09fa07ac5aab98268ba2a98a6d5 \
--hash=sha256:4441d655a53185ef1b01b1d42ad9b3a96b905110a9219043e3fdaec855ba3b6e \
--hash=sha256:47beedf07a706140b50786457e082497ee6b5970c41e49bcd1572ee3f4c73f80 \
--hash=sha256:48c83103f82fce36191a9e3a8a80731d4340e2da544eae8c5aaaf6a45280e7d0 \
--hash=sha256:4b79ea31cf277c72d2307c6cb8bd32a2c151959e80a2f24fa85df620c5f2860c \
--hash=sha256:4c792e6cce24d08f92199d907785c9e64f74c357deeed3dbaf7d699ed5930b64 \
--hash=sha256:4d2636a5b61c69e32db0e74b57073dd4a66f1ad195e9398c5f01bba41090deea \
--hash=sha256:4fb2db1f649b6464711846b5bb9c1611bd906ce939d9460cbd1fa419552cd6c3 \
--hash=sha256:506623128d7a55b726a5a46e4c9a8eae4c9dd0f04ff60b041fe7df85b9d034fe \
--hash=sha256:51adfc30f467077293a6695d8149bcef501c0728386f3a491054f835dadb60b2 \
--hash=sha256:52c31d123f5adf14dec694c2a4036bf42c523df7cefc641d31cd05653de56e49 \
--hash=sha256:5830f94a7190a33e55d06d89242ea951ee2009c3a27fc31538f3ac9386b27edd \
--hash=sha256:5cec3e7fbc911ff4fcf43b24aaf1b96906381ad36030f42897def3ff4b78729e \
--hash=sha256:5da7f7f1ecf866186f195f7ecc374c915e1838496b86f2f3b41da27c798a25c3 \
--hash=sha256:5ec906bb21b35e66cfdcc2ea0133f249f52b7d89e3e45ec8d2bd2d84a0255d7d \
--hash=sha256:5f772007dfba8941873dbd276b6a6845428cc740888b5c6c37bf483b1ea34b42 \
--hash=sha256:648adde345cfd13335342e23cfe94871c7f7f55a43fb254f3b95acb071072968 \
--hash=sha256:6531540aa63e6864cb0615a3a5da70ae03191334507852a5385320bb7916df3f \
--hash=sha256:6597a1f7413189b4bc58437babcdf39b79da416e5c477ae98323a88ecc108188 \
--hash=sha256:6686d29eaafddeeab9e48af92103dc0d26161035faa4be083b8b488f1ab47219 \
--hash=sha256:679eef0123861ca381dd8fd9bdc1920e87636ac55eae6cff875c53dcb05fbcf8 \
--hash=sha256:6afc32a7a1a40b071070419537df3559d26907086556769683fa97b7b6e90fd5 \
--hash=sha256:6b061ea7ca94966af7cd7a87cb189ff15972c103244611a2b1e8408c04f1dbe6 \
--hash=sha256:6cf4c002268da5c11cae9083aec71ac943bce9d95e0f83c8bf9a95a3ce421fbb \
--hash=sha256:6e6558efbb256b532c9f06a21ba42bcac729718e365c505819f181f25e5c0eca \
--hash=sha256:6fd8cac4907fec8302726d49e6969acfffaf720bc39b1cee23f473b81f4dce01 \
--hash=sha256:70293c25d79d1f084fdd665894481547575e429d2a75e8d72caec2f6b6b07af8 \
--hash=sha256:71f76bb8e59be847330b8a8d3753f85397677e128f9f9692c215f8cf721cefc7 \
--hash=sha256:725be1aff55f1c873a79cea0f612df9dff21a9d2c2e05783665b824b8aa7c24e \
--hash=sha256:72d0a731eccf482d5661c6711abfcd5921f3dbfbbb0789061e1918ef4bc89c70 \
--hash=sha256:7390e060f830b3d132f484b21ac2783a2d227b682ef62bb8146e1c1b4ca0e45a \
--hash=sha256:73b00645316121105274fd266ed54a20e6514650126d399cdea39876ab1e7b04 \
--hash=sha256:74e46409666c358b93fce0d8c6f4cb107d8dd7cba1302a38d49adf6fa8193c7e \
--hash=sha256:75b32cf33ea40f945f226f97bc1d43151e1a5adff21f420b5e63c468b1a28114 \
--hash=sha256:769e4f7b090e10cae4c082e3e39b9458ec2444505df84953c16c0468b16539c4 \
--hash=sha256:7849a096d6fdba3f2bdf849eb89f2d233a24400c92faa3efb25fa8dc615b706c \
--hash=sha256:799c5a23126c9589cb10b6c6b54f9087246940dad20cd74bf3f06fc9ae3bbab5 \
--hash=sha256:7a7e9321822ca59ba56fa8744c3e3f01ef74d547aafe0d383d000d7a4d11eb79 \
--hash=sha256:7b23db4b469d9e051ac74d96db9bf61e27c9054de64f8263fefa32bf72867ba1 \
--hash=sha256:7b4ee34acefa9ba1333f02b817982f1e4127f6f9b975017a707c4e738d7f9fb9 \
--hash=sha256:829bcaa90be8737c132d9515d6a466e8528e3b3d050d3f3466f36ea94d3beb48 \
--hash=sha256:8588edf317fbe4f16a949bc5a6ccdd22b6e6fd5b4745d128bc40bccf31024ce5 \
--hash=sha256:868744c68e9342768888c7326604da2228c19bb6946aa46b5f9e1ac32ea8d40b \
--hash=sha256:88ba8a439b2bad97bb69c38db5bf0ec16a061ee834cf0f244089186ee803e899 \
--hash=sha256:8b45d40f07081b377f0b837ddbfba4a9ab4a89a7b569d3c095436564e767a27b \
--hash=sha256:8c00c5c49f80a588a2c4f99d519d2abed4ce26cdca11273041bc8b7e60af60de \
--hash=sha256:8c51ac7b31578a7275650f580aac985940985b6d2e57247ac6d5e07f2c936cd6 \
--hash=sha256:8d148b4b295224d3a19e7bd9f02ebe7344de254b3b2c4d0628ce42ade0bca119 \
--hash=sha256:8f32a6cb0b101170abc2d8053af1473a2a29ef2a06d7130994ee8455a50f5dbf \
--hash=sha256:8fd30d217a4275107667fe1d4f601e2d50c797d0727148cfbb384536d65f04d3 \
--hash=sha256:927d602fb8fb595a69e6b1ae998a6ec19851d0fb9391759456e6425090996647 \
--hash=sha256:94622cf24e80d03054ceb69a06a86c950e12fe993ed06b933f7895232cacbc3e \
--hash=sha256:954d43574f72be244b65f0fa61e2f814214b024f2ec849f487aa2f553f7c6e71 \
--hash=sha256:98f16db5e79f2605194c0f899d0532005bb12269e698bf96f62a5635bcf33010 \
--hash=sha256:9a4e95d56994a45ac76541853796720436ffe462957d0b1b89e87ff3d3b1627e \
--hash=sha256:9ae1429ee9e52b139167ed0169757806a27ed7307e942e8c62037a9184e9843b \
--hash=sha256:9e282f35ece8895b9fa5af406fc6a4cb42f01e1009525cf46641de584781c83b \
--hash=sha256:9ff89e36451a19775e7556d95ebfa4a0b24b84cc87565d6b5d0ec8ea82bf3f2c \
--hash=sha256:a0457561e8a87a6a3b509e21c35084d7d207ced262139de3f738e9676a476bbd \
--hash=sha256:a50bd9b44dd9b7b845802030b4d88610c01c7f95571b4cbd3a1aeec17a34c9fd \
--hash=sha256:a703f23ca15a51251fc94f1774683f5aa511588a7ad6bbb83960cdb2a4dcd978 \
--hash=sha256:a920e99155d75d1b1c08172da8aaa7200e7b30871fb628d1631d7891a333e30e \
--hash=sha256:a9b0026538719f7a532998d84640ab2e91ca1a051ce4b8d924fdcb607307e921 \
--hash=sha256:ab9e4bd60796866c578e3afa0a17c98636887827a39c2e238a61989c18fd8e7b \
--hash=sha256:accb5e9492b9bc9c9aeec5b72ea8f2ddcbefc6143d1c626fba960ecbdc89807e \
--hash=sha256:ad2e9e152bec6c4f7e4cdb4adcea6b708400090eec04bfe5ee5b30d368ffd721 \
--hash=sha256:adc30e5d064c9e33049e825408fa4e952f4e8a0cf4c329dc2ded72e1bb5bae08 \
--hash=sha256:b529ad6c81ad21db2f4e3d6e33db78ce3b9f272066b438b5d673361f9282898d \
--hash=sha256:b6c7f91520c29420639925fd1cecceac9ca07366b50c09ea24eac1cd116b4866 \
--hash=sha256:b7ea61af293a153f2d67430038cf0efc10140caa623f2bdf5a9f5a457ff20f57 \
--hash=sha256:b8451f31ae24620cc9372acd2728d87922f2bb0cae3fa57aed68b152844cdf08 \
--hash=sha256:bbb6bed49f083e2ec8ae0bb21c00c7c5171ab8e08a8b008c61a43fc6c944fdac \
--hash=sha256:bc581579885728bb54ef15000295c20e6a64a200b1b73d5cfca71879a3eb3e1f \
--hash=sha256:bcad49104711f88b2b7c3ba166de172857d837248205e541b044a552558fecc3 \
--hash=sha256:bfc86dff091104eec770c29ea1831dbe191968a70aa2d8ae8eda3240d863970a \
--hash=sha256:c00f0c45851a2c61efffd03dde8fb4d594026b5cc18196c94e15460f1225f2ed \
--hash=sha256:c0cc2cb47face4dae64bd70a9268dbebddb3e48c1b48cf6d7b6ac1471609fd88 \
--hash=sha256:c2db7b9e2d726f7e051bedb67abcf460b84b11437b2f9fdacda7e6931dace85b \
--hash=sha256:c44776f82b04e623eb9e1b81fcd17ac6e9808ae1ba5cdf8edce1f7c869a95a9b \
--hash=sha256:c564d1e6531611bf87078c28780456ecc75459dcca189629fff2fe7c020d8e67 \
--hash=sha256:c568e72f5425a74616daeb824afe28da460cbeea036432f41c6af5380b83300d \
--hash=sha256:c5e970d3996c597186c9dbb6e77a8048737a834ac03cb13186a54999e0e1c31e \
--hash=sha256:c634053459278cf31fb404ddb5ecd38124e4609e8b609166da621edc2d5796db \
--hash=sha256:c63c0d7832956d5f3bb77888b93c854569d13f806289ff75c43926d25c6e5fd2 \
--hash=sha256:c6bd2c9781915592b209160d0f017d4c7c82ad53075e6b0c24d2a89299e7f9e9 \
--hash=sha256:c74954409ea5789f7a60daa5f94580c00ad0b60b20751c47b35c4784877b5057 \
--hash=sha256:c7a56140fcbf4662cb263754a754c651a16fe2196cae1fd232d18f89acd30c83 \
--hash=sha256:c7b996c02de5e032cb63dc65482b73693b7ecaa586654126be2749ddea239c40 \
--hash=sha256:c7f66a53e9b7ec831abb15e3d9b6cee8f52d6a24cd0a374786bf46c3ec218bc6 \
--hash=sha256:c8052c3058c402d53602583da5ddcf1a15a63ab1efe0222f47c7be59944e6463 \
--hash=sha256:c9f8fdb7bbefc4907c2bb3593f810f2b67a2d5329e1d38724a1aa3d763cf63eb \
--hash=sha256:cbdf4b42f4514422051889424fd03bc269be8c5d751bf39ec29ad761590bd10d \
--hash=sha256:cc0cd4065a65ac98f3e2742ee9f314da9d224db49b07dc17d3a20cef0d79658d \
--hash=sha256:cebad8f4796248b91fc2168515e507e5cb6b663a32befd09f3b1e7920acdcb1a \
--hash=sha256:cf99debb17227a50620aee16647bb33a0387f5fa5418d628666c0f05745e0d2a \
--hash=sha256:cfbbba4597f19ad717f79fd3f2a67ae7efae647bd6a61e14554e1b5ad242a5bf \
--hash=sha256:d0acd8191c0e5a61d1c27bfa33b6ec8431982299f5d71c02129aa4f16f182ad0 \
--hash=sha256:d0b6a9bd86f865ebc9d847a1eb0a655a0e2b447cbcde743dda97c4298415cc0b \
--hash=sha256:d0f943b53bb1d7389d72a5380078670e5fcc34a1328142148b72d20fd82031c7 \
--hash=sha256:d48795c7d64ca1c42e3d61fcc6478cb15a19b6ad3f9c882bc8d8dee49d4a420f \
--hash=sha256:d8255971f6789cf0cb365e3e22b9b166eba978548a26241eaa5b7af0440d885a \
--hash=sha256:ddab54dc0ec46ed09ef9ac131252cb5740ed21fbe6fc145f3c6fed0b575a8f15 \
--hash=sha256:dde9cd67f18803949ebf96de8aba12b8ec5ee3115e34c75a2db85a3b0a6c20d5 \
--hash=sha256:de29795f23833cdfb68ba45c8a5cc0ec49778ea5deb670188f4465bba5930d25 \
--hash=sha256:e0feb03a338f8f5e819ae23a73aabb7b46fd3b73f15f7df782dd12d99e2b02ad \
--hash=sha256:e30550965c78223439815dbdf40c93eb8931dfbf12427110dcfcaeebef76feb6 \
--hash=sha256:e3e80cad85ba68c07c1e8d4ccc9cf51e63bf6a73d6bf631640be947bd72b6b63 \
--hash=sha256:e4beaef2f4796558e738e15ca0b8802e35f419a9fa374a978e41706f43c48b26 \
--hash=sha256:e6d2a185ec4ff0478089305abd833da3a9fda8803eb77325b89ebeae5585a3b7 \
--hash=sha256:ed7fe197b8bb66eef4f62c052e33752d456d2fdda74805469d4bd954950ab339 \
--hash=sha256:ee48728a07566c32e097d267f4d4d01b85123c9ae748a42da02185b908cbedc4 \
--hash=sha256:ee6c4e0085bff5f6621bf9c53452584dcb91ebd993ce841e1f4061ac12b6b556 \
--hash=sha256:ef03fb4b3685df0ed9dc6a074a090f030345cad2c23c61818da3e08e693a9caa \
--hash=sha256:f01a680d4b66fd15cc7513fae55c673cc8cc340d41340305b7f9a782abdbefed \
--hash=sha256:f0494d3d97502e270282cc6a1f8648cd7335b4fe8d5c452006e5b7f9d62b8892 \
--hash=sha256:f24bed98595b9d854da8d6debaf82754abf3e8fe63ec90505ef560566814df7e \
--hash=sha256:f42671900e0b602d05a074c52fd3d757c2f8e5c4f73f771794dae1aa4aea5f0e \
--hash=sha256:f5b1d315a615cec81a79e2ce3a94221dc5c23e7fd4012897085d3b5e5a5638d0 \
--hash=sha256:f5f06f59e19aa0770aaf651ce91c196fa620b35aed49a7e6c36e7335f3f83db7 \
--hash=sha256:fcac44d917672ad6257ad64b80b5168306f168a78cab5c0612e4c699caed18cf
+34
View File
@@ -0,0 +1,34 @@
{
"playwright": "1.61.0",
"platforms": {
"ubuntu24.04-x64": [
{
"path": "builds/firefox/1532/firefox-ubuntu-24.04.zip",
"sha256": "8f3c97b95caf84cec1e83acdbee5079156cce338fc21bf2f4bc6afe3eec616c0",
"size": 110001368
},
{
"path": "builds/ffmpeg/1011/ffmpeg-linux.zip",
"sha256": "ebc74fc5b94830176a3c2914ae96bd8bc7f6a91f4f33890230f84a172ee61ccc",
"size": 2376500
}
],
"win64": [
{
"path": "builds/firefox/1532/firefox-win64.zip",
"sha256": "c02daa45e8af1164cba27301f076a877d9419f0d40b51b9fab4fe415daf6f77f",
"size": 122449192
},
{
"path": "builds/ffmpeg/1011/ffmpeg-win64.zip",
"sha256": "8d08827c019ad36e7b9d49d3648447d884534cb2acf200e71c715f6dd834cc50",
"size": 1411741
},
{
"path": "builds/winldd/1007/winldd-win64.zip",
"sha256": "0069f0d11d4ad6df068a068c003d22fe7dbec192a47bba64b2e115e9c8ce41d8",
"size": 128684
}
]
}
}
+9
View File
@@ -0,0 +1,9 @@
# The PUBLISHED SET, the control side of the A/B oracles (scripts/ci_published_set.py): the last published invisible-playwright and the invisible-core it pins (its seal pins the engine). Written by `python scripts/ci_published_set.py resolve --write`; .github/workflows/published-set.yml keeps it equal to the index.
# wrapper-requires: greenlet<4.0.0,>=3.1.1 | psutil>=5.9 | pyee<14,>=13
# core-requires: maxminddb>=2.2 | platformdirs>=4 | psutil>=5.9 | requests[socks]>=2.31 | tzdata>=2024.1
invisible-core==70.83.0 \
--hash=sha256:1dff040e41f5aba5aa07e086328ca436291fddbd31514d1bc9a9dbfc4ba7fb6a \
--hash=sha256:f7144262686adf54a4a1c85a8d17f76b31dc4ddcfbd6636d777c5c39963d3293
invisible-playwright==0.60.0 \
--hash=sha256:00509578944ff0d742761d4d5f19fcde21b7657197fa24ab0718e076ebdf9aa6 \
--hash=sha256:7285f5756ad2031087d12f339c2e89b76bdb953449c9151c0edc11a58d96d9c6
+36
View File
@@ -0,0 +1,36 @@
[
{"id": "wrapper.e2e.udp", "giro": "G2", "os": ["linux", "windows"], "min_tests": 44, "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_held_ice_port_blinds_the_loopback_checks_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.", "needs_userns": true},
{"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).", "moz_log": "nsHttp:5,neqo_http3:5"},
{"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": 31, "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": 282, "exact": true, "tests": ["tests/test_a_served_browser_keeps_the_udp_verdicts_of_its_proxies.py", "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.", "moz_log": "DocumentChannel:5,ProcessIsolation:5,nsDocShell:4,DocLoader:4", "juggler_trace": true},
{"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.", "runner_image": {"windows": "windows-2022"}},
{"id": "wrapper.e2e.fakeweb", "giro": "G2", "os": ["linux", "windows"], "min_tests": 7, "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: every step as stock, and every page left only once its noise is done), each judged against what stock Firefox does, as tests/fakeweb/pages.json declares it. 7 = 3 + 4 (the last two: a `load` that takes 20 s is a step that succeeds, and a `load` that never comes ends in an error that names the wait and the page). 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).", "stock_firefox": true, "extra_steps": ["fakeweb_profiles"]},
{"id": "wrapper.e2e.stock_twin.dnd", "giro": "G2", "os": ["linux", "windows"], "min_tests": 8, "exact": true, "tests": ["tests/test_a_drag_from_the_top_into_a_frame_of_another_site_e2e.py", "tests/test_a_press_outside_an_open_datalist_list_ends_as_on_stock_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Split from the row wrapper.e2e.stock_twin, which ran past the 25-minute limit of a leg: one leg. The twin of the real drag from the top into a frame of another site (4 scales): the same steps first on Playwright's own Firefox (stock_firefox), headed, driven by the stock Playwright client, and second on ours; the verdict is 'the same as the reference' (tests/_stock_twin.py). Each record keeps the page's and the chrome's devicePixelRatio and the real scale of the screen. The file is in no whole-suite row: the references are installed only for this row's legs. Second file: the twin of a press outside the open list of a datalist (4 scales): the list must be open in chrome on both before the press (else BROKEN CONTROL), and the events the page hears and the state of the list after must be the reference's (the leg took 2 minutes with one file).", "stock_firefox": true},
{"id": "wrapper.e2e.stock_twin.select", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_a_select_dropdown_opens_at_its_element_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Split from the row wrapper.e2e.stock_twin, which ran past the 25-minute limit of a leg: one file, one leg. The twin of the select dropdown (4 scales), measured from chrome scope against RETAIL Firefox 159 driven by Marionette alone, headed (the leg sets INVPW_RETAIL_FIREFOX to its firefox.exe), the reference first and ours second; the verdict is 'the same as the reference' (tests/_stock_twin.py, tests/_retail_reference.py). Each record keeps the page's and the chrome's devicePixelRatio and the real scale of the screen. The file is in no whole-suite row: the references are installed only for this row's legs.", "stock_firefox": true},
{"id": "wrapper.e2e.stock_twin.tooltip", "giro": "G2", "os": ["linux", "windows"], "min_tests": 6, "exact": true, "tests": ["tests/test_a_tooltip_opens_at_the_pointer_e2e.py", "tests/test_temp_a_listener_of_a_sandbox_world_is_recorded_on_retail_and_on_ours_e2e.py", "tests/test_temp_the_planted_getters_are_recorded_on_retail_and_on_ours_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Split from the row wrapper.e2e.stock_twin, which ran past the 25-minute limit of a leg: one file, one leg. The twin of the tooltip (4 scales), measured from chrome scope against RETAIL Firefox 159 driven by Marionette alone, headed (the leg sets INVPW_RETAIL_FIREFOX to its firefox.exe), the reference first and ours second; the verdict is 'the same as the reference' (tests/_stock_twin.py, tests/_retail_reference.py). Each record keeps the page's and the chrome's devicePixelRatio and the real scale of the screen. The file is in no whole-suite row: the references are installed only for this row's legs. Second file (TEMPORARY, remove with the control it explains): the plant and the page's own read of the getters planted by tests/test_a_pages_own_hasinstance_is_never_called_while_the_client_listens_to_console_e2e.py, run on retail and on ours, dumped side by side to the evidence folder, no verdict about ours. Third file (TEMPORARY, same): what window.onerror is told when a listener registered from another script world (retail: the default sandbox of Marionette's ExecuteScript; ours: the client's evaluate) throws an Error and a non-error, against the page's own throwing listener as control, for the two listener cases of tests/test_a_page_function_called_by_the_client_sees_only_page_frames_e2e.py.", "stock_firefox": true},
{"id": "wrapper.e2e.stock_twin.intersection", "giro": "G2", "os": ["linux", "windows"], "min_tests": 8, "exact": true, "tests": ["tests/test_intersection_and_lazy_loading_in_a_frame_of_another_site_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Split from the row wrapper.e2e.stock_twin, which ran past the 25-minute limit of a leg: one file, one leg. The twin of what the IntersectionObserver of a scrolled frame of another site reads (8 steps, 4 scales) and of when a lazy frame is requested (4 distances, 4 scales): the same steps first on Playwright's own Firefox (stock_firefox), headed, driven by the stock Playwright client, and second on ours; the verdict is 'the same as the reference' (tests/_stock_twin.py). Each record keeps the page's and the chrome's devicePixelRatio and the real scale of the screen. The file is in no whole-suite row: the references are installed only for this row's legs.", "stock_firefox": true},
{"id": "wrapper.e2e.fontconfig", "giro": "G2", "os": ["linux"], "min_tests": 9, "exact": true, "tests": ["tests/test_no_fontconfig_file_of_the_host_is_opened_and_the_screenshot_draws_the_bundle_linux_e2e.py", "tests/test_the_host_fontconfig_rules_do_not_reach_the_text_pixels_linux_e2e.py", "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 engine runs it on its own empty configuration, and the rules of a user and the files of the host are what these tests try to make reach it. On Windows DirectWrite draws the text from the path of the font, with no rule of a user and no configuration or cache of fonts to read, so these tests have no Windows counterpart.", "note": "7 = (1-3) the fontconfig rules of a user do not reach the pixels of the text a page reads: seven launches of one seed, each with its own system-wide rule file (/etc/fonts/local.conf, written with sudo before the launch and put back after it; not the environment, which the core owns: it strips FONTCONFIG_*, and points XDG_CONFIG_HOME and XDG_CONFIG_DIRS at empty folders): nothing; rgba=none with lcdfilter=lcdnone; rgba=bgr; embeddedbitmap=false; autohint=true; hintstyle=hintfull with antialias=false; a strong prepend rule on system-ui. fc-match, in the same environment, must show each rule in force (a launch that measures nothing is red). Three tests: every rule in force in fc-match on the host; the hashes of the pixels of getImageData (an opaque canvas and the default one, Arial, SimSun, MS Gothic at 9-16 px) equal to those of the launch with nothing; the computed family and the widths of system-ui equal. (4-7) no fontconfig file of the host is opened and the screenshot draws the bundle: the stand-in that runs the engine under strace stays in the engine's place (a fake engine with a child, no browser); the caches $HOME/.fontconfig and $XDG_CACHE_HOME/fontconfig hold a valid cache of the bundle that lacks msgothic5_32.ttc (fc-list proves it); under strace no process opens a path under /etc/fonts, a fonts.conf or a *.cache-* file; the screenshot of Japanese text in MS PGothic equals the content's own drawing. Needs strace, fc-cache, fc-list, fc-match and sudo without a password on the runner: without them the tests are red, not skipped. Evidence in RUNNER_TEMP/invpw-evidence/fontconfig-rules and fontconfig-host-files. Also in the row until the 72 is released: the old file of the warm-cache test (2 tests, same ids), rewritten to assert the 72's behaviour: the stand-in, and two launches with the same XDG_CACHE_HOME and HOME under strace write no fontconfig cache file (*.cache-*, .NEW, .TMP-*) and no process opens one. E1 and E2 replace it; its retirement entry goes to main after the release of the 72."},
{"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": 4595, "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_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_file_chooser_is_never_dropped_in_silence.py", "tests/test_a_frame_tap_needs_a_context_with_touch.py", "tests/test_a_gil_free_thread_dump_kills_a_busy_process_and_the_stack_watchdog_does_not.py", "tests/test_a_handle_action_walks_like_a_selector_action.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_marionette_session_is_asked_after_the_first_window.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_popup_under_the_declared_viewport_is_not_pinned.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page.py", "tests/test_a_screenshot_sends_its_scale_to_the_engine.py", "tests/test_a_served_browser_keeps_the_udp_verdicts_of_its_proxies.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_streamed_upload_is_staged_in_the_session.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_test_that_is_not_e2e_never_leaves_the_machine.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_ab_host.py", "tests/test_ab_host_aa_stable.py", "tests/test_ab_network.py", "tests/test_ab_network_turn_credential.py", "tests/test_ab_network_turn_deallocation.py", "tests/test_ab_network_webrtc_evidence.py", "tests/test_ab_oracle.py", "tests/test_ab_oracle_declared_differences.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_an_expired_popupshown_wait_fails_the_e2e_test_that_launched_the_browser.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_host_gate_ab.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_linux_legs_read_no_mirror.py", "tests/test_ci_poison_host.py", "tests/test_ci_published_set.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_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_windows_temp_is_on_d.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_action_is_pinned_by_commit_sha.py", "tests/test_every_argument_reaches_the_page_as_playwright_sends_it.py", "tests/test_every_fixture_a_test_pins_is_checked_out_byte_for_byte.py", Line truncated
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 4607, "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_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_file_chooser_is_never_dropped_in_silence.py", "tests/test_a_frame_tap_needs_a_context_with_touch.py", "tests/test_a_gil_free_thread_dump_kills_a_busy_process_and_the_stack_watchdog_does_not.py", "tests/test_a_handle_action_walks_like_a_selector_action.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_marionette_session_is_asked_after_the_first_window.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_popup_under_the_declared_viewport_is_not_pinned.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page.py", "tests/test_a_screenshot_sends_its_scale_to_the_engine.py", "tests/test_a_served_browser_keeps_the_udp_verdicts_of_its_proxies.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_streamed_upload_is_staged_in_the_session.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_test_that_is_not_e2e_never_leaves_the_machine.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_ab_host.py", "tests/test_ab_host_aa_stable.py", "tests/test_ab_network.py", "tests/test_ab_network_turn_credential.py", "tests/test_ab_network_turn_deallocation.py", "tests/test_ab_network_webrtc_evidence.py", "tests/test_ab_oracle.py", "tests/test_ab_oracle_declared_differences.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_an_expired_popupshown_wait_fails_the_e2e_test_that_launched_the_browser.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_host_gate_ab.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_linux_legs_read_no_mirror.py", "tests/test_ci_poison_host.py", "tests/test_ci_published_set.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_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_windows_temp_is_on_d.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_action_is_pinned_by_commit_sha.py", "tests/test_every_argument_reaches_the_page_as_playwright_sends_it.py", "tests/test_every_fixture_a_test_pins_is_checked_out_byte_for_byte.pLine 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).", "core_dumps": "invpw-cores"},
{"id": "wrapper.e2e.suite.linux.1", "giro": "G2", "os": ["linux"], "min_tests": 447, "exact": true, "tests": ["tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_a_screenshot_honours_its_scale_e2e.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_declared_host_network_e2e.py", "tests/test_detectors_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_element_screenshot_e2e.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_display_linux.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_ignore_https_errors_e2e.py", "tests/test_injected_node_surface.py", "tests/test_juggler_connection.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_navigation_response.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_oop_frame_element.py", "tests/test_oop_frame_geometry.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_screencast.py", "tests/test_screencast_stop_e2e.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_offline_e2e.py", "tests/test_shadow_trusted_input.py", "tests/test_strict_and_force.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_a_launch_scans_no_process_of_the_machine", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_after_close_no_process_of_the_session_is_left", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_ua_widget_not_selectable.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_webgl_draws_on_the_engine_s_own_gl_e2e.py", "tests/test_webgl_noise_active.py", "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_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "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_relay_never_answers_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_not_blocked_behind_tcp_only_socks", "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_the_turn_over_tcp_of_a_context_goes_throuLine truncated
{"id": "wrapper.e2e.suite.linux.2", "giro": "G2", "os": ["linux"], "min_tests": 463, "exact": true, "tests": ["tests/test_a_click_under_the_login_autocomplete_list_reaches_the_page_e2e.py", "tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_press_on_an_open_select_follows_windows_rollup_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_select_dropdown_stays_open_after_the_release_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_drag_motion.py", "tests/test_expose_binding_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_new_page_defaults.py", "tests/test_no_fontconfig_file_of_the_host_is_opened_and_the_screenshot_draws_the_bundle_linux_e2e.py", "tests/test_no_popup_is_left_when_a_page_closes_e2e.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_e2e.py", "tests/test_route_post_data_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screenshot_of_text_returns_linux_e2e.py", "tests/test_scroll_into_view.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_service_workers_blocked.py", "tests/test_set_input_files_payloads.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_host_fontconfig_rules_do_not_reach_the_text_pixels_linux_e2e.py", "tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "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_typing_a_character_without_a_key_e2e.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of Line truncated
{"id": "wrapper.e2e.suite.linux.3", "giro": "G2", "os": ["linux"], "min_tests": 396, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_file_chooser_reaches_every_client_e2e.py", "tests/test_a_frame_reads_only_declared_origins_while_it_loads_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_handle_action_walks_like_a_selector_action_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_page_function_called_by_the_client_sees_only_page_frames_e2e.py", "tests/test_a_page_sees_no_pointer_event_before_the_first_input_on_the_hidden_display_e2e.py", "tests/test_a_pages_own_hasinstance_is_never_called_while_the_client_listens_to_console_e2e.py", "tests/test_a_password_field_is_as_wide_as_on_retail_windows_e2e.py", "tests/test_a_popup_moves_and_resizes_as_declared_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_popup_reads_the_retail_sizes_of_a_maximized_main_window_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_an_element_handle_serves_every_method_of_the_client_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_every_argument_reaches_the_page_e2e.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_exslt_date_time_through_an_imported_stylesheet_is_in_the_declared_zone_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_input_reaches_the_top_and_a_frame_of_another_site_at_every_scale_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_the_maximized_window_frames_and_popups_read_retail_e2e.py", "tests/test_the_parent_methods_of_the_window_origin_are_not_exposed_to_a_page_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py", "tests/test_webgpu_external_texture_e2e.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.3", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 565 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on linux (a skip is red in the verdict).", "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.1", "giro": "G2", "os": ["windows"], "min_tests": 332, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_screenshot_honours_its_scale_e2e.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_detectors_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_ignore_https_errors_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_transport.py", "tests/test_keyboard_rhythm.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_workers_blocked.py", "tests/test_strict_and_force.py", "tests/test_the_engine_is_born_in_the_job_e2e.py", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_ua_widget_not_selectable.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 1 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.2", "giro": "G2", "os": ["windows"], "min_tests": 327, "exact": true, "tests": ["tests/test_a_click_under_the_login_autocomplete_list_reaches_the_page_e2e.py", "tests/test_a_file_chooser_reaches_every_client_e2e.py", "tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_press_on_an_open_select_follows_windows_rollup_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_a_select_dropdown_stays_open_after_the_release_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client_e2e.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_declared_host_network_e2e.py", "tests/test_every_argument_reaches_the_page_e2e.py", "tests/test_expose_binding_e2e.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_desktop.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_no_popup_is_left_when_a_page_closes_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_oop_frame_geometry.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_e2e.py", "tests/test_screencast_stop_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "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_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py", "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_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "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_relay_never_answers_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_not_blocked_behind_tcp_only_socks", "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_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_of_its_own"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the fLine truncated
{"id": "wrapper.e2e.suite.windows.3", "giro": "G2", "os": ["windows"], "min_tests": 299, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_function_called_by_the_client_sees_only_page_frames_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_page_sees_no_pointer_event_before_the_first_input_on_the_hidden_display_e2e.py", "tests/test_a_pages_own_hasinstance_is_never_called_while_the_client_listens_to_console_e2e.py", "tests/test_a_password_field_is_as_wide_as_on_retail_windows_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_drag_motion.py", "tests/test_element_screenshot_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_first_launch_from_a_new_path.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_post_data_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screencast.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_input_files_payloads.py", "tests/test_set_offline_e2e.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_external_texture_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 3 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.4", "giro": "G2", "os": ["windows"], "min_tests": 334, "exact": true, "tests": ["tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_frame_reads_only_declared_origins_while_it_loads_e2e.py", "tests/test_a_handle_action_walks_like_a_selector_action_e2e.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_moves_and_resizes_as_declared_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_popup_reads_the_retail_sizes_of_a_maximized_main_window_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_exslt_date_time_through_an_imported_stylesheet_is_in_the_declared_zone_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_injected_node_surface.py", "tests/test_input_reaches_the_top_and_a_frame_of_another_site_at_every_scale_e2e.py", "tests/test_juggler_connection.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_oop_frame_element.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_scroll_into_view.py", "tests/test_shadow_trusted_input.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_the_maximized_window_frames_and_popups_read_retail_e2e.py", "tests/test_the_parent_methods_of_the_window_origin_are_not_exposed_to_a_page_e2e.py", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 4 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.control_a", "giro": "G2", "os": ["windows"], "min_tests": 20, "exact": true, "tests": ["tests/test_control_a_selects_all_in_a_field_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "The keyboard shortcut Control+A selects all in a field (5 ways to press it x an input and a textarea, in-process and served to the stock client), alone on its own Windows runner (windows-latest), as e2e.yml runs it on the published engine: the Windows keyboard of a real user is what it needs. The same file is in one of wrapper.e2e.suite.windows.1..4 and in wrapper.e2e.suite.linux.1.", "run": "suite_run"},
{"id": "wrapper.e2e.ab_oracle", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_oracle_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Same seed, same bytes: the engine of the published set (the last published engine, with its own core and wrapper) against the candidate (with core_ref and wrapper_ref), on one machine, after the control: the published engine against ITSELF (the A/A; a difference is a broken control, exit 2, and the A/B is not run). On a pull request (no candidate: INVPW_BINARY_PATH is the published engine, no INVISIBLE_SEAL_FILE) the A/A is the whole test, on the first two seeds of the candidate set (all five when the pull request changes a file of this oracle: the step of e2e.yml that runs scripts/ci_ab_pr_seeds.py exports AB_ORACLE_PR_SEEDS), and saves both dumps and the diff under $AB_ORACLE_OUT or $RUNNER_TEMP/invpw-evidence/ab-oracle. scripts/ci_ab_oracle.py runs the host gate's dump (scripts/ci_host_gate.py dump: the persona seeds of ci/persona-seeds.json, each at its own DPR with nothing pinned, the whole page of scripts/host_gate; the `candidate` set of 5 seeds that reach every webgl renderer and every DPR, or with AB_ORACLE_SEED_SET=final and AB_ORACLE_SHARD=i/n the 20 seeds that reach every value of every dimension split over n jobs) twice, once with the published engine (fetched by the published set's own core under its own seal, which checks the archive's sha256, and dumped in that set's venv) and once with the candidate binary of the leg under its own seal, and compares every leaf of every visit: the only differences allowed are the `noise` entries of scripts/host_gate/exceptions.json and the diag. keys; anything else is red with the leaf, the two values and the seed; fewer leaves than the host gate's reference holds (16439 per visit; a DPR the reference does not record is held to the least of those it does) is red. The files (dump-<N>.json, dump-<N>-again.json for the tag of the published set, diff-a-a.json and, with a candidate, dump-candidate.json and diff.json) are the artifact ab-oracle-<os> of the leg. 1 = the one test; the comparator's own cases (51, the A/A's among them) are in tests/test_ab_oracle.py, the persona seeds' (15) in tests/test_persona_cover.py, in the rows of the whole unit suite. Needs the engine's binary (INVPW_BINARY_PATH) and, for the A/B, the candidate's seal (INVISIBLE_SEAL_FILE) and the network (the release assets of the published engine, and INVPW_PUBLISHED_PYTHON). Each engine runs with the core it was built for: a core that declares less than the published engine requires is no longer a red of this suite (it was: engine candidate 5, every A/B a broken control). THE CONTROL IS THE PUBLISHED SET, as a user installs it: the last invisible-playwright on the index, the invisible-core it pins exactly and the engine that core's seal pins, in a venv of their own (ci/py-lock/published.txt, installed by hash from the run's wheelhouse; scripts/ci_published_set.py; INVPW_PUBLISHED_PYTHON is its python). The candidate's side is the candidate engine with core_ref and wrapper_ref. No tag is written in a harness file.", "timeout_minutes": 50, "core_dumps": "cores", "extra_steps": ["keep_oracle_files"], "artifact": "ab-oracle"},
{"id": "wrapper.e2e.ab_network", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_network_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Network A/B oracle: the P4 journey, HTTPS h1/h2 (ClientHello, h2 frames, header order), HTTP/3 (transport parameters, H3 SETTINGS), WebRTC through the coherent SOCKS5 lab gateway, DNS through the fake DoH, and an idle launch; transcripts compared leaf by leaf, direct connections red on either side. A/A first (the published engine twice: a difference is a broken control; ci/ab-network-volatile.json holds the leaves the A/A proved volatile, and may only shrink), then the published engine against the candidate. Without a candidate (a PR's e2e) the A/A alone, on the first seed (all five when the pull request changes a file of this oracle: AB_NETWORK_PR_SEEDS), in jobs of its own in e2e.yml on Linux and on Windows (the shared e2e jobs leave this file out). THE CONTROL IS THE PUBLISHED SET, as a user installs it: the last invisible-playwright on the index, the invisible-core it pins exactly and the engine that core's seal pins, in a venv of their own (ci/py-lock/published.txt, installed by hash from the run's wheelhouse; scripts/ci_published_set.py; INVPW_PUBLISHED_PYTHON is its python). The candidate's side is the candidate engine with core_ref and wrapper_ref. No tag is written in a harness file.", "timeout_minutes": 75, "core_dumps": "cores", "extra_steps": ["keep_oracle_files"]},
{"id": "wrapper.e2e.ab_host", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_host_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Host A/B oracle: the whole TRACE of a closed run, from the launch to the exit of the browser, after the same journey. Compared: the processes by kind (the parent, -contentproc type, sandboxingKind, isForBrowser, the helpers by what they ran) with their count, except for the kinds of type tab whose count follows the idle time (only their presence counts), and the host paths the tree touched, judged by one rule (red if and only if a path is in all the measured launches of one engine and in no launch of the other, the long launches included; every other path that differs is listed in not-judged.json, not judged); what is ours (the package, the profile and temp dirs of the launch, the run cache, its own shared memory) leaves the comparison as a class. Linux: strace of the whole tree. Windows: the process-creation audit (event 4688, with the command line) and an ETW file trace of Kernel-File, which need an administrator. It has jobs of its own in e2e.yml on Linux and on Windows (a measurement shares the machine with no other browser), and its footprints keep the lifecycle of the tree (who started and ended when, how) and how the close ended. Each engine run starts with a discarded warm-up launch whose trace is kept and listed apart (what only the warm-up did, with the process that did it); only the tree of the launch is compared (a Windows service's paths are counted by process name and left out), and a path or a kind that differs names the processes to blame. A/A first, then the published engine against the candidate; the one declared difference (Linux glxtest, gone on the 69) is in ci/ab-host-expected.json, applied by kind, a list that may only shrink. There is no list of noise. Without a candidate (a PR e2e) the A/A alone, on the first two seeds (all five when the pull request changes a file of this oracle: AB_HOST_PR_SEEDS). THE CONTROL IS THE PUBLISHED SET, as a user installs it: the last invisible-playwright on the index, the invisible-core it pins exactly and the engine that core's seal pins, in a venv of their own (ci/py-lock/published.txt, installed by hash from the run's wheelhouse; scripts/ci_published_set.py; INVPW_PUBLISHED_PYTHON is its python). The candidate's side is the candidate engine with core_ref and wrapper_ref. No tag is written in a harness file.", "runner_image": {"windows": "windows-2022"}, "timeout_minutes": 50, "core_dumps": "cores", "stock_firefox": ["windows"], "location_service": ["windows"], "extra_steps": ["keep_oracle_files"]},
{"id": "wrapper.e2e.ab_host_crash", "giro": "G2", "os": ["linux"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_host_crash_linux_e2e.py"], "marker": "e2e", "needs_root": false, "linux_only": "A signal sent to the parent of the browser with os.kill, the core the kernel writes and gdb reads, and the signal line of strace exist on Linux only: Windows has no counterpart of this test. What a Windows launch that did not end with 0 leaves (the `.extra` files and the minidump names, read from the crash folders) is held by the unit tests of the recorder with fake launches, and by every Windows leg of the three oracles, which are red on any parent that does not end with 0.", "note": "The recorder of the host oracle, tested on a launch that dies on purpose: scripts/ci_ab_host.py crash-probe launches the engine once under the oracle's stand-in (strace of the tree, cores enabled, a crash watcher), sends SIGSEGV to the browser's parent with os.kill and closes it as the oracle closes its launches; the test passes when the oracle reports RED (exit 1, `FAIL the parent process exited with code ...: seed N, launch crash`) and the artifact (RUNNER_TEMP/invpw-evidence/ab-host-crash) holds the signal line of the strace log (strace-signals.txt, strace-tail.txt), the core run through gdb (gdb-core.*.txt: `thread apply all bt`, the MOZ_CRASH reason, `info sharedlibrary`), the build ids and what the collectors did not find (said.txt). It fails when the oracle says green for a launch that died, when the evidence is missing and when the probe did not run; the red of the probe does not make the job red. It runs in the job of the host oracle on Linux (e2e-host: strace, gdb and elfutils installed, kernel.core_pattern pointed at INVPW_CORE_DIR), after the A/A, and is left out of the shared e2e job (OWN_JOB_FILES).", "timeout_minutes": 35, "core_dumps": "cores", "extra_steps": ["keep_oracle_files"]}
]
+43
View File
@@ -0,0 +1,43 @@
{
"about": "What retail Firefox on Windows reads on a password field in the page tests/data/password_mask_page.html (the width of 40 x 'a' in Arial 16px, which is 40 times the advance of the mask character), extracted by scripts/extract_retail_password_mask.py. Never edited by hand.",
"capture": {
"folder": "captures/firefox-159.0/windows-server-2025/password-mask/2026-12-02",
"retail_captures_commit": "e81da117a01c8d05b00beb62cd544dc057d40f85",
"run": "https://github.com/oss-invisible/core/actions/runs/46769343558",
"browser": {
"firefox_version": "159.0",
"build_id": "20261022150525",
"installer_sha256": "8776887b79925abbdd407fcdfe257d8382b54e24be52a6466426b95a804d6790",
"firefox_exe_sha256": "d8b5ed82fcd9c0f159dc86dc1c4526ceae981c4d9651f21908b6de90d0a56d85",
"xul_dll_sha256": "fec21f3e7c281c836ff4fb9658bf321857e101750bc4a6280d1b419996ce7e29"
},
"host": {
"runner_image": "windows-2025",
"os_version": "10.0.26100",
"os_ubr": "33828"
}
},
"files": [
{
"path": "result.json",
"sha256": "980ac7f4ee06ffeef80c3aa3ddb594216b30c4b221b43156b1fa39f92153571a"
},
{
"path": "meta.json",
"sha256": "3ecefececdca063d84b48f7bb8905039077356b5c6c46e59e2a7551e1bdaf2ad"
}
],
"page": {
"path": "tests/data/password_mask_page.html",
"sha256": "4b0c454f723392003e75325036effc576627a71f29c8d82cb01033a963e8de2a"
},
"n": 40,
"cases": {
"arial16": {
"password_scrollWidth": 387,
"mask": "U+25CF",
"devicePixelRatio": 1,
"platform": "Win32"
}
}
}
File diff suppressed because it is too large. Load diff
+541
View File
@@ -0,0 +1,541 @@
{
"about": "What retail Firefox reads in a popup opened from a maximized main window, per display case and feature string, extracted by scripts/extract_retail_popup_sizes.py. Never edited by hand.",
"capture": {
"round": "2026-12-01-window-geometry-r12",
"run": "https://github.com/oss-invisible/core/actions/runs/46545487209",
"retail_captures_commit": "ef2250dee8704d3023c36661e39ea9525fe41a04",
"browser": {
"firefox_version": "159.0",
"build_id": "20261022150525",
"installer_sha256": "8776887b79925abbdd407fcdfe257d8382b54e24be52a6466426b95a804d6790"
}
},
"files": [
{
"path": "dpr1/1920x1080/a/raw.json",
"sha256": "1e4413e6e06ff1a8fc49eba8d87cd2c1e3642550bd67242fcd8ebd03777baf6a"
},
{
"path": "dpr1/1920x1080/b/raw.json",
"sha256": "ee2d4d2b60dea8e56450fca62446a5c3135e358b6f47ead030b55eea174a35a8"
},
{
"path": "dpr1.25/1920x1080/a/raw.json",
"sha256": "440d03adc9782905764e34e983c202f816d79059e81f298316e7a0d9d19f29ab"
},
{
"path": "dpr1.25/1920x1080/b/raw.json",
"sha256": "4110bbc9b49f5f5c47b340b4a3e6f91328fe14f10247f888fbb301f9f3ff6f80"
},
{
"path": "dpr1.5/1920x1080/a/raw.json",
"sha256": "69ba9333f235aab0cf6ef86ddf14f076d67e23aec22616b5a95dabd67680a19f"
},
{
"path": "dpr1.5/1920x1080/b/raw.json",
"sha256": "ac9200c9ed122b35ba448149f08e2a560b868e80e20fa92fc2864a3b3856a1f3"
},
{
"path": "dpr2/1600x1200/a/raw.json",
"sha256": "947921aac122dd18dab3227b83b47146a9016ac5591adaa956a6bd11d9c3aa64"
},
{
"path": "dpr2/1600x1200/b/raw.json",
"sha256": "7566628ff7822d7de6d9233cb4d2e94e3d129fd79df6920dd39cee3c96c07dac"
}
],
"csv_checked": {
"path": "WINDOW_GEOMETRY_POPUP_FRAME.csv",
"sha256": "205b2f62aa4d721967a011738fefb505e6a09bfc79e014d2479010756ed2ea77"
},
"cases": {
"1920x1080-dpr1.0": {
"width=500,height=400": {
"inner": [
500,
400
],
"outer": [
516,
480
],
"screen": [
4,
4
],
"vv_height": 400
},
"popup": {
"inner": [
1920,
968
],
"outer": [
1936,
1048
],
"screen": [
-8,
-8
],
"vv_height": 968
},
"width=500": {
"inner": [
500,
856
],
"outer": [
516,
936
],
"screen": [
4,
4
],
"vv_height": 856
},
"height=400": {
"inner": [
1280,
400
],
"outer": [
1296,
480
],
"screen": [
4,
4
],
"vv_height": 400
},
"width=300,height=200": {
"inner": [
300,
200
],
"outer": [
316,
280
],
"screen": [
4,
4
],
"vv_height": 200
},
"width=800,height=600": {
"inner": [
800,
600
],
"outer": [
816,
680
],
"screen": [
4,
4
],
"vv_height": 600
},
"left=100,top=100": {
"inner": [
1280,
856
],
"outer": [
1296,
936
],
"screen": [
100,
96
],
"vv_height": 856
},
"left=5000,top=5000": {
"inner": [
1280,
856
],
"outer": [
1296,
936
],
"screen": [
624,
96
],
"vv_height": 856
}
},
"1920x1080-dpr1.25": {
"width=500,height=400": {
"inner": [
500,
400
],
"outer": [
514,
478
],
"screen": [
3,
3
],
"vv_height": 400
},
"popup": {
"inner": [
1536,
752
],
"outer": [
1550,
830
],
"screen": [
-7,
-7
],
"vv_height": 752
},
"width=500": {
"inner": [
500,
662
],
"outer": [
514,
741
],
"screen": [
3,
3
],
"vv_height": 662.4000244140625
},
"height=400": {
"inner": [
1280,
401
],
"outer": [
1294,
479
],
"screen": [
3,
3
],
"vv_height": 400.79998779296875
},
"width=300,height=200": {
"inner": [
300,
200
],
"outer": [
314,
278
],
"screen": [
3,
3
],
"vv_height": 200
},
"width=800,height=600": {
"inner": [
800,
600
],
"outer": [
814,
678
],
"screen": [
3,
3
],
"vv_height": 600
},
"left=100,top=100": {
"inner": [
1280,
662
],
"outer": [
1294,
741
],
"screen": [
100,
75
],
"vv_height": 662.4000244140625
},
"left=5000,top=5000": {
"inner": [
1280,
662
],
"outer": [
1294,
741
],
"screen": [
242,
75
],
"vv_height": 662.4000244140625
}
},
"1920x1080-dpr1.5": {
"width=500,height=400": {
"inner": [
500,
400
],
"outer": [
515,
478
],
"screen": [
3,
3
],
"vv_height": 400
},
"popup": {
"inner": [
1280,
609
],
"outer": [
1295,
687
],
"screen": [
-7,
-7
],
"vv_height": 608.6666870117188
},
"width=500": {
"inner": [
501,
533
],
"outer": [
515,
611
],
"screen": [
3,
3
],
"vv_height": 533.3333129882812
},
"height=400": {
"inner": [
1153,
400
],
"outer": [
1168,
478
],
"screen": [
3,
3
],
"vv_height": 400
},
"width=300,height=200": {
"inner": [
300,
200
],
"outer": [
315,
278
],
"screen": [
3,
3
],
"vv_height": 200
},
"width=800,height=600": {
"inner": [
800,
594
],
"outer": [
815,
672
],
"screen": [
3,
0
],
"vv_height": 594
},
"left=100,top=100": {
"inner": [
1153,
533
],
"outer": [
1168,
611
],
"screen": [
100,
61
],
"vv_height": 533.3333129882812
},
"left=5000,top=5000": {
"inner": [
1153,
533
],
"outer": [
1168,
611
],
"screen": [
112,
61
],
"vv_height": 533.3333129882812
}
},
"1600x1200-dpr2.0": {
"width=500,height=400": {
"inner": [
500,
400
],
"outer": [
513,
476
],
"screen": [
2,
2
],
"vv_height": 399.5
},
"popup": {
"inner": [
800,
489
],
"outer": [
813,
565
],
"screen": [
-6,
-6
],
"vv_height": 488.5
},
"width=500": {
"inner": [
500,
428
],
"outer": [
513,
504
],
"screen": [
2,
2
],
"vv_height": 427.5
},
"height=400": {
"inner": [
720,
400
],
"outer": [
733,
476
],
"screen": [
2,
2
],
"vv_height": 399.5
},
"width=300,height=200": {
"inner": [
300,
200
],
"outer": [
313,
276
],
"screen": [
2,
2
],
"vv_height": 199.5
},
"width=800,height=600": {
"inner": [
787,
476
],
"outer": [
800,
552
],
"screen": [
0,
0
],
"vv_height": 475.5
},
"left=100,top=100": {
"inner": [
720,
428
],
"outer": [
733,
504
],
"screen": [
67,
48
],
"vv_height": 427.5
},
"left=5000,top=5000": {
"inner": [
720,
428
],
"outer": [
733,
504
],
"screen": [
67,
48
],
"vv_height": 427.5
}
}
}
}
+17
View File
@@ -0,0 +1,17 @@
[
{"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}},
{"nodeid": "tests/test_detectors_e2e.py::test_the_headless_detector_sees_no_headless_and_no_proxy_tell", "suite": "wrapper.e2e.suite.linux.1", "count": 1, "from_min_tests": 449, "reason": "removed with the vendored bundle whose licence notice cannot ship without a studied system's name (pm, 27/11)", "decided_by": "pm", "date": "2026-11-27"},
{"nodeid": "tests/test_realness_behind_a_declared_exit_e2e.py::test_the_vendored_detection_page_finds_nothing_behind_the_gateway", "suite": "wrapper.e2e.suite.linux.1", "count": 1, "from_min_tests": 449, "reason": "removed with the vendored bundle whose licence notice cannot ship without a studied system's name (pm, 27/11)", "decided_by": "pm", "date": "2026-11-27"},
{"nodeid": "tests/test_detectors_e2e.py::test_the_headless_detector_sees_no_headless_and_no_proxy_tell", "suite": "wrapper.e2e.suite.windows.1", "count": 1, "from_min_tests": 333, "reason": "removed with the vendored bundle whose licence notice cannot ship without a studied system's name (pm, 27/11)", "decided_by": "pm", "date": "2026-11-27"},
{"nodeid": "tests/test_realness_behind_a_declared_exit_e2e.py::test_the_vendored_detection_page_finds_nothing_behind_the_gateway", "suite": "wrapper.e2e.suite.windows.4", "count": 1, "from_min_tests": 274, "reason": "removed with the vendored bundle whose licence notice cannot ship without a studied system's name (pm, 27/11)", "decided_by": "pm", "date": "2026-11-27"},
{"nodeid": "tests/test_realness_behind_a_declared_exit_e2e.py::test_the_vendored_detection_page_finds_nothing_behind_the_gateway", "suite": "wrapper.e2e.realness", "count": 1, "from_min_tests": 32, "reason": "removed with the vendored bundle whose licence notice cannot ship without a studied system's name (pm, 27/11)", "decided_by": "pm", "date": "2026-11-27"}
]
+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":[]}
+15
View File
@@ -0,0 +1,15 @@
---
title: "docs/ source folder"
description: "This folder is the Jekyll source for the published documentation site. Read it there, with search and proper navigation, not as raw files."
nav_exclude: true
search_exclude: true
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/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.
+359
View File
@@ -0,0 +1,359 @@
---
title: "about:webrtc: read your real ICE candidates"
description: "Read your live ICE candidates in Firefox's built-in about:webrtc: tell a real LAN-IP leak from a masked .local host and a proxy-egress srflx line."
parent: "Network, Proxy and WebRTC"
grand_parent: "Guides"
nav_order: 17
---
# about:webrtc: read your real ICE candidates
A public leak site gives you a verdict and a couple of IP strings. Firefox ships a
page that gives you the raw material behind that verdict: every
[ICE candidate](https://datatracker.ietf.org/doc/html/rfc8445) the
browser gathered, its type, its address, its priority, and the timeline of when each
one arrived. It is `about:webrtc`, it is built in, it needs no extension, and it is
the first place to look after any change to a WebRTC or proxy setting.
This page is how to read it, what the three interesting candidate states look like
line by line, how to pair it with `about:config`, and how to reproduce the same read
from a Playwright script so a bad candidate fails a test instead of a real session.
## Why a leak site is not enough
A leak site aggregates. It runs the gathering for you, picks the addresses it thinks
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` 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
plausible NAT port and a priority in the range a real candidate uses.
A "No Leak" badge can be produced by the second and third states working correctly,
and it can also be produced by WebRTC being suppressed to the point that nothing is
gathered at all, which is [its own detectable signal](webrtc-leak-proxy.md). The
badge does not tell you which. The candidate list does.
## Opening about:webrtc and reading a session
Type `about:webrtc` into the address bar. The page is empty until a peer connection
exists, so open a page that creates one first, then come back to it. Each connection
gets a collapsible block; expand it and the two things worth reading are:
- **ICE Stats / the candidate table.** Every gathered candidate with its type
(`host`, `srflx`, `relay`), its address, its port, its protocol and its priority.
- **The ICE gathering log / timeline.** Timestamped lines showing when gathering
started, when each candidate was added, and when it finished. A candidate that
arrives suspiciously early (time zero, no round trip) is as much a tell as a wrong
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 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.
## The three states a leak site collapses into one
Three candidate states, plus a suppressed section that gathers nothing, all round to
the same one-word leak-site badge. The table below is how each reads in the candidate
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` 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 |
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 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 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:
```text
candidate:0 1 UDP 2122252543 3f1c9a7e-....local 51894 typ host
```
The `.local` name is what a stock Firefox emits by default, and a leak site reads it
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.** 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 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 `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 private address. If
`about:webrtc` shows a `192.168.x.x` host, this is the first pref to check.
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
it as an assertion that runs every session, and `InvisiblePlaywright` returns a real
Playwright `Browser`, so the same code that opens `about:webrtc` can also gather
candidates programmatically.
First, opening the built-in page under a seeded, proxied session so you can eyeball it:
```python
from invisible_playwright import InvisiblePlaywright
PROXY = {"server": "socks5://gate.example.com:1080", "username": "u", "password": "p"}
with InvisiblePlaywright(seed=42, proxy=PROXY) as browser:
page = browser.new_page()
# Gathering only starts after setLocalDescription, not at construction,
# so about:webrtc has nothing to show until the offer is set.
page.goto("https://example.com")
page.evaluate("""
async () => {
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());
}
""")
inspector = browser.new_page()
inspector.goto("about:webrtc")
print("Expand the session to read candidates + the gathering timeline")
inspector.wait_for_timeout(3000)
```
Then the same read as data, so a wrong candidate fails a check instead of a session.
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
PROXY = {"server": "socks5://gate.example.com:1080", "username": "u", "password": "p"}
GATHER = """
async () => {
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) => {
const cap = setTimeout(r, 25000);
const done = () => {
if (pc.iceGatheringState === "complete") { clearTimeout(cap); r(); }
};
pc.onicegatheringstatechange = done;
done();
});
pc.close();
return { lines, errors };
}
"""
with InvisiblePlaywright(seed=42, proxy=PROXY) as browser:
page = browser.new_page()
page.goto("https://example.com")
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"
# 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
candidate that fails this on one run fails it on the next, and you can [replay the
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 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 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
section that comes back empty passes every "no leak" test and is itself a signal, which
is the same false pass that a [verdict-based test hides and a field comparison
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 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.
## Short answers to the questions that lead here
**What is about:webrtc for?** It is Firefox's built-in inspector for live peer
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 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?** 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,
which is itself detectable. The candidate list tells you which; the badge does not.
**Can I read about:webrtc from Playwright?** You can navigate to it with `page.goto`,
and you can gather the same candidate strings programmatically with `page.evaluate`
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 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
- Mozilla's Firefox Source Docs, [Debugging WebRTC Calls](https://firefox-source-docs.mozilla.org/contributing/debugging/debugging_webrtc_calls.html),
retrieved 2026-08-28, for `about:webrtc` itself, read directly rather than through a
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.
**See also:** [what actually leaks through a proxy](webrtc-leak-proxy.md),
[the srflx fields beyond the address](webrtc-ice-candidate-spoofing.md), and
[everything that has to agree with your exit IP](timezone-proxy-mismatch.md).
---
*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.*
@@ -0,0 +1,250 @@
---
title: "Do accelerometer and gyroscope APIs leak on desktop?"
description: "Desktop Firefox doesn't leak sensor data. Why a spoofed desktop must never invent motion events, and how to verify the sensor surface matches your platform claim."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 32
---
# Do accelerometer and gyroscope APIs leak on desktop?
Short version: on a real desktop Firefox they do not leak, because there is
nothing to leak. The generic Sensor APIs that expose an accelerometer or a
gyroscope reading are a Chromium feature, and the older DeviceOrientation and
DeviceMotion events stay silent on a machine with no motion hardware.
So the interesting question is not "how do I hide my sensors" - it is "am I sure my
automated desktop is not inventing motion data a real desktop would never
produce". A desktop that emits accelerometer or gyroscope readings is a
mobile-or-fake tell, and it contradicts the platform string sitting right next
to it.
This page walks through what a genuine desktop exposes, why faking motion is a
consistency failure rather than a clever disguise, what the patched build
reports, and how to check the surface yourself.
## What desktop Firefox actually exposes
Desktop Firefox exposes almost nothing on this surface: the generic Sensor
API is absent entirely, and the older DeviceMotion/DeviceOrientation events
exist as properties but never fire without motion hardware. Those are the two
separate families of device-motion API, and they behave very differently
across engines.
The **generic Sensor APIs** - [`Accelerometer`](https://developer.mozilla.org/en-US/docs/Web/API/Accelerometer),
[`Gyroscope`](https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope),
`LinearAccelerationSensor`, `AbsoluteOrientationSensor` and the rest of that
family - are implemented in Chromium and, at time of writing, not in Firefox at
all. On a real Firefox, `typeof Accelerometer` is `"undefined"`. A page that
tries `new Gyroscope()` gets a `ReferenceError`. This is not a stealth trick;
it is simply what the engine ships.
The **[DeviceOrientation and DeviceMotion](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent) events** - `window.ondeviceorientation`,
`window.ondevicemotion` - do exist as properties in Firefox, because they are
part of an older, more widely shipped spec. But existing as a property is not
the same as firing. On a desktop with no accelerometer and no gyroscope, you can
add a `devicemotion` listener and it will never be called. The event surface is
present; the data behind it is silent.
So a truthful desktop Firefox answers the sensor question three ways at once:
the generic Sensor constructors are absent, the motion event handlers exist but
never fire, and `DeviceMotionEvent.requestPermission` (the iOS gesture gate) is
also absent because it is a mobile Safari construct. All three of those agree
with each other and with a `navigator.platform` of `Win32`.
## Why a desktop that emits motion is a tell
The failure mode here is not "a detector reads your accelerometer". It is a
detector noticing that your accelerometer exists at all when your platform says
it should not.
Detection on this surface is a cross-check, the same shape as every other
consistency check. A page reads `navigator.platform`, `navigator.userAgent` and
`navigator.oscpu`, decides you are claiming a Windows desktop, and then asks a
question a Windows desktop has a known answer to: does `window.DeviceMotionEvent`
ever produce a non-null reading? A desktop says no.
If yours says yes - if some
well-meaning spoof layer decided to synthesize plausible-looking motion so the
sensor "would not look dead" - you have just told the page you are a phone
wearing a desktop user agent, which is a contradiction no real device produces.
This is why the honest move is silence, not simulation. The instinct to fill
every surface with realistic data is exactly wrong here: on a desktop the
realistic data is no data. The values that have to agree are your platform, your
oscpu, your touch surface and your motion surface, and they agree by all
pointing at the same kind of machine.
If you want the platform side of that
in depth, see
[keeping navigator.platform and oscpu consistent](navigator-platform-oscpu-consistency.md);
the closely related touch side, where a desktop must report zero touch points,
is in [maxTouchPoints and pointer type](navigator-maxtouchpoints-pointer.md).
The general rule, which shows up on every fingerprint surface: a suppressed or
absent signal is not automatically a red flag. It is a red flag only when it
disagrees with what you claim to be. A desktop with no motion sensor is
correct. A mobile user agent with no motion sensor is the tell.
## What the patched build reports
invisible_playwright is a real Firefox patched at the C++ level and driven by
stock Playwright. On the sensor surface its job is the easy kind: report exactly
what a real Windows Firefox reports, which is silence.
The generic Sensor
constructors stay absent, the DeviceMotion and DeviceOrientation handlers exist
but never fire, and nothing invents a reading to fill the gap. Because the whole
identity is seed-derived, the platform string, the oscpu string, the touch
surface and this motion surface all come from one coherent machine rather than
from four independent guesses, so they agree by construction.
That is the point of the demonstration below. There is nothing to configure and
no sensor flag to set - the correct desktop behaviour is the default, and the
launch is the ordinary two lines.
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
report = page.evaluate("""async () => {
const motionFired = [];
window.addEventListener('devicemotion', e => motionFired.push(e), { once: true });
await new Promise(r => setTimeout(r, 300));
return {
platform: navigator.platform,
hasAccelerometerCtor: typeof Accelerometer !== 'undefined',
hasGyroscopeCtor: typeof Gyroscope !== 'undefined',
hasDeviceMotionEvent: 'DeviceMotionEvent' in window,
hasRequestPermission:
typeof (window.DeviceMotionEvent || {}).requestPermission === 'function',
motionEventsSeen: motionFired.length,
};
}""")
print(report)
# platform: 'Win32'
# hasAccelerometerCtor: False <- generic Sensor API is Chromium-only
# hasGyroscopeCtor: False
# hasDeviceMotionEvent: True <- handler exists...
# hasRequestPermission: False <- iOS-only, correctly absent
# motionEventsSeen: 0 <- ...but never fires: no motion hardware
```
Pass the same `seed` and the surrounding identity comes back identical every
run, so if you are bisecting a block you are changing one thing at a time rather
than chasing a fresh random machine on each attempt.
## Verify it yourself against a stock browser
Do not take the output above on faith - the useful test is a diff, not a
verdict. Open the same probe in a stock desktop Firefox on the same machine and
compare field by field. The two should agree on every line: same absent
constructors, same present-but-silent event handlers, same zero motion events.
Anything that differs between the automated browser and the stock one, other
than the exit address, is a candidate worth explaining.
Then extend the same probe to the neighbouring surfaces that have to tell the
same story - platform, oscpu, `maxTouchPoints`, screen. A detector reads them
together, so you should too.
The method for turning that comparison into
something trustworthy, including why one green run is not a pass and why an empty
result is a failure rather than a clean sheet, is in
[how to test bot detection without a false pass](how-to-test-bot-detection.md).
For the wider point that a missing signal counts as a signal, the
[screen-size and headless tells](screen-size-headless-tells.md) page covers the
same idea on a different surface.
## What this fixes and what it does not
Matching the sensor surface makes invisible_playwright look like a genuine
desktop Firefox on one more axis, and that is real: the fingerprint, the TLS
handshake and the driver layer read as an ordinary Firefox, which is why a
consistent identity passes most in-page detection. But the sensor surface is a
narrow win, and it is worth being blunt about the boundary.
Reporting the correct silence does nothing for the parts of a session that are
not browser properties at all. It does not clean your **IP reputation** - a
perfectly consistent desktop on a datacenter or already-flagged address still
loses on the address.
It does not manage **per-account quotas or rate limits** -
those are counted server-side regardless of how real the browser looks. And it
does not shape your **behaviour or timing** - a pointer that teleports, a form
filled in eighty milliseconds, or an agent that pauses in a shape that looks
like model latency will be flagged no matter how honest the sensor readings are.
Those are yours to supply: a clean residential exit and human pacing. If your
fingerprint is clean and you are still blocked, that separation is the whole
subject of [why you can be blocked with a clean fingerprint](why-blocked-with-a-clean-fingerprint.md).
So the honest framing: device-sensor consistency is one correct answer among
many, it costs you nothing here because the default is already right, and it is
necessary but nowhere near sufficient on its own.
## Conclusion
Accelerometer and gyroscope do not leak on desktop Firefox because desktop
Firefox has nothing to report: the generic Sensor APIs are Chromium-only, and
the motion events exist as handlers that never fire. The mistake to avoid is
over-correction - synthesizing motion data so the surface "does not look dead"
turns a correct silence into a contradiction with your platform string.
The patched build reports the same silence a real Windows Firefox does, keeps it
coherent with platform, oscpu and the touch surface because they all derive from
one seed, and leaves the parts it cannot touch - address, quotas, behaviour -
clearly labelled as yours.
## Short answers to the questions that lead here
**Does desktop Firefox expose accelerometer or gyroscope data?** No. The generic
Sensor API constructors are Chromium-only and absent in Firefox, and the older
DeviceMotion and DeviceOrientation events stay silent with no motion hardware.
**Is a silent sensor surface a red flag?** Only if it disagrees with what you
claim. A desktop with no motion sensor is correct; a mobile user agent with no
motion sensor is the tell.
**Should I fake motion events to look more real on a desktop?** No. That is the
one thing that breaks it - a desktop emitting accelerometer or gyroscope
readings contradicts its own platform string.
**Do the DeviceMotion event handlers exist at all in Firefox?** Yes, the
`ondevicemotion` and `ondeviceorientation` properties are present, but they never
fire without hardware, so a listener is simply never called.
**Does invisible_playwright need a sensor flag set for this?** No. Reporting the
correct desktop silence is the default; there is nothing to configure.
**Does getting the sensor surface right mean I will not be detected?** No. It
helps with fingerprint consistency, not with IP reputation, account quotas, rate
limits, or behaviour and timing, which you still have to supply.
## Sources
- W3C, [Generic Sensor API](https://www.w3.org/TR/generic-sensor/), retrieved
2026-08-28, for the base framework that `Accelerometer`, `Gyroscope` and the
rest of that family extend as concrete sensor interfaces, an engine feature
present in Chromium and not in Firefox, read from each engine's own
behaviour rather than from a summary.
- W3C, [Device Orientation and Motion](https://www.w3.org/TR/orientation-event/),
retrieved 2026-08-28, for the DeviceOrientation and DeviceMotion event model
and its attribute definitions.
- This project's release gates, which compare the patched build's surfaces field
by field against a stock desktop Firefox on the same machine.
**See also:** [navigator.platform and oscpu consistency](navigator-platform-oscpu-consistency.md),
[maxTouchPoints and pointer type](navigator-maxtouchpoints-pointer.md), and
[why you can be blocked with a clean fingerprint](why-blocked-with-a-clean-fingerprint.md).
---
*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.*
+223
View File
@@ -0,0 +1,223 @@
---
title: "Accept-Language header vs navigator.languages"
description: "Accept-Language and navigator.languages must agree: one Firefox pref feeds both, so an injection-only spoof that moves one and not the other is a clear tell."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 21
---
# Accept-Language header vs navigator.languages
A real browser reports its preferred languages in two completely separate places. It
sends an `Accept-Language` header on every HTTP request, decided by the network stack
before any page runs. And it exposes `navigator.language` and `navigator.languages` to
JavaScript, read from the page after it loads. Two surfaces, two code paths, and a
detector that reads both expects them to tell the same story.
They do, in a stock browser, because both come from one setting. The interesting failure
is what happens when a stealth layer touches only one of them.
## One preference feeds both surfaces
In Firefox the language preference lives in a single about:config string,
`intl.accept_languages`, with a value like `en-US,en`. That one string is the source for
two different consumers:
- The **network stack** formats it into the `Accept-Language` request header, adding the
quality values (`en-US,en;q=0.5`) a browser normally attaches.
- The **JavaScript engine** parses the same string into the `navigator.languages` array
and its first element into `navigator.language`.
Because both read the same preference, they cannot disagree. Change the preference and
the header changes and the array changes, together, in the same load. There is no way,
inside a genuine browser, to make the header say one thing and the property say another,
because there is only one value and both surfaces quote it.
That single-source property is worth stating plainly, because it is exactly the invariant
a naive spoof breaks.
## Why an injection-only spoof splits the two
A large class of stealth tooling works by running JavaScript in the page before the
site's own code: it redefines `navigator.languages` with `Object.defineProperty`, or it
patches the getter. That reaches exactly one of the two surfaces. It can make
`navigator.languages` return `["en-US", "en"]` to any script that asks.
It never touches the header. The `Accept-Language` header was formatted and sent by the
network layer, which is compiled C++ and does not read the JavaScript you injected. So
the request that fetched the page carried whatever the underlying browser's real
preference was, while the property in the page now claims something else.
The split lines up field by field like this:
| Surface | Real browser | Injection-only spoof |
|---|---|---|
| `Accept-Language` header | formatted from the language preference | unchanged real value (sent by the network layer) |
| `navigator.languages` | parsed from the same preference | overridden in the page |
| Do the two agree? | yes, one shared source | no, they diverge |
A detector does not need to be clever to catch this. It reads the `Accept-Language` it
received on the request, reads `navigator.languages` from a script it served, and
compares the two strings. When the header says one language set and the property says
another, that contradiction is the tell. It is the same shape of mistake as
[running two spoofers that answer the same question differently](playwright-detected-as-bot.md):
one value moves, its twin does not, and the gap between them is louder than either value
alone.
The same reasoning extends to the request headers a browser sends about itself, which is
why [the Sec-Fetch and client-hint headers](client-hints-sec-fetch.md) have to line up
with the rest of the identity for the same structural reason: a header the page cannot
see is a header an injection cannot fix.
## How this project keeps header and property in agreement
Because the fingerprint is applied at the browser level, not in the page, the
language is set through the same native preference a real profile uses, so both surfaces
read from it. There is nothing to inject into the page and nothing to keep in sync: the
header and the array are the same value formatted twice, by the browser, the way they
always are.
The code that drives it is stock Playwright. Switching a normal Playwright script over is
the launch line and nothing else:
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
langs = page.evaluate("navigator.languages")
print("navigator.languages =", langs)
```
The `browser` returned is a real Playwright `Browser`, so every method you already use
works unchanged. The seed makes the whole identity reproducible: the same seed yields the
same language set, the same GPU, the same screen, run after run, which is what lets a
failure be replayed instead of guessed at.
## Prove they match, do not assume it
The point of this page is a check you can run, not a claim to trust. Capture the
`Accept-Language` header the browser actually sent, read `navigator.languages` from the
loaded page, and compare the two directly. Use any endpoint that echoes request headers
back; the snippet below reads the header off the outgoing request instead, so it needs no
particular server:
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
sent_header = {}
def capture(request):
if "accept-language" in request.headers:
sent_header["value"] = request.headers["accept-language"]
page.on("request", capture)
page.goto("https://example.com")
header = sent_header.get("value", "")
array = page.evaluate("navigator.languages")
print("Accept-Language header :", header)
print("navigator.languages :", array)
# The header's primary tag and the array's first entry must be the same language.
header_primary = header.split(",")[0].split(";")[0].strip()
assert header_primary == array[0], (header_primary, array[0])
print("header and property agree")
```
Follow the method from
[how to test whether your browser is detected](how-to-test-bot-detection.md): assert the
values are present and agree, not asserting nothing looks wrong. A property that
comes back empty, or a header your capture never saw, is a failure and not a pass. Run it
against a stock browser on the same machine too, and the header and array should match
there in exactly the same way.
## Match the language to the exit, the same way you match the timezone
Header and property agreeing with each other is necessary but not sufficient. Both of
them also have to agree with where the request appears to come from.
A session whose exit address resolves to one country while the browser advertises the
language of another is a contradiction of the same family as
[a timezone that does not match the proxy](timezone-proxy-mismatch.md). The two values
are individually plausible and jointly wrong, which is precisely what field-by-field
comparison catches and a single-value check does not. If you
[rotate through several exits](how-to-rotate-proxies-playwright.md), the language set is
one more field that should track the exit rather than staying pinned to whatever the host
machine happens to prefer. Pass the proxy at launch and let the identity be built to fit
it, rather than setting the language by hand and hoping it lines up:
```python
from invisible_playwright import InvisiblePlaywright
proxy = {"server": "socks5://gate.example.com:1080", "username": "u", "password": "p"}
with InvisiblePlaywright(seed=42, proxy=proxy) as browser:
page = browser.new_page()
page.goto("https://example.com")
print("languages =", page.evaluate("navigator.languages"))
```
## Conclusion
The `Accept-Language` header and `navigator.languages` are read from one browser
preference, so in a genuine browser they cannot diverge. That is the whole reason the
pair is worth checking: a stealth layer that lives in the page can move the property and
never the header, and the gap it opens is a cleaner signal than any single value. Set the
language where the browser itself reads it, keep it consistent with the exit, and verify
by comparison rather than assumption.
## Short answers to the questions that lead here
**Do Accept-Language and navigator.languages have to match?** Yes. In a real browser both
are formatted from one preference, so a mismatch is a contradiction that only a spoof
produces.
**Why does setting navigator.languages in JavaScript not work?** Because it reaches only
the page-facing property. The `Accept-Language` header was already sent by the network
layer, which does not read your injected script, so the header still carries the old
value.
**How do I set the browser language in Playwright?** Let the fingerprint layer set the
native preference so both surfaces read from it, rather than overriding the property in
the page. Here the language comes with the seeded identity.
**Should the language match the proxy country?** It should be consistent with the exit,
the same way the timezone has to be. A language from one continent on an exit in another
is a mismatch a detector can pair up.
**How do I check the two agree?** Capture the `Accept-Language` header the browser sent,
read `navigator.languages` from the loaded page, and compare the primary language tag of
each. Do it against a stock browser as well.
**Does the q-value in the header matter?** It should be present. A real browser attaches
quality values like `;q=0.5`; a header that is a bare comma list with none is itself
slightly unusual.
## Sources
- Firefox's `intl.accept_languages` preference, which is the single value both the request
header and the `navigator.languages` array are formatted from.
- [MDN: `Navigator.languages`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages)
and [MDN: `navigator.language`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language),
the page-facing properties an injection redefines.
- [MDN: the `Accept-Language` request header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Language),
including the quality (`q`) values a browser attaches, sent by the network stack before any page script runs.
- This project's own realness gates, which compare request headers against in-page
properties field by field rather than reading either in isolation.
**See also:** [when the timezone does not match the proxy](timezone-proxy-mismatch.md),
[when the TLS fingerprint and the user agent disagree](tls-fingerprint-user-agent-mismatch.md),
[the checklist for being detected on one site](playwright-detected-as-bot.md), and
[how to test whether your browser is detected](how-to-test-bot-detection.md).
---
*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.*
+24
View File
@@ -0,0 +1,24 @@
---
title: "AI agent retry loops trip rate limits, not fingerprints"
description: "Retry and re-plan loops multiply requests into a volume signal; throttling belongs in the agent loop. This page moved to the invisible_playwright_mcp wiki."
parent: "AI Agents and Frameworks"
grand_parent: "Guides"
nav_order: 17
---
# AI agent retry loops trip rate limits, not fingerprints
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/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.
No browser property changes a request count. Throttle in the loop that
produces the requests.
Related mechanism pages that stay on this wiki:
[why you can be blocked with a clean fingerprint](why-blocked-with-a-clean-fingerprint.md)
and [ASN and IP reputation in bot detection](asn-and-ip-reputation-in-bot-detection.md).
+26
View File
@@ -0,0 +1,26 @@
---
title: "Why AI browser agents have their own timing signal"
description: "An LLM loop emits machine-regular action gaps and instant pointer jumps - a behavioral signal no fingerprint fixes. This page moved to the invisible_playwright_mcp wiki."
parent: "AI Agents and Frameworks"
grand_parent: "Guides"
nav_order: 10
---
# Why AI browser agents have their own timing signal
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/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
pointer arc between actions is the engine's job, and this engine humanises it;
the step-to-step rhythm is produced by the agent loop, which no fingerprint
work reaches.
The mechanism layer stays on this wiki:
[mouse-dynamics behavioural biometrics](mouse-dynamics-behavioural-biometrics.md),
[keystroke timing detection](keystroke-timing-detection-playwright.md), and
[human-like mouse movement](human-mouse-movement.md).
+279
View File
@@ -0,0 +1,279 @@
---
title: "AI browser agents and stealth: what fits and what does not"
description: "Most AI browser agents drive Chromium over CDP, so a stealth Firefox does not drop in. What each tool exposes, checked from source, and what applies regardless."
parent: "AI Agents and Frameworks"
grand_parent: "Guides"
nav_order: 1
---
# AI browser agents and stealth: what fits and what does not
Most AI browser agents cannot run a stealth Firefox, because they speak the Chrome
DevTools Protocol (CDP) and Firefox does not answer it. The few built on Playwright can
select Firefox in principle, but rarely expose a custom binary. And on a server the engine
is usually not what gets the agent blocked in the first place.
If your agent works on your laptop and gets challenge pages on a server, there are two
separate questions and they get answered as one. The first is whether you can swap the
browser underneath. The second is whether swapping it would fix your problem.
For most of these tools the first answer is no, for a reason that is structural rather
than accidental. The second answer is often no as well, and for a different reason.
This page is what each project actually exposes, checked by reading its source, the split
that decides all of it, what applies no matter which engine you run, the signal specific
to agent-driven sessions, and the one route that does accept a different engine.
## The split that decides everything: CDP or Playwright
Browser automation divides into two families and the boundary matters more than any
configuration option.
**Tools that speak the Chrome DevTools Protocol** talk directly to a Chromium-family
browser. CDP is Chromium's own protocol. Firefox does not implement it in the way these
drivers expect, so an `executablePath` pointing at a Firefox build does not produce a
working session: the driver would be speaking a language the browser does not answer.
**Tools built on Playwright** go through an abstraction that already supports
[three engines](https://playwright.dev/docs/browsers) - Chromium, Firefox and WebKit.
Swapping the binary is then a question of whether the tool exposes the launch option,
not of whether the protocol matches.
Almost every AI browser agent is in the first family. That is a reasonable engineering
choice, since CDP gives fine-grained control that agent loops want, and it is also why
"can I use a stealth Firefox with my agent" usually has a short answer.
## What each project actually exposes
Only two of these five projects expose a custom-binary option, and both expect a Chromium
build. The table below is read from each repository on 2026-07-27 and 2026-07-28, with
star counts from the same check.
| Project | Stars | Family | Custom binary | Firefox |
|---|---|---|---|---|
| browser-use | 107k | CDP, Chrome | `executable_path` on `BrowserProfile` | no |
| Stagehand | 24k | CDP, Chromium | `executablePath`, documented | no |
| Skyvern | 23k | CDP | not exposed | no |
| crawl4ai | 75k | Playwright | **no `executable_path`** | `browser_type="firefox"` |
| Maxun | 17k | Playwright | not exposed | not exposed |
Three others that come up in these searches are not Playwright tools at all:
`agent-browser` and `obscura` are written in Rust, and `BrowserOS` has no Playwright
dependency in its manifest. Star count does not tell you what a project drives.
## browser-use
The configuration is real: `executable_path`, `channel`, `user_data_dir`, `proxy`, `args`
and `headless` on `BrowserProfile`. The surrounding code is Chrome executable discovery
and Chrome profile handling, and the channel type is a Chromium channel.
The useful move there is pointing `executable_path` at your **real installed Chrome**
instead of the bundled Chromium, and pointing `user_data_dir` at a profile that has been
used. [The full version is here](browser-use-detection.md).
## Stagehand
Exposes `executablePath` and documents it, which is more than most. The rest of the
codebase is CDP: local CDP discovery, CDP tailing, a CDP client. Chromium references
outnumber Firefox ones by a wide margin, and the Firefox mentions are in an OpenAPI
schema and a client for someone else's API, not in a launch path.
So the option exists and it expects a Chromium build.
## Skyvern
CDP throughout. There is no exposed way to point at a different binary, and the protocol
would not match if there were.
## crawl4ai
The only one of these built on Playwright with Firefox genuinely selectable, through
`browser_type="firefox"`. What is missing is any field naming a binary, so you get
Playwright's managed build. Its own stealth mode applies `playwright-stealth`, which its
documentation notes does not support Firefox, so that combination is largely inert.
[The full version is here](crawl4ai-stealth-custom-browser.md).
## Maxun
Playwright is in the manifest and no executable path is exposed. As a no-code platform
that is a coherent product decision instead of an oversight.
## What applies regardless of the engine
Swapping the browser engine changes none of the tells a server leaks, and those tells
matter more than the binary question because they are true for every tool, CDP or
Playwright. On a server, all of these are true at once and none of them is about
automation:
- **No GPU**, so WebGL reports a software renderer.
[What those strings give away](webgl-renderer-strings.md).
- **A container font set** that does not match the claimed platform.
[Why installing more is not the fix](headless-fonts-differ.md).
- **No audio device**, and no speech voices.
[The seven audio values](audiocontext-fingerprinting.md) and
[the voice list](speech-synthesis-voices.md).
- **A screen with no taskbar** and a default resolution.
[The relationships that must hold](screen-size-headless-tells.md).
- **Codec support** describing a slim build, including whether decoding is hardware
accelerated. [Three surfaces in one API](codec-fingerprinting.md).
- **A TLS handshake** decided before any of this.
[Which nothing above the network stack can reach](ja3-ja4-tls-fingerprint.md).
Swapping the browser engine does not change a single item on that list. If your agent
fails in a container and works on your laptop, this is almost certainly where the
difference is, and it is the same for a CDP tool and a Playwright tool.
[The container walkthrough](playwright-docker-detection.md) goes through it in order.
## The signal that is specific to agents
One signal no fingerprint work touches is the rhythm of the agent loop itself. An agent
thinks between actions: it reads the page, calls a model, waits, then acts. The resulting
rhythm has a shape no person produces.
- Long pauses clustered around **model latency** rather than around reading speed.
- **No movement during the pause.** A person drifts, scrolls slightly, hovers. An agent's
pointer is motionless for two seconds and then arrives.
- Actions landing **dead centre** on targets, because coordinates come from an
accessibility tree rather than from a hand.
- **No wasted actions.** People hover over things they do not click and change their
minds.
This explains blocks that arrive **after** a few interactions rather than at first load,
and that timing is the cheapest diagnostic you have.
[Human-like pointer motion](human-mouse-movement.md) covers what can be done about the
mechanical half, and [the cadence between actions gets a page of its own](ai-agent-timing-signal.md),
because smoothing a single click's path does not smooth the gaps between clicks.
## This stopped being a theoretical concern in 2026
Agent-driven browsing used to be rare enough that most detection stacks didn't bother
building a dedicated signal for it. That changed this year, and it changed from two
directions that solve the problem in opposite ways. Fingerprint, the commercial
fingerprinting vendor behind FingerprintJS, shipped a product in early 2026 that treats
"is this an authorized AI agent" as its own question: it verifies agents from partner
providers such as OpenAI, AWS AgentCore and Browserbase through a cryptographic
signature on their HTTP requests, not by scoring how they behave.
Academic research published the same year took the opposite route. A large-scale study
deployed honeysites behind several real anti-bot mechanisms, ran six LLM-based web
agents against them, and found every agent distinguishable from a human, and from each
other, using network, HTTP and browser-level fingerprinting alone, with no behaviour
involved. The finding that matters most for this page is a third one: the stealth
features some of those agents carried often made them easier to single out, not harder.
The practical upshot for anyone running an agent against a real site: "is this an
agent" now has a funded answer on the fingerprint side and on the authentication side
alike, independent of whatever engine sits underneath.
Neither 2026 development actually measures the timing and pointer-behaviour signal from
the previous section, so treat that signal as resting on its own reasoning, not on
outside confirmation. What both developments do confirm is that an agent's technical
identity, not just its behaviour, is now something sites are actively paid to notice,
which raises the cost of getting either the engine's fingerprint or the loop's rhythm
wrong.
## The route that does accept a different engine
If you want an engine whose fingerprint is set in its own source and you want an agent to
drive it, the working combination today is MCP rather than CDP.
Microsoft's `playwright-mcp` accepts a browser and an executable path and speaks MCP, so
any agent framework that talks MCP can drive a patched Firefox through it.
[That integration is written up here](integrations/playwright-mcp.md).
The trade is explicit: you give up the agent loop of whichever framework you were using
and get an engine-level fingerprint. Whether that is worth it depends on which of the two
problems at the top of this page you actually have.
## Conclusion
The honest summary is that the agent ecosystem standardised on CDP, and CDP means
Chromium. A Firefox engine does not drop into browser-use, Stagehand or Skyvern, and
crawl4ai is one missing field away rather than one protocol away.
More importantly, for most people the engine is not the binding constraint. The container
is. Every item in the machine list above is true whichever tool you picked, and none of
them is fixed by a stealth setting inside it.
Work out which problem you have first: a block at the first request points at the machine
or the address, and a block after several actions points at behaviour.
## Short answers to the questions that lead here
**Can I use a stealth Firefox with browser-use?** No. It drives Chrome over CDP.
**Does Stagehand support a custom browser?** Yes, `executablePath`, and it expects a
Chromium build.
**Can crawl4ai use a patched engine?** Not through configuration. It accepts
`browser_type="firefox"` but has no field naming a binary.
**Why does my agent work locally and fail in Docker?** Because the container answers
differently about the GPU, the fonts, the audio device and the screen. The agent is
identical.
**How do you make an AI agent undetectable?** You do not, as a single setting. Three
separate problems each need their own fix: the engine fingerprint (what patching Firefox
at the C++ level answers), the machine surfaces a container gives away regardless of
engine (GPU, fonts, audio, screen), and the agent loop's own rhythm, which no fingerprint
patch touches. Fixing only the first and calling the agent undetectable is the mistake
this whole page is about.
**Which AI agent framework is most stealth-friendly?** The question is usually the wrong
one. Pick on the agent loop, then fix the machine, then consider the engine.
**Is there any agent route to an engine-level fingerprint?** Two, and they are not
equivalent. `uvx invisible-playwright-mcp` launches through the engine, so the
seeded profile and the humanised pointer come with it. Microsoft's own Playwright
MCP server takes a browser and an executable path, which runs the engine but
carries no `firefox_user_prefs`, so every session on a given build shares one
identity.
**See also:** [browser-use in detail](browser-use-detection.md),
[crawl4ai in detail](crawl4ai-stealth-custom-browser.md),
[Playwright MCP](integrations/playwright-mcp.md), and
[the checklist for being detected on one site](playwright-detected-as-bot.md).
## Sources
- `browser_use/browser/profile.py` and `chrome.py`, from browser-use's own repository,
[`browser-use/browser-use`](https://github.com/browser-use/browser-use); Stagehand's
`packages/core/lib/v3/launch/local.ts` and its browser configuration docs, from
[`browserbase/stagehand`](https://github.com/browserbase/stagehand); Skyvern's CDP
client, from [`Skyvern-AI/skyvern`](https://github.com/Skyvern-AI/skyvern);
`crawl4ai/async_configs.py`, from
[`unclecode/crawl4ai`](https://github.com/unclecode/crawl4ai); Maxun's package
manifest, from [`getmaxun/maxun`](https://github.com/getmaxun/maxun). All read
2026-07-27 and 2026-07-28.
- Star counts from the GitHub API on the same dates.
- The three tools named as not built on Playwright: Vercel's
[`agent-browser`](https://github.com/vercel-labs/agent-browser), Obscura's own
repository at [`h4ckf0r0day/obscura`](https://github.com/h4ckf0r0day/obscura), and
BrowserOS's own repository at
[`browseros-ai/BrowserOS`](https://github.com/browseros-ai/BrowserOS), each checked
for its implementation language and its manifest's dependencies.
- [crawl4ai's own documentation for stealth
mode](https://docs.crawl4ai.com/advanced/advanced-features/), and the
[`playwright-stealth`](https://github.com/Mattwmaster58/playwright_stealth) package it
applies, including crawl4ai's own statement that the underlying evasion modules do not
support Firefox.
- Microsoft's own [`playwright-mcp`](https://github.com/microsoft/playwright-mcp), for
the browser and executable-path options it accepts over MCP.
- Fingerprint's own product announcement,
[Identifying authorized AI agents vs bots on the web](https://fingerprint.com/blog/product-update-ai-agent-detection/),
retrieved 2026-08-28, for the cryptographic-signature verification product it shipped
in early 2026.
- The academic paper, ["On the Internet, Nobody Knows You're an LLM Bot: Unmasking Web
Agents with Multi-Layer Fingerprinting"](https://arxiv.org/abs/2606.30119), retrieved
2026-08-28, for the network, HTTP and browser-level fingerprinting work that
distinguishes six LLM-based web agents from humans and from each other, and for its
finding that stealth features often increased their detectability instead of reducing
it.
- The machine-level surfaces are each documented on their own page, linked above.
---
*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.*
+252
View File
@@ -0,0 +1,252 @@
---
title: "How Akamai Bot Manager actually works"
description: "Akamai's own documentation plus a real GitHub issue, read together: what the sensor collects, how the _abck cookie and Bot Score work, and why a matching TLS/JA3/JA4 fingerprint was not enough to pass it."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 27
---
# How Akamai Bot Manager actually works
Akamai Bot Manager is not one check, it is a scoring pipeline. A JavaScript sensor
collects on the order of a hundred browser and device signals, encodes them into a
payload, and a server-side model combines that payload with the request's network-level
fingerprint into a Bot Score from 0 (human) to 100 (bot). Passing one layer of that
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 a separate open-source project
that also patches Firefox at the C++ level for automation, filed
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
through how Akamai's own documentation and third-party reverse-engineering describe the
mechanism, then works through that issue in detail, because it is the clearest public
evidence that a matching network fingerprint is necessary and not sufficient.
This page is built from Akamai's own product documentation, two independent
technical write-ups that reverse-engineered the sensor payload, and the GitHub issue
above, all retrieved 2026-08-30. Where Akamai's own docs are deliberately vague about
internals, which they are, the page says so instead of filling the gap with a guess.
## What Akamai actually scores
Akamai's own materials describe Bot Manager as sitting a step above basic protections,
aimed at "APIs or transactional pages that handle things like login, signup, or
checkout." The product page states plainly that it "generates a score from 0 (human) to
100 (bot), looking at all anomalies, starting with the very first request," and that the
underlying models are built from "billions of bot requests and logins daily."
Akamai's technical documentation names five detection methods, and only some of them
involve a browser at all:
| Method | What it does |
|---|---|
| Akamai-validated bots | A maintained list of known bots (roughly 1,400 as of Akamai's own count), Akamai identifies them for you |
| Custom-categorized bots | You define your own categories and rules |
| Transparent detection | Evaluates traits of the request itself, without the client knowing it is being tested |
| Active detection | An interaction that only a real browser typically produces |
| Behavioral detection (Premier tier) | Movement patterns on specific endpoints like login or checkout |
Transparent and active detection are the two that a patched browser engine is actually
answering. Behavioral detection is a separate problem entirely, closer to
[mouse-dynamics biometrics](mouse-dynamics-behavioural-biometrics.md) than to anything a
C++ patch to the rendering engine touches.
## The sensor pipeline, step by step
Akamai does not publish the internal format of what it collects; a Scrapfly write-up on
the mechanism and a GitHub reverse-engineering project both had to work it out from the
obfuscated client script. Read together, the pipeline looks like this:
1. **The sensor script loads.** One reverse-engineering write-up
([`Edioff/akamai-analysis`](https://github.com/Edioff/akamai-analysis)) describes a
roughly 512KB obfuscated JavaScript payload that decrypts an internal string table at
runtime before it does anything else, which is itself a small piece of anti-analysis
design.
2. **Signal collection.** Both sources independently land on the same rough figure: over
a hundred signals, grouped into device environment (screen size, color depth,
hardware concurrency, device memory, platform), the browser API surface (navigator
fields, plugin behavior, WebGL renderer and vendor strings, canvas rendering
behavior), behavioral telemetry (mouse paths, click cadence, key timing, scroll
rhythm), timing metrics (DOM milestones, script execution intervals), and the results
of small JavaScript and Web Crypto challenges used to confirm the script actually ran
rather than being replayed.
3. **The payload is generated and encoded.** Described elsewhere as involving PRNG-based
shuffling and substitution seeded from a cookie-derived hash in the newer protocol
version, which is a deliberate anti-tampering design, not just minification.
4. **It is posted back.** Reverse-engineering write-ups describe the payload going to a
validation endpoint under a deployment-specific path; Akamai's own documentation does
not publish this, consistent with treating the whole exchange as "tamper-sensitive."
5. **The server responds with an `_abck` cookie.** Akamai's own language for it is
"mitigation state," and it is explicit that the internal format is deployment-specific
and "should [not be expected] to remain valid" if manually edited or reused across
sessions.
6. **Every later request is judged against that cookie's state**, not just against a
fresh score. Documented failure modes include the cookie expiring, a "replay
mismatch" when the same cookie shows up from a different IP or TLS profile, integrity
failures from a modified cookie string, and "behavioral conflicts where cookie history
contradicts runtime signals."
That last point matters for automation specifically: a session's history is part of what
gets scored, not only its current request. A browser that looks perfect on the first
page load and then behaves inconsistently three requests later is scored against its own
earlier behavior, not just against a static bar.
## What the network layer alone tells Akamai
One useful breakdown of the system groups everything Akamai evaluates into roughly seven
categories: IP reputation, TLS fingerprint consistency, HTTP protocol behavior, cookie
state, JavaScript sensor execution, browser fingerprint integrity, and behavioral
continuity across requests. The network-layer pieces are read the same way [JA3/JA4 and
HTTP/2 fingerprinting are described elsewhere on this
site](ja3-ja4-tls-fingerprint.md): TLS version, cipher and extension ordering, elliptic
curve data for the TLS side, and SETTINGS frame values plus pseudo-header ordering
(`:method`, `:authority`, `:scheme`, `:path`) for the HTTP/2 side.
That is one category out of roughly seven. Matching it removes one input to the score.
It does not remove the other six.
## The case that shows "matching fingerprint" is not "passing"
Here is what the GitHub issue actually contains, read directly, not summarized
from memory.
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
run the check this whole article leads with: they compared JA3, JA4, and Akamai's own
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 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 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,
none of which changed the outcome. They did find one concrete inconsistency worth
naming: Playwright reported a viewport of 1280x720, while the page's own JavaScript read
`window.innerWidth` as 1920. A real browser does not produce that split between what the
automation layer thinks the viewport is and what a script running inside the page reads
back. Whether that specific mismatch was the thing Akamai's sensor actually scored, the
issue does not settle. It is offered as a lead, not a proof.
The reporter also named four specific compiled patches as suspects, by filename:
`no-css-animations.patch`, `canvas-spoofing.patch`, `font-list-spoofing.patch`, and
`navigator-spoofing.patch`. Naming a patch as a suspect is not the same as demonstrating
it caused the block, and nobody in the thread went on to confirm which one, or whether
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 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
noted that the mainline had since moved to a much newer Firefox base version. The issue
is closed. No maintainer in the thread ever stated which mechanism, out of the four
named patches, the viewport inconsistency, or something never named at all, was actually
responsible. What is documented is that an older patched build was blocked on a network
fingerprint that matched a passing browser, and a newer patched build on the same engine
family was not.
## What this means if you patch a browser engine
Read narrowly, this is a story about one build lagging behind on one site. Read for the
lesson it actually demonstrates, it is broader: engine-level patching, compiling Firefox
or Chromium from source and setting the fingerprint in C++ rather than overriding it from
JavaScript, narrows the gap between an automated session and a real browser. It does not
automatically close it. The TLS and HTTP/2 layer read identical in this case, which is
exactly the layer that
[cannot be patched from a script and is usually the hardest thing to fake](ja3-ja4-tls-fingerprint.md),
and Akamai still told the two sessions apart. Whatever did the telling lived somewhere
else in that roughly-seven-category pipeline: the JavaScript-collected browser
fingerprint, the behavioral signal, or a reputation signal tied to the session's history
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 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
has not been tested against the site named in that issue, and even if it had, one clean
result would prove exactly as little as this build's years of matching TLS fingerprints
protected it from this block. The honest position is the one this whole page has been
building toward: a matching fingerprint at any single layer is necessary and not
sufficient, for any tool that takes this approach, including this one.
## Short answers to the questions that lead here
**What is the `_abck` cookie?** Akamai's own term for it is "mitigation state." It
represents the outcome of the sensor exchange and is checked on every later request
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 case had a byte-identical network fingerprint and was still
blocked.
**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.
**Does this mean invisible_playwright has the same problem?** There is no evidence either
way. The issue was filed against a different project, on a site this project has not
been tested against. What generalizes is the principle, not the specific outcome.
**What is Akamai's Bot Score?** A 0 to 100 number Akamai's own product page describes as
built from "all anomalies, starting with the very first request," derived from the
sensor payload plus network and reputation signals, not from any single check.
**Can any browser automation tool guarantee it beats Akamai Bot Manager?** No, and a tool
that claims it should be treated as making a promise it cannot verify either. This
project does not sell that claim about this or any other commercial anti-bot system.
**Where does most of Akamai's actual signal come from, if not the network layer?** From
the parts that are hardest to verify from outside: the JavaScript-collected browser and
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:** [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),
for where a JavaScript-collected fingerprint sits among the other layers.
## Sources
- 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
methods](https://techdocs.akamai.com/cloud-security/docs/detection-methods) and [About
bots](https://techdocs.akamai.com/cloud-security/docs/about-bots) on
techdocs.akamai.com, retrieved 2026-08-30, for the five documented detection methods.
- Akamai's [Bot Manager product page](https://www.akamai.com/products/bot-manager),
retrieved 2026-08-30, for the 0-100 Bot Score description.
- [Akamai Bot Manager: Understanding `_abck` Cookies and Sensor
Data](https://scrapfly.io/blog/posts/akamai-bot-manager-understanding-abck-cookies-and-sensor-data),
Scrapfly, retrieved 2026-08-30, for the sensor signal categories, the `_abck` cookie's
documented failure modes, and the seven-category scoring breakdown.
- [`Edioff/akamai-analysis`](https://github.com/Edioff/akamai-analysis), GitHub, retrieved
2026-08-30, a reverse-engineering write-up of Bot Manager's client-side sensor script,
for the signal count, the pipeline steps, and the obfuscation details.
---
*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.*
@@ -0,0 +1,131 @@
---
title: "Alternative Chromium browsers for automation: what differs"
description: "Brave, Edge, Opera, Vivaldi, Ungoogled: what actually changes between the forks, and why none of it touches the CDP tells that really decide detection."
parent: "Comparisons"
nav_order: 40
---
# Alternative Chromium browsers for automation, and the one question that matters
Brave, Microsoft Edge, Opera, Vivaldi, Ungoogled Chromium: all of them build on
the open-source Chromium project, and all of them are Chromium for automation
purposes in the way that matters most. This page is about what actually
changes between the forks, and the one thing that does not.
## What Chromium being the base actually means
Every fork above takes Chromium's rendering engine (Blink), its JavaScript
engine (V8), and most of its automation surface (CDP, the same protocol
Playwright and Puppeteer speak to Chrome) largely unchanged. What each fork
adds is UI chrome, some default settings, and in a couple of cases genuine
engine-level changes - which is the part that matters and the part most
comparisons skip.
## What actually differs
**Ungoogled Chromium** strips Google-service integration and telemetry calls.
The rendering and automation surface underneath is stock Chromium. For
detection purposes this changes almost nothing observable from a page; it
changes what phones home, not what the DOM reports.
**Brave** adds a built-in ad and tracker blocker and fingerprinting
countermeasures aimed at *passive, cross-site* tracking - randomizing certain
canvas and audio outputs per session by default. That is a genuine engine-level
difference, and it cuts both ways for automation: it can make canvas-based
fingerprint matching noisier, but a browser that randomizes its own canvas
output on every load is itself an unusual, identifiable behaviour to a detector
that checks for consistency across repeat visits.
**Edge, Opera, Vivaldi** are UI and feature layers - vertical tabs, built-in
VPNs, sidebar panels - on essentially stock Chromium/Blink underneath, with UA
strings that identify them as themselves rather than as Chrome.
## The one question that matters, and none of these answer it
**Is the browser being driven by an automation protocol, and does that show?**
Every fork above, driven by Playwright or Puppeteer over [CDP](bidi-vs-cdp-detection.md),
inherits the same automation surface Chrome does, because CDP is the layer
Playwright actually talks to - the browser skin on top is close to irrelevant
to what CDP exposes. [`navigator.webdriver`](navigator-webdriver-explained.md),
the CDP-specific runtime properties, the automation flags: present in
Brave-under-Playwright exactly as in Chrome-under-Playwright, because they
come from the driving protocol, not the fork.
Picking a different Chromium skin to solve a detection problem is picking a
different paint color to fix an engine problem. The tells that matter live in
the automation layer, not in whether the tab bar says Brave or Edge.
## Where the fork does matter
- **Feature availability for your test surface.** If you are testing behaviour
specific to Edge's rendering quirks or Brave's Shields, you need that
specific browser, automation-detectability aside.
- **A UA string that must say the right thing.** If a site branches logic on
the UA rather than on capability detection, the fork's declared identity
matters for that reason alone.
- **Brave's own fingerprint randomization**, if you specifically want noisier
canvas/audio output and are not worried about the randomization itself being
a signal.
## The actual alternative, if the browser is your problem
If what you are after is a Chromium-family browser that reads as a normal
consumer install rather than an automation-driven one, the fork choice is the
wrong lever - the automation layer is. [Patchright](vs-patchright.md) takes
this approach on Chromium specifically: patching Playwright's driver to
remove the most common CDP-level tells rather than switching which skin sits
on top.
This project takes the same idea on a different base entirely: a Firefox
patched at the C++ source, chosen over any Chromium fork because Firefox is
not driven over CDP at all - a different protocol with a different, smaller
set of shared tells, on an engine most anti-bot vendors have spent
proportionally less effort fingerprinting given Chromium's dominant share.
[Firefox or Chromium for anti-detect automation](firefox-vs-chromium-antidetect.md)
is the fuller argument for that choice, independent of which Chromium fork you
were comparing against.
## Short answers to the questions that lead here
**Is Brave harder to detect than Chrome for automation?** Not meaningfully,
when driven by the same protocol. Its fingerprint randomization changes canvas
and audio output but does not touch the automation-protocol signals a detector
checks first.
**Does using Edge instead of Chrome avoid bot detection?** No. Same Blink
engine, same CDP surface when automated, different UA and UI.
**Is there a Chromium fork built for automation stealth?** Not among the
consumer forks above. Patchright and undetected-chromedriver-style projects
patch the driver layer on stock Chromium/Chrome rather than relying on a
different skin.
**Does Ungoogled Chromium avoid fingerprinting?** It removes Google telemetry
calls, not fingerprintable page-level properties. A detection script reads the
same DOM and JS surface either way.
**Which non-Chromium browser is worth trying instead?** Firefox is the
structurally different option - different rendering engine, different
automation protocol - which is the actual axis that moves the needle rather
than a Chromium skin.
**See also:**
[Firefox or Chromium for anti-detect automation](firefox-vs-chromium-antidetect.md),
[patchright vs invisible_playwright](vs-patchright.md) for the driver-patching
approach on Chromium, and
[what navigator.webdriver really tells a site](navigator-webdriver-explained.md)
for the flag every CDP-driven fork inherits alike.
## Sources
- [The Chromium Project](https://www.chromium.org/chromium-projects/), retrieved 2026-09-10, for what the open-source base provides to every fork.
- [Brave's own documentation on fingerprinting protections](https://brave.com/privacy-features/), retrieved 2026-09-10, for the canvas/audio randomization behaviour described above.
- [Chrome DevTools Protocol documentation](https://chromedevtools.github.io/devtools-protocol/), retrieved 2026-09-10, for the automation surface every CDP-driven Chromium fork exposes identically.
---
*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
implicitly.*
+83
View File
@@ -0,0 +1,83 @@
---
title: "Anubis: The Proof-of-Work Firewall, Explained"
description: "Anubis makes a browser burn CPU on a SHA-256 puzzle before it can reach a git forge, and it is genuinely open source, unlike most of this corpus. Read from its own repository: the puzzle, the JWT cookie, and a real published critique of its limits."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 34
---
# Anubis: The Proof-of-Work Firewall, Explained
Every other vendor in [the survey of how websites detect bots](how-do-websites-detect-bots.md) is a commercial product whose internals have to be pieced together from reverse engineering, because the company that built it has no reason to publish them. Anubis is different: it is MIT-licensed, its full source is on GitHub, and its author writes publicly about why it exists and what it does not solve. This page is built almost entirely from primary material, its own repository, its own documentation, and a named security researcher's own published analysis, not practitioner reconstruction. Say that plainly, because it is the exception in this corpus, not the rule.
Anubis was created by Xe Iaso, a pseudonymous developer, in January 2025, after Amazon's web crawler overloaded Iaso's own Git server while ignoring `robots.txt` entirely. It is now maintained by Techaro. The name is the joke and the mechanic at once: Anubis, the Egyptian god who weighs the hearts of the dead, and the software "weighs the soul" of an incoming HTTP request before deciding whether it deserves to reach the backend at all.
## What it actually does: a computational toll booth
Anubis sits in front of a web server as a reverse proxy. Before a request from anything that looks like a browser (identified, by default, by "Mozilla" in the User-Agent string) reaches the protected application, Anubis requires the client to solve a small cryptographic puzzle: find a nonce that, appended to a server-issued challenge string and run through SHA-256, produces a hash with a required number of leading zero hex digits.
The cost is tunable and grows fast. A default difficulty of five leading zeros takes on the order of a second on a real browser; six can take several minutes. Each added difficulty level multiplies the expected number of hash attempts by sixteen, since each hex digit is one of sixteen values, so the cost curve is deliberately steep rather than linear. A real browser solves this using Web Workers so the puzzle does not freeze the page, leaning on the native Web Crypto API where available and falling back to a pure-JavaScript SHA-256 implementation otherwise.
Once solved, Anubis issues an Ed25519-signed JWT, stored as a cookie, carrying the challenge string, the winning nonce, the passing hash, an issue time, an expiry, and a backdated "not before" claim for clock-skew tolerance. That token is valid for roughly a week, so a real visitor solves the puzzle about once per week of browsing rather than once per page load. For clients without JavaScript at all, a separate `metarefresh` challenge type, added around version 1.20, achieves a comparable delay using an HTTP meta-refresh redirect instead of a computed hash, specifically so that disabling JavaScript is not itself a way around the gate.
## The policy engine: not every request gets the same treatment
Later versions moved Anubis toward something closer to a lightweight, rule-driven firewall than a blanket "challenge everyone" gate. Its policy system evaluates each request against configurable rules, User-Agent regex, path matching, header inspection, CIDR ranges, GeoIP and ASN filtering, or custom CEL expressions for more complex logic, and can assign one of four outcomes: **ALLOW** it straight through, **DENY** it outright, **CHALLENGE** it with the proof-of-work puzzle, or **WEIGH** it, adding to a cumulative score that later rules and thresholds act on. The project's own configuration comments describe this in the same soul-weighing language the tool is named for: a client whose signals look clean has "a soul lighter than a feather" and passes without friction.
## Adoption: this is not a hypothetical
Anubis is deployed in front of real infrastructure at meaningful scale, not just a research demo. Documented adopters include GNOME's GitLab instance, the Linux kernel's mailing list and Git infrastructure, FFmpeg, Wine, UNESCO, FreeCAD, ScummVM, Duke University's digital archives, OpenWRT, and the Deutsche Nationalbibliothek. Its author's own stated tradeoff is explicit rather than hidden: deploying it "will result in your website being blocked from smaller scrapers and may inhibit 'good bots' like the Internet Archive," and the project's guidance is that most sites should try Cloudflare first and reach for Anubis only when that is not an option, which in practice means the gate a visitor meets is more often [Turnstile](cloudflare-turnstile-explained.md) than this one.
## A real, named critique worth reading in full
Security researcher Tavis Ormandy published an analysis arguing that Anubis's proof-of-work cost is not a meaningful deterrent against a well-resourced scraper. His own account: a native solver, a couple dozen lines of C rather than the JavaScript a browser is forced to run, cleared the challenge for roughly 11,000 separate Anubis-protected sites in about six minutes on a free-tier Google Cloud VM, and he estimated the aggregate compute cost of doing this continuously at well under a cent a month, trivial against the budget of any company running crawlers at scale.
That critique does not contradict what Anubis's own author and documentation say the tool is for. Read closely, the mechanism's actual value is not raising anyone's compute bill; it is that it "refuse[s] to render an expensive page for any client that will not run a modern browser's worth of JavaScript first," which is a real and different bar than "impose a compute tax a motivated attacker cannot pay." Anubis stops the high-volume, low-effort crawler that spoofs a browser User-Agent but runs no JavaScript at all, cheaply and by design. It does not stop a scraper that has already built a dedicated solver, and by August 2025 Codeberg, one of the forges running it, publicly acknowledged that AI scrapers had learned to solve Anubis's challenges. The tradeoff is asymmetric in a second, less flattering way too: the computational cost lands on every real visitor's device, including low-end and battery-constrained ones, while a determined attacker's marginal cost per site approaches zero once a solver exists.
## What this means for a real, engine-level browser
This is the one detector in this whole corpus where the honest answer is: engine realness is close to irrelevant to whether the gate opens. Anubis is not testing whether a browser is lying about its fingerprint, checking canvas output, or looking for automation-framework tells. It is testing one thing: can this client execute a modern JavaScript engine fast enough to solve a SHA-256 search in a reasonable time. Any real browser, patched or unpatched, stealth or not, answers that the same way, because the puzzle does not touch fingerprint surfaces at all. A plain HTTP client with no JavaScript engine fails it regardless of how convincingly its headers are spoofed, which is the entire point: it is a liveness test for "do you run JavaScript like a browser," not a fidelity test for "are you the specific browser you claim to be."
`invisible_playwright` does not do anything specific to Anubis, and there is nothing Anubis-specific to do: a genuinely real Firefox, C++-patched or stock, solves its puzzle the same way any other real Firefox does, because the puzzle is engine-agnostic by construction. What this page is really useful for is the opposite lesson: not every gate in this space is a fingerprint problem, and treating Anubis as one would be a category error. The gates that do read [what a browser fingerprint is made of](what-is-a-browser-fingerprint.md) are a separate family, and knowing which of the two you are behind decides whether any of that work applies at all.
## Short answers to the questions that lead here
**Is Anubis actually open source?** Yes, genuinely, MIT-licensed, full source on GitHub, unlike almost everything else covered in this corpus. That is why this page can cite its own repository and documentation as a primary source rather than reconstructing it from the outside.
**What does the proof-of-work puzzle actually require?** Finding a nonce such that SHA-256 of the challenge string plus that nonce produces a hash with a configured number of leading zero hex digits. Default difficulty (five zeros) takes about a second on a real browser; each added digit multiplies the expected work by sixteen.
**How long does the cookie last once I solve it?** About a week, via an Ed25519-signed JWT, so a real visitor is not re-solving the puzzle on every page load.
**Does Anubis check my browser fingerprint?** No, not in the sense this corpus otherwise means. It checks whether you can execute JavaScript at browser speed, not whether your canvas hash, WebGL renderer, or navigator properties look genuine.
**Is proof-of-work actually a strong defense?** Security researcher Tavis Ormandy's published analysis argues no, against a motivated attacker: he solved challenges for roughly 11,000 Anubis-protected sites in about six minutes using a native solver on a free cloud VM. It is effective against the high-volume, no-JavaScript crawler class it was built for, and by the Anubis maintainers' own framing that JavaScript-execution requirement, not the compute cost itself, is the actual mechanism.
**Does deploying Anubis affect legitimate crawlers?** Yes, by its own maintainer's admission. It can block smaller scrapers and "good bots" like the Internet Archive, which is a stated, acknowledged tradeoff, not a hidden side effect.
**Does a real, engine-level Firefox pass Anubis differently than a stock one?** No, and that is the point of this page. Anubis is not testing fingerprint fidelity at all, so there is nothing for engine-level realness to improve here. Any real JavaScript engine running fast enough passes the same way.
**See also:** [How Kasada's bot detection actually works](kasada-explained.md) for a commercial vendor using proof-of-work as part of a much larger, closed-source stack; [How Cloudflare's AI Labyrinth works](cloudflare-ai-labyrinth-explained.md) for a completely different anti-crawler philosophy, wasting a bot's time with content instead of computation; and [how do websites detect bots?](how-do-websites-detect-bots.md) for where a liveness test like this sits among fingerprint-based layers.
## Sources
- [`TecharoHQ/anubis`](https://github.com/TecharoHQ/anubis) on GitHub, retrieved 2026-08-30, the project's own
source and README, for the MIT license, the challenge-type directory structure, and the stated tradeoff
about blocking smaller scrapers.
- Anubis documentation, [Introduction](https://techarohq-anubis.mintlify.app/introduction), retrieved 2026-08-30,
for the policy-engine actions (ALLOW/CHALLENGE/DENY/WEIGH), the challenge types, and the metarefresh
no-JavaScript fallback.
- crawlex.net, ["Browser-based proof-of-work: how Anubis gates crawlers with hash puzzles"](https://blog.crawlex.net/blog/anubis-proof-of-work-crawler-gating/),
retrieved 2026-08-30, for the exact difficulty/cost-curve figures, the JWT cookie contents and one-week
validity, and the "refuse to render an expensive page" framing of the mechanism's real function.
- Wikipedia, [Anubis (software)](https://en.wikipedia.org/wiki/Anubis_(software)), retrieved 2026-08-30, for
the creation history (Xe Iaso, January 2025, the Amazon-crawler origin story), the adopter list, and the
Tavis Ormandy critique and Codeberg's August 2025 acknowledgment, cross-checked against the crawlex.net
account of the same critique.
---
*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.*
+83
View File
@@ -0,0 +1,83 @@
---
title: "Arkose Labs (FunCaptcha), Explained"
description: "FunCaptcha's 3D puzzles are the visible part of a risk engine that decides difficulty before you ever see a puzzle. What Arkose's own materials say, and what independent reverse engineering has worked out about the telemetry behind it."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 32
---
# Arkose Labs (FunCaptcha), Explained
FunCaptcha looks different from the CAPTCHAs it competes with. Instead of distorted text or a grid of storefronts, Arkose Labs presents a small interactive puzzle: rotate a 3D object to the right orientation, match a shape, answer a short audio or logic prompt. Arkose maintains a large, growing library of these, over 1,250 puzzle variants by one practitioner count.
That puzzle is the part users see. It is also, deliberately, not the main event. Before a puzzle ever renders, Arkose's telemetry has already decided how hard that puzzle should be, and how many of them a given session will have to solve.
This is one of the vendors in this corpus closer to an actual CAPTCHA than to a silent background check, worth being direct about upfront: nothing on this page is written as, or should be read as, a description of how to solve Arkose's puzzles for someone. It is about the risk mechanism that decides whether you see one, and how hard.
## What Arkose's own materials say, and where they stop
Arkose's own public site describes its detection in terms of scale and adaptivity, not mechanism: "225+ risk signals," "dynamic challenges that evolve in real time to counter emerging attack vectors," and device identification that combines "deterministic methods with machine learning similarity detection." Its own numbers past that point are business outcomes, not technical detail, customer satisfaction figures, dollar savings, account-growth multipliers, not the field names or scoring weights behind the 225 signals.
That is a real limit on what this page can say with a straight face. Arkose does not publish, in the materials checked for this page, the specific list of what those 225+ signals are or how the risk engine weighs them. What follows past this point comes from independent, practitioner-level reverse engineering, not Arkose's own documentation, and is marked as such.
## 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 [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).
A separate, independent piece of evidence that this fingerprint surface is real and specific enough to document: a public GitHub repository, `AzureFlow/arkose-fp-docs`, exists specifically to catalog ArkoseLabs' FunCaptcha fingerprinting payload. Its existence corroborates that the payload is large and structured enough to be worth documenting field by field, the same kind of evidence [a public interstitial-payload tool corroborates for DataDome](datadome-explained.md#the-cookie-and-what-happens-when-it-is-missing); this page did not extract its full field list, so it is cited for what it demonstrates (a real, mapped fingerprint surface exists) rather than for its specific contents.
## Risk tiers, and how a puzzle escalates
The reverse-engineering writeups agree on the shape of the escalation even where they disagree on exact thresholds: telemetry collected before and during interaction feeds a risk classification, and sessions read as low-risk may see a simpler puzzle or none at all, while sessions read as high-risk face more puzzle steps, a harder variant, or an outright block. A session that appears to be a script calling Arkose's endpoints directly, without a full browser context behind it, reads as an anomaly on arrival: unusual timing, missing events a real interaction would produce, which the writeups describe triggering escalation before a single puzzle attempt has even happened.
Time pressure is part of the same mechanism by the same accounts: a stalled challenge, one sitting unsolved for roughly fifteen seconds, gets swapped out or escalated rather than waiting indefinitely, which by itself works against slow, deliberate automation as much as it works against distraction.
## What an engine answers honestly, and what the puzzle itself is not
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 [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.
`invisible_playwright` does not include, and will not add, a puzzle-solving or CAPTCHA-solving capability for Arkose or any comparable vendor. That is a deliberate boundary, not a gap this project is working to close: solving FunCaptcha's puzzles on a user's behalf is a different product category from engine-level stealth, and this corpus's naming policy for anti-bot vendors is explicit that a circumvention claim paired with a protection vendor's name is the one thing it does not make. What honest engine behavior changes here is narrower and more mundane: it keeps the fingerprint half of the risk read from contradicting itself, nothing more.
## Short answers to the questions that lead here
**Does Arkose Labs publish its risk scoring model?** No, not beyond category-level language ("225+ risk signals," device identification combining deterministic and ML methods). The specific field list and scoring weights are not in Arkose's own public materials as checked for this page.
**What decides how hard a FunCaptcha puzzle is?** Per Arkose's own framing and independent reverse engineering, a risk classification computed from device fingerprint, behavioral telemetry and reputation signals before the puzzle is shown, with higher-risk sessions facing more or harder puzzle steps.
**Does mouse movement get scored during the puzzle itself?** Independent writeups describe continuous cursor telemetry during the solve, including acceleration and click-timing checks, though the specific thresholds reported are reconstructed by practitioners, not confirmed by Arkose's own documentation.
**Is there a real public reverse-engineering project for Arkose's fingerprint?** Yes; `AzureFlow/arkose-fp-docs` on GitHub documents ArkoseLabs' FunCaptcha fingerprinting payload, though this page did not extract its full field-level contents.
**Does a real browser engine defeat FunCaptcha?** It answers the fingerprint layer honestly, the same argument that applies to any vendor's canvas/WebGL/navigator checks. It has no bearing on the puzzle itself, which is an interactive challenge, not a fingerprint question.
**Does invisible_playwright solve FunCaptcha puzzles?** No. This project does not include or sell a puzzle-solving or CAPTCHA-solving service for Arkose or any vendor, and this page is not a guide to building one.
**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 a consistency checker decides you are lying](consistency-checker-explained.md) for the fingerprint-consistency argument this page leans on.
## Sources
- Arkose Labs, [How Arkose Labs Works](https://www.arkoselabs.com/how-arkose-labs-works/), retrieved 2026-08-30,
for the "225+ risk signals," dynamic-challenge and device-identification language quoted above.
- [`AzureFlow/arkose-fp-docs`](https://github.com/AzureFlow/arkose-fp-docs) on GitHub, retrieved 2026-08-30,
a real public reverse-engineering project documenting ArkoseLabs' FunCaptcha fingerprint payload, cited for
its existence as evidence of a mapped fingerprint surface, not for its full field-level contents.
- Practitioner reverse-engineering writeups, retrieved 2026-08-30: ["FunCaptcha (Arkose Labs): Principles of Operation, Features, and Methods for Automated Bypass"](https://medium.com/@kentavr00000009/funcaptcha-arkose-labs-principles-of-operation-features-and-methods-for-automated-bypass-780ef786d7c5)
and ["Scraping in the Crosshairs of Arkose Labs"](https://medium.com/@koshka00009/scraping-in-the-crosshairs-of-arkose-labs-how-to-bypass-3d-puzzles-browser-fingerprints-and-c5c710091152),
for the telemetry categories, the mouse-timing thresholds, and the risk-tier escalation behavior described above;
independent, non-vendor sources whose specific numeric thresholds are not corroborated by Arkose's own documentation.
---
*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.*
@@ -0,0 +1,211 @@
---
title: "What is ASN and IP reputation in bot detection?"
description: "What ASN and IP reputation are: how they score requests before JavaScript runs, how reputation builds and decays, and why a clean browser on a burned IP loses."
parent: "Network, Proxy and WebRTC"
grand_parent: "Guides"
nav_order: 23
---
# What is ASN and IP reputation in bot detection?
An ASN identifies which network operator an address belongs to, and IP reputation is the
abuse history attached to that address; together they let a detector score a connection
before a single line of JavaScript runs. This is the layer a browser cannot touch, and it
is why a session with a flawless fingerprint can still be turned away at the door.
This page explains what an ASN is, how IP reputation gets built and how it decays, why a
perfect browser on a flagged block loses anyway, and where the browser's job ends and the
proxy's job begins.
## What an ASN actually is
An ASN, an [Autonomous System Number](https://datatracker.ietf.org/doc/html/rfc1930),
identifies the network operator that announces a block of IP addresses to the rest of the
internet. A residential internet provider has one or more ASNs. A cloud host has its own.
When a connection reaches a server, the server can look up the address and learn, in a
single query, which operator it belongs to and what kind of operator that is.
That last part is the point. ASNs carry a category. A range that belongs to a consumer
internet provider looks like a person at home. A range that belongs to a hosting company
or a cloud region looks like a server, because that is what almost everything in it is.
The lookup is cheap, it happens at the very first packet, and it does not care in the
slightest what browser you plan to run. A datacenter ASN is a strong prior on its own:
real customers rarely browse a shopping site from a cloud region, so a request from one
starts the session already suspected. This is covered in more depth in
[can websites detect a datacenter or proxy IP](can-websites-detect-a-datacenter-proxy-ip.md),
and the short version is that they can, directly, at the network layer.
## How IP reputation is built and how it decays
The ASN category is the coarse signal. Reputation is the fine one, and it is per-address
and per-block rather than per-operator.
A reputation service records what addresses have done. If a particular IP, or the /24
block around it, has recently been the source of credential-stuffing traffic, scraping
runs, spam, or a burst of failed logins, that history attaches to the address. It is
shared: the block was burned by whoever used it before you, and you inherit the score. A
single address can also burn itself inside one session, purely by volume. If one IP opens
several hundred sessions against the same endpoint in an hour, that velocity is itself the
signal, independent of how human each individual session looks.
Reputation decays, but slowly and unevenly. An address that sat quiet for a long stretch
recovers some standing. An address that is being actively abused right now does not, and
the decay resets every time the block is used again. This is why a cheap shared proxy
never really recovers: the moment its score drifts back toward neutral, the next user on
the same block drives it back down. You are not renting a clean address, you are renting a
position in a queue of people degrading it.
Three inputs, then, all read before the browser matters: the ASN's category, the block's
abuse history, and the live session count from that address.
## Why a perfect fingerprint on a burned block still loses
A perfect fingerprint on a burned block still loses because a detector scores the network
layer and the fingerprint layer independently, and a flawless browser can only zero out the
second one - it has no way to reach the first.
invisible_playwright is designed to look like a real browser driven by a real person. The
fingerprint is coherent, the TLS handshake belongs to a genuine Firefox, and the driver
layer does not announce automation. That is why it passes most detection checks: the parts
a browser controls, it controls well. What it cannot do is change the address the
connection arrives on. A coherent browser on a burned IP is still on a burned IP.
The two layers are scored independently and both have to be right. Picture a detector as
adding up evidence. The network layer contributes its verdict, a datacenter ASN or a block
with recent abuse, before any script runs. The fingerprint layer contributes its verdict
after. A perfect browser sets the second contribution to roughly zero, which is exactly
what you want, but it cannot make the first contribution negative. If the network layer
alone crosses the threshold, the session is challenged or blocked no matter how clean
everything downstream reads. This is the mechanism behind
[being blocked with a clean fingerprint](why-blocked-with-a-clean-fingerprint.md): nothing
is wrong with the browser, and the browser was never the thing that failed.
You can prove which layer you are hitting in about a minute. Open the same URL by hand,
from the same machine and the same exit, in a stock browser. If the manual visit is also
challenged, the browser is not your problem and no fingerprint change will help. If the
manual visit passes and the automated one does not, the difference is in the browser or
the behaviour, and that is a different investigation entirely.
## Where the browser ends and the proxy begins
The division of labour is clean, and being clear about it saves a lot of wasted effort.
The browser's job is everything the server reads after the connection is established: the
fingerprint fields, the TLS handshake, the absence of automation tells, the driver layer.
invisible_playwright handles those from one seed, reproducibly. Your job, the part the
browser cannot do for you, is three things it has no access to.
- **A clean exit.** An address on a consumer ASN, on a block without recent abuse, not
already shared by a crowd. Around 90% of proxy addresses are public and therefore
already known and scored before you send a byte through them. The clean fraction is the
part worth paying for.
- **Human pacing.** Session count per address is a reputation input, so hundreds of
sessions from one IP burns it regardless of browser quality. Spread the work across
addresses and across time.
- **Behaviour and quotas.** Per-account limits, rate limits, and the timing of your
actions are yours to supply. The browser looks human; whether it acts human is up to
the code driving it.
One more thing that is genuinely the browser's job and is easy to mistake for a network
problem: the browser and the exit have to tell the same story. An exit in one country
behind a browser claiming another is a contradiction the detector reads directly, and it
is cheap to get right. invisible_playwright derives the timezone from the egress IP by
default, which is why
[a timezone that does not match the proxy](timezone-proxy-mismatch.md) has its own page.
## A runnable example
The browser side is two lines. You supply the proxy; the wrapper wires it, routes DNS
through it, and derives the timezone from its exit so the browser and the network agree.
```python
from invisible_playwright import InvisiblePlaywright
proxy = {
"server": "socks5://gate.example.com:1080",
"username": "user",
"password": "pass",
}
# seed=42 makes the identity reproducible; the proxy is the exit you supply
with InvisiblePlaywright(seed=42, proxy=proxy) as browser:
page = browser.new_page()
# confirm the exit the browser is actually leaving from,
# rather than assuming it
page.goto("https://example.com/ip")
print(page.inner_text("body"))
```
The `browser` object is a real Playwright
[`Browser`](https://playwright.dev/python/docs/api/class-browser), so every standard
method works exactly as documented upstream. Note what the example does and does not
claim: it pins the fingerprint so a failure is reproducible, and it reads back the exit so
you know which address your reputation is riding on. It does not make a bad address good.
If the printed IP sits on a datacenter ASN or a burned block, the cleanest browser in the
world is still leaving from there.
## Conclusion
ASN and IP reputation are the part of bot detection that runs before your browser gets a
turn. The ASN says what kind of network you are on, the reputation says what that address
and its neighbours have been doing, and the session count says how hard you are leaning on
it right now. All three are read at connection time, none of them are in a browser's
gift to change, and a perfect fingerprint sets its own layer to zero without touching
theirs.
So the honest framing is the useful one. invisible_playwright makes the browser layer look
like a real person's real browser, which is most of the battle and the part most tools get
wrong. The network layer is yours: a clean exit, human pacing, and quotas you respect. Get
both right and the session passes. Get the browser perfect on a burned block and it does
not, and now you know exactly why.
## Short answers to the questions that lead here
**What is an ASN in bot detection?** The number identifying the network operator that owns
the address you connect from. Detectors read it at the first packet to learn whether you
look like a home connection or a datacenter, before any JavaScript runs.
**Can a good fingerprint fix a bad IP?** No. The two are scored independently. A perfect
browser zeroes out its own layer but cannot make a burned or datacenter address look
clean, so the session can still be blocked on the network verdict alone.
**Why does my clean browser still get blocked?** Almost always the exit. Prove it by
opening the same URL by hand from the same machine and exit in a stock browser; if that is
challenged too, the browser was never the problem.
**How does an IP get a bad reputation?** From abuse history on the address or its block,
inherited from whoever used it before you, plus live session volume. Shared cheap proxies
never recover because the next user re-burns the block as it decays.
**Does invisible_playwright give me a clean IP?** No, and it does not claim to. It handles
the browser fingerprint, TLS and driver layers. You supply the proxy, the pacing and the
quotas; the browser cannot change the address it arrives on.
**How many sessions can one IP make?** Fewer than you would like, because session count is
itself a reputation input. Hundreds of sessions from one address burns it regardless of
how human each session looks. Spread across addresses and across time.
## Sources
- [RFC 1930](https://datatracker.ietf.org/doc/html/rfc1930), the IETF guidelines that
define an Autonomous System as a routing policy unit and specify the ASN that identifies
it.
- [Playwright's `Browser` class reference](https://playwright.dev/python/docs/api/class-browser),
for what a launched `Browser` object exposes once the wrapper hands it back.
- This project's release and validation gates, which test the browser layer through a real
proxy and confirm the exit address inside the browser rather than assuming it.
- The network-layer behaviour described here is read from public reputation and ASN-lookup
mechanics, cross-checked against the browser layer this project controls.
**See also:** [can websites detect a datacenter or proxy IP](can-websites-detect-a-datacenter-proxy-ip.md)
for the network layer in detail, [browser trust scores explained](browser-trust-score-explained.md)
for how the fingerprint layer is scored separately, and
[why you can be blocked with a clean fingerprint](why-blocked-with-a-clean-fingerprint.md)
when every browser check comes back green.
---
*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.*
+228
View File
@@ -0,0 +1,228 @@
---
title: "AudioContext fingerprinting, and why adding noise backfired"
description: "AudioContext fingerprinting is usually beaten with noise. We shipped that defence, measured it, and it made sessions easier to detect. The seven values and why."
parent: "Canvas, WebGL, Fonts and Audio"
grand_parent: "Guides"
nav_order: 8
---
# AudioContext fingerprinting, and why adding noise backfired
Audio fingerprinting has a reputation for being hard to defeat. It deserves it, but
not for the reason usually given.
The usual reason is that the audio pipeline is low-level and mathematically involved.
The real reason is simpler and more annoying: **the obvious defence makes you easier
to detect, not harder.** We shipped that defence, measured it, and turned it off. This
page is what the measurements said.
## What is actually being measured
Audio fingerprinting collects seven values from the [Web Audio
API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API), a rendered
sample buffer plus six device and analyser readings, and checks that they agree with
each other. Almost every guide stops at "it hashes how your device processes sound",
which is true and useless. Here is the concrete shape.
A fingerprinting script builds a short offline audio graph, usually an oscillator into
a dynamics compressor, renders it without playing anything, and reads the resulting
samples back:
```js
const ctx = new OfflineAudioContext(1, 44100, 44100);
const osc = ctx.createOscillator();
const comp = ctx.createDynamicsCompressor();
osc.connect(comp); comp.connect(ctx.destination);
osc.start(0); ctx.startRendering();
// then: sum the rendered samples, hash the sum
```
But the rendered buffer is only one of the values collected. The full set is wider
than people expect, and this matters because they have to agree with each other:
| Value | What it is |
|---|---|
| `AudioContext.sampleRate` | 44100 or 48000, from the audio device |
| `AudioContext.outputLatency` | the driver's reported latency |
| `AudioContext.destination.maxChannelCount` | stereo, 5.1, whatever the device has |
| the rendered sample sum | the oscillator-compressor output |
| `AnalyserNode` frequency data sum | the same graph seen through an FFT |
| `AnalyserNode` time domain data sum | the same graph in amplitude |
| `DynamicsCompressorNode.reduction` | one float, the applied gain reduction |
Seven values, one machine. A profile claiming a 5.1 sound card with a laptop's latency
and a rendered buffer that belongs to neither is caught by comparison, and no
individual value in it is unusual.
## The mistake: noise that gets asked about twice
The intuitive defence is the canvas one: add a small amount of noise to the rendered
samples so the hash differs per session. We implemented exactly that, seeded so the
same identity always produced the same audio.
Two things went wrong, and the second one is the interesting one.
## Silence is a trap
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.
```js
new OfflineAudioContext(1, 100, 44100) // 100 samples, oscillator frequency 0
```
Nothing should come out of that. On real hardware nothing does. A tool adding noise to
every rendered buffer puts noise into silence, which is physically impossible, and the
check records a lie.
It also inspects the first 100 samples of a normal buffer and sums the distinct values
it finds there, for the same reason: the beginning of a render is predictable, so
variation there is manufactured.
The fix is not to stop adding noise, it is to add it only where noise can legitimately
exist: skip buffers short enough to be a probe, skip the opening samples, and skip
channels that carry no input at all. Noise on a silent channel is not subtle. It is a
claim that your sound card produces sound when it is off.
**The general shape, which is worth more than the specific check:** a detector does not
have to recognise your noise. It only has to ask a question whose correct answer is
*nothing*, and see whether it gets something.
## The defence was the signal
The second problem was not expected: with the noise correctly guarded and passing the
silence checks, a commercial fingerprinting service still scored the browser as
tampered. We isolated the audio noise with a kill switch and ran it both ways on the
same machine and the same identity:
| Audio noise | tampering score |
|---|---|
| on | 0.4349 |
| off | 0.0564 |
Nearly an order of magnitude, from one feature. The audio noise was not one
contributor among many, it was the dominant one.
So we ship with it **off**. The un-noised audio output is still host-independent,
because the values around it are set from the seed and the render is deterministic, and
it matches what a real Firefox on that configuration produces. Turning the noise off
did not make sessions linkable: it made them identical to the honest answer, which is
what everything else on that machine is claiming anyway.
That inversion is the lesson worth carrying:
> A randomised value is not automatically safer than a fixed one. If everyone with a
> given browser and OS produces the same audio hash, producing that same hash makes you
> one of them. Producing a unique one makes you the only person on the internet whose
> sound card is a snowflake.
Randomising helps where the honest value identifies your specific machine. It hurts
where the honest value identifies your *class* of machine, because there the crowd is
the disguise.
## Getting the details right, if you do add noise
Two things we got wrong on the first attempt and had to measure our way out of.
**Scale is per-surface.** Frequency data is in decibels, roughly -100 to 0. Time domain
data is amplitude, -1 to 1. The same epsilon on both is either invisible on one and
enormous on the other. We ended up around `1e-4` for frequency, `1e-7` for time domain,
and `1e-5` for the compressor's single reduction float.
**The noise has to be a function of the seed and the position, not of a random number
generator.** If it is random per call, reading the same value twice returns two
different answers, and a script that reads it twice is a script anyone can write. Ours
hashes the seed together with the channel index and the sample position, so the same
identity renders the same buffer forever, and two reads agree.
That second point is the one that catches most tools. It is easy to check and it is
checked.
## What to look at on your own setup
```js
const ctx = new AudioContext();
console.log(ctx.sampleRate, ctx.outputLatency, ctx.destination.maxChannelCount);
ctx.close();
```
- **`sampleRate` is 44100 or 48000.** Anything else is rare enough to be interesting.
- **The three device values describe one plausible device.** A 5.1 channel count with a
laptop latency is two devices in one answer. Those three numbers need no rendering at
all, which makes them [a fingerprinting surface of their
own](audiocontext-samplerate-latency-fingerprint.md).
- **[`outputLatency`](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/outputLatency)
is not zero and not identical across machines.** A container with no sound device is
a real tell here, in the same way that [a machine with no GPU is one for
WebGL](webgl-renderer-strings.md).
- **Read the rendered sum twice in one session.** It must match. If it does not, your
noise is per-call, and that is the single cheapest tampering check there is.
- **Render a silent buffer and confirm it is silent.**
## Conclusion
The inversion is the whole lesson. Audio fingerprinting hashes seven values that have
to agree with each other, and the noise people add to break that hash is also the
easiest way to fail the checks built to catch noise. A detector does not need your
value to be unusual, it only needs one place where a silent buffer stops being silent,
a predictable opening stops being predictable, or two reads of the same identity
disagree.
Guard those three spots before adding anything, or skip the noise entirely. Silence
stays silent. The opening samples stay untouched. The same seed reads the same buffer
twice. On this measurement, the honest, un-noised answer already matched what every
other real installation of that browser produces, and matching the crowd turned out to
be the safer position.
## Short answers to the questions that lead here
**Can I just disable AudioContext?** You can, and then you have a browser without the
Web Audio API, which every real browser has. That is a stronger signal than any hash.
**Do the privacy extensions that randomise audio work?** They stop the hash being
stable, which is what they promise. They also generally randomise per call and put
noise in silence, both of which are detectable in one line. Against tracking, they
help. Against a system asking whether you are tampering, they are the thing it finds.
**Is audio fingerprinting stronger than canvas?** It has less entropy on its own. It is
harder to fake convincingly, because it is seven values that have to agree plus a
render that has to look like it came from the device the other six describe.
**Why does my audio fingerprint differ between headless and headed?** Usually the audio
device. A headless container often has none, so the values fall back to defaults that
say so.
## Sources
- MDN Web Docs on the [Web Audio API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API),
retrieved 2026-08-28, for the oscillator-into-compressor offline rendering pipeline
described above.
- MDN Web Docs on the specific interfaces the seven values come from:
[OfflineAudioContext](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext),
[BaseAudioContext.sampleRate](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/sampleRate),
[AudioContext.outputLatency](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/outputLatency),
[AudioDestinationNode.maxChannelCount](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode/maxChannelCount),
[AnalyserNode.getFloatFrequencyData()](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatFrequencyData)
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.
- 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.
**See also:** [why a FingerprintJS visitor ID changes](fingerprintjs-visitor-id.md),
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 a consistency checker decides you are lying](consistency-checker-explained.md).
---
*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.*
@@ -0,0 +1,226 @@
---
title: "AudioContext sampleRate and latency as a fingerprint"
description: "AudioContext.sampleRate, outputLatency and maxChannelCount are read from the audio driver, so a headless server leaks. How a seeded browser keeps them coherent."
parent: "Canvas, WebGL, Fonts and Audio"
grand_parent: "Guides"
nav_order: 13
---
# AudioContext sampleRate and latency as a fingerprint
An `AudioContext` fingerprints a machine before it renders a single sample: `sampleRate`,
`outputLatency` and `destination.maxChannelCount` are read straight from the operating
system's audio driver, so a headless server with no sound hardware answers them with
tell-tale defaults. The defence is not to spoof each number, but to return all three as
one coherent device profile that a real machine could actually have.
Most writing about audio fingerprinting is about the rendered buffer: you run an
`OfflineAudioContext`, hash the samples it produces, and treat that hash as the signal.
That is a real surface and it has [its own page here](audiocontext-fingerprinting.md).
This page is about the other half, the part that needs no rendering at all. Before a
single sample is generated, an `AudioContext` already exposes three plain numbers that
come straight from the operating system's audio stack: `sampleRate`, `outputLatency`,
and `destination.maxChannelCount`. They are cheaper to read than any buffer hash, they
are stable within a session, and on a headless server they are one of the clearest
tells that no real sound hardware is present.
## The three numbers a real audio stack exposes
Open an `AudioContext` on a normal desktop and read four fields:
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
profile = page.evaluate("""() => {
const ctx = new AudioContext();
const out = {
sampleRate: ctx.sampleRate,
outputLatency: ctx.outputLatency,
baseLatency: ctx.baseLatency,
maxChannelCount: ctx.destination.maxChannelCount,
};
ctx.close();
return out;
}""")
print(profile)
```
Each of those fields is a question to the driver, not to the browser:
- **`sampleRate`** is the rate the audio device is running at, almost always `44100` or
`48000` Hz. It is decided by the sound card and its driver, not by the page.
- **`outputLatency`** is roughly how long it takes a sample to travel from the graph to
the speaker. It reflects the buffer size the driver negotiated, and it differs between
onboard audio, a USB interface, and a surround setup.
- **`maxChannelCount`** on the destination node is how many output channels the device
can drive: `2` for ordinary stereo, `6` for a 5.1 setup, `8` for 7.1.
None of these is an automation flag. They are hardware facts, and that is exactly what
makes them useful to a detector: JavaScript cannot invent a sound card it does not have.
## Why the values have to agree with each other
The trap here is not any single value being unusual. Every one of these numbers, taken
alone, is common. The signal is in the combination.
Real devices come in a small number of shapes. Onboard laptop audio tends to run stereo
at 48000 Hz with a modest latency. A cheap USB headset might report 44100 Hz. A discrete
sound card feeding a 5.1 receiver reports six channels and a latency in a range that
matches a card built for that job. What you never see on real hardware is the
cross-product: a `maxChannelCount` of 6 paired with the sample rate and latency of a
thin laptop codec, because no such device exists.
That cross-value contradiction is precisely what a consistency-minded detector looks
for, and it is the same class of check that catches a Windows user agent over a Linux
font set, or [hardware concurrency and device memory](hardware-concurrency-device-memory.md)
that pair oddly with the machine being claimed. A fingerprint is not a list of values,
it is a set of relationships, and the relationships are where a naive spoof falls apart.
## What a headless container reports instead
Run the same three reads inside a server container with no sound hardware and you get one
of two failure shapes, both of them loud.
The first is a null audio backend: the context comes back with a default sample rate and
a latency that is suspiciously round or zero, the same on every container image, because
there is no driver underneath negotiating anything. A value that is byte-identical across
thousands of visitors is not neutral, it is a cohort.
The second is worse. Some headless setups fail to construct the context at all, or
suspend it immediately, so the page sees a `state` that never reaches `running`. As with
every other surface, [an empty or blocked result is itself a signal](how-to-test-bot-detection.md),
not a clean pass. A detector that records suppression by name counts the absence against
you exactly as it would count a wrong value.
This is the same reason [an empty speech-voice list](speech-synthesis-voices.md) gives a
server away: both audio output and installed voices are reads into the operating system,
and a datacenter answers them with defaults that say "datacenter".
## How this browser keeps the profile coherent
The fix is not to pick three plausible numbers independently, because independent draws
are what produce the impossible device. The engine returns all three together as one
coherent profile, chosen for the session from a small set of real device archetypes, so
the values always describe a machine that could actually exist:
| Device archetype | `sampleRate` | `outputLatency` | `maxChannelCount` |
|---|---|---|---|
| Plain stereo desktop | 44100 Hz | around 40 ms | 2 |
| USB audio interface | 48000 Hz | lower, near 30 ms | 2 |
| 5.1-capable sound card | 48000 Hz | near 40 ms | 6 |
Each row is a machine that exists; the impossible combinations between rows are the ones a
detector is looking for.
Because the whole profile is keyed off the session seed, a six-channel destination never
lands next to a laptop's latency, and the same seed reproduces the same audio device on
every run. The three fields move as a unit, which is the property the detector is testing
for. This is the general principle these patches follow: the goal is to look like a real
machine, not merely to avoid an obvious default, and a suppressed or arbitrary value
fails that goal as surely as a wrong one.
## Measuring it yourself with a fixed seed
The point of a seed is that a finding is reproducible. Read the profile under two seeds
and confirm two things at once: that each profile is internally coherent, and that the
same seed returns the same device every time.
```python
from invisible_playwright import InvisiblePlaywright
READ = """() => {
const ctx = new AudioContext();
const out = [ctx.sampleRate, ctx.destination.maxChannelCount,
Math.round((ctx.outputLatency || 0) * 1000)];
ctx.close();
return out;
}"""
for seed in (42, 1337):
with InvisiblePlaywright(seed=seed) as browser:
page = browser.new_page()
page.goto("https://example.com")
rate, channels, latency_ms = page.evaluate(READ)
print(f"seed={seed}: {rate} Hz, {channels} ch, ~{latency_ms} ms")
```
Two checks turn this into evidence rather than a single reading:
1. **Run each seed twice.** The tuple must be identical across runs of the same seed. If
it drifts, something is randomising per call, which is
[the cheapest tampering check a detector has](audiocontext-fingerprinting.md).
2. **Sanity-check the pairing by hand.** Six channels should never appear beside a
latency that belongs to onboard stereo. If it does, you have found the exact
contradiction this section exists to prevent.
Compare the output to a stock Firefox on the same machine and you will see the shape of
the guarantee: the stock browser reports your real card, the seeded browser reports a
coherent invented one, and neither reports the round, hardware-free defaults a bare
container does. If you need a specific device rather than a seed-derived one,
[pinning a field](pinning.md) leaves the rest of the identity untouched.
## Conclusion
`sampleRate`, `outputLatency` and `maxChannelCount` are read straight from the OS audio
driver, which means a headless server has nothing truthful to say through them and a
careless spoof says something impossible. The buffer hash gets all the attention, but
these three static numbers are read first and cost nothing to check. Treating them as one
coherent device profile, reproducible from a seed, is what keeps a six-channel count from
ever sitting next to a laptop's latency, and that pairing is the thing a consistency check
is actually built to find.
## Short answers to the questions that lead here
**What is AudioContext.sampleRate and can I change it from JavaScript?** It is the rate
the audio device runs at, `44100` or `48000` Hz, read from the driver. Page JavaScript
cannot change it truthfully; only the engine underneath can decide what the read returns.
**Why does my headless server report the same audio values on every run?** Because there
is no sound hardware, so the context falls back to a fixed default. Identical values
across every container are a cohort, not a clean fingerprint.
**Is outputLatency a reliable fingerprinting signal?** On its own, weakly. In combination
with sample rate and channel count it is strong, because only certain triples correspond
to devices that actually exist.
**What does maxChannelCount reveal?** How many output channels the device can drive: 2 for
stereo, 6 for 5.1, 8 for 7.1. A value that contradicts the latency and rate is the tell.
**How do I make these values consistent with each other?** Do not draw them
independently. Pick a real device archetype and take all three from it, which is what a
seed-derived profile does automatically.
**Will an empty or suspended AudioContext pass a detector?** No. A blocked or suppressed
read is recorded as its own signal, so an absent value fails the same way a wrong one
does.
## Sources
- W3C Web Audio API specification, which defines `sampleRate`, `baseLatency` and
`outputLatency` on `AudioContext` and `maxChannelCount` on the destination node:
[www.w3.org/TR/webaudio/](https://www.w3.org/TR/webaudio/).
- MDN Web Docs on the same properties, read from the engine rather than from any single
detector's rendering of them:
[AudioContext.sampleRate](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/sampleRate),
[AudioContext.outputLatency](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/outputLatency),
and [AudioDestinationNode.maxChannelCount](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode/maxChannelCount).
- This project's own audio patches and their release notes, which choose the three static
audio properties together as one coherent device profile so the values never contradict
each other.
**See also:** [AudioContext fingerprinting](audiocontext-fingerprinting.md) for the
rendered-buffer side of the same surface, [why getVoices() comes back empty](speech-synthesis-voices.md)
for the other operating-system read that gives a server away, and
[the checklist for being detected on one site](playwright-detected-as-bot.md) for where
the audio device sits in the order you should debug.
---
*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.*
@@ -0,0 +1,287 @@
---
title: "Automating an Email OTP / Verification-Link Login with Playwright"
description: "Poll your own inbox over IMAP mid-login, parse the one-time code or magic link, and feed it back into the same browser session that requested it - for testing your own application's login flow."
parent: "Scraping with Playwright"
grand_parent: "Guides"
nav_order: 146
---
# Automating an Email OTP / Verification-Link Login with Playwright
This page is about a specific, ordinary automation need: your own application, or an
account you control, sends a one-time code or a magic link by email as part of login,
and a test or a script needs to complete that flow end to end without a human
watching an inbox. That is a normal thing to automate, the same category of work as
[reusing a saved session](automating-login-vs-session-reuse.md) or
[scraping behind a login](how-to-scrape-behind-login-playwright.md) - it is not about
getting into an account that is not yours, and nothing here assumes or requires that.
The pattern is three steps done in order, inside one browser session: trigger the send,
poll the mailbox until the message arrives, extract the code or link and hand it back
to the same page that asked for it. The part people get wrong is usually not the code,
it is the timing and the identity: polling too aggressively, or redeeming the code from
a different browser session than the one that requested it.
## The shape of the flow
```python
import time
from invisible_playwright import InvisiblePlaywright
SEED = 42
with InvisiblePlaywright(seed=SEED) as browser:
page = browser.new_page()
page.goto("https://example.com/login")
page.fill("#email", "you@example.com")
sent_at = time.time() # mark the moment before triggering the send
page.click("#send-code")
code = fetch_code_from_inbox(sent_at) # poll the mailbox; see below
page.fill("#otp", code)
page.click("#verify")
page.wait_for_url("https://example.com/account")
```
Everything downstream depends on `sent_at`: without a timestamp marking "before the
request," you have no way to tell a fresh code from a stale one already sitting in the
inbox from a previous run.
## Step 1: trigger the send, then start the clock
Nothing unusual here - it is an ordinary form fill and click, the same as any other
login automation. The only detail worth keeping is recording the time immediately
before the click, not after, since network latency on the click itself can matter
when you are about to poll a mailbox on a short timeout.
## Step 2: poll the inbox with imaplib
Python's standard library `imaplib` module is enough for this; nothing extra to
install. Its own documentation describes it plainly:
> "This module defines three classes, `IMAP4`, `IMAP4_SSL` and `IMAP4_stream`, which
> encapsulate a connection to an IMAP4 server and implement a large subset of the
> IMAP4rev1 client protocol as defined in RFC 3501."
Use `IMAP4_SSL` for the connection, and pass an explicit SSL context instead of the
default one - the standard library is direct about why:
> "With the default ssl_context, the connection is encrypted but the server certificate
> and hostname are not verified. To verify them, pass a context created by
> ssl.create_default_context()."
```python
import imaplib
import email
import re
import ssl
import time
def extract_text(msg):
# the plain-text part of a possibly multipart message
if msg.is_multipart():
for part in msg.walk():
if part.get_content_type() == "text/plain":
return part.get_payload(decode=True).decode(errors="replace")
return ""
return msg.get_payload(decode=True).decode(errors="replace")
def fetch_code_from_inbox(sent_at, timeout_s=60, poll_every_s=2):
ctx = ssl.create_default_context()
deadline = time.time() + timeout_s
while time.time() < deadline:
conn = imaplib.IMAP4_SSL("imap.example.com", ssl_context=ctx)
conn.login("you@example.com", "app-specific-password")
conn.select("INBOX")
# UNSEEN keeps this from re-matching an old code from a previous run
typ, data = conn.search(None, "UNSEEN", "SUBJECT", '"Your verification code"')
ids = data[0].split()
for msg_id in reversed(ids): # newest first
typ, msg_data = conn.fetch(msg_id, "(RFC822)")
msg = email.message_from_bytes(msg_data[0][1])
received = email.utils.parsedate_to_datetime(msg["Date"]).timestamp()
if received < sent_at - 5: # a few seconds of clock slack
continue
body = extract_text(msg)
match = re.search(r"\b(\d{6})\b", body)
if match:
conn.logout()
return match.group(1)
conn.logout()
time.sleep(poll_every_s)
raise TimeoutError("no verification code arrived in time")
```
A few details that matter more than they look like they should:
- **Search `UNSEEN`, and filter by time, not just presence.** A test inbox
accumulates old codes; matching "the newest message with the right subject" without
a time check will occasionally hand you yesterday's code, which then fails
verification for a confusing reason.
- **This is polling, not push.** IMAP has no notification mechanism in the basic flow
above; you are asking the server "anything new?" on an interval.
[`IMAP4.idle()`](https://datatracker.ietf.org/doc/html/rfc2177) exists for a
push-like wait on servers that support the `IDLE` extension, but a short poll loop
is simpler to reason about and is fine for this use case.
- **Most mail providers now require an app-specific password or an OAuth token for
IMAP access, not the account's normal login password.** That is a one-time setup
step outside Playwright entirely, and which one your provider needs is worth
checking before wiring this up, since it is unrelated to anything in this page.
- **A test-email API is a reasonable alternative to a real mailbox**, particularly in
CI where you do not want a persistent inbox at all. Several providers expose a
disposable inbox over a plain REST API instead of IMAP - poll an HTTP endpoint for
new messages the same way the loop above polls IMAP, then apply the same
time-filtering and parsing logic to whatever it returns.
## Step 3: parse the code or the link
Extracting a numeric code is a regex against the plain-text body, as above. A magic
link needs one extra step: pull the href out of the HTML part rather than the
plain-text alternative, since some providers only put a clickable link in the HTML
version of the message.
```python
from bs4 import BeautifulSoup
def extract_magic_link(msg):
for part in msg.walk():
if part.get_content_type() == "text/html":
soup = BeautifulSoup(part.get_payload(decode=True), "html.parser")
link = soup.find("a", string=re.compile("verify|confirm|sign in", re.I))
if link:
return link["href"]
return None
```
One thing worth checking before trusting the extracted URL: some sending platforms
wrap the real link behind their own click-tracking redirect, so the `href` you pull
out of the HTML is not the destination URL itself, it is a tracking link that
redirects to it. That is fine to navigate directly - Playwright follows redirects the
same as any browser - but do not assume the string you extracted is the final URL if
you are trying to match it against something else, like an expected domain.
## Step 4: feed it back into the same session, not a new one
This is the part that actually matters for the automation to keep working reliably,
and it is easy to get wrong by treating steps 1 through 3 as a separate script from
step 4.
The browser that requested the code and the browser that redeems it have to be the
same session: same context, same seed-derived fingerprint, same proxy exit, ideally
the same page object still sitting on the login form. A login flow that requests a
code from one machine's fingerprint and then submits it from a different one is
exactly the cross-session mismatch a fingerprint-aware login already watches for, the
same argument made in full on
[why automating login is riskier than reusing a session](automating-login-vs-session-reuse.md):
replaying credentials from a different fingerprint asks the site to believe the same
identity's GPU, canvas hash and TLS handshake all changed mid-flow, independent of
whether the code itself is genuine.
In practice this means: do not send the code request, close the browser, run a
separate mail-fetching script, then open a *new* Playwright session to submit the
code. Keep the browser open across the whole thing, poll the inbox in the same
process, and submit the result into the same `page` object, as the first code block on
this page does. If a magic link is what arrived instead of a code, navigate the same
page to it rather than opening it in a fresh context:
```python
page.goto(magic_link) # same page, same identity that requested it
page.wait_for_url("https://example.com/account")
```
## Timing: the budget you are actually working against
Two failure directions, and you need a plan for both. Poll too fast and you risk
hitting your mail provider's own rate limit on IMAP logins, which is a real and
separate throttling layer from anything Playwright touches. Poll too slow, or set too
generous a total timeout, and you risk the code or link expiring before you use it -
some verification links expire in under two minutes, tighter than the 5 to 15 minutes
common for numeric codes. Set an explicit total timeout, back off between polls rather
than hammering the server every few hundred milliseconds, and treat a timeout as an
expected outcome your code handles, not an exception you were not expecting - the same
budget-first thinking as
[retrying failed requests with a total time-and-attempt cap](how-to-retry-failed-requests-playwright.md).
## Conclusion
An email OTP or magic-link login automates in three ordinary steps: trigger the send
with a timestamp, poll the inbox with `imaplib` (or a disposable-inbox API) filtered
by that timestamp, and feed the result back into the same browser session that
requested it. The mechanics are standard library code; the part worth being careful
about is keeping the request and the redemption in one identity, and budgeting the
poll loop against both a rate limit on one side and an expiring code on the other.
None of this reads or touches an inbox you do not have legitimate access to - it
automates a flow you are testing, the same way a saved session automates skipping a
login form you already have credentials for.
## Short answers to the questions that lead here
**How do I automate a login that emails a one-time code?** Trigger the send, poll your
inbox with `imaplib` filtered to messages received after the request, extract the code
with a regex, and fill it into the same page that requested it.
**Do I need a real mailbox, or can I use a test-email service?** Either works. A real
IMAP mailbox with an app-specific password is the direct route; many providers also
offer a disposable inbox reachable over a plain REST API, useful in CI where you do
not want a persistent account.
**Why did the login get flagged even though the code was correct?** Most likely the
code was requested and redeemed from two different browser sessions with two
different fingerprints. Keep the whole flow, request through redemption, inside one
Playwright session with one seed.
**How long should I poll before giving up?** Set an explicit total timeout rather than
polling forever, and back off between attempts. Codes and links both expire, some
links in under two minutes, so budget for that rather than assuming you have plenty of
time.
**My IMAP login fails even with the right password. Why?** Most mail providers now
require an app-specific password or an OAuth token for IMAP access rather than the
normal account password. That is a setup step outside Playwright.
**How do I handle a magic link instead of a numeric code?** Extract the href from the
HTML part of the message (plain text often omits it), then `page.goto()` that URL in
the same session that requested it.
**Is this the same thing as bypassing a site's verification?** No. This automates a
flow you have legitimate access to, the same category as reusing a saved login session
- it does not solve a challenge meant to keep automation out, and it requires an
inbox and credentials that are actually yours.
## Sources
- The Python standard library's [`imaplib` documentation](https://docs.python.org/3/library/imaplib.html),
retrieved 2026-08-30, for the module description and the `IMAP4_SSL`,
`search()` and `fetch()` signatures used above, and for the explicit note that the
default SSL context does not verify the server certificate or hostname.
- [RFC 3501](https://datatracker.ietf.org/doc/html/rfc3501.html), the IMAP4rev1
protocol `imaplib` implements, for `UNSEEN` as a defined search key.
- This project's own notes on session and fingerprint consistency, linked throughout,
for why the request and the redemption belong in one identity.
**See also:** [Automating TOTP-Based 2FA Login with Playwright](automating-totp-2fa-login-playwright.md)
for the other common second-login-step mechanism, a locally computed authenticator
code with no inbox and no polling involved at all, [Why automating login is riskier
than reusing a session](automating-login-vs-session-reuse.md)
for the fingerprint-consistency argument this page depends on,
[how to scrape data behind a login with Playwright](how-to-scrape-behind-login-playwright.md)
for the end-to-end session-reuse pattern this flow feeds into, and
[how to retry failed requests when scraping with Playwright](how-to-retry-failed-requests-playwright.md)
for the same total-budget thinking applied to a poll loop instead of a request retry.
---
*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.*
+148
View File
@@ -0,0 +1,148 @@
---
title: "Why automating login is riskier than reusing a session"
description: "Automating a login form runs the most monitored flow on most sites. Reusing a saved session skips it, if the fingerprint still matches the one that logged in."
parent: "The Automation Layer"
grand_parent: "Guides"
nav_order: 12
---
# Why automating login is riskier than reusing a session
**Automating a login form is riskier than reusing a session because the login form is
the single most heavily monitored flow on most sites, and reusing a saved session avoids
that flow entirely.** The catch is that a reused session only holds if the browser
fingerprint still matches the one that created it.
A script that fills a username, types a password and clicks submit looks like the
obvious way to get an automated session logged in. It is also, on most sites, the
single most heavily instrumented sequence of actions a visitor can perform - the exact
place account-takeover and credential-stuffing defenses concentrate, because that is
where they matter most for the site.
This page explains why that flow draws the most scrutiny, how session reuse skips it,
and the one condition - fingerprint consistency - that decides whether a reused session
keeps working.
## Automating the login form vs reusing a session: which is safer
Reusing a saved session is safer on most sites, because it never runs the login form -
the flow where abuse defenses are strongest - and instead starts already authenticated,
the way a returning visitor does. Automating the form can work, but it runs directly
into the site's most aggressive checks.
| | Automate the login form | Reuse a saved session |
|---|---|---|
| What runs | Username, password, submit: the most monitored flow | No login flow; the session starts authenticated |
| Scrutiny | Highest on the site | Same as any returning visitor |
| Main dependency | Human-like timing, focus order, pointer motion | Fingerprint matching the session's original |
| Fails when | Any automation signal is caught at the form | The fingerprint or exit country changes |
## Why the login flow specifically gets more scrutiny than the rest of the site
Most pages on a site are read by anyone. A login form is different: it is the one
place where getting it wrong has a direct cost to the operator, so it is where fraud
and abuse defenses get the most investment, updated the most often, and tuned the most
aggressively. A page that flags automation loosely everywhere else often flags it
tightly at the one form that asks for credentials.
That means every automation-detectable signal on this site - the timing between
keystrokes, whether the pointer travelled to the field or teleported, whether a field
was focused before it was filled, the rhythm between filling the form and submitting
it - gets checked hardest at exactly the moment a login script runs it.
## The alternative: don't run the flow at all
Playwright's [`storage_state`](https://playwright.dev/python/docs/api/class-browsercontext#browser-context-storage-state)
captures cookies and local storage from a context and can load them into a new one.
Log in once, by hand or through a session you trust,
[save and reuse that state](save-reuse-login-storage-state-playwright.md), and every
subsequent automated session starts already authenticated - no username field, no
password field, no submit click, and none of the scrutiny attached to that specific
sequence.
```python
# once, from a session that actually logged in
context.storage_state(path="session.json")
# every run after that
context = browser.new_context(storage_state="session.json")
```
This is not a workaround. It is the same mechanism a real returning visitor uses:
nobody who logged into a site yesterday retypes their password today, they carry a
session cookie that says who they already are. An automated session doing the same
thing is not imitating unusual behaviour, it is doing what every session that isn't a
first-time login already does.
## The condition this depends on, and it is not optional
A session was created by a specific browser, on a specific machine, presenting a
specific fingerprint at the moment of login. Replaying that session's cookies from a
different fingerprint is asking a site to believe that the same identity suddenly
changed its GPU, its font list, its canvas output and its TLS handshake between one
request and the next - which is exactly the kind of cross-session inconsistency
[a detector is built to catch](timezone-proxy-mismatch.md), regardless of whether the
cookie itself is genuinely valid.
Sites that bind a session to more than a cookie - checking the fingerprint against
what was recorded at login, not just validating the token - will flag or invalidate a
replayed session on a mismatched machine even though the credential is real. The
cookie proves who logged in. It does not, on its own, prove the request came from the
same browser that did.
The practical requirement follows directly: the fingerprint has to stay the same
across the login and every session that reuses it. [A profile tied to one seed](persistent-profiles.md)
is what makes that possible - the identity that logged in and the identity replaying
the cookie later are the same one, not two that happen to share a token.
## What to actually do
1. **Log in once**, through a session using the exact identity - seed, profile, proxy
country - you intend to keep using.
2. **Save `storage_state` immediately after**, while the session is fresh.
3. **Reuse it from a context built with the same identity**, not a fresh or different
one. The cookie and the fingerprint are a pair; only one half being right is not
enough.
4. **Treat expiry as certain, not exceptional.** Sessions end. Build the re-login path
once, using the same identity, rather than improvising it the first time a saved
session stops working.
## Short answers to the questions that lead here
**Is it safe to automate a login form at all?** It works, and it is the highest-scrutiny
sequence on most sites. If a session can be captured and reused instead, that avoids
the scrutiny rather than trying to survive it.
**Does a valid session cookie guarantee I won't be flagged?** No. A cookie proves a
credential. Some sites separately check whether the fingerprint replaying it matches
the one that created it, and a mismatch there is checked independently of whether the
token itself is genuine.
**Can I use one saved session across different machines or proxies?** Not safely if
the fingerprint or exit country changes. The session and the identity that created it
are a pair for exactly the same reason [a proxy and a timezone have to agree](timezone-proxy-mismatch.md).
**What happens when the saved session expires?** The automation needs a real
re-authentication path, through the same identity that created the original session,
not a different one improvised under pressure.
**See also:** [Save and reuse login with storage_state in Playwright](save-reuse-login-storage-state-playwright.md),
for the practical capture-and-reuse steps;
[Playwright persistent profile: what it fixes and breaks](persistent-profiles.md), for
the identity half of this pairing;
[how to scrape data behind a login with Playwright](how-to-scrape-behind-login-playwright.md),
for the end-to-end flow; and
[human-like pointer motion](human-mouse-movement.md), for what the login flow itself
checks when there is no way to avoid running it.
## Sources
- Playwright's own [`storage_state` / `storageState`](https://playwright.dev/python/docs/api/class-browsercontext#browser-context-storage-state)
API, for the session capture and reuse mechanism described above.
---
*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.*
@@ -0,0 +1,273 @@
---
title: "Automating TOTP-Based 2FA Login with Playwright"
description: "Generate a time-based one-time code with pyotp from the same shared secret an authenticator app would scan as a QR code, and feed it straight into the login form. No inbox, no polling, no IMAP - for testing your own application's 2FA flow."
parent: "Scraping with Playwright"
grand_parent: "Guides"
nav_order: 147
---
# Automating TOTP-Based 2FA Login with Playwright
This page is about a specific, ordinary testing need: your own application, or an
account you control, has authenticator-app two-factor authentication turned on,
and a test or a script needs to complete the login end to end without a human
opening Google Authenticator or Authy on a phone. The mechanism is cryptographic,
not network-based: a time-based one-time password (TOTP) is computed on the spot
from a shared secret you already hold, the same secret an authenticator app would
have scanned as a QR code the day 2FA was set up. Nothing here assumes or requires
access to an account that is not yours, and the whole point of writing this down
is to keep the automation scoped to accounts you actually control.
## This is not the email-OTP page, on purpose
If you came here from [automating an email OTP or magic-link
login](automating-email-otp-verification-login-playwright.md), the two pages solve
the same category of problem, "get past a second login step," with genuinely
different mechanics, and it is worth being explicit about which one your situation
actually needs.
| | Email OTP / magic link | TOTP authenticator |
|---|---|---|
| Where the code comes from | The site generates and emails it *after* you trigger the send | You generate it yourself, locally, from a secret you already hold |
| What you need on hand | IMAP credentials, or a test-inbox API | Nothing but the shared secret and a library |
| Timing model | Poll a real mailbox against a deadline; codes can take seconds to arrive and can expire in minutes | Instant; no network call, no waiting, no inbox at all |
| Failure mode | Mailbox rate limits, expired links, stale messages from old runs | Clock drift between your machine and the server, a mismatched digit/period setting |
The email-OTP page spends most of its length on `imaplib`, timestamps, and polling
loops, because the hard part there is coordinating with a mailbox on the network.
None of that exists here. If your two-factor step involves opening a mail client,
you want that page. If it involves an authenticator app and a 6-digit code that
refreshes every 30 seconds, you want this one.
## The shape of the flow
```python
import pyotp
from invisible_playwright import InvisiblePlaywright
SEED = 42
TOTP_SECRET = "JBSWY3DPEHPK3PXP" # the same secret your authenticator app holds
with InvisiblePlaywright(seed=SEED) as browser:
page = browser.new_page()
page.goto("https://example.com/login")
page.fill("#email", "you@example.com")
page.fill("#password", "your-password")
page.click("#sign-in")
page.wait_for_selector("#totp-code") # the 2FA step actually appeared
code = pyotp.TOTP(TOTP_SECRET).now()
page.fill("#totp-code", code)
page.click("#verify")
page.wait_for_url("https://example.com/account")
```
There is no step 2 that waits on anything external. `pyotp.TOTP(TOTP_SECRET).now()`
returns a code synchronously, in microseconds, because it is a computation, not a
request.
## Where the secret comes from
The shared secret is not something you invent; it is the same value your own
application generated when you (or a test account you control) turned on
authenticator-app 2FA. During that setup flow, most applications show a QR code
and, next to it, a plain-text fallback string for anyone whose phone camera does
not work. That fallback string is a base32-encoded secret, and it is exactly what
an authenticator app decodes out of the QR code before storing it. Google's own
specification for the format authenticator apps read, the `otpauth://` URI scheme,
states it directly: the QR code encodes a URI whose `secret` parameter is "an
arbitrary key value encoded in Base32," and that URI is "what get[s] converted
into QR codes during the setup process for authenticator applications." Capture
that string once, during your own account's enrollment, store it the way you would
store any other test credential, and `pyotp.TOTP(secret)` consumes it identically
to how a phone's authenticator app would.
```python
import pyotp
# provisioning_uri() is what you would render as a QR code for a human;
# reading the same secret directly is what a script needs instead.
secret = pyotp.random_base32()
uri = pyotp.totp.TOTP(secret).provisioning_uri(name="you@example.com", issuer_name="Example App")
print(uri) # otpauth://totp/Example%20App:you%40example.com?secret=...&issuer=Example%20App
```
Do not try to re-derive the secret from a screenshot of the QR code on every test
run. Capture it once, during setup, the same way you would capture a password.
## Generating the code
[PyOTP's own documentation](https://pyotp.readthedocs.io/en/stable/) describes the
library plainly: it generates and verifies one-time passwords for two-factor and
multi-factor authentication. The call that matters is one line:
```python
import pyotp
totp = pyotp.TOTP(secret)
code = totp.now() # e.g. "492039"
```
`.now()` computes the code for the current 30-second window and returns it as a
string. There is no client-server round trip anywhere in this call; the entire
value is derived from the secret and the current time.
### The algorithm, briefly
TOTP is defined in [RFC 6238](https://datatracker.ietf.org/doc/html/rfc6238) as a
time-based variant of HOTP (RFC 4226), the counter-based one-time-password
algorithm. The RFC states the relationship directly: `TOTP = HOTP(K, T)`, where
`T` is a moving factor computed as `(Current Unix time - T0) / X`, with `X` the
time step, 30 seconds by default, and `T0` the Unix epoch. In plain terms: instead
of HOTP's incrementing counter, TOTP uses "which 30-second slice of time is it
right now" as the counter, and HMACs that against the shared secret the same way
HOTP always has. Both your script and the server computing the same thing from the
same secret and the same clock arrive at the same 6-digit code, which is the whole
mechanism 2FA setup relies on, and the whole reason no network call is involved on
either generation or verification.
### Matching digits, algorithm and period to what the site actually issued
`pyotp.TOTP()` defaults to 6 digits, SHA1, and a 30-second period, which matches
the overwhelming majority of sites' authenticator-app implementations. If your
target application's enrollment page shows different values, in an advanced setup
screen or in the raw `otpauth://` URI, pass them explicitly:
```python
import hashlib
totp = pyotp.TOTP(secret, digits=8, digest=hashlib.sha256, interval=60)
```
A code generated with the wrong digit count, algorithm or interval will not match
what the server expects, and this looks identical to "the automation is broken"
from the outside. Read the parameters out of the actual `otpauth://` URI your
application issued rather than assuming the defaults.
## Clock drift and reuse, the two real failure modes
Two practical issues account for nearly every TOTP automation failure that is not
a plain wrong secret.
**Clock drift.** TOTP's whole security model rests on both sides agreeing what
time it is. If the machine running your script and the server verifying the code
disagree by more than roughly one time step, the code you generate is for the
wrong window and gets rejected as invalid even though the secret is correct.
`pyotp.TOTP.verify()` accepts a `valid_window` argument specifically for this: it
checks the current window plus a configurable number of windows on either side,
which is the standard tolerance most real verifiers apply server-side too. If
you are generating and submitting the code yourself rather than verifying it, the
practical fix is keeping the machine running the automation on synced NTP time,
not widening a window you do not control on the server end.
**Code reuse inside the same window.** Some applications reject submitting the
same TOTP code twice, even if it is still numerically valid, as a replay defense.
If a test suite runs the login flow twice in quick succession and happens to land
in the same 30-second window both times, the second attempt can fail for a reason
that has nothing to do with the code being wrong. This is intermittent by nature,
tied to wall-clock timing rather than your code, and the fix is either spacing
runs apart or, if the site's session allows it, not re-authenticating a fresh TOTP
challenge more than once per window in automated test loops.
## Storing the secret safely
The shared secret is a long-lived credential, not a one-time value; anyone who has
it can generate valid codes for as long as 2FA stays configured with it. Treat it
the way you would treat a password: an environment variable or a secrets manager
in CI, never a literal string committed to a repository. This is the same
housekeeping any other test credential needs, and it is worth stating because a
TOTP secret is easy to underestimate: unlike a password, it never gets rotated by
a failed-login lockout, so a leaked one stays valid indefinitely.
## Conclusion
TOTP-based 2FA automates in two lines once you have the secret: `pyotp.TOTP(secret).now()`
to compute the current code, and a `page.fill()` into whatever field the login
form shows for it. The mechanism is entirely local and cryptographic, RFC
6238's HMAC-over-time-step algorithm, with no inbox, no IMAP connection, and no
polling loop anywhere in it, which is the whole difference from [the email-OTP
flow](automating-email-otp-verification-login-playwright.md) this page is most
often confused with. The parts worth being careful about are capturing the secret
once during your own account's real enrollment rather than trying to re-scan a QR
code every run, matching the digit count, algorithm and period the site actually
issued, and keeping the automation's clock in sync so the code you compute lands
in the same window the server checks against.
## Short answers to the questions that lead here
**How do I automate a login protected by an authenticator app?** Get the shared
secret from your own account's 2FA enrollment (the base32 string next to the QR
code), then call `pyotp.TOTP(secret).now()` to generate the current code and fill
it into the login form, in the same script, right after triggering the login.
**Is this the same as automating an email OTP login?** No. [Email OTP](automating-email-otp-verification-login-playwright.md)
requires triggering a send and polling a real mailbox over IMAP until the code
arrives. TOTP requires no network call at all: you already hold the secret, and
the code is computed instantly and locally from it and the current time.
**Where do I get the TOTP secret in the first place?** From your own account's 2FA
setup screen, the same base32 string an authenticator app decodes out of the QR
code. Capture it once during enrollment and store it like any other credential;
do not try to re-derive it from a screenshot on every run.
**Why does the generated code get rejected even though the secret is right?**
Almost always clock drift between the machine generating the code and the server
verifying it, or a mismatch in digits, hash algorithm or time-step length against
what the site actually issued. Check both before assuming the secret itself is
wrong.
**Can I run the login twice in a row with the same code?** Some applications
reject reusing a TOTP code inside the same 30-second window as a replay defense,
independent of whether the code is still numerically valid. Space repeated
automated logins apart if you see intermittent rejections tied to timing.
**Is this a way to get into an account that is not mine?** No. It only works
against an account whose 2FA you set up yourself and whose secret you hold. The
technique automates a flow you already have legitimate access to, the same
category as reusing a saved session or automating an email OTP for your own
inbox; it does not solve, guess or bypass anything, and it is worthless against a
secret you were never given.
## Sources
- [PyOTP's own documentation](https://pyotp.readthedocs.io/en/stable/) and its
[GitHub repository](https://github.com/pyauth/pyotp), for the `TOTP` class,
`.now()`, `.verify()` and `valid_window`, and `provisioning_uri()`, retrieved
2026-08-30.
- [RFC 6238](https://datatracker.ietf.org/doc/html/rfc6238), "TOTP: Time-Based
One-Time Password Algorithm," for the `TOTP = HOTP(K, T)` definition and the
`T = (Current Unix time - T0) / X` moving-factor formula, retrieved 2026-08-30.
- [RFC 4226](https://datatracker.ietf.org/doc/html/rfc4226), the HOTP algorithm
TOTP extends with a time-derived counter in place of an incrementing one.
- Google's [Key Uri Format](https://github.com/google/google-authenticator/wiki/Key-Uri-Format)
specification, for the `otpauth://` URI scheme, the base32 `secret` parameter,
and its role as what actually gets encoded into a 2FA setup QR code, retrieved
2026-08-30.
- Checkly's own [How to Bypass Time-Based 2FA Login Flows With
Playwright](https://www.checklyhq.com/docs/learn/playwright/bypass-totp/),
verified live this session, for a real, independent walkthrough of the same
generate-then-fill pattern (using the JavaScript `otpauth` library against a
personal GitHub account's own TOTP secret, explicitly scoped to an account the
reader already controls).
- Playwrightsolutions.com's [Playwright Login Test With Two Factor Authentication
(2FA) Enabled (TOTP)](https://playwrightsolutions.com/playwright-login-test-with-2-factor-authentication-2fa-enabled/),
verified live this session, for another independent practitioner writeup of the
same mechanism.
**See also:** [Automating an Email OTP / Verification-Link Login with
Playwright](automating-email-otp-verification-login-playwright.md) for the
network-polling variant of "get past a second login step" this page deliberately
does not overlap with, [why automating login is riskier than reusing a
session](automating-login-vs-session-reuse.md) for the fingerprint-consistency
argument that applies to any login automation, and [how to scrape data behind a
login with Playwright](how-to-scrape-behind-login-playwright.md) for the
session-reuse pattern this flow feeds into once the 2FA step is past.
---
*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
secret that was legitimately yours to begin with.*
+95
View File
@@ -0,0 +1,95 @@
---
title: "AWS WAF Bot Control, Explained"
description: "AWS WAF Bot Control runs two protection levels: Common blocks self-identifying bots by static analysis, Targeted adds a token-backed challenge/CAPTCHA pipeline with machine-learning rules for coordinated activity. Read from AWS's own docs, rule by rule."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 33
---
# AWS WAF Bot Control, Explained
AWS WAF Bot Control is a managed rule group, not a separate product with its own dashboard and SDK ecosystem the way Akamai or DataDome ship one. You add it to a Web ACL (AWS's term for a firewall policy) the same way you'd add any other managed rule group, and unlike most of the vendors in this corpus, AWS documents its rules by name, in public, with what each one inspects and what action it takes by default. That is unusually specific for this category, and this page leans on it: almost everything below is quoted or closely paraphrased from AWS's own developer guide, not reconstructed from outside reverse engineering.
Read from AWS's own documentation on 2026-08-30.
## Two protection levels, and what separates them
Bot Control ships as one managed rule group, `AWSManagedRulesBotControlRuleSet`, with two inspection levels a site chooses between:
**Common** detects "a variety of self-identifying bots, such as web scraping frameworks, search engines, and automated browsers," using "traditional bot detection techniques, such as static request data analysis." Per AWS's own framing, this level labels the traffic it recognizes and blocks the bots it cannot verify, without needing anything running client-side.
**Targeted** includes everything Common does and adds detection for bots that do not self-identify, meaning nothing in the request announces what it is. Targeted protections, per AWS, "mitigate bot activity using a combination of rate limiting and CAPTCHA and background browser challenges," and require a JavaScript (or mobile) SDK integration on the protected site, because the targeted rules read information the SDK collects and attaches to a **token**, not just the raw request.
Two sub-families of targeted rules are named directly by their prefix. Rules beginning `TGT_` use "browser interrogation, fingerprinting, and behavior heuristics." Rules beginning `TGT_ML_` are AWS's machine-learning layer specifically: "automated, machine-learning analysis of website traffic statistics to detect anomalous behavior indicative of distributed, coordinated bot activity," built from traffic statistics like timestamps, browser characteristics, and previous URL visited. AWS states plainly that ML is on by default for Targeted but can be turned off, in which case those rules simply do not evaluate.
## The token: what ties a session's evidence together
Targeted detection runs on a **token**, generated by the JavaScript or mobile SDK and carried on subsequent requests, and AWS's rules read the token's state instead of re-deriving everything from scratch on every request. Two labels attached to every token matter most:
- `awswaf:managed:token:id:{{identifier}}`, a session identifier tied to the specific token in use, changing if the client acquires a new one.
- `awswaf:managed:token:fingerprint:{{fingerprint-identifier}}`, a browser fingerprint AWS computes from client signals, which "stays the same across multiple token acquisition attempts" and is explicitly "not unique to a single client," AWS's own words for a value meant to identify a device class, not a specific visitor.
A token can be `accepted` (present, with a valid, unexpired challenge or CAPTCHA solution, on the right domain), or `rejected` for one of several named reasons: `rejected:not_solved`, `rejected:expired`, `rejected:domain_mismatch`, or `rejected:invalid`. A request can also be `absent` a token entirely, which is its own label and, at volume, its own rule: `TGT_VolumetricIpTokenAbsent` specifically tracks clients sending five or more requests in five minutes without a valid token and issues a Challenge action once that threshold is crossed.
## What the individual rules actually check
A sample of named rules, quoted from AWS's own rule listing, gives a concrete sense of what "browser interrogation" and "behavior heuristics" mean in practice, not as marketing language:
| Rule | What it inspects | Default action |
|---|---|---|
| `SignalAutomatedBrowser` | Indicators the client browser might be automated | Block |
| `SignalNonBrowserUserAgent` | A user-agent string that does not read as a browser at all | Block |
| `SignalKnownBotDataCenter` | Traffic originating from IP ranges typically used by bots | Block |
| `TGT_SignalBrowserAutomationExtension` | A browser extension that assists automation, e.g. Selenium IDE, present on the client even if unused | CAPTCHA |
| `TGT_SignalBrowserInconsistency` | "Inconsistent browser interrogation data" inside the token | CAPTCHA |
| `TGT_VolumetricSession` | An abnormally high request volume from one client session in a 5-minute window, versus AWS's own traffic baselines | CAPTCHA (Block at maximum confidence) |
| `TGT_ML_CoordinatedActivityLow/Medium/High` | Machine-learning-detected patterns consistent with distributed, coordinated bot activity across many IPs | Challenge / CAPTCHA / CAPTCHA |
| `TGT_TokenReuseIpLow/Medium/High` | The same token reused across more than 2, 5, or 8 distinct IPs in 5 minutes | Count / CAPTCHA / Block |
| `TGT_TokenReuseCountryLow/Medium/High` | The same token reused across more than 1, 2, or 3 countries in 5 minutes | Count / CAPTCHA / Block |
The token-reuse family is worth pausing on: it does not ask whether any single request looks automated, it asks whether one browser's proof-of-legitimacy is being shared across more devices, networks or countries than a single real session plausibly touches in five minutes. That is a detection axis with no fingerprint answer at all, honest or otherwise, because the thing being scored is reuse across sessions, not any property of one session's browser.
AWS is also explicit about a category it treats differently from everything above: a maintained list of verified bots (search engine crawlers, monitoring services, SEO tools) that Bot Control identifies and does not block, adding a `bot:verified` label plus category and organization labels instead. A newer addition, **Web Bot Authentication**, lets a bot cryptographically sign its requests against a public key directory; a verified signature (`web_bot_auth:verified`) causes the category-block and `TGT_TokenAbsent` rules to skip that request entirely, a mechanism for bots that want to identify themselves honestly and be let through, not evade detection.
## 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 [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.
`invisible_playwright` does not claim to defeat AWS WAF Bot Control's targeted protections as a system. It answers the automation-signature and browser-consistency rules honestly, because there is no override for them to catch, and it has nothing to say about IP reputation, token-reuse patterns across a fleet of sessions, or AWS's own traffic-baseline machine learning, all of which are orchestration-level properties, not engine-level ones.
## Short answers to the questions that lead here
**What is the difference between Common and Targeted protection?** Common uses static, self-identifying signals (user-agent strings, known scraping-framework patterns) and needs no client-side code. Targeted adds fingerprinting and behavior heuristics via a JavaScript/mobile SDK, plus a token that carries proof of a passed challenge or CAPTCHA across requests.
**What is the AWS WAF token, exactly?** A piece of state the SDK generates and attaches to requests, carrying a session identifier, a browser-fingerprint identifier, and the status of any challenge or CAPTCHA solve. Rules check the token's status (`accepted`, `rejected:*`, `absent`) rather than re-scoring every request from nothing.
**Does AWS WAF Bot Control use machine learning?** Yes, in the `TGT_ML_` rule family specifically, trained on traffic statistics like timestamps, browser characteristics and prior URLs visited, aimed at distributed coordinated activity rather than any single request. It is on by default for Targeted protection and can be disabled.
**What is token reuse, and why does it matter?** The same proof-of-legitimacy token appearing across multiple IPs, countries, or ASNs within a five-minute window. It is a detection axis with no browser-level answer, because it scores how a token is being shared, not what any individual session's browser does.
**Does Bot Control block search engines and other known-good bots?** No. AWS maintains a verified-bot list that gets labeled and passed rather than blocked, and a newer cryptographic mechanism, Web Bot Authentication, lets a bot sign requests to prove its identity instead of being challenged.
**Does a real browser engine defeat AWS WAF Bot Control?** It answers the automation-signature and browser-consistency rules honestly, which removes that whole failure class. It has no bearing on IP/data-center signals, token-reuse-across-sessions rules, or the ML-based coordinated-activity detection, all of which operate above the level of any single browser.
**Does invisible_playwright bypass AWS WAF Bot Control?** No. This project does not sell or claim a bypass service for AWS WAF or any comparable vendor.
**See also:** [How do websites detect bots?](how-do-websites-detect-bots.md) for where a managed-rule-group check like this sits among the other layers; [ASN and IP reputation in bot detection](asn-and-ip-reputation-in-bot-detection.md) for the network-origin signals Bot Control's data-center rule leans on; and [How Cloudflare Turnstile actually works](cloudflare-turnstile-explained.md) for a comparably-documented token-and-challenge model from a different vendor.
## Sources
- AWS, [AWS WAF Bot Control components](https://docs.aws.amazon.com/waf/latest/developerguide/waf-bot-control-components.html),
retrieved 2026-08-30, for the Common/Targeted protection-level distinction, the `TGT_`/`TGT_ML_` rule-name conventions, and the SDK/token integration requirement.
- AWS, [AWS WAF Bot Control rule group](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html),
retrieved 2026-08-30, for the full rule listing quoted in the table above, the token status labels (`accepted`/`rejected:*`/`absent`), the verified-bot list and Web Bot Authentication mechanism, and the token-reuse rule thresholds.
- AWS, [Using managed rule groups in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-managed-rule-groups.html),
retrieved 2026-08-30, for how a managed rule group is added to a Web ACL.
---
*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.*
@@ -0,0 +1,227 @@
---
title: "Back a computer-use agent with a real browser engine"
description: "Run OpenAI's computer-use agent inside patched Firefox by implementing its Computer interface over an invisible_playwright page, and the honest limits."
parent: "AI Agents and Frameworks"
grand_parent: "Guides"
nav_order: 16
---
# Back a computer-use agent with a real browser engine
A computer-use agent is a loop: take a screenshot, send it to a model, get back a
coordinate to click or some text to type, apply it, screenshot again. The interesting
question for anyone running one against real sites is not the model. It is what browser
the screenshots come from and where the clicks land, because that is the part a site can
inspect.
The good news is that the popular reference implementation was built to let you swap that
part out. This page shows how, using the real invisible_playwright API, and it is honest
about what the swap fixes and what it leaves entirely up to you.
## The seam that makes this easy
OpenAI's open `cua-sample-app` does not hardcode a browser. The screenshot-and-click loop
drives a small, pluggable `Computer` interface, and the repository ships one
implementation of it called `LocalPlaywrightComputer`. Every action the model returns -
`screenshot`, `click`, `type`, `scroll`, `keypress`, `goto` - is a method the loop calls
on whatever `Computer` object you hand it. The loop does not know or care what is behind
those methods.
That seam is the whole opportunity. If you implement the same interface over a browser you
control, the same loop now runs inside your engine. Nothing about the agent's reasoning
changes. What changes is the thing on the other side of `screenshot()` and `click()`.
## What backing it with a real engine actually fixes
`LocalPlaywrightComputer` drives a stock automation build. invisible_playwright is a
Firefox patched at the C++ level and driven by stock Playwright, generating a full,
internally consistent identity per session - GPU, canvas, audio, fonts, screen, roughly
400 fields - from one seed. Point the `Computer` interface at one of its pages and two
concrete things move:
- **The engine the screenshots come from.** The pixels the model sees are rendered by a
browser whose fingerprint, TLS handshake and driver layer read as a genuine Firefox,
not as an automation build announcing itself. This is why it clears most
fingerprint, TLS and driver-layer checks: it is built to look like a real browser
driven by a real person, not to suppress signals. A suppressed or blank surface is its
own tell, so the goal is a present, plausible value, not a missing one.
- **The page the clicks land on.** Coordinate clicks arrive on a page inside that engine,
and pointer motion between them follows a Bezier curve instead of teleporting from
point to point.
What it does not touch is equally important, and the next section is about that.
## Two lines to launch, one class to adapt
The launch is the same two-line change as anywhere else in these docs. `InvisiblePlaywright`
returns a real Playwright `Browser`, so every method you already use is available:
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
page.mouse.click(200, 140) # the pointer arcs there on a Bezier curve
```
To feed that page to the agent, wrap it in a class that satisfies the `Computer`
interface. This is a representative subset of the methods the loop calls; each one is a
plain call on the real Playwright `page`:
```python
import base64
from invisible_playwright import InvisiblePlaywright
class InvisibleComputer:
"""Adapts an invisible_playwright page to cua-sample-app's Computer interface."""
environment = "browser"
dimensions = (1280, 800)
def __init__(self, page):
self._page = page
def screenshot(self) -> str:
png = self._page.screenshot()
return base64.b64encode(png).decode()
def click(self, x: int, y: int, button: str = "left") -> None:
self._page.mouse.click(x, y, button=button)
def type(self, text: str) -> None:
self._page.keyboard.type(text)
def keypress(self, keys: list[str]) -> None:
for key in keys:
self._page.keyboard.press(key)
def scroll(self, x: int, y: int, scroll_x: int, scroll_y: int) -> None:
self._page.mouse.move(x, y)
self._page.mouse.wheel(scroll_x, scroll_y)
def goto(self, url: str) -> None:
self._page.goto(url)
def get_current_url(self) -> str:
return self._page.url
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
computer = InvisibleComputer(page)
# hand `computer` to the cua-sample-app Agent in place of LocalPlaywrightComputer;
# the screenshot-and-click loop now runs inside the patched Firefox.
```
Everything here uses only documented Playwright methods on a real `Browser` and `Page`.
There is no wrapped subset to learn, which is the point of the two-line switch. Pass a
`seed` and the identity is reproducible, so a run that gets challenged can be replayed
exactly instead of guessed at.
## What it does not fix, and who supplies that
Swapping the engine fixes the engine and the page. It does not change two things that
decide most real outcomes, and pretending otherwise would be dishonest.
- **The click rhythm.** The loop still clicks a coordinate, waits for the model, and
clicks the next coordinate. That cadence has a shape: long pauses clustered around model
latency rather than around reading speed, and clicks that land dead-centre on targets.
The Bezier motion between points helps, but the higher-level timing is the agent's, and
a site that watches behaviour rather than fingerprints is watching that. Human pacing is
something you add on top; see [the pause shaped like model latency](ai-browser-agents-stealth.md)
and [what human pointer motion actually looks like](human-mouse-movement.md).
- **The network path.** The screenshots come from a real-looking Firefox, but the traffic
still exits wherever your host or proxy sends it. A genuine browser on a datacenter
address, or on an IP a thousand other people are using this minute, still loses. IP
reputation, per-account quotas and rate limits are not browser properties, and no engine
swap touches them. You supply the clean exit.
Set a proxy the same way as any other session, and let the browser timezone follow the
exit rather than pinning it by hand:
```python
proxy = {"server": "socks5://gate.example.com:1080", "username": "u", "password": "p"}
with InvisiblePlaywright(seed=42, proxy=proxy) as browser:
page = browser.new_page()
computer = InvisibleComputer(page)
...
```
The honest summary: this raises the browser and the page from "obvious automation" to
"indistinguishable from a real Firefox", which clears the fingerprint, TLS and driver
layer. It leaves behaviour timing and network reputation exactly where they were, on your
side of the line. See [why a clean fingerprint can still be blocked](why-blocked-with-a-clean-fingerprint.md)
for what remains after the engine stops being the problem.
## Prove the swap did what you think
Do not trust the diff, measure it. Run the agent's own `screenshot()` against a public
fingerprinting page, once with `LocalPlaywrightComputer` and once with the adapter above,
and compare the reports field by field rather than reading the verdicts. The fields that
move - GPU renderer, canvas hash, the driver flag, the platform string - are what the
swap bought you. The fields that do not move, and the timing and address it cannot touch,
are what you still owe. The method is the same one in
[how to test bot detection without a false pass](how-to-test-bot-detection.md): assert the
right signal is present, not that a wrong one is absent, and run it more than once.
## Conclusion
The pluggable `Computer` interface in OpenAI's `cua-sample-app` is the seam that lets you
run the exact same screenshot-and-click loop inside a different browser. Implementing it
over an invisible_playwright page fixes the two things a site inspects first - the engine
the screenshots come from and the page the clicks land on - and that is genuinely most of
the fingerprint battle. It is not the whole session. The coordinate-click rhythm and the
network path are still yours, and an agent that looks like a real Firefox on a bad IP with
robotic pacing is still an agent that gets caught. Swap the engine, then supply the pacing
and the exit.
## Short answers to the questions that lead here
**Can I use invisible_playwright with OpenAI's computer-use agent?** Yes. The
`cua-sample-app` drives a pluggable `Computer` interface; implement that interface over an
invisible_playwright page and the loop runs inside the patched Firefox.
**Does this make my agent undetectable?** No, and no tool honestly can. It makes the
browser engine, TLS and driver layer read as a real Firefox, which clears most
fingerprint checks. It does not fix your IP, your rate limits, or the timing of the clicks.
**What exactly does the engine swap change?** The screenshots are rendered by a real-looking
Firefox instead of an automation build, and the clicks land through Bezier pointer motion.
The higher-level click cadence and the network path are unchanged.
**Do I have to rewrite the agent's loop?** No. You implement one small adapter class with
methods like `screenshot`, `click`, `type` and `scroll`, each a plain call on the real
Playwright page. The loop stays as it is.
**Why does behaviour timing still matter?** Because a site can watch when you act, not just
what your browser reports. Pauses shaped like model latency and clicks dead-centre on
targets are a behavioural signal the engine does not touch.
**What proxy should I use?** A clean one. [Around 90% of proxies are already known and
blocked](configuration.md) before you ever use them, and a perfect browser on a known IP
still loses. Set it via the `proxy` argument and let the timezone auto-derive from the exit.
**See also:** [AI browser agents and stealth](ai-browser-agents-stealth.md) for what
applies across every agent framework, [how browser-use gets detected](browser-use-detection.md)
for the CDP-driven case, and [the checklist for being detected on one site](playwright-detected-as-bot.md)
for the order to debug in once something flags you.
## Sources
- OpenAI's open `cua-sample-app` and its `Computer` interface, including the shipped
`LocalPlaywrightComputer` implementation, read from the repository rather than assumed.
- This project's own API: `InvisiblePlaywright` returns a real Playwright `Browser`, so
the adapter above uses only documented Playwright methods - [`Page`](https://playwright.dev/python/docs/api/class-page),
[`Mouse`](https://playwright.dev/python/docs/api/class-mouse) and
[`Keyboard`](https://playwright.dev/python/docs/api/class-keyboard) - unchanged.
- This project's release gates and the field-by-field comparison method documented in the
testing pages linked above.
---
*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.*
+4 -4
View File
@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="99" height="20" role="img" aria-label="Firefox: 151.0">
<title>Firefox: 151.0</title>
<svg xmlns="http://www.w3.org/2000/svg" width="99" height="20" role="img" aria-label="Firefox: 159.0">
<title>Firefox: 159.0</title>
<linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient>
<clipPath id="r"><rect width="99" height="20" rx="3" fill="#fff"/></clipPath>
<g clip-path="url(#r)">
@@ -10,7 +10,7 @@
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="28.0" y="15" fill="#010101" fill-opacity=".3">Firefox</text>
<text x="28.0" y="14">Firefox</text>
<text x="77.5" y="15" fill="#010101" fill-opacity=".3">151.0</text>
<text x="77.5" y="14">151.0</text>
<text x="77.5" y="15" fill="#010101" fill-opacity=".3">159.0</text>
<text x="77.5" y="14">159.0</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 855 B

After

Width:  |  Height:  |  Size: 855 B

+7 -7
View File
@@ -1,16 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" width="139" height="20" role="img" aria-label="browser launches: 1M">
<title>browser launches: 1M</title>
<svg xmlns="http://www.w3.org/2000/svg" width="157" height="20" role="img" aria-label="browser launches: 1.64M">
<title>browser launches: 1.64M</title>
<linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient>
<clipPath id="r"><rect width="139" height="20" rx="3" fill="#fff"/></clipPath>
<clipPath id="r"><rect width="157" height="20" rx="3" fill="#fff"/></clipPath>
<g clip-path="url(#r)">
<rect width="116" height="20" fill="#555"/>
<rect x="116" width="23" height="20" fill="#007ec6"/>
<rect width="139" height="20" fill="url(#s)"/>
<rect x="116" width="41" height="20" fill="#007ec6"/>
<rect width="157" height="20" fill="url(#s)"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="58.0" y="15" fill="#010101" fill-opacity=".3">browser launches</text>
<text x="58.0" y="14">browser launches</text>
<text x="127.5" y="15" fill="#010101" fill-opacity=".3">1M</text>
<text x="127.5" y="14">1M</text>
<text x="136.5" y="15" fill="#010101" fill-opacity=".3">1.64M</text>
<text x="136.5" y="14">1.64M</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 886 B

After

Width:  |  Height:  |  Size: 898 B

+7 -7
View File
@@ -1,16 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" width="79" height="20" role="img" aria-label="Stars: 1.8k">
<title>Stars: 1.8k</title>
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="20" role="img" aria-label="Stars: 1.88k">
<title>Stars: 1.88k</title>
<linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient>
<clipPath id="r"><rect width="79" height="20" rx="3" fill="#fff"/></clipPath>
<clipPath id="r"><rect width="80" height="20" rx="3" fill="#fff"/></clipPath>
<g clip-path="url(#r)">
<rect width="43" height="20" fill="#555"/>
<rect x="43" width="36" height="20" fill="#e8a317"/>
<rect width="79" height="20" fill="url(#s)"/>
<rect x="43" width="37" height="20" fill="#e8a317"/>
<rect width="80" height="20" fill="url(#s)"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="21.5" y="15" fill="#010101" fill-opacity=".3">Stars</text>
<text x="21.5" y="14">Stars</text>
<text x="61.0" y="15" fill="#010101" fill-opacity=".3">1.8k</text>
<text x="61.0" y="14">1.8k</text>
<text x="61.5" y="15" fill="#010101" fill-opacity=".3">1.88k</text>
<text x="61.5" y="14">1.88k</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 843 B

After

Width:  |  Height:  |  Size: 847 B

+16
View File
@@ -0,0 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" width="204" height="38" viewBox="0 0 204 38" role="img" aria-label="Join on Telegram">
<title>Join on Telegram</title>
<defs>
<linearGradient id="g" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#37AEE2"/>
<stop offset="1" stop-color="#1E96C8"/>
</linearGradient>
</defs>
<rect x="0.5" y="0.5" width="203" height="37" rx="18.5" fill="url(#g)"/>
<g transform="translate(20 9.5)" fill="#fff">
<path d="M18.6 1.1 1.2 7.9c-1.0.4-1.0.9-.2 1.2l4.4 1.4 1.7 5.2c.2.6.4.7.9.3l2.5-2.0 4.2 3.1c.8.4 1.3.2 1.5-.7l2.7-12.7c.2-1.0-.4-1.5-1.3-1.1Zm-4.0 3.1-7.3 6.6-.3 3.1-1.5-4.6 9.1-5.1Z"/>
</g>
<text x="123" y="24.5" fill="#fff" text-anchor="middle"
font-family="-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif"
font-size="15" font-weight="600">Join on Telegram</text>
</svg>

After

Width:  |  Height:  |  Size: 863 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

+217
View File
@@ -0,0 +1,217 @@
---
title: "Battery API fingerprint: does Firefox expose it?"
description: "Does desktop Firefox expose the Battery Status API? No, it was removed in 2017, so a battery object under a Firefox user agent gives away a fake browser."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 29
---
# Battery API fingerprint: does Firefox expose it?
Short version: on the desktop, no. Firefox removed the
[Battery Status API](https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API)'s
`navigator.getBattery()` from web content in the 52 series back in 2017, on privacy
grounds, and it has never come back.
So a real desktop Firefox has no Battery Status API at all. `navigator.getBattery` is
`undefined`, and there is nothing to read.
That single fact turns the Battery API into a small but reliable consistency check. A
page that claims to be Firefox in its user agent, and then successfully obtains a
battery object, has not measured your battery. It has caught a browser that is lying
about what it is. This page explains why that happens, why the honest answer is to have
no Battery API instead of a convincing fake one, and how a genuine Firefox build gets
that for free.
## What the Battery Status API was, and why Firefox dropped it
The Battery Status API let a page call `navigator.getBattery()` and read the charge
level, whether the device was plugged in, and the seconds until full or empty. It was
meant for power-aware pages that could defer heavy work on a low battery.
The privacy problem showed up quickly. The charge level was reported with enough
precision, and it changed slowly enough, that the combination of level plus
charging state plus time-remaining behaved like a short-lived identifier: two page
loads seconds apart saw the same unusual value, and that value could be used to correlate
visitors even across contexts that were supposed to be isolated. Firefox responded by
removing the API from web content entirely in the
[52 series in 2017](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/52),
restricting it to chrome/privileged code only. Chromium kept a
reduced version. That divergence is the whole point for fingerprinting: the presence or
absence of `getBattery` is now a per-engine trait, not a per-device one.
## Why absence is the honest answer, and a fake battery is the tell
A fake battery reading is the riskier of the two outcomes, because an absence matches
every real Firefox automatically while a fake value has to survive every angle a
detector can check it from. There are two ways an automation stack can end up
"consistent" with a Firefox user agent on this surface.
The first is to actually be a Firefox build, in which case `navigator.getBattery` is
simply not there, because the engine never defined it. Nothing is spoofed. There is no
value to keep plausible over time, no charging animation to fake, no drain rate to model.
The gap in the API is real, so it survives every probe automatically.
The second is to run an engine that does expose the Battery API, usually a Chromium base,
and then bolt on a JavaScript layer that tries to look like Firefox. Now the stealth
layer has a decision to make. If it leaves `getBattery` in place, the page reads a battery
object from a claimed-Firefox browser, which no real Firefox produces, and that is a
direct contradiction.
If it deletes `getBattery` to hide the mismatch, it has to delete it
convincingly: the property has to be gone from the prototype, absent from a
`for..in` walk, missing from `Object.getOwnPropertyNames`, and it has to stay missing when
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 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.
The general rule, which the Battery API illustrates cleanly, is that adding a fake signal
is almost always more dangerous than a real absence. An absence is one bit that matches
every other Firefox on earth. A fake is a value you now have to defend against every angle
a detector can approach it from.
## How the patched build inherits the gap natively
invisible_playwright drives a Firefox that is patched at the C++ level, not a different
engine wearing a Firefox user agent. Because the base is a real Firefox from the current
release line, it inherits the same missing Battery API that every stock desktop Firefox
has had since 2017. There is no shim reintroducing `getBattery` and no shim removing it,
because there was never anything to remove. The surface is correct for the same reason a
stock Firefox is correct: the engine simply does not implement that API for web content.
That is the recurring theme across the fingerprint surface. A field is most robust when it
is genuinely produced by a real browser rather than reconstructed on top of one. The same
logic covers the identity fields that a page reads far more often than the battery, such
as [what `navigator.vendor` and `navigator.productSub` report on Firefox](navigator-vendor-productsub-firefox.md),
which are wrong on a Chromium base pretending to be Firefox and correct on an actual
Firefox build.
### The answer, read from a session
![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/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.
The two Firefox constants sit next to it on purpose. A build that reports the empty
`vendor` and `20100101` for `productSub`, and then hands a page a battery object, has
contradicted itself with three property reads: the first two say Firefox and the third
says something that is not one.
## Check it yourself in two lines
Switching from stock Playwright is a two-line change, and after that every standard
Playwright method works unchanged. Here is the whole probe: launch, open a page, and ask
the browser whether it has a Battery API.
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
report = page.evaluate("""() => ({
userAgent: navigator.userAgent,
hasGetBattery: typeof navigator.getBattery,
onPrototype: 'getBattery' in Navigator.prototype,
})""")
print(report)
```
On this build you get a Firefox user agent, `hasGetBattery` equal to `"undefined"`, and
`onPrototype` equal to `False`. That is the correct, boring result: a Firefox with no
Battery API, exactly like the one a person runs. The `seed=42` argument makes the whole
identity reproducible, so if you are comparing this against a stock Firefox on the same
machine you can rerun the exact same fingerprint rather than a fresh random one each time.
The comparison is the part worth doing by hand. Open the same probe in a stock desktop
Firefox and you will see the identical three values. Open it in a plain Chromium and
`hasGetBattery` comes back `"function"`. That contrast, run against a real reference
browser rather than read as a verdict, is the method the
[testing guide](how-to-test-bot-detection.md) argues for on every surface.
## What a passing battery check does not buy you
This is where honesty matters, because it is easy to overread a green result.
Having no Battery API, correctly, tells a detector that this browser looks like a genuine
Firefox on this one narrow surface. It says nothing whatsoever about your network. The
Battery API cannot see your IP address, your exit country, or how many requests you have
made in the last minute. A browser can be a flawless Firefox on every fingerprint field
and still be turned away because the exit IP is a known datacenter range, because the
account behind the session hit a per-account quota, because the requests arrived faster
than a human hands could produce them, or because the pointer never moved before the click.
invisible_playwright is designed to look like a real browser driven by a real person, and
that is genuinely why it passes most fingerprint, TLS and driver-layer checks: the engine
is a real Firefox, so the traits it reports are the traits Firefox actually has, this API
absence among them. But it does not supply a clean IP, it does not pace your actions, and
it does not manage per-account limits. Those are yours to bring: a reputable exit, human
timing, and sane volume. The [configuration guide](configuration.md) covers the proxy and
timezone side of that, and the [detected-on-one-site checklist](playwright-detected-as-bot.md)
walks the causes in the order they are usually the real culprit, with the network exit near
the bottom of the list rather than the top.
## Conclusion
The Battery Status API is a clean example of a detection signal that is best handled by not
existing. Desktop Firefox removed it in 2017, so the honest state for anything claiming to
be Firefox is to have no `getBattery` at all. A stealth layer that adds a fake battery
object to a non-Firefox engine creates the exact contradiction it was trying to avoid, and
one that tries to delete the API instead has to delete it perfectly or leave a tampering
trace. A patched real-Firefox build sidesteps the whole dilemma by inheriting the gap
natively. It is a small surface, it costs nothing to get right, and getting it right is
worth exactly as much as it is: one consistent bit, and not one bit more about your IP or
your behaviour.
## Short answers to the questions that lead here
**Does Firefox have a Battery API?** Not on the desktop for web content. It was removed in
the 52 series in 2017 for privacy reasons, so `navigator.getBattery` is `undefined`.
**Is a battery reading under a Firefox user agent a red flag?** Yes. A real desktop Firefox
cannot return a battery object, so a page that gets one from a claimed-Firefox browser has
caught a fake.
**Does Chrome still expose it?** Chromium kept a reduced Battery API, which is why the
presence or absence of `getBattery` now works as a per-engine trait rather than a
per-device one.
**Should a stealth tool fake a battery to look complete?** No. Adding a fake signal is more
dangerous than a real absence, because the fake has to survive every angle a detector can
probe from, while an absence matches every other Firefox automatically.
**Does invisible_playwright spoof the Battery API?** No. It drives a real patched Firefox,
so the API is simply absent the same way it is absent in a stock Firefox. There is nothing
to spoof.
**If my battery check passes, am I undetectable?** No. This surface says nothing about your
IP reputation, per-account quotas, rate limits, or behaviour. A clean proxy and human pacing
are still on you.
## Sources
- Mozilla's own [Firefox 52 release notes](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/52),
which record the Battery Status API becoming available only to chrome/privileged code
in that release, 2017.
- This project's own fingerprint parity checks, which read `navigator.getBattery` against a
stock desktop Firefox and confirm both report the same absence.
**See also:** [what data websites collect about your browser](what-data-websites-collect-about-your-browser.md),
[the navigator.vendor and productSub story on Firefox](navigator-vendor-productsub-firefox.md),
and [how navigator.webdriver actually reads](navigator-webdriver-explained.md).
---
*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.*
@@ -0,0 +1,211 @@
---
title: "Beyond robots.txt: How Sites Actually Block AI Crawlers Now"
description: "robots.txt is a request a crawler can ignore, not a lock. What sites actually run underneath it in 2026: rate limiting, behavioral bot scoring, IP and ASN blocking, and decoy mazes, read from Cloudflare's own docs and real practitioner writeups."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 37
---
# Beyond robots.txt: How Sites Actually Block AI Crawlers Now
`robots.txt` is a text file a crawler can read and ignore. Nothing about HTTP forces
a client to fetch it, parse it, or honor a single line inside it. It has worked as
well as it has for thirty years because the crawlers that mattered, mostly search
engines with a reputation to protect, chose to honor it. A crawler with no brand to
protect and a mandate to collect training data has a different set of incentives, and
2026 is the year that gap became a line item.
This page is about what a site actually runs underneath robots.txt once it decides a
polite request is not enough. None of it is exotic. All of it is documented by the
vendors running it or reported by people who watched it happen to their own traffic.
## Why the file alone was never going to hold
Cloudflare's own numbers make the gap concrete. As of a mid-2026 measurement, only
2.98% of the top one million web properties actively blocked AI crawlers, even though
38.73% of them were seeing AI-bot traffic hit their servers. Separately, Cloudflare
found that only 37% of the top 10,000 domains have a robots.txt file at all, and most
of those never got around to adding an AI-specific disallow line. A file nobody wrote
blocks nothing, and a file that only asks nicely blocks only the crawlers that were
already going to comply.
Cloudflare says the quiet part directly in its own writing on the subject: "user
agents are trivial for bot operators to change." A `Disallow` line keyed to a
crawler's declared name works only until that crawler stops declaring its name, and
nothing about the standard requires it to keep declaring it.
## Layer 1: rate limiting
The simplest response treats crawler traffic as a load problem rather than an
identity problem: cap how many requests one IP or session can make in a window.
Scraping-infrastructure writeups describe the logic plainly, a real visitor rarely
loads dozens of pages a second, a scripted crawler often will, so a request-rate cap
catches the volume even when the requester's identity is unknown. It is cheap to run
and it is also the layer a distributed crawler defeats almost by construction: spread
the same total request volume across enough source addresses and every individual
address stays under the cap while the aggregate load on the origin does not move.
Practitioner accounts of the current AI-crawler wave describe exactly that shape,
several large model crawlers hitting a site concurrently producing a load pattern
that looks, from the server's side, functionally identical to an unintentional
denial-of-service.
## Layer 2: behavioral scoring, underneath the user agent
Cloudflare's blocking toggle is not, underneath, a user-agent filter. It runs a
machine-learned bot score against every request, built from what Cloudflare calls its
own global traffic signals, and the score is what a WAF rule actually keys on: block
or challenge everything scoring under a threshold, independent of what the request
claims to be. Cloudflare's own writeup on a specific evasive crawler makes the point
directly: the traffic it examined scored "firmly below 30" on its bot scale even after
the operator had already started rotating its declared identity, because the score is
not reading the declared identity in the first place. This is the same family of idea
behind [how a fingerprint separates a real engine from a claimed one](what-is-a-browser-fingerprint.md),
applied to a crawler instead of a browser tab.
## Layer 3: IP and ASN blocking, and why it is a losing race
A site can also block by network origin instead of by header: known crawler IP
ranges, or entire hosting-provider ASNs, dropped at the firewall. It works cleanly
against a crawler that publishes its ranges and only operates from them. It works
badly against everything else, because most AI crawlers do not publish complete
ranges, and a scraper that wants to keep collecting has residential proxy pools and
rotating cloud addresses available to it at commodity prices. [What ASN and IP
reputation actually score, and how fast an address's reputation decays once it
changes hands, is covered on its own page](asn-and-ip-reputation-in-bot-detection.md);
the short version is that blocking by address is a race the crawler operator can
choose to run, and choosing not to fight that race is why sites reach for the layers
below instead.
## Layer 4: honeypots, tarpits, and the AI-specific version of both
A honeypot is a link or field a real visitor never sees and a script that blindly
processes every element in the DOM will trigger. [How that trick actually works, the
CSS that hides it and the reason `opacity: 0` is a different case from
`display: none`, has its own page](honeypot-fields-explained.md). A tarpit is the
same idea aimed at whole pages: serve a crawler an endless sequence of generated
content instead of a block page, so the crawler keeps consuming CPU and bandwidth
instead of your actual pages.
Cloudflare ships a purpose-built version of this aimed specifically at AI training
crawlers, called AI Labyrinth. Per Cloudflare's own documentation, the mechanism adds
invisible links carrying a `nofollow` directive throughout a protected site. A crawler
that honors `nofollow`, which is most of the ones with a reputation to protect, simply
never follows them and never notices the trap exists. A crawler that ignores it walks
into "a maze of never-ending links" generated to look like real content. Cloudflare's
own description of what happens next: "their details are recorded and used by all
Cloudflare customers who choose to block AI bots," turning one site's trap into a
shared blocklist entry rather than a one-off inconvenience for a single crawler
operator.
## Layer 5: the policy layer catching up to the traffic
The newest development is not a new detection mechanism at all, it is Cloudflare
restructuring what "block AI bots" even means. Starting September 15, 2026, per
Cloudflare's own announcement, the single AI-bot toggle splits into three named
categories: **Search** ("any behavior that collects or indexes your content, so it
can answer questions about it later"), **Agent** ("automated behavior that is acting,
usually in real time, on a person's behalf, to get something done right now"), and
**Training** ("a crawler taking your content to train or fine-tune a model"). New
domains onboarding after that date get Training and Agent blocked by default on
pages that carry ads, while Search stays allowed by default. Cloudflare's own
documentation is direct about the collateral effect: a crawler that serves more than
one purpose, and Cloudflare names Googlebot, Applebot and Bingbot specifically, gets
treated by whichever rule is most restrictive, so a site that blocks Training blocks
those crawlers too unless it opts back in. Alongside the free managed-robots.txt
feature Cloudflare also ships, which prepends its own `Disallow` directives for
crawlers like `Google-Extended` and `Applebot-Extended` ahead of whatever a site
already had, the policy layer is now doing work the plain-text file never could on
its own: it is enforced at the edge, not merely requested in a file a crawler is free
to skip.
## Where a real browser engine fits, and where it does not
This corpus exists because a page that runs JavaScript can tell a genuine browser
engine from a scripted stand-in, and layer 2 above, the behavioral bot score sitting
under every request, is exactly that kind of check. A crawler that is a real browser
engine rather than a bare HTTP client answers a JavaScript-backed consistency check
the way any other real instance of that engine does, for the same reason [a real
Firefox passes most of BotD's detector list for free](botd-explained.md): there is
nothing spoofed to catch.
That is the entire boundary, and it is worth being precise about it. Layers 1, 3 and
5 above have nothing to do with what a browser engine is. A rate limit counts
requests regardless of what sent them. An IP block reads the network address a
connection arrives on, which [no fingerprint changes](can-websites-detect-a-datacenter-proxy-ip.md).
A site's choice to block the Training category under the new policy layer is a
classification decision made before your request is even inspected. None of that is
a promise this project or any browser-identity tool makes, and a claim that engine
realness clears a rate limit or an IP block would be false on its face.
## Short answers to the questions that lead here
**Does robots.txt actually stop AI crawlers from scraping a site?** No, by design.
It is an advisory convention every well-known standard describes as voluntary. A
crawler that chooses not to read it, or reads it and ignores it, faces no protocol-level
consequence for doing so.
**What actually stops a non-compliant crawler, if not robots.txt?** A layered stack:
rate limiting by request volume, a machine-learned bot score independent of declared
identity, IP/ASN blocking, honeypots and tarpits that catch a scraper's own
crawling logic, and, as of late 2026, a policy layer that treats Search, Agent and
Training traffic as three separately blockable categories.
**Can IP blocking alone keep an AI crawler out?** Only against one that only operates
from published, stable ranges. Most large-scale scraping today runs on rotating
residential or cloud addresses precisely because a fixed-range block is easy to set
up and easy to route around.
**What is Cloudflare's AI Labyrinth?** A honeypot built for crawlers specifically:
invisible, `nofollow`-tagged links that a compliant crawler skips and a non-compliant
one falls into, generating an endless sequence of decoy pages while logging the
crawler for Cloudflare's shared blocklist.
**Will blocking the "Training" category also block Google Search?** It can. Cloudflare's
own documentation states that a multi-purpose crawler like Googlebot gets treated by
whichever category rule is strictest, so blocking Training blocks Googlebot's crawl
on the pages that rule covers unless the site opts back in.
**Does invisible_playwright help get past any of this?** Only the part that is
actually a browser-identity check. A real, engine-level Firefox answers a
JavaScript-backed consistency probe honestly, which is what behavioral bot scoring
partly measures. It changes nothing about a rate limit, an IP or ASN block, a
honeypot your own crawling logic walks into, or a site's policy decision to block a
traffic category outright.
## Sources
- Cloudflare, ["Declare your AIndependence: block AI bots, scrapers and crawlers with
a single click"](https://blog.cloudflare.com/declaring-your-aindependence-block-ai-bots-scrapers-and-crawlers-with-a-single-click/),
retrieved 2026-08-30, for the 2.98%/38.73% blocking-versus-traffic figures, the
machine-learned bot-score mechanism, and the "user agents are trivial... to change"
quote.
- Cloudflare, ["Control content use for AI training with Cloudflare's managed
robots.txt and blocking for monetized content"](https://blog.cloudflare.com/control-content-use-for-ai-training/),
retrieved 2026-08-30, for the 37%-of-top-10,000-domains robots.txt figure, the
managed robots.txt mechanism, and the ad-page-only blocking feature.
- Cloudflare, ["Your site, your rules: new AI traffic options for all customers"](https://blog.cloudflare.com/content-independence-day-ai-options/),
retrieved 2026-08-30, for the Search/Agent/Training three-tier system, its
September 15, 2026 effective date, the default-blocking rules, and the
multi-purpose-crawler quote naming Googlebot, Applebot and Bingbot.
- Cloudflare, [AI Labyrinth](https://developers.cloudflare.com/bots/additional-configurations/ai-labyrinth/),
retrieved 2026-08-30, for the invisible `nofollow`-link mechanism and the shared
detection quote.
- Stytch, ["How to block AI web crawlers without breaking your site"](https://stytch.com/blog/how-to-block-ai-web-crawlers/),
retrieved 2026-08-30, for the named-crawler landscape, the rate-limiting and IP/UA
blocking mechanics and their stated limitations, and the honeypot/tarpit
description.
**See also:** [Honeypot fields and hidden links: how sites trap scrapers](honeypot-fields-explained.md),
[what ASN and IP reputation score in bot detection](asn-and-ip-reputation-in-bot-detection.md),
[can websites detect a datacenter or proxy IP?](can-websites-detect-a-datacenter-proxy-ip.md),
and [how Cloudflare Turnstile actually works](cloudflare-turnstile-explained.md) for the
challenge layer that sits beside, not instead of, everything on this page.
---
*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
outright.*
+189
View File
@@ -0,0 +1,189 @@
---
title: "BFCache and pageshow.persisted under browser automation"
description: "Automation disables the back/forward cache, so pageshow.persisted is always false and every Back is a full reload. Why sites notice, and what enabling it costs."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 13
---
# BFCache and pageshow.persisted under browser automation
**Under browser automation, `pageshow.persisted` is almost always `false`, because the
drivers switch the
[back/forward cache](https://developer.mozilla.org/en-US/docs/Glossary/bfcache) off.**
Every back navigation becomes a full reload
instead of an instant restore, and a page that pays attention to the difference is
looking at a browser that behaves unlike every consumer browser of the last decade.
Press Back in a real browser and the previous page usually comes back instantly,
restored from memory with its JavaScript state intact. The page is told about it: a
`pageshow` event fires with `persisted` set to `true`. Under automation that almost never
happens.
This page covers what the cache does, what automation does to it, why the difference is
visible, what turning it back on breaks in your own tests, and how to decide.
## What the back/forward cache actually does
When you navigate away, the browser can keep the whole page in memory rather than
discarding it: the DOM, the JavaScript heap, the scroll position, the state of your
variables. Navigate back and it is restored rather than rebuilt.
The page finds out through the
[`pageshow`](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageshow_event) event:
```js
window.addEventListener('pageshow', (e) => {
console.log('restored from bfcache:', e.persisted);
});
window.addEventListener('pagehide', (e) => {
console.log('kept in bfcache:', e.persisted);
});
```
`persisted` is `true` on a restore and `false` on an ordinary load. It is a single
boolean, available to any script, and it is normally used for legitimate purposes such as
re-running analytics on a restored view.
## What automation does to it
Automation switches the cache off deliberately, in both major engines, so it never
restores a page. Two different situations, both ending in the same place.
**Firefox under Playwright.** The driver that Playwright uses to control Firefox sets
`disallowBFCache` on every docshell it manages. That is a deliberate choice on its part:
a cached page makes automation less predictable, because state survives navigations that
a test expects to reset.
**Chromium under automation.** The cache is generally not in play either, and there is a
long-standing question on the Playwright tracker about how to enable it at all.
The result is the same in both: `event.persisted` is `false` on every navigation, always,
in a browser where a real user would frequently see `true`.
## Why a page can notice
The difference is not subtle once you look for it, and none of it needs a fingerprinting
library.
**The event itself.** A session that navigates back and forth several times and reports
`persisted: false` every single time describes a browser with the cache disabled.
Disabling it is not something ordinary users do.
**The timing.** A restore is immediate because nothing is rebuilt. A reload fetches,
parses and executes. A page that measures how long its own initialisation took on a back
navigation sees two very different numbers.
**The side effects of a reload.** Scripts run again, timers restart, counters reset,
analytics fire a fresh page view. A page holding in-memory state watches it vanish on
every back navigation, which is behaviour it can compare against what it expects.
None of this is a strong standalone signal. It belongs to the same family as
[the pointer that teleports](human-mouse-movement.md): one more way in which the session
does not behave like a person's browser, cheap to check and rarely thought about.
## How this project handles it, and what it costs you
The behaviour here is inverted relative to the stock driver: the cache is **left enabled
by default**, so a back navigation restores the page and `persisted` comes back `true`,
which is what a real Firefox does. The old behaviour is available behind a preference for
anyone who needs it.
The cost is real and you should know it before you enable this anywhere:
**`go_back()` used to time out here, and does not any more.** A bfcache restore does not
fire `load`, so code waiting for that event sat there until the deadline. The engine
reports the navigation from firefox-31, and the driver stopped caching the injected
script across a restore in 0.19.0, which was the second half of the same problem: the
page came back and the driver was still holding a handle into the world it had left.
```python
# fine now
page.go_back()
page.wait_for_selector("#something-on-the-previous-page")
```
Waiting for something you can see is still more robust than waiting for a lifecycle
event on a restore, because the lifecycle events genuinely do not fire again.
Waiting for something you can see is more robust than
[waiting for a lifecycle event](how-to-wait-for-page-load-playwright.md) anyway, and it
works whether or not the page was restored.
**State survives navigation.** That is the point of the cache, and it is also the thing
that makes a test suite non-deterministic if the suite assumed a fresh page. If your
tests depend on state being reset by going back, they were depending on the automation
behaving unlike a browser.
## Deciding which behaviour you want
The two cases genuinely differ and it is worth being explicit rather than picking a
default:
- **A test suite against your own application.** Predictability is worth more than
realism, nothing is watching, and a cache that preserves state between steps causes
flakiness. Disabling it is reasonable.
- **A session that needs to look like a person's browsing.** Realism wins, and the cost
is writing navigation waits that do not depend on `load`.
The mistake is not choosing either one. It is not knowing which you have, and then being
surprised by a timeout or by a signal.
## Conclusion
The back/forward cache is a small thing that automation turns off for good engineering
reasons, and turning it off produces a browser whose back button behaves differently from
every consumer browser.
The fix is not complicated. Leave the cache on and stop waiting for `load` after a back
navigation. The second half is what actually costs effort, and it is the reason the stock
drivers made the other choice.
## Short answers to the questions that lead here
**What does `event.persisted` mean?** That the page was restored from the back/forward
cache rather than loaded again.
**Why is `persisted` always false in Playwright?** Because the driver disables the cache,
in Firefox explicitly and in Chromium effectively.
**Can a site detect that bfcache is disabled?** It can observe that back navigations
never restore, which is not how consumer browsers behave. It is a weak signal on its own
and it belongs to a family of weak behavioural signals.
**Does `go_back()` still hang?** No, since firefox-31 for the navigation and 0.19.0 for
the driver side. Wait for an element rather than for `load`, which does not fire again
on a restore.
**Should I enable it?** For realistic sessions yes, for deterministic test suites
probably not.
**Does bfcache leak state between pages?** It preserves state within a page across
navigation, which is its purpose. There is an open Playwright issue about globals
appearing to leak between pages because of it, which is worth reading if you see
something odd.
**See also:** [human-like mouse movement](human-mouse-movement.md), the same category of
behavioural difference, and
[the checklist for being detected on one site](playwright-detected-as-bot.md), where
behaviour is step five, and [how websites detect bots](how-do-websites-detect-bots.md)
for where behavioural signals sit in the wider picture.
## Sources
- [MDN: the back/forward cache (bfcache)](https://developer.mozilla.org/en-US/docs/Glossary/bfcache)
and [MDN: the `pageshow` event](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageshow_event),
which documents `persisted`.
- Playwright's documented [`go_back()`](https://playwright.dev/python/docs/api/class-page#page-go-back)
and its `wait_until` values.
- The Playwright tracker's open items on bfcache behaviour and on enabling it under
Chromium.
- This project's driver, which reads a preference before disabling the cache and leaves
it enabled by default, with the `go_back` caveat recorded alongside it.
---
*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.*
+261
View File
@@ -0,0 +1,261 @@
---
title: "WebDriver BiDi vs CDP: does the new protocol hide you"
description: "WebDriver BiDi standardizes the automation control wire across browsers, but the leaks that expose automation live in the page, not on the protocol you speak."
parent: "Comparisons"
nav_order: 19
---
# WebDriver BiDi vs CDP: does the new protocol hide you
There is a hope, repeated often enough that it is worth answering directly, that
WebDriver BiDi is the fix for automation detection. The reasoning goes: the old
Chrome DevTools Protocol had a famous leak, everyone is moving to a standardized
bidirectional protocol, so the standardized one must close it.
It does not, and the reason is the useful part. The leak people are trying to
escape was never on the protocol wire. It is in the page. Changing which wire the
driver speaks over leaves the page-level artifacts exactly where they were.
## The protocol is the control channel, not the fingerprint
The protocol is the wire a driver speaks over, not the fingerprint a page reads,
so changing it moves nothing a detector looks at. CDP, BiDi and Firefox's own
Juggler are all
control channels: the out-of-process link a driver uses to say "open a page", "go
to this URL", "evaluate this script", "give me the console messages". They are
plumbing between your Python process and the browser process.
A detection script running inside the page cannot see that channel at all. It
cannot see whether the command that opened the tab arrived as CDP JSON, as a BiDi
message, or as a Juggler call. What it can see is whatever the browser does to the
page as a side effect of being driven: a property that reads differently, a global
that should not exist, a built-in prototype that was touched before the first
script ran, a loop that runs measurably slower because the engine is in a
different mode.
So the question "does BiDi hide me" is really two questions that get conflated. Is
the control channel itself observable? Mostly no, for any of the three. Does
switching the control channel change the in-page artifacts? Also no, because those
artifacts are produced by a different mechanism entirely.
## What CDP's Runtime.enable leak actually was
The CDP `Runtime.enable` leak was a page-visible side effect of how Chromium
automation manages JavaScript execution contexts, not a property of the CDP wire
itself. It is narrower than the folklore around it, so it is worth stating
exactly.
On Chromium, automation libraries call the CDP command `Runtime.enable` to manage
the execution contexts they need for evaluating JavaScript. That call has an
in-page side effect: it causes the browser to emit context-creation events, and a
page can provoke and observe the timing of that machinery. Ordinary browsing never
triggers it, so its footprint reads as automation. Two separate projects,
[Patchright](vs-patchright.md) and
[rebrowser-patches](vs-rebrowser-patches.md), independently converged on the same
fix: stop calling `Runtime.enable` automatically and create the needed contexts by
hand, with identifiers the page cannot correlate back to the session.
Notice what that fix is and is not. It is not "switch protocols". It is a change to
how the driver uses the protocol so that the observable side effect stops
happening in the page. The leak lived in the page; the fix lives at the driver.
The protocol name never entered into it.
## Firefox automation here rides Juggler out of band
This project does not patch that leak because it never had it. The Firefox we ship
is driven by stock Playwright over Juggler, an out-of-band control protocol that is
not CDP and has no `Runtime.enable` command to call. There is no automatic
context-enable step whose in-page timing a script can measure, because that step is
a CDP-shaped thing and this is not CDP.
That is an architecture difference, not a cleverness difference. The
`Runtime.enable` timing signal is specific to how CDP-driven Chromium manages
execution contexts. A driver that manages contexts differently, over a different
channel, does not emit that particular event and so cannot be caught by a probe
looking for it. The class of Chromium hand-patches that exist to suppress it has no
counterpart here for the same reason a Linux binary has no Windows registry to
clean.
```python
from invisible_playwright import InvisiblePlaywright
# A stock Playwright script. The control channel underneath is Juggler,
# not CDP, so there is no Runtime.enable side effect for a page to time.
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
# standard Playwright: the returned object is a real Browser
print(page.title())
```
None of that code mentions the protocol, which is the point: the wire is an
implementation detail of the driver, and the same script would work if it changed.
## What WebDriver BiDi standardizes, and what it leaves untouched
WebDriver BiDi is a genuinely good thing and worth being precise about. It is a
[W3C effort](https://www.w3.org/TR/webdriver-bidi/) to give every browser one
bidirectional automation protocol, so that a driver can subscribe to events and
issue commands the same way across engines, instead of CDP on one family and
something bespoke on another. Firefox, Chromium and others implement it.
Playwright itself has been building BiDi support. If you have ever wanted "one
protocol, every browser", this is that.
What it standardizes is the shape of the control channel: the commands, the
events, the subscription model. What it does not do, because it is not what a
control protocol is for, is change what the browser exposes to the page. BiDi has
no clause that turns off [`navigator.webdriver`](does-playwright-set-navigator-webdriver.md), no clause about whether a helper
runs in the page's realm before the page's own scripts, no clause about whether the
JavaScript engine is in a mode that runs loops slower. Those are engine and driver
behaviors. A standardized wire carries them just as faithfully as a proprietary one.
The mental model that trips people up is that CDP and BiDi are alternatives on the
same axis as "detected" and "not detected". They are not. Protocol choice and
detectability are orthogonal. You can be trivially detectable over BiDi and hard to
detect over Juggler, or the reverse, and the protocol name predicts neither.
## The leaks that survive any protocol change
If the wire is not where the tells are, where are they? Two families, both in the
page, both indifferent to which control channel drove the browser.
The first is execution-context timing. Attaching a driver to the JavaScript engine
can put realms into a debug-adjacent mode where the optimizing JIT is off and slow
paths run on every call, and that is measurable from the page as time, with no
property to read. It is
[why a fingerprinting service can report developer tools with none open](debugger-timing-detection.md).
Whether the driver spoke CDP, BiDi or Juggler to attach makes no difference to the
resulting distribution; what matters is whether the engine was left in that mode.
This project's fix was to attach without entering debug mode at all, so the JIT
stays on. That is an engine change, and it would be exactly as necessary under BiDi.
The second is injected globals and touched built-ins. If a driver runs a helper in
the page's own realm before the page loads, and that helper touches `JSON`,
`Date.prototype` or `Array.prototype`, then the page starts life with built-ins
that something else handled first, and that is observable. In a controlled
experiment that was the difference between a session being blocked and not. The fix
is to never touch the page realm until the page's own first script has run. Again:
a driver behavior, carried identically over any wire. A page reading a leftover
global does not know or care how the global got injected.
There is also a separate, wire-adjacent failure mode worth naming so it is not
confused with the above: the driver and browser can drift out of agreement about
the protocol's own field set, which
[breaks the client rather than exposing it to the page](playwright-protocol-drift.md).
That is a maintenance surface every automation stack has, standardized protocol or
not, and it is orthogonal to detection too.
## How to choose, and what to actually measure
The practical upshot is that "which protocol" is not a stealth decision. Pick the
protocol for engineering reasons: BiDi for cross-browser uniformity and a stable
standard, CDP where you need a Chromium-specific capability it exposes, Juggler if
you are on this project's Firefox because that is what it speaks. The three differ
on engineering properties, but not on the axis people ask about here:
| Protocol | Cross-browser standard | `Runtime.enable`-style context leak | Control wire visible to the page | Protocol choice changes detectability |
|---|---|---|---|---|
| CDP | No (Chromium family) | Yes, until hand-patched at the driver | No | No |
| WebDriver BiDi | Yes (W3C, multi-engine) | No such standardized clause | No | No |
| Juggler | No (Firefox, this project) | No `Runtime.enable` command exists | No | No |
Then measure the
things that actually decide detection, none of which the protocol choice sets.
The measurement that separates the real question from the imagined one is timing
and page state against a stock browser on the same machine, not a protocol audit:
```python
from invisible_playwright import InvisiblePlaywright
PROBE = """
() => {
// 1. any global that a normal browser would not have?
const suspects = Object.getOwnPropertyNames(window)
.filter(n => /puppet|driver|automation|cdc_|selenium/i.test(n));
// 2. rough JIT-sanity number; compare the RATIO to a stock browser
const t = performance.now();
for (let i = 0; i < 5e6; i++) Math.sqrt(i);
const loopMs = performance.now() - t;
// 3. did anything claim a user gesture nobody made?
const ua = navigator.userActivation || {};
return { suspects, loopMs, isActive: ua.isActive, webdriver: navigator.webdriver };
}
"""
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
print(page.evaluate(PROBE))
```
Run the same probe in a stock browser and diff the results. The absolute loop
number means nothing on its own; the ratio between the two browsers is the JIT
signal. A non-empty `suspects` list is an injected-global leak. `webdriver` should
read as it does on a clean browser. Every one of those is a page-level property,
and every one of them would report the same value whether the tab was opened over
CDP, BiDi or Juggler.
## Conclusion
WebDriver BiDi is worth adopting for what it is: one standard control protocol
across browsers, which is a real convenience and a real cleanup. It is not a
stealth upgrade, because it operates on the wrong axis. The `Runtime.enable` leak
that made CDP notorious was a page-visible side effect of how one protocol managed
contexts, fixed at the driver, not by changing wires. The leaks that remain,
execution-context timing and injected globals, live in the page and the engine, and
a standardized wire carries them as faithfully as a proprietary one. This project's
Firefox never had the CDP leak because it does not speak CDP, and it closes the
in-page leaks in the engine and driver, which is the layer where they actually are.
Choose the protocol for engineering reasons and measure detection where it lives.
## Short answers to the questions that lead here
**Does switching from CDP to WebDriver BiDi make me undetectable?** No. The
protocol is the control channel; the tells that flag automation are in the page and
the engine, and they read the same over any wire.
**Was the CDP Runtime.enable leak a protocol problem?** It was a page-visible side
effect of how CDP-driven Chromium managed execution contexts. The fix changes how
the driver uses the protocol, not which protocol it is.
**Does this project have the Runtime.enable leak?** No. Its Firefox is driven over
Juggler out of band, which has no `Runtime.enable` command, so the signal that
several Chromium projects hand-patch never exists here to begin with.
**Is WebDriver BiDi bad, then?** Not at all. It is a solid cross-browser standard
worth adopting for uniformity and stability. It just is not a detection fix,
because detectability and protocol choice are orthogonal.
**What actually gives automation away if not the protocol?** Execution-context
timing when the engine is left in a debug-adjacent mode, globals or touched
built-in prototypes injected into the page realm, and behavior. All page-level or
engine-level, none of them on the wire.
**How do I test my own setup?** Run a timing-and-globals probe in your automated
browser and in a stock browser on the same machine, and diff them. The ratio, not
the protocol name, is the signal.
## Sources
- This project's own debugger and execution-context fixes, described in
[why an attached debugger makes automation detectable](debugger-timing-detection.md),
for the in-page timing and injected-global leaks that survive a protocol change.
- The [Patchright](vs-patchright.md) and [rebrowser-patches](vs-rebrowser-patches.md)
comparisons on this site, read from each project's own repository, for what the
CDP `Runtime.enable` fix is and is not.
- The [WebDriver BiDi specification](https://www.w3.org/TR/webdriver-bidi/)'s own
scope, for what a standardized control protocol standardizes and what it leaves
to the engine.
**See also:** [why an attached debugger makes automation detectable](debugger-timing-detection.md)
for the page-level leaks in detail, [invisible_playwright vs rebrowser-patches](vs-rebrowser-patches.md)
for the CDP fix arrived at twice, and [how to test whether your browser is detected](how-to-test-bot-detection.md)
for the compare-against-stock method this page leans on.
---
*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.*
@@ -0,0 +1,223 @@
---
title: "Block images to speed up scraping (and when not to)"
description: "Blocking images, fonts and media with route.abort() cuts bandwidth and wall-clock time, but a no-image waterfall is itself a tell. When to use it and when not to."
parent: "Scraping with Playwright"
grand_parent: "Guides"
nav_order: 92
---
# Block images to speed up scraping (and when not to)
Aborting image, font and media requests is one of the biggest speed wins available to a
Playwright scraper, and it is two lines of code. It is also, on the wrong page, a clean
way to get yourself noticed. A browser that fetches HTML and JavaScript and never a
single image produces a request pattern no human session shows.
So this is not a pure win, and that is the reason it gets its own page. Blocking
resources is the right call for internal test runs and for bulk data pulls where transfer
cost dominates. It is the wrong call on exactly the sessions you most want to look human.
This page covers what it saves, the two lines that do it, the tell it creates, and where
the line between the two cases falls.
## What blocking resources actually saves
On most pages the HTML and the JavaScript are a small fraction of the bytes. Images,
web fonts and any autoplaying media are the rest, and on an image-heavy listing page
they are the large majority of the transfer. If your scraper only reads text, prices or
structured data out of the DOM, every one of those bytes is downloaded and thrown away.
Aborting them changes two things you can measure:
- **Bandwidth.** On an image-heavy page the transfer routinely drops from a few megabytes
to a few hundred kilobytes. Over tens of thousands of pages that is the difference
between a proxy bill you notice and one you do not.
- **Wall-clock time.** The page reaches its "loaded" state sooner because it is no longer
waiting on the slowest large assets, and `page.goto` returns earlier. The saving is
largest on pages that block rendering on fonts or lazy-load a wall of images.
The mechanic is stock Playwright, and it works identically under invisible_playwright:
the wrapper returns a real Playwright `Browser`, so [`page.route` and `route.abort`](https://playwright.dev/python/docs/network#abort-requests)
behave exactly as documented upstream. There is no special API to learn.
## The two lines that do it
Register a route handler, abort the resource types you do not need, and continue
everything else. The launch is the usual two-line switch from stock Playwright.
```python
from invisible_playwright import InvisiblePlaywright
# resource types that are pure weight for a text/data scrape
BLOCK = {"image", "media", "font"}
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.route(
"**/*",
lambda route: route.abort()
if route.request.resource_type in BLOCK
else route.continue_(),
)
page.goto("https://example.com")
print(page.title())
```
The async form is the same shape:
```python
from invisible_playwright.async_api import InvisiblePlaywright
BLOCK = {"image", "media", "font"}
async with InvisiblePlaywright(seed=42) as browser:
page = await browser.new_page()
async def router(route):
if route.request.resource_type in BLOCK:
await route.abort()
else:
await route.continue_()
await page.route("**/*", router)
await page.goto("https://example.com")
print(await page.title())
```
Two notes that save time later. Register the route **before** `goto`, or the first
navigation's assets are already in flight before the handler exists. And keep
`stylesheet` out of the block set unless you have checked the page: some layouts compute
element positions from CSS, and dropping it can move the very nodes your selectors point
at. `image`, `media` and `font` are the safe core; add `stylesheet` only after you
confirm the DOM you read still resolves.
## The tell: a request waterfall no human produces
A real person's browser loads images, fetches the fonts the page asks for, and pulls the
tracking pixel and the hero media without being told twice - and a scraper that refuses
all three produces a request waterfall no human session shows. That is the honest
caveat, and it is the whole reason this page is not just "block everything, go faster".
The network waterfall of a genuine session has a characteristic shape: a burst of mixed
resource types, images arriving late and out of order, fonts blocking early paint. A
session that fetches the HTML document and a handful of scripts and then goes silent has
none of that shape. It is a request pattern that belongs to a scraper and to almost
nothing else.
This is not a fingerprint that the engine can spoof. invisible_playwright is built to
look like a real browser driven by a real person, and that is why it passes most
detection: the [fingerprint, the TLS handshake and the driver layer read as a genuine
Firefox](does-playwright-support-firefox-stealth.md). But *which requests you choose to
make* is your behaviour, not the browser's identity. If your code refuses every image on
a page a human would load, you have hand-built a behavioural tell that no stealth layer
touches, the same category as a pointer that teleports or a form filled in eighty
milliseconds. The [checklist for being flagged on one site](playwright-detected-as-bot.md)
puts behaviour above the proxy for exactly this reason.
So the block set is a decision about the session, not a global optimisation you turn on
once and forget.
## Where to block, and where not to
Split your work into two buckets and treat them differently.
**Block resources freely when load does not need to look human:**
- **Internal test runs and CI.** You are checking your own selectors and your own
extraction, not passing anyone's inspection. Speed is the only axis that matters.
- **Bulk data pulls where transfer cost dominates** and the endpoint is not scoring you,
for example a site you have permission to crawl, an API-backed page, a
[sitemap walk](how-to-scrape-a-sitemap-playwright.md) over thousands of URLs where the
proxy bill is the real constraint.
**Leave images loading when the session needs to look human:**
- **The first visit to a page that is clearly scoring the session**, or any flow that
starts behind a challenge. The seconds you save are not worth the waterfall shape.
- **Anything interactive that a human would look at.** If the run
[scrolls, clicks and reads](human-mouse-movement.md), it should also be pulling the
images a reader would see.
A middle path exists and is often the right one: block the heaviest single type only.
Dropping `media` and web `font` requests while still loading `image` keeps most of the
human waterfall shape and still cuts real weight, because autoplaying video and large
font files are frequently the worst offenders. Measure your own pages before deciding the
block set is worth the tell.
## What this does not fix
Blocking resources is a speed and cost lever. It is not a stealth lever, and on its own
it changes none of the things that actually decide whether a session gets through.
- **IP reputation.** A [datacenter or already-flagged
exit](can-websites-detect-a-datacenter-proxy-ip.md) is visible before the first byte of
HTML, and no route rule touches it. Supply a clean proxy yourself.
- **Per-account quotas and rate limits.** Fetching fewer bytes per page does not raise a
cap. If anything, going faster lets you hit it sooner, so pair aggressive blocking with
[deliberate pacing](how-to-rate-limit-your-scraper-playwright.md).
- **Behaviour and timing.** The waterfall shape above is one behavioural signal; pointer
motion, dwell time and request cadence are others, and they are your responsibility, not
the engine's.
invisible_playwright makes the browser read as a real Firefox. The clean proxy and the
human pacing are the parts you bring. Blocking images speeds up the run; it does not move
any of these three.
## Conclusion
`route.abort()` on `image`, `media` and `font` is a large, cheap speed and bandwidth win,
and it works identically under invisible_playwright because the wrapper hands you a real
Playwright browser. The catch is that a no-image request waterfall is a behavioural tell,
so scope it: block freely on test runs and bulk pulls where load is the constraint, and
leave images loading on the sessions you most want to read as human. When in doubt, block
the heaviest type only and measure, rather than switching everything off and hoping the
shape goes unnoticed.
## Short answers to the questions that lead here
**Does blocking images make Playwright faster?** Yes, often substantially, because images,
fonts and media are usually the bulk of a page's bytes and a text scrape throws all of
them away. Wall-clock time drops because the page stops waiting on the slowest assets.
**How do I block images in Playwright?** Register a `page.route("**/*", ...)` handler
before `goto` and call `route.abort()` when `route.request.resource_type` is `image`,
`media` or `font`, and `route.continue_()` otherwise.
**Does blocking images get me detected?** It can. A session that fetches HTML and scripts
but never an image produces a request waterfall no human session shows. That is a
behavioural tell, separate from your fingerprint, and no stealth layer hides it.
**Should I also block CSS and JavaScript?** Usually not. Many pages compute layout and
render content from CSS and JavaScript, so blocking them can move or remove the nodes your
selectors read. Start with `image`, `media` and `font` only.
**Will this make invisible_playwright undetectable?** No, and nothing does. It makes the
browser read as a real Firefox, which is most of the battle, but IP reputation, account
quotas, rate limits and timing are yours to handle with a clean proxy and human pacing.
**When should I not block images?** On the first visit to a page that is clearly scoring
the session, and on any interactive flow a human would actually look at. There, looking
human is worth more than the seconds you save.
## Sources
- Playwright's [request interception API](https://playwright.dev/python/docs/network#abort-requests)
(`page.route`, `route.abort`, `route.continue_` and
[`request.resource_type`](https://playwright.dev/python/docs/api/class-request#request-resource-type)),
read from its own documentation rather than a rendered example.
- This project's own measurements of per-page transfer on image-heavy pages, where images,
fonts and media are consistently the majority of the bytes.
- The behavioural-tell reasoning in this project's detection notes, where request shape is
treated as behaviour rather than fingerprint.
**See also:** [pulling images down on purpose when you do want them](how-to-download-images-in-bulk-playwright.md),
[the checklist for being detected on one site](playwright-detected-as-bot.md), and
[testing bot detection without a false pass](how-to-test-bot-detection.md).
---
*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.*
+175
View File
@@ -0,0 +1,175 @@
---
title: "What BotD actually detects, and what it does not"
description: "What BotD's nineteen detectors actually check, read from its own source: mostly whether a browser is telling the truth about which engine it is, not automation."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 3
---
# What BotD actually detects, and what it does not
BotD is the open-source bot detector from the FingerprintJS team. It is small, it is
readable, and reading it changes how you think about this problem, because most of
its nineteen detectors are not looking for automation at all.
They are checking whether your browser is telling the truth about **which browser it
is**.
Read from source on 2026-08-29 ([`fingerprintjs/BotD`](https://github.com/fingerprintjs/BotD), `src/detectors/` and `src/sources/`).
## The nineteen detectors
```
app_version distinctive_properties document_element_keys
error_trace eval_length function_bind
languages_inconsistency mime_types_consistence notification_permissions
plugins_array plugins_inconsistency process
product_sub rtt user_agent
webdriver webgl window_external
window_size
```
Exactly one of those, [`webdriver`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver),
is the check everybody knows. A handful look for
specific named tools. The rest are engine identity and internal consistency.
| Detector group | The question it asks | Examples named here |
|---|---|---|
| The one everyone knows | Is the automation flag set? | `webdriver` |
| Engine identity | Does the browser behave like the engine its user agent claims? | `eval_length`, `product_sub` |
| Named tool fingerprint | Does a value the engine reveals name a specific automation tool? | `error_trace`, `function_bind`, `window_external`, `app_version` |
| Internal consistency | Does a value a real browser always produces show up, intact and correctly typed? | `languages_inconsistency`, `mime_types_consistence`, `plugins_inconsistency`, `rtt`, `window_size` |
## The interesting group: what engine are you really?
Some values are decided by the JavaScript engine and cannot be changed from
JavaScript without being obvious. Two of them, BotD computes and checks against what
your user agent claims. A handful of others read that same kind of engine-only value
and test it for one named tool's leftover fingerprint, regardless of what the user
agent says.
**`eval_length`.** `eval.toString().length` is a fixed number per engine, the same
category of leak as [any other native function's own source](tostring-native-code-detection.md).
The check compares that number against the engine your user agent claims: 37 must come
from WebKit or Gecko, 39 from Internet Explorer, 33 from Chromium, and any other pairing
is a bot. A Chromium engine claiming to be Firefox still reports 33, the length the check
reserves for Chromium, and fails on a value nobody thinks to spoof.
**`product_sub`.** If the browser claims to be Chrome, Safari, Opera or WeChat, then
[`navigator.productSub`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/productSub)
must be `20030107`. Firefox reports `20100101`. One
comparison, no ambiguity ([why a real Firefox reports `20100101`](navigator-vendor-productsub-firefox.md)).
**`error_trace`.** Stack traces are formatted differently by different engines, and
the detector tests the string against a single named signature: PhantomJS.
**`function_bind`** checks whether `Function.prototype.bind` exists as a real
function at all, not what it returns; PhantomJS is the one that fails this, so a
missing bind reads as the same tool `error_trace` looks for. **`window_external`**
matches `window.external.toString()` against the name of a specific commercial
scraping platform, Sequentum. **`app_version`** tests that same kind of version
string for three more names: headless, Electron, SlimerJS.
None of these are secret. They are just values a spoofing layer does not think about,
because they are not on the list of "things bots are known for".
## The second group: does your story hold together?
This group mostly asks whether a value a real browser always produces is missing,
empty, or malformed, not whether a value looks unusual on its own.
**`languages_inconsistency`** fires when `navigator.language` and its older fallbacks
are all undefined, something a real browser never leaves empty.
**`plugins_inconsistency`** fires when a browser claiming to be desktop Chrome reports
zero plugins, when even a stock install ships the built-in PDF viewer.
**`mime_types_consistence`** checks that `navigator.mimeTypes` and each of its entries
carry the real `MimeTypeArray` and `MimeType` prototypes, not a plain object standing
in for them.
**`rtt`**, **`window_size`**: values a real machine and a real window have, and a
container often does not.
**`document_element_keys`** and **`distinctive_properties`**: attributes and globals
that specific automation tools leave behind, which is the closest BotD gets to
looking for bots directly.
## What this means if you are on the other side
Three things follow: spoofing a user agent alone tends to make a browser easier to
detect rather than harder, being a genuine instance of the engine you claim passes
this whole detector class for free, and the risk BotD does not touch moves to other
signals entirely. They are the same three that turn up everywhere in this area.
**[Spoofing a user agent alone is worse than not spoofing it](is-changing-user-agent-enough.md).** Change the string and
you have to change `productSub`, `eval.toString().length`, the stack-trace format,
`window.external`, and the plugin and MIME arrays to match, or you have created the
exact contradiction BotD is built to find. Most user-agent spoofing makes a browser
easier to detect, not harder.
**Being a real instance of what you claim passes this whole class for free.** A real
Firefox reporting Firefox has the right `productSub`, the right `eval` length, the
right stack format and the right plugin array, because they are not claims, they are
the engine. There is nothing to keep consistent because nothing was changed.
**The remaining risk moves elsewhere.** Passing every one of these nineteen says
nothing about whether [your GPU string is plausible](webgl-renderer-strings.md), your
fonts match your platform, or [your timezone agrees with your IP](timezone-proxy-mismatch.md).
Those are the ones that decide modern outcomes and BotD does not look at them.
## Checking your own
BotD is on npm and takes about four lines to run. Do it on the machine that will do
the work instead of your laptop, and read which detectors fired rather than the
verdict.
If any of the engine-identity or named-tool-fingerprint groups fire, stop and fix
that first: it means either the browser you are presenting is not the browser you
are running, or a specific automation tool's own fingerprint just showed up, and no
amount of work on the other surfaces compensates for that.
## Short answers to the questions that lead here
**What is BotD?** The open-source bot detector from the FingerprintJS team. It runs in
the page and returns a verdict rather than a fingerprint.
**Is BotD the same as FingerprintJS?** No. FingerprintJS
[identifies a visitor across sessions](fingerprintjs-visitor-id.md). BotD answers a
different question: is this automation.
**Why does most of it not look like bot detection?** Because most detectors check which
browser engine you really are, by testing behaviours that differ between engines. A
browser claiming one engine and behaving like another is the finding.
**Can I pass it by setting `navigator.webdriver` to undefined?** No. That is
[one detector out of nineteen](navigator-webdriver-explained.md).
**Does passing BotD mean I am undetected?** It means one open-source detector found
nothing. Commercial systems combine far more, including things no in-page script can
see.
## Sources
- BotD's own GitHub repository, [`fingerprintjs/BotD`](https://github.com/fingerprintjs/BotD),
`src/detectors/` and `src/sources/`, read 2026-08-29, for the nineteen detector names and
the values each one compares.
- [MDN: `Navigator.webdriver`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver),
retrieved 2026-08-29, for the one detector everybody already knows.
- [MDN: `Navigator.productSub`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/productSub),
retrieved 2026-08-29, for the fixed value Firefox reports that the `product_sub`
detector checks against.
- [PhantomJS](https://github.com/ariya/phantomjs), read 2026-08-29, the named signature
the `error_trace` detector matches against in a stack trace, and the tool a missing
`Function.prototype.bind` reads as under `function_bind`.
- This project's own detection gates, which run BotD against the product before every
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 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/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.*
+124
View File
@@ -0,0 +1,124 @@
---
title: "Browser automation testing tools: where each one fits"
description: "Playwright, Selenium, Cypress and Puppeteer by what each one was built to test, not by feature count, plus the axis none of the four was designed around."
parent: "Comparisons"
nav_order: 41
---
# Browser automation testing tools, and where each one actually fits
Four names come up constantly and get compared as if they were interchangeable:
Playwright, Selenium, Cypress and Puppeteer. They overlap enough to confuse
and differ enough that picking by feature-list length is how people end up
fighting the wrong tool for a year.
## The four, by what they are actually built for
**Playwright.** General-purpose, cross-browser (Chromium, Firefox, WebKit),
built by Microsoft with auto-waiting and multi-language support (JS/TS,
Python, Java, .NET). The current default recommendation for new
browser-automation projects that need real cross-browser coverage.
**Selenium.** The oldest and most widely deployed, via the W3C WebDriver
standard. Broadest language support, largest historical ecosystem, and the
one that can drive an actual retail browser install rather than a
framework-maintained build - relevant if you specifically need to test
against exactly what your users have installed.
**Cypress.** Built specifically for testing web applications from inside the
browser, running in the same run-loop as your app rather than driving it from
outside. Excellent developer experience and debugging for single-page apps,
historically Chromium-only in practice (with newer versions adding limited
Firefox and WebKit support), and architecturally not built for the kind of
cross-origin, multi-tab scraping work Playwright and Selenium both handle
natively.
**Puppeteer.** Chromium/Chrome only, Node.js only, maintained by the Chrome
team. If your target is specifically Chrome and your stack is Node, it is a
direct, well-supported option; it does not cover Firefox or WebKit at all.
## Choosing by what you are actually testing
| Your situation | Reach for |
|---|---|
| Cross-browser regression suite, multiple languages on the team | Playwright |
| Testing a Chrome-only internal app, Node stack already in place | Puppeteer |
| Fast-feedback testing of a single-page app you are actively developing | Cypress |
| Must drive an actual retail-installed browser, not a framework build | Selenium |
| Large legacy Selenium suite that works | Selenium, don't rewrite for its own sake |
| Real-world scraping across multiple sites, need Firefox specifically | Playwright |
## The axis none of these four are built around
All four of these are testing tools, built to verify that **your own
application** behaves correctly under known, cooperative conditions. None of
them was designed against a page actively trying to distinguish automation
from a human - because for their primary use case, the page being tested is
yours, and it has no reason to fight you.
That changes completely when the target is someone else's site and it is
actively fingerprinting. Every one of these four, used with its default
browser build, presents recognizable automation signals: `navigator.webdriver`
under WebDriver-based tools, CDP-visible properties under CDP-driven ones,
and browser builds that differ from a retail install in ways a determined
detector checks for. Picking Playwright over Selenium, or Puppeteer over
Cypress, does not change this axis at all - it is orthogonal to which testing
tool you picked.
## Where this project sits
[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
if the Firefox underneath it was patched at the C++ source rather than
Playwright's stock automation build? It is the engine layer beneath a testing
tool, not a replacement for one.
[Firefox or Chromium for anti-detect automation](firefox-vs-chromium-antidetect.md)
covers why Firefox was the base worth patching, and
[patchright vs invisible_playwright](vs-patchright.md) covers the equivalent
idea applied to Chromium instead.
## Short answers to the questions that lead here
**Is Playwright better than Selenium?** For new cross-browser projects,
usually yes - faster, auto-waiting, fewer moving parts. Selenium's breadth of
language support and ability to drive a real retail browser remain real
advantages in specific cases.
**Is Cypress a replacement for Selenium or Playwright?** Not a direct one.
Cypress is purpose-built for testing an application you control from inside
the browser's run-loop, and is a weaker fit for cross-origin scraping or
multi-tab flows that Selenium and Playwright handle natively.
**Does Puppeteer support Firefox?** Puppeteer has had experimental Firefox
support at various points; it is not the primary, well-maintained target the
way Chrome is. If Firefox specifically matters, Playwright is the
better-supported cross-browser option.
**Which tool is hardest to detect?** None of the four is built with detection
resistance as a design goal, and the default automation build under any of
them is recognizable. That is a separate axis from which testing tool fits
your testing needs.
**Can I use these for scraping instead of testing?** Yes, and Playwright and
Selenium in particular are commonly used this way - but recognize that you
have moved outside each tool's primary design intent, onto an axis (adversarial
detection) none of them was built to address.
**See also:**
[Selenium vs Playwright: the actual differences](difference-between-selenium-and-playwright.md),
[Migrating from Puppeteer to Playwright for stealth](migrate-puppeteer-to-playwright-stealth.md),
and [Firefox or Chromium for anti-detect automation](firefox-vs-chromium-antidetect.md).
## Sources
- [Playwright's own documentation](https://playwright.dev/), [Selenium's documentation](https://www.selenium.dev/documentation/), [Cypress's documentation](https://docs.cypress.io/), and [Puppeteer's documentation](https://pptr.dev/), all retrieved 2026-09-10, for each project's stated scope and browser support.
---
*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
to answer.*
+184
View File
@@ -0,0 +1,184 @@
---
title: "Browser extensions are a fingerprint surface"
description: "An installed browser extension is a fingerprint surface a page can detect three ways. How sites find extensions, and why a stealth extension backfires."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 12
---
# Browser extensions are a fingerprint surface
Yes, a website can detect an installed browser extension, and it can do so three
separate ways: by probing the resources the extension exposes, by watching what it
changes on the page, and by spotting the traces its API overrides leave behind. So an
extension is not just a feature you add. It is another
[fingerprint surface](what-is-a-browser-fingerprint.md), and the most common reason
people add one is to hide a fingerprint, which is where this gets circular.
Adding an extension to an automated browser feels like adding a feature. It is also
adding something a page can look for, and the sections below cover each of the three
detection paths, when an extension is safe to run, and how to load one into a Firefox
profile if you decide to.
## The three ways a page finds an extension
**[Web-accessible resources](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/web_accessible_resources).**
An extension that exposes files to pages does so at a URL containing its own
identifier. Fetch that URL and see whether it loads.
```js
fetch('moz-extension://<id>/<file>') // resolves only if that extension is here
```
The identifier differs per browser and, in Firefox, per profile, which limits the
scan. It does not eliminate it, because extensions that need page access often need
predictable resources.
**What it does to the page.** An ad blocker removes elements, so a page can insert a
bait element with a name matching a common filter list and check whether it survived.
A style-injecting extension changes computed values. Anything that modifies the DOM
leaves the modification behind, and the modification is the detection.
**The behaviour it adds.** An extension that patches `navigator` or the canvas has to
run before the page, and it leaves the same traces as any other page-level override:
own properties where prototypes are expected, getters that are not native,
[a `toString` that prints your source](tostring-native-code-detection.md).
## Why a stealth extension is usually the wrong shape
A stealth extension on top of a stealth engine usually makes you easier to detect, not
harder, because two components deciding the same values contradict each other. This is
worth stating plainly, because it is the most common reason someone asks how to load
one.
A stealth extension operates at the page layer. It runs inside the document, it is
made of JavaScript, and everything on
[the three levels page](playwright-stealth-levels.md) about that layer applies to it. It
also has to run before the page's own scripts, which is a race it does not always win.
And if the browser already sets those values in its engine, the extension is now a
second opinion arguing with the first. Two components deciding what `navigator` says do
not average out; they disagree, and the disagreement is easier to spot than either
answer alone. That is the same argument as
[turning off a crawler's own fingerprint generator](playwright-detected-as-bot.md).
So: extensions for functionality, yes. Extensions for stealth on top of a stealth
engine, no.
## Extensions that are fine, and how to think about the rest
Ask what the extension does to the page:
- **Nothing visible to the page.** A tab manager, something that only touches its own
UI. Effectively invisible.
- **Changes what the page sees.** Blockers, style injectors, script managers. Findable,
and worth knowing that ad blockers are extremely common on real browsers, so their
presence is not by itself unusual. Their *absence* is more unusual than people
assume.
- **Rewrites browser APIs.** The fingerprinting-protection kind. These are the ones
that create the arguing-with-the-engine problem.
The second point deserves emphasis, because it cuts against the instinct. A very large
share of real browsers run an ad blocker. A profile that carries none is not
suspicious on its own, but it is one more small way in which a fresh automated profile
differs from a used personal one, alongside
[having no cookies](recaptcha-v3-score.md).
## How to load one, if you decide to
There is no extension argument in this wrapper. What there is is a
[persistent profile](persistent-profiles.md), and an extension installed into that
profile stays there:
```python
with InvisiblePlaywright(seed=42, profile_dir="/path/to/profile") as browser:
...
```
Launch once with that path, install the `.xpi` the normal way through the browser's own
add-ons page, then reuse the directory. Without `profile_dir`, every session builds a
fresh profile from the seed, which is exactly why an extension installed in one run is
gone in the next.
Pair a stable profile with a [stable seed](reproducible-agent-browser-identity-seed.md).
A profile that accumulates cookies and
storage while the hardware it claims changes every launch is a session whose history
and machine disagree about how long it has existed.
## Checking what yours is exposing
```js
// does a known resource resolve? only a path your manifest lists under
// web_accessible_resources will ever answer; manifest.json itself is not one by default
fetch('moz-extension://<id>/<file>')
.then(r => console.log('present', r.status))
.catch(() => console.log('not found'));
// did something remove my bait element?
const bait = document.createElement('div');
bait.className = 'ad-banner ads adsbox';
bait.style.height = '10px';
document.body.appendChild(bait);
setTimeout(() => console.log('blocked:', bait.offsetHeight === 0), 100);
```
Then run the same checks with no extensions loaded and compare. Anything that differs
is what the extension is telling the page about you.
## Conclusion
An installed extension is not a neutral addition to a profile. It exposes packaged
resources at a URL carrying its own identifier, it changes whatever the page touches
when it modifies the DOM, and it leaves the same override traces as any other script
that runs before the page does. None of that makes an extension unsafe to run. It means
treating one like any other fingerprint surface: know what it changes, check it against
a clean profile, and never stack a stealth extension on an engine that already decides
the same values for you.
## Short answers to the questions that lead here
**Can websites detect browser extensions?** Yes, through web-accessible resources,
through what the extension does to the page, and through the traces any API override
leaves.
**Does using an ad blocker make me more detectable?** It makes you findable, not
unusual. Ad blockers are very common on real browsers.
**Should I use a stealth extension with a stealth browser?** No. Two layers deciding
the same values contradict each other, and the contradiction is a stronger signal than
either.
**How do I add an extension in Playwright with Firefox?** Through a persistent profile:
install it once into that profile, then reuse the directory.
**Why does my extension disappear between runs?** Because a fresh profile is generated
each launch unless you pass a persistent one.
**Are extension IDs the same everywhere?** In Firefox they are typically per-profile,
which limits blind scanning. Do not rely on that as protection; extensions that need
page access tend to expose predictable resources anyway.
## Sources
- MDN Web Docs, [`web_accessible_resources`](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/web_accessible_resources),
retrieved 2026-08-28, for how a packaged resource gets a URL containing the
extension's own identifier, which is the first of the three detection paths above,
and for that identifier being generated per browser instance rather than reused
from the extension's own ID, which is what limits the scan in the first place.
- Mozilla Bugzilla, [bug 1372288, a meta bug titled "WebExtensions can be used as
user fingerprint"](https://bugzilla.mozilla.org/show_bug.cgi?id=1372288), retrieved
2026-08-28, Mozilla's own tracking report for the problem this page describes,
still open, which is the primary evidence that an installed extension is a
recognised fingerprint surface rather than a hypothetical one.
**See also:** [Function.prototype.toString and the native code check](tostring-native-code-detection.md),
which is what a page-level extension runs into, and
[three ways to make Playwright undetected](playwright-stealth-levels.md), for why the
layer an extension lives at has a ceiling.
---
*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.*
+265
View File
@@ -0,0 +1,265 @@
---
title: "Browser trust scores explained: what the number means"
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
---
# Browser trust scores explained: what the number means
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
is the single most common misreading behind "I pass one test and fail the next".
This page separates the three numbers people conflate, says what each one is actually
counting, and shows why passing one implies nothing about the others. Then it shows
how to read all three from one reproducible session so you can stop guessing which
number moved.
## Three numbers, three different questions
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:
- **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
**confidence** is a separate number that says how sure the library is that this ID
belongs to the same visitor as before. It is about linkability, not about looking
automated.
- **A reCAPTCHA v3 score** is a risk estimate between 0.0 and 1.0, built mostly from
behaviour and reputation, not from what the DOM reports at all.
| Number | The question it answers | What it reads | What moves it |
|---|---|---|---|
| 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.
## consistency-checker trust: a lie count, not a rarity score
[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.
The part people get wrong: rarity does not enter into it. An identity that no other
machine on earth shares can score perfectly, as long as every field is internally
coherent. Conversely, the most common machine in the world scores badly the moment two
of its fields disagree, because a lie is a contradiction and a contradiction is what
this tool counts.
So the way to raise this number is not to look average. It is to be consistent: one
platform reported everywhere, a canvas that hashes the same twice in a row, a font
list that belongs to the operating system you claim. That is a property of how the
identity is generated, not a value you can paste in.
## The FingerprintJS visitor ID and its separate confidence
[A FingerprintJS visitor ID is a hash of its components](fingerprintjs-visitor-id.md),
around forty-one of them, serialised in a fixed order. There is no partial match:
change one component and the whole ID changes as if everything had. That is why the
same identity gives you the same ID and a different identity gives you a completely
different one, with nothing in between.
The `confidence` sitting beside the ID is a different number entirely. It does not tell
you whether you look automated. It tells you how reliable the library thinks this
particular match is, based on how stable the components it collected tend to be. You
can have a low-confidence ID on a perfectly clean browser and a high-confidence ID on a
browser that is obviously a bot. The two numbers are answering "who is this" and "how
sure am I", and neither is answering "is this a robot".
If your goal is to be recognised again, you want this ID stable. If your goal is to not
be recognised, you want it to change. Either way, it is orthogonal to the trust number
above.
## The reCAPTCHA v3 score: behaviour and history, not the DOM
reCAPTCHA v3 hands the site a number between 0.0 and 1.0, and
[a fresh browser tends to score low on reCAPTCHA v3](recaptcha-v3-score.md) even when
every fingerprint check it faces comes back clean. The reason is that this score is
largely about history and behaviour, and a brand new profile has neither.
An empty profile is a browser that has never been anywhere: no cookies, no consent
decisions, no storage, no prior interaction. There are far more automated sessions that
look like that than human ones, and the score reflects that base rate rather than any
DOM property you did or did not spoof. Perfecting your canvas hash does not move a
number that was never reading your canvas.
This is the honest caveat the other two numbers do not carry: a stable, consistent,
non-lying fingerprint does nothing for this one. It does not manufacture the past you
do not have. That part is warmed-up profiles, realistic behaviour and a reputable exit,
none of which a fingerprint layer can supply.
## Why passing one says nothing about the others
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 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 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 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 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
One instinct makes two of the three numbers worse at once: suppressing a signal.
Blocking canvas, returning an empty font list, refusing WebRTC, randomising a value per
call so nothing can pin it. reCAPTCHA v3 does not read any of those surfaces, so there
is nothing here for it to punish.
Every one of those is counted against you, not for you:
- 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
itself the anomaly.
The consistency that raises a trust number is the opposite of hiding. This is why a
seed-derived identity, where every surface is drawn from one seed and stays put, scores
better than any suppression strategy: it answers every probe with a coherent value
instead of a refusal.
## Measure two of the three from one seeded session
The way to stop guessing which number moved is to make the identity reproducible, so a
change in a score is a change you made rather than a change in the draw. The wrapper is
stock Playwright with a seeded fingerprint, so the `browser` you get back is a real
Playwright [`Browser`](https://playwright.dev/python/docs/api/class-browser) and every method is the one you already know:
```python
from invisible_playwright import InvisiblePlaywright
def read_canvas(page):
return page.evaluate("""() => {
const c = document.createElement('canvas');
const ctx = c.getContext('2d');
ctx.textBaseline = 'top';
ctx.font = '14px Arial';
ctx.fillText('trust-score-probe', 2, 2);
return c.toDataURL();
}""")
sf = InvisiblePlaywright(seed=42)
with sf as browser:
page = browser.new_page()
page.goto("https://example.com")
first = read_canvas(page)
second = read_canvas(page)
assert first == second # stable within a session, so not a per-call tell
```
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 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
where you put it, and what a consistency check rewards:
```python
def canvas_for_seed(seed):
with InvisiblePlaywright(seed=seed) as browser:
page = browser.new_page()
page.goto("https://example.com")
return read_canvas(page)
a = canvas_for_seed(42)
b = canvas_for_seed(42) # same seed, relaunched
c = canvas_for_seed(7) # a different identity
assert a == b # same seed reproduces the same machine
assert a != c # a different seed is a different, still-consistent machine
```
Measured this way, the same seed reproduces byte-identical canvas output run after run,
and a different seed produces a different value that is itself internally consistent.
That reproducibility is what lets you attribute a score change to the one thing you
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 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. 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
hiding from either, and the only way to tell which number your last change actually
moved is to hold the identity still with a seed and compare. Name the axis before you
react to the number, and the contradictory results stop being contradictory.
## Short answers to the questions that lead here
**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.
**What does the FingerprintJS confidence number mean?** How sure the library is that
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 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. consistency-checker trust is about
consistency, not rarity. An unusual but coherent identity can score perfectly; a common
but contradictory one scores badly.
**Does blocking canvas or fonts raise my score?** It lowers it. A blocked probe is
recorded as a lie, and a value that changes per read is a tampering tell. Answering
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 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: 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.
- This project's own reproducibility measurements: identical seed reproduces
byte-identical canvas output within and across sessions, which is the property a
consistency check rewards.
**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/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.*
+27
View File
@@ -0,0 +1,27 @@
---
title: "browser-use gets detected: what you can and cannot change"
description: "browser-use drives Chrome over CDP. What BrowserProfile lets you change and what stays out of reach. This page moved to the invisible_playwright_mcp wiki."
parent: "AI Agents and Frameworks"
grand_parent: "Guides"
nav_order: 2
---
# browser-use gets detected: what you can and cannot change
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/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
them Chromium-family, and none of them reaches the machine underneath - the
GPU, fonts, audio and screen a server answers with. A stealth-patched Firefox
is not a drop-in for its CDP driver; the route that accepts a different
engine is MCP.
The mechanism layer stays on this wiki:
[Playwright in Docker and the datacenter machine](playwright-docker-detection.md),
[WebGL renderer strings](webgl-renderer-strings.md), and
[why headless fonts differ](headless-fonts-differ.md).
+243
View File
@@ -0,0 +1,243 @@
---
title: "How to make Linux and macOS report real Windows fonts"
description: "To make Linux and macOS report real Windows fonts, bundle the real font files and read only from them. Filtering a list leaves the host's rendering underneath."
parent: "Canvas, WebGL, Fonts and Audio"
grand_parent: "Guides"
nav_order: 6
---
# How to make Linux and macOS report real Windows fonts
To make Linux and macOS report real Windows fonts, ship the real Windows font files
inside the browser and read only from that bundle on every platform. Filtering a host's
font list is not enough: it changes what gets reported, not what gets rendered - the
list says Windows, the pixels say something else. This page is what it took to make that
bundle hold on three unrelated font backends, and where it still leaks.
[Why headless browsers render different fonts](headless-fonts-differ.md) covers the
detection side of the same problem, if you want that first.
## Why filtering the host was never going to be enough
The first instinct is to filter: hide the host's real fonts, report a Windows-shaped
list instead. We tried a version of this and reverted it, because filtering only
changes what gets reported, not what gets rendered. The host still draws the glyphs,
still measures the widths, still rounds however its rasteriser rounds. A filtered font
*name* sitting on top of Linux font *rendering* is a different, subtler version of the
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 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
Firefox already has a mechanism for carrying fonts inside the binary,
`MOZ_BUNDLED_FONTS`, on by default on Windows and Linux and available on macOS with a
build flag. The harder problem isn't shipping the files, it's making Windows'
DirectWrite, Linux's fontconfig and macOS's CoreText - three font backends that know
nothing about each other and enumerate host fonts in three different ways - report the
*same* family list from the *same* files.
The fix is a single manifest, generated offline from the font files themselves and
checked in as data, listing every family and which file and face index backs it. All
three backends read the same manifest instead of asking their platform's normal font
enumeration, so instead of three per-OS filters that can quietly drift apart, there is
one source of truth for what a family is called and where its data lives.
Two details in that manifest turned out to matter more than the format itself:
**Naming has to follow the same precedence a real OS uses**, or the family names
themselves become the tell. Font files carry more than one candidate name - a
typographic name, a GDI-compatible name, sometimes a WWS name - and which one Windows
actually shows depends on a precedence order. Getting that order wrong produces a
family list that is real but *shaped* wrong: a font's marketing name where a real
Windows machine would show its GDI name, which is exactly the kind of small
inconsistency [consistency-based detection](playwright-detected-as-bot.md) is built to
catch.
**Multi-face font files can't be indexed positionally across platforms.** A single
`.ttc` file can carry several unrelated faces - regional CJK variants, for instance -
and the safe way to pick the right one turned out to differ by backend: an index that
is reliable on one platform is not guaranteed to point at the same face on another,
because not every platform documents face order as stable. Matching by the face's own
embedded name instead of its position avoids picking the wrong face silently.
## Making three backends refuse to fall back to the host
A manifest is only half the fix. Each backend still has its own default behaviour when
something isn't in its bundle-only list, and each of those defaults quietly reaches for
the host if you don't close it explicitly:
- One backend's safety fallback, when the bundle is unreadable, is to fail toward an
empty list instead of the host - which breaks rendering visibly instead of leaking
silently, the correct failure direction for a fingerprinting surface.
- Another's default path, taken naively, falls straight through to a live host
enumeration call the moment the bundle-only condition isn't satisfied.
- The third had no bundle-only mode at all going in; it enumerates host and bundled
fonts through the same single API call, so keeping the host out requires filtering
every result instead of skipping a call.
Closing all three took a different patch per backend, because "don't enumerate the
host" means something different to DirectWrite, to fontconfig, and to CoreText. There
is no single flag that does this once for all platforms.
## The macOS gap: two layers, and only one was visible without a Mac
CoreText's version of this fix shipped later than Windows' and Linux's, and not
because it was harder to write. It was harder to *know was wrong*, because nobody
doing the work had a Mac to run it on.
**Layer one, found by reading the code instead of running it:** the block-at-birth
hook that stops each backend from falling back to a live host enumeration had been
wired into the Windows and Linux font backends, and simply never ported to CoreText.
Reading the three backends side by side made that omission visible without running
anything - a Mac host would enumerate its own system fonts right alongside the bundle,
leaking the host OS on the one platform where nobody could see it happen locally.
**Layer two surfaced only when the first fix actually ran in CI.** Porting the hook
and shipping it should have closed the gap. It didn't: the very next automated
macOS run still showed most of the bundle missing and several real host fonts
leaking through, on a build that had compiled cleanly and looked, from the source,
like a complete fix. The actual cause was one level down - the build configuration
that turns bundled fonts on at all was set to enable itself only on two of the three
target platforms. The third silently defaulted off, which also compiled out the very
hook layer one had just added, since that code only exists when bundled fonts are
built in. A hook that is correct and a build that never includes it produce the same
observed nothing.
Both layers are closed now, and CoreText enumerates the identical family set the
other two backends do. The reason this is worth telling as one story, not two
separate fixes: the first fix looked complete by every check available without a
real Mac, and was not. The only thing that caught the second layer was an automated
run on the actual operating system, checking the actual output, after the fix that
was supposed to be the whole answer. A gate that runs somewhere other than the real
target platform is checking a different, easier question.
## What this validates, and what it costs
Validated cross-platform: Windows and Linux expose the identical family set from the
bundle, zero host fonts leaking through on either,
[generic CSS families](https://www.w3.org/TR/css-fonts-4/) (serif, sans,
monospace, and the per-script CJK generics) resolving to the same bundled fonts rather
than collapsing to whatever the host happens to have. The same check on macOS runs in
CI, not locally, for the ordinary reason that not every setup has a Mac to test
on, and it has passed there too.
The cost is real and worth naming instead of glossing over. The binary is
meaningfully larger, because it now carries real font files instead of relying on
whatever the OS already had installed. And a fixed bundle also fixes the family list
in time: unlike a live host, the browser cannot pick up a font a real Windows Update
might add later. Both are the price of an answer that has no per-platform seams to find.
## Where it still leaks, named, not hidden
Consistent with treating a suppressed signal as a fail instead of a pass, the honest
gaps in this approach, found and not yet closed:
- One backend's [CSS `local()`](https://www.w3.org/TR/css-fonts-4/) font lookup path
isn't wired to the bundle-only mode at all, so a page asking for a font by exact name
through that specific CSS feature fails to resolve where a real installation would have. A resolved lookup versus a
failed one is itself a detail a determined check could compare.
- One backend's fallback for a character outside the bundle's family set reaches
straight for the real host catalogue rather than staying inside the bundle, so an
uncommon glyph can momentarily surface real host font data.
- One backend's `system-ui` generic keeps a narrow live query against the host font
service as an extra fallback candidate, a single generic family that didn't get
folded into the same guard as the rest.
- One platform's font-substitution mechanism reads a live OS-level alias table
regardless of bundle-only mode, so the set of names that resolve through it still
varies by the specific machine's own configuration.
None of these are enumeration leaks in the sense the validation above checks for -
that check passed, repeatedly, on real measurement. They are narrower seams: specific
code paths that keep a live dependency on the host font service instead of routing
through the bundle like everything else. Each is a known, open item rather than
something papered over, because a gap you haven't found yet is worse than one you have.
## A closed example of the same class: enumeration passing while rendering was wrong
Before the manifest fixed multi-face naming across platforms, a narrower version of the
same problem shipped and was found and closed on Linux specifically. It is worth
walking through because it is the clearest illustration of why enumeration alone is
never enough of a check.
A `.ttc` file is a collection: several complete faces sharing one set of font tables,
addressed through a `TTCHeader` that starts with the four-byte marker `ttcf` instead of
the single-face `sfnt` header an ordinary font file has. Several bundled CJK families -
regional Chinese, Japanese and a couple of serif/math variants - ship as `.ttc`
collections for exactly that reason: related faces, one file.
The font-table code on Linux never checked for that marker. It read every font file as
if it only had one face, at a fixed offset from the start of the file. For an ordinary
font that offset is correct. For a `.ttc` collection it lands wherever the first face's
data happens to be, regardless of which face was actually requested by name.
The result was a font that enumerated correctly - the family name resolved, the browser
reported it was using the right font - while the glyphs actually rendered came from
whichever face happened to sit at that fixed offset. Measured directly: metrics for
several of these families were wrong on Linux and correct on Windows, same seed, same
manifest, same claimed font name. Enumeration was clean. Rendering was not. That gap is
exactly what a check that stops at "is the font in the list" cannot see.
The fix adds a lookup that reads the `TTCHeader` when the `ttcf` marker is present,
finds the requested face's own offset from the collection's face-directory table, and
reads from there instead of assuming offset zero. After the fix, the same measurement
that had shown a mismatch showed matching metrics on both platforms, for every affected
family.
The general lesson is the same one the four seams above are named for: a signal that
looks closed because the obvious check passed is not the same as a signal that is
closed. This one needed a metrics comparison, not a font list, to be caught at all -
and it was a real, shipped gap for a period, not a hypothetical one.
## Conclusion
Filtering a host's fonts leaves the host's rendering underneath, which is a
contradiction with extra steps. Shipping the real files and reading only from them
removes the contradiction at the source, at the cost of a larger binary, a fixed
family list, and three separate backends that each needed convincing not to reach for
the host on their own. What's left is a short, named list of narrower seams, not a
general claim that the surface is closed.
## Short answers to the questions that lead here
**Can I make a Linux machine report Windows fonts?** Reporting the name is not the
hard part; matching the rendering is. Bundling the actual font files and reading only
from them is what makes the two agree.
**Does installing Windows fonts on Linux fix fingerprinting?** It gets you the right
names. It does not by itself stop the browser's normal font backend from also seeing
whatever else is on the host, and licensing is a separate problem again.
**Why not just spoof the font list in JavaScript?** There's no enumeration API to
intercept; [detection works by measuring rendered text](detect-installed-fonts-javascript.md),
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 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; and
[WebGL renderer strings](webgl-renderer-strings.md), for the same shape of problem on
different hardware.
## Sources
- This project's own font-bundle architecture and its per-platform integration work,
including the validated cross-platform measurement (Windows/Linux locally,
macOS in CI) and the four open gaps listed above.
- Firefox's own bundled-fonts build mechanism, which this architecture builds on
rather than replaces.
- [CSS Fonts Module Level 4](https://www.w3.org/TR/css-fonts-4/) (W3C), for the generic
font family keywords and the `local()` src descriptor referenced above.
---
*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.*
@@ -0,0 +1,238 @@
---
title: "Can a website detect a virtual machine?"
description: "How a website infers a VM: software GPU renderers, odd core and memory counts, missing audio, generic metrics - what a browser fingerprint can and cannot hide."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 15
---
# Can a website detect a virtual machine?
Short version: a website cannot see your hypervisor directly, but it can read a
handful of browser-visible values that a virtual machine or a cloud instance tends to
get wrong, and it can add them up into a VM-likelihood score. So the honest answer is
"partly". It can guess from what the browser reports, and it usually cannot prove
anything from inside the page. What it can prove lives outside the browser: the exit
IP and the network handshake.
This page is what a detector actually looks at, why a default VM answers those
questions in a way that stands out, how a real-hardware persona changes the answers,
and the parts that a browser fingerprint does not and cannot touch.
## What a detector can see, and what it cannot
A page runs JavaScript. JavaScript can read the values the browser chooses to expose,
and nothing below that line. It cannot read the CPUID leaf that says "hypervisor
present", it cannot query the BIOS vendor string, it cannot see the virtual disk
controller. Those are the classic VM tells that a tool like
[Pafish](https://github.com/a0rtega/pafish) checks for, and they belong to native
malware analysis, not to a web page.
What a page can do is infer. Every value below is individually plausible and, taken
together, describes a machine. A physical desktop and a headless cloud instance answer
these questions differently, and a detector that has scored a large number of real
browsers knows what the physical desktop looks like.
- The GPU vendor and renderer string.
- The number of logical CPU cores.
- The reported device memory.
- Whether an audio output device exists, and what it sounds like.
- The screen geometry and pixel ratio.
None of these is an automation flag. They are all "this is probably not someone's
desktop" flags, which is a different and often more damaging thing.
## The signals that feed a VM score
Here is what each one looks like when it comes from a virtualized or headless
environment, and why it stands out.
**A software or generic GPU renderer.** A machine with no graphics hardware falls back
to a software rasterizer, and the [WebGL renderer
string](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info)
says so in plain text: a basic or generic renderer name, or the well-known software
rasterizer strings. A real desktop reports a specific GPU model from a specific vendor.
This is the single loudest VM tell
in the browser, because it is a string you can read directly instead of a statistic
you have to accumulate.
Worse, the string and the pixels can disagree: a renderer that
names real hardware while a software path actually draws the frame is
[a mismatch you cannot paper over with a property override](renderer-string-vs-render.md).
The full surface is in [WebGL renderer strings](webgl-renderer-strings.md).
**Odd core and memory counts.**
[`navigator.hardwareConcurrency`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency)
and
[`navigator.deviceMemory`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory)
are coarse, but their distribution across real browsers is not uniform. A tiny core
count paired with a claim of a modern desktop, or a memory
value that never appears on consumer hardware, moves the score. These two also have to
agree with each other and with the rest of the persona, which is
[why pinning one without its neighbours backfires](hardware-concurrency-device-memory.md).
**Missing or default audio.** An
[`AudioContext`](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API)
exposes a sample rate, an output latency and a channel count that come from a real
audio device. A container with no sound hardware answers with defaults that say
exactly that, and the rendered audio
fingerprint carries the same information. See
[AudioContext fingerprinting](audiocontext-fingerprinting.md) for what is actually
being measured.
**Generic display metrics.** A resolution nobody ships, a device pixel ratio no real
panel has, an available screen height equal to the full height (meaning no taskbar and
no window chrome). Each of these is a small nudge; together they describe a virtual
framebuffer rather than a monitor.
A detector does not need any single one of these to be damning. It needs several of
them to point the same way at once, which is exactly what an unconfigured VM delivers.
## What invisible_playwright does about the browser-visible layer
invisible_playwright is a Firefox patched at the C++ level and driven by stock
Playwright. Its whole design is to look like a real browser run by a real person, and
that is why it passes most fingerprint, TLS and driver-layer checks: those layers read
as a genuine Firefox because the browser genuinely is one, not a JavaScript costume
over a headless engine.
For the VM signals specifically, the build derives one coherent real-hardware persona
from a seed and overrides the browser-visible values to match it: the WebGL vendor and
renderer name a real GPU (and the pixels are drawn to agree with the string, not just
the string), `hardwareConcurrency` takes a value a real desktop reports, the
`AudioContext` presents a real device's output characteristics, and the screen metrics
describe a physical display. `navigator.deviceMemory` stays undefined, because that is
what a real Firefox reports too: the API is Chromium-only, and inventing a number for it
would be the tell, not the fix. Every field that is set is drawn from the same seed, so
they agree with one another rather than being individually plausible and jointly
contradictory, which is the failure mode a VM score is built to catch.
Switching from plain Playwright is two lines, and the operation this page is about -
loading a page that scores your environment - is ordinary Playwright after that:
```python
from invisible_playwright import InvisiblePlaywright
# same seed -> same GPU, cores, audio and screen every run
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
# read the values a VM detector would read
report = page.evaluate("""() => {
const gl = document.createElement('canvas').getContext('webgl');
const dbg = gl && gl.getExtension('WEBGL_debug_renderer_info');
return {
renderer: dbg ? gl.getParameter(dbg.UNMASKED_RENDERER_WEBGL) : null,
cores: navigator.hardwareConcurrency,
memory: navigator.deviceMemory, // undefined on Firefox; the API is Chromium-only
sampleRate: new (window.AudioContext || window.webkitAudioContext)().sampleRate,
screen: [screen.width, screen.height, window.devicePixelRatio],
};
}""")
print(report)
```
Run that inside the build and the renderer names a real GPU, the core count sits in the
range real desktops report, `memory` comes back `None` exactly as it does on any real
Firefox, the sample rate is a real device's, and the screen looks like a monitor. Run it
in a stock headless browser on the same cloud
instance and you will typically see a software renderer, a low core count and screen
metrics that describe a framebuffer. That difference is the VM score, and it is the
part a browser can control.
Because the persona is seed-derived, `seed=42` gives the same machine on every run,
which is what makes a suspicious result reproducible instead of a one-off you cannot
chase.
## The parts a browser fingerprint cannot fix
This is the honest caveat, and skipping it is how people get surprised.
Matching the browser-visible layer to a real desktop covers the browser-visible layer.
It does nothing about:
- **The exit IP.** A datacenter address is a datacenter address, and a large share of
VM detection in practice is just the IP's reputation and ASN. A perfect persona on a
known cloud range still reads as a cloud instance. You supply the exit; the build
only sets the browser to match it. See
[why a container gets caught on the network and machine layers](playwright-docker-detection.md).
- **Hypervisor timing side-channels.** Some detectors time operations whose cost
differs under virtualization. That is a property of the CPU you are actually running
on, not of any value the browser reports, and no fingerprint override changes it.
- **Behaviour, rate and quota.** Human pacing, per-account limits and request velocity
are yours to supply. A consistent browser hammering one endpoint from one address
creates the exact signal it was trying to avoid.
So invisible_playwright helps with the browser-visible half of VM detection and does
not, on its own, fix the IP, the timing floor or your behaviour. It is designed to be
paired with a clean residential exit and human pacing, not to replace them. There is no
setting that makes a browser undetectable, and any tool that claims one is selling the
claim rather than the result.
## Conclusion
Can a website detect a virtual machine? It can make a strong guess from the browser
side - a software GPU renderer, odd core and memory counts, missing audio, generic
display metrics - and it can prove very little from inside the page while proving quite
a lot from your IP and handshake. invisible_playwright addresses the guessable,
browser-visible half by presenting one coherent real-hardware persona instead of the
default VM answers, and it is honest about the half it does not touch. Match the
browser to a real desktop, put it behind a clean exit, pace it like a person, and the
VM score stops being the thing that gives you away. Get any one of those three wrong and
the other two will not save you.
## Short answers to the questions that lead here
**Can JavaScript detect that I am in a VM?** Not directly. It cannot read CPUID, BIOS
strings or the hypervisor. It infers from browser-visible values like the GPU renderer,
core count, audio device and screen, and scores how VM-like they look together.
**What is the biggest browser-side VM tell?** A software or generic WebGL renderer
string. It is a value you can read in plain text rather than a statistic you have to
accumulate, so it stands out immediately.
**Does invisible_playwright hide that I am on a cloud server?** It fixes the
browser-visible signals it can change - GPU, cores, audio, screen - to one coherent real
desktop persona, and leaves `deviceMemory` undefined, which already matches real
Firefox. It does not change your IP, which is often the actual reason a cloud session
gets flagged.
**Can a website detect a VM through timing?** Some detectors time operations that cost
more under virtualization. That is a property of the CPU you run on, not a browser
value, so no fingerprint override affects it.
**Will a real-hardware persona alone get me through?** No. Pair it with a clean
residential exit and human pacing. The persona covers the machine the browser reports,
not the address it connects from or how fast you click.
**Is there a setting that makes the browser undetectable?** No, and be wary of anything
that says otherwise. This lowers the browser-visible VM score to a real desktop's; the
IP, timing floor and behaviour are still yours to get right.
## Sources
- The browser API references for each browser-visible value a VM score reads: the
[WebGL renderer string](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info),
[`hardwareConcurrency`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency),
[`deviceMemory`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory),
[`AudioContext`](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API) output, and
[`devicePixelRatio`](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio)
for screen metrics, retrieved 2026-08-29.
- [Pafish](https://github.com/a0rtega/pafish), the open-source reference for the
native-side CPUID, BIOS and disk-controller checks a web page cannot reach,
retrieved 2026-08-29.
- This project's release gates, which compare each of those fields against a stock
Firefox on the same machine rather than reading a verdict.
**See also:** [WebGL renderer strings](webgl-renderer-strings.md) and
[hardwareConcurrency and deviceMemory](hardware-concurrency-device-memory.md) for two
of the signals above, and [how to test whether your browser is detected](how-to-test-bot-detection.md)
for the compare-against-stock method that catches a VM tell a verdict hides.
---
*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.*
@@ -0,0 +1,256 @@
---
title: "Can a website detect Clipboard API access?"
description: "A page can see navigator.clipboard and query clipboard-read permission state, but the async Clipboard API is a gesture gate, not a value fingerprint you leak."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 21
---
# Can a website detect Clipboard API access?
Short version: a page can see that `navigator.clipboard` exists, and it can ask the
Permissions API about `clipboard-read`, which answers with a state on Chromium and throws
on Firefox, so either way it can observe your relationship with the clipboard. What it
mostly cannot do is turn that into a stable fingerprint of your machine. The Clipboard API
is interesting to a detector for a different reason than canvas or WebGL are: it is not a
value you leak, it is a gate that only opens for a real user gesture, and the way the
Permissions API answers for it has to match the engine you claim to be.
This page is what the async Clipboard API actually exposes, why it behaves as a gate
rather than a fingerprint, the cross-check a detector runs against it, how to drive it
with a real trusted click, and the honest limit of what a patched browser does here.
## What the async Clipboard API actually exposes
The modern surface is the [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API)'s
`navigator.clipboard`, with two methods that matter for detection:
`writeText()` and `readText()` (plus their richer `write()`/`read()` cousins). Both return
promises, and both are guarded before they ever touch the system clipboard.
A page can read three things without any special access:
- **Whether `navigator.clipboard` is present at all.** A secure context (HTTPS) in a
modern browser has it; its absence under a modern user agent is itself a mismatch.
- **What the [Permissions API](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API)
says about `clipboard-read`**, by asking it directly:
`navigator.permissions.query({name: 'clipboard-read'})`. Chromium answers with
`granted`, `denied` or `prompt`, no dialog involved. Firefox throws instead, because it
has never implemented that permission name.
- **What happens when it calls a method.** A rejected promise, and the shape of the
rejection, tells the page which guard tripped.
None of those three is a serial number. They describe policy, not hardware, and that is
the whole point of this surface.
## Why clipboard is a gate, not a value fingerprint
Canvas gives back a hash. WebGL gives back a renderer string. The clipboard gives back
almost nothing that varies from one honest machine to the next, because access is gated
on two conditions the specification requires:
1. **A user gesture.** `readText()` and `writeText()` are only allowed while the document
has [transient activation](https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/User_activation),
meaning a real interaction (a click, a key press) happened
recently. Call either one from a script with no gesture behind it and the promise
rejects.
2. **A second gate that differs by engine.** Chromium backs both operations with a real
`clipboard-read`/`clipboard-write` permission a page can query through the Permissions
API. Firefox implements no such permission at all: the identical query throws, and a
read that does not already satisfy the gesture rule falls back to an ephemeral,
one-shot "Paste" item in a native context menu instead of a stored grant. Either shape
is policy the page can observe, and neither hands back a value that varies from
machine to machine.
For an automation setup this is exactly the kind of check that separates a real browser
from a spoofed one, and it separates them on *behaviour*, not on a leaked value. A script
that dispatches its own synthetic `click` event to satisfy the gesture requirement fails,
because a page-built event carries [`isTrusted=false`](https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted)
and does not count as activation.
This is the same boolean that decides
[whether an automated click reads as real input](playwright-clicks-istrusted.md): the
clipboard gate sits directly on top of it.
So the detector question is not "what is your clipboard value". It is "does the clipboard
open for you the way it opens for a person", and the answer depends on whether your
clicks are trusted.
## The cross-check: the Permissions API answer must match the engine
The sharper check does not call the clipboard at all. It reads what the Permissions API
says about `clipboard-read` and checks whether that answer matches the engine the rest of
the page claims to be.
A modern Firefox user agent implies a specific, boring answer:
`navigator.permissions.query({name: 'clipboard-read'})` throws, because Firefox has never
implemented that permission name. Chromium, by contrast, answers with a real
`granted`/`denied`/`prompt` state. A detector that sees a Firefox user agent and a
Chromium-shaped answer to that one query has found a browser lying about what it is:
either the engine underneath is not really Firefox, or something patched the Permissions
API on top of one without reproducing the one answer a real Firefox has always given.
It is the same family as
[the notifications permission mismatch](permissions-api-consistency.md), where
`Notification.permission` and `navigator.permissions.query({name: 'notifications'})` are
expected to give one coherent answer and a headless browser gives two, and it sits
alongside [the notification-state cross-check detectors already run](notification-permission-detection.md).
Clipboard is a blunter version of the same idea: the expected answer for a real Firefox is
not a state to match, it is a specific failure to reproduce. Nobody has to recognise
automation directly; they just ask the same question the browser already answers for free
and see if the answer fits.
A patched-at-the-engine build does well here for an unglamorous reason: it is a real
Firefox, so the Permissions API answers exactly the way any Firefox does, including by
throwing on a permission name Firefox never implemented. There is nothing to keep in sync
because nothing was bolted on.
## Reading the clipboard with invisible_playwright
Because Playwright's clicks go through the native input path, they arrive as trusted
gestures, so the clipboard gate opens exactly as it would for a hand on the mouse. The
launch is the usual two lines, and after that everything is stock Playwright:
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
# A page button whose handler calls navigator.clipboard.writeText(...).
# The Playwright click is a trusted gesture, so the write is permitted.
page.click("#copy-button")
# Inspect the surface the way a detector would: presence plus how the
# Permissions API answers for clipboard-read on this engine.
report = page.evaluate("""async () => {
const present = 'clipboard' in navigator;
let readState = 'unavailable';
try {
const s = await navigator.permissions.query({ name: 'clipboard-read' });
readState = s.state; // Chromium: 'granted' | 'denied' | 'prompt'
} catch {
readState = 'query-failed'; // Firefox: always lands here
}
return { present, readState };
}""")
print(report) # e.g. {'present': True, 'readState': 'query-failed'}
```
The values you get back are the ones a genuine Firefox returns: `navigator.clipboard`
present in the secure context, and a `clipboard-read` query that fails exactly the way it
fails on every real Firefox, rather than answering with a hand-forced constant.
[`context.grant_permissions([...])`](https://playwright.dev/python/docs/api/class-browsercontext#browser-context-grant-permissions)
works for the permissions Firefox actually implements through Playwright, such as
`geolocation`, but not for `clipboard-read` or `clipboard-write`: pass either one on a
Firefox context and Playwright itself raises `Unknown permission`, on stock Playwright as
much as on this one. There is no separate API and no workaround to learn here, because the
browser has nothing to grant; a `readText()` flow on Firefox depends on the trusted
gesture, not on a permission you can pre-approve.
The measurable point is the one from the section above: the presence flag reads true, the
`clipboard-read` query fails exactly the way it does on every real Firefox, and a
click-gated `writeText()` succeeds because the gesture was trusted. That match is what the
cross-check is looking for, and it is a property of being a real browser rather than of
any value we inject.
## What this does not fix
Passing the clipboard cross-check is a fingerprint-and-driver-layer win, and it is worth
being blunt about where that win stops.
- **IP reputation.** The clipboard gate has nothing to do with your exit address. A
coherent clipboard on a datacenter IP is still on a datacenter IP. Supply a clean exit;
see [Configuration](configuration.md) for the proxy setup.
- **Per-account quotas and rate limits.** Looking like a real browser does not raise a
limit that is counted per account or per address. Those are policy on the other side,
not a browser property.
- **Behaviour and timing.** The gate cares that a gesture is trusted, not that your pacing
is human. A trusted click fired in a machine-perfect rhythm is still a rhythm a watcher
can measure.
- **Clipboard prompts by design.** Some `readText()` flows are meant to prompt a human.
Automating your way around a deliberate consent step is a different problem from looking
real, and this page is only about the second.
invisible_playwright is built to look like a real browser driven by a real person, which
is why the fingerprint, the TLS handshake and the driver layer read as a genuine Firefox
and why checks like this one pass. It does not launder a bad IP or manufacture pacing.
Those you supply: a clean proxy and human-shaped behaviour.
## Conclusion
A website can absolutely detect that you are touching the Clipboard API, and it can ask
the Permissions API about `clipboard-read` without ever showing you a prompt. But the
async Clipboard API is a gate, not a value fingerprint: access opens only for a real
trusted gesture, and the way the Permissions API answers for `clipboard-read` has to match
how the engine you claim to be actually answers it. A patched-at-the-engine Firefox driven
by stock Playwright clears both because the gesture is genuinely trusted and the
permission plumbing is the browser's own, throw and all. That handles the browser side.
The exit and the pacing are still yours to get right.
## Short answers to the questions that lead here
**Can a website tell if I read the clipboard?** It can see that `navigator.clipboard`
exists and query `clipboard-read` on the Permissions API, which answers with a state on
Chromium and throws on Firefox. A silently rejected read also tells it which guard
tripped. It cannot turn any of that into a stable machine fingerprint.
**Is the Clipboard API a fingerprinting surface?** Barely, in the value sense. It is a
permission-and-gesture gate, so its interest to a detector is consistency and access
behaviour, not a hash that varies between machines.
**Why does `readText()` reject in my automation?** Almost always a missing trusted user
gesture. On Firefox specifically, a read that does not already satisfy that gesture rule
falls back to an ephemeral native "Paste" menu item a script cannot click. A
script-dispatched click never counts as the gesture in the first place.
**Do Playwright clicks satisfy the gesture requirement?** Yes. They go through the native
input path and arrive as trusted events, so the clipboard gate opens as it would for a
real user.
**What is the clipboard cross-check?** A detector checks whether querying the Permissions
API for `clipboard-read` behaves the way the claimed engine actually behaves: a real state
on Chromium, a specific unsupported-permission error on Firefox. A shim that answers with
a clean state on a Firefox user agent is the mismatch.
**Does a coherent clipboard mean I will not get blocked?** No. It is one browser-side
signal. IP reputation, per-account quotas and behaviour are separate and are yours to
handle.
## Sources
- W3C, [Clipboard API and events](https://www.w3.org/TR/clipboard-apis/), retrieved
2026-08-28, for the async Clipboard API and its `clipboard-read`/`clipboard-write`
permission requirements, read from the specification rather than from a blog summary.
- W3C, [Permissions API](https://www.w3.org/TR/permissions/), retrieved 2026-08-28, for
the `navigator.permissions.query()` behavior the cross-check relies on.
- MDN, [Clipboard API: Security considerations](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API#security_considerations),
retrieved 2026-08-28, for the browser divergence this page relies on: Chromium backs
`clipboard-read`/`clipboard-write` with a real, queryable Permissions API permission;
Firefox and Safari implement neither and gate access by transient activation instead.
- Mozilla Bugzilla, [bug 1560373](https://bugzilla.mozilla.org/show_bug.cgi?id=1560373),
retrieved 2026-08-28, for the `TypeError` Firefox throws on a `clipboard-write` Permissions
API query instead of returning a state, and for the WONTFIX resolution confirming Firefox
never planned to add that permission name. The same missing-enum gap is why a
`clipboard-read` query fails the identical way.
- microsoft/playwright, [issue 19888](https://github.com/microsoft/playwright/issues/19888),
retrieved 2026-08-28, for the `Unknown permission: clipboard-read` error `grant_permissions`
raises in stock Playwright. This project's own testing reproduces the identical failure
on a Firefox context, independent of anything this project changes.
- WHATWG HTML Standard, [Tracking user activation](https://html.spec.whatwg.org/multipage/interaction.html#tracking-user-activation),
retrieved 2026-08-28, for the transient-activation gesture requirement the clipboard
gate sits on.
- This project's own permission and gesture gates, which check that a click-gated
operation succeeds under a trusted event and that what a page can observe from the
Permissions API matches what the real browser being claimed actually does.
**See also:** [the trusted-click boolean the clipboard gate sits on](playwright-clicks-istrusted.md),
[the permission answers that must agree](permissions-api-consistency.md), and
[the notification cross-check detectors already run](notification-permission-detection.md).
---
*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.*
@@ -0,0 +1,235 @@
---
title: "Can a website tell you are running on a server?"
description: "Websites spot a datacenter or headless host via software WebGL, missing audio, headless metrics, datacenter ASN - and what a real fingerprint can fix and cannot."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 25
---
# Can a website tell you are running on a server?
Often, yes. Not because the code is automated, but because the host is a server:
no GPU, no sound card, no monitor, and an address that belongs to a datacenter. A
browser running there answers a handful of ordinary questions in a way that only a
server answers them, and a detector does not need anything clever to notice.
The honest split is worth stating up front. Most of these tells are JavaScript-visible
properties of the machine, and a browser that presents a real desktop persona answers
them the way a desktop does, whether the host underneath is a laptop, a Linux VM or a
Docker container. One of them is not a browser property at all: the exit IP is read at
the network layer, before any script runs, and no browser can disguise it. That one is
yours to solve with a clean proxy.
## What a server actually leaks
The failures that get a headless-host session blocked are almost never automation
flags like [`navigator.webdriver`](navigator-webdriver-explained.md). Those are solved
by every serious tool on day one. The ones that survive are hardware questions the
machine cannot answer honestly:
- **The GPU**, read through the [`WEBGL_debug_renderer_info`](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info)
extension, which on a server names a software rasterizer instead of real hardware.
- **The audio device**, read through [`AudioContext`](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext), which on a server does not exist.
- **The screen**, whose resolution, available height and device pixel ratio describe
a display that no real desktop has.
- **The exit address**, whose ASN says datacenter.
None of these are in JavaScript's gift to change from a page-level script, which is
why a stealth plugin bolted onto a stock headless browser does not touch them. They
are decided by the box the browser runs on. The rest of this page walks the first three
(which a real-browser build answers on the browser side) and then the fourth (which it
cannot).
## The software renderer tell
Ask a browser on a normal desktop what draws its graphics and it names a real GPU
vendor and model. Ask a browser on a server and, if it renders WebGL at all, it names
a software rasterizer: strings like [`llvmpipe`](https://docs.mesa3d.org/drivers/llvmpipe.html)
or [`SwiftShader`](https://github.com/google/swiftshader), or a generic "software"
renderer. That string is a plain statement that there is no graphics hardware present,
and a detector reads it as exactly that.
There is a subtler version of the same tell, and it is the one that catches half-fixes:
the renderer string can be edited to say a real GPU while the pixels are still drawn by
software. A page that draws a scene and reads back the result gets output that does not
match the name, which is [a mismatch you cannot patch from a string override](renderer-string-vs-render.md).
The name and the pixels have to agree.
invisible_playwright presents a real GPU persona, and the readback matches it, because
the presented persona is what actually answers both the string query and the render.
The [WebGL renderer strings page](webgl-renderer-strings.md) covers what a consistent
vendor/renderer pair looks like and why the two halves have to line up.
## The missing audio device and the headless screen
Sound is the same story as graphics. An AudioContext reports a sample rate, an output
latency and a channel count, and on a real machine those come from a real sound card.
A container has none, so it answers with the defaults that a headless host produces,
and the defaults are a signature. An empty or default audio profile under a desktop user
agent is a server saying it is a desktop. The mechanism is in
[AudioContext fingerprinting](audiocontext-fingerprinting.md).
The screen is the third. Headless hosts report resolutions nobody runs, a device pixel
ratio no physical display has, and an available height equal to the full height, which
means there is no taskbar because there is no desktop. Each value on its own is weak;
together they describe a monitor that does not exist. The full set of these is in
[screen size and other headless tells](screen-size-headless-tells.md).
A real-browser build answers all three as a Windows desktop would: a real GPU persona,
a real AudioContext output, and Windows screen metrics with a plausible available height
and device pixel ratio. Those answers are the same whether the host is your laptop or a
Linux container, because they are presented by the browser rather than read from the box.
## What each browser answers on the same page
![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/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
the server tell on this host.
That is worth showing precisely because the section above is about a machine looking
like a server rather than a desktop. On a real desktop with a real audio device the
sample rate is ordinary in both, and the value that separates the two runs is the
automation flag, which is not a server signal at all.
## What invisible_playwright presents instead
The launch is two lines, and the browser you get back is a real Playwright
[`Browser`](https://playwright.dev/python/docs/api/class-browser), so every method is the one you already know. Here is the launch plus reading back the
three signals this page is about:
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
report = page.evaluate("""() => {
const gl = document.createElement('canvas').getContext('webgl');
const dbg = gl.getExtension('WEBGL_debug_renderer_info');
const ac = new (window.AudioContext || window.webkitAudioContext)();
return {
renderer: gl.getParameter(dbg.UNMASKED_RENDERER_WEBGL),
vendor: gl.getParameter(dbg.UNMASKED_VENDOR_WEBGL),
sampleRate: ac.sampleRate,
screen: [screen.width, screen.height, screen.availHeight],
dpr: window.devicePixelRatio,
platform: navigator.platform,
};
}""")
print(report)
```
Run that on a Linux server or inside a container and the renderer names a real GPU, the
vendor matches it, the AudioContext reports a desktop sample rate, the screen metrics
describe a Windows display with a taskbar, and `navigator.platform` reads `Win32`. The
same `seed=42` produces the same persona every run, so a value you saw once is a value
you can reproduce and diff, rather than a fresh random draw each launch.
Because the browser is a genuinely patched Firefox driven by stock Playwright, the layers
underneath the JavaScript match too: the TLS handshake and the driver surface read as a
real Firefox rather than as an automated one. That consistency is the reason it passes
most detection checks, and the way to confirm it is by comparison against a stock browser
on the same machine rather than by trusting a single verdict.
## The boundary: the datacenter IP is still visible
Here is the caveat, stated plainly because a page that only lists what it fixes is not
honest. Everything above happens inside the browser, at the JavaScript layer. The exit
IP does not. The server reads your address at the network layer before a single line of
script runs, and if that address sits in a datacenter ASN, a perfect browser fingerprint
does not hide it. The browser cannot disguise the IP, by design, because the IP is not
a browser property.
So a headless host with a flawless desktop persona and a datacenter exit has fixed the
JavaScript tells and left the network tell standing. The fix is a residential or mobile
proxy that presents a clean address, passed on launch:
```python
proxy = {
"server": "socks5://gate.example.com:1080",
"username": "user",
"password": "pass",
}
with InvisiblePlaywright(seed=42, proxy=proxy) as browser:
page = browser.new_page()
page.goto("https://example.com")
```
And the address is only the first of the things the browser does not fix. IP reputation,
per-account quotas, rate limits, and behaviour and timing are all supplied by you: a
clean exit, human pacing, and sane request volume. The [configuration page](configuration.md)
covers proxy schemes and how the browser timezone is auto-derived from the exit so the
two do not tell different stories, and the [Docker and container detection walkthrough](playwright-docker-detection.md)
covers the host-side tells in the order they usually bite.
## Conclusion
Can a website tell you are on a server? From the browser alone, it usually can, through
software WebGL, a missing audio device and headless screen metrics. A real-browser build
answers those as a desktop, on the browser side, regardless of the Linux or container host
underneath, which is why the JavaScript-visible surface stops giving the server away. What
it does not and cannot fix is the datacenter IP, which is read at the network layer and
needs a clean proxy, along with the account limits and pacing that no fingerprint touches.
Fix the machine tells with the browser, fix the address with the proxy, and pace the
behaviour yourself.
## Short answers to the questions that lead here
**Can a website detect a headless or server browser?** Often, from the machine rather
than the automation: a software WebGL renderer, no audio device, headless screen metrics,
and a datacenter IP.
**Does invisible_playwright hide that I am on a server?** It presents a real GPU, real
audio and Windows screen metrics on the browser side, so the JavaScript-visible tells look
like a desktop. It does not hide the exit IP, which is a network-layer signal.
**Is the datacenter IP a browser problem?** No. The address is read before any script runs,
so no browser can change it. That one needs a residential or mobile proxy.
**Why does a software renderer give me away?** Because a real desktop names a real GPU, and
`llvmpipe` or `SwiftShader` is a plain statement that there is no graphics hardware present.
**Do I still need a proxy if my fingerprint is perfect?** Yes, if the host is in a
datacenter. A flawless browser on a datacenter ASN is still on a datacenter ASN.
**Does this work the same in Docker as on a real machine?** The browser-side answers are
the same because the persona is presented by the browser, not read from the host. The IP
and the pacing still depend on where and how you run it.
## Sources
- MDN Web Docs: [`WEBGL_debug_renderer_info`](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info),
retrieved 2026-08-28, for the `UNMASKED_VENDOR_WEBGL` and `UNMASKED_RENDERER_WEBGL`
tokens a software renderer answers with.
- MDN Web Docs: [`AudioContext`](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext),
retrieved 2026-08-28, for the sample rate, output latency and channel count a
container reports with no sound card present.
- Mesa 3D Graphics Library documentation: [LLVMpipe](https://docs.mesa3d.org/drivers/llvmpipe.html),
retrieved 2026-08-29, for the software rasterizer whose name is one of the two strings a
GPU-less host answers `UNMASKED_RENDERER_WEBGL` with.
- Google SwiftShader, [project repository](https://github.com/google/swiftshader), retrieved
2026-08-29, for the other software renderer a headless host commonly reports in place of
a GPU.
- Playwright documentation: [`Browser`](https://playwright.dev/python/docs/api/class-browser),
retrieved 2026-08-29, for the class the launch call in this article returns unchanged.
- This project's release gates, which read WebGL renderer, AudioContext output and screen
metrics through the shipped binary on a Linux host and compare them against a stock
desktop browser.
- The per-surface pages linked throughout, each read from its own detector's source rather
than from a rendered verdict.
**See also:** [Docker and container detection](playwright-docker-detection.md),
[WebGL renderer strings](webgl-renderer-strings.md), and
[screen size and other headless tells](screen-size-headless-tells.md).
---
*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.*
@@ -0,0 +1,202 @@
---
title: "Can I Use My Real Browser Profile With Playwright?"
description: "Playwright can point at a persistent profile, but reusing your daily browser leaks cookies and your machine fingerprint. Use a dedicated seed-fixed profile instead."
parent: "The Automation Layer"
grand_parent: "Guides"
nav_order: 24
---
# Can I Use My Real Browser Profile With Playwright?
Yes, technically. Playwright can launch against a [persistent user data
directory](https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch-persistent-context),
and you can point it at the exact folder your everyday browser uses. The question is not
whether it works. It is whether you want the two things that come with it: your personal
cookies and history riding along in automated traffic, and whatever inconsistent
fingerprint your daily machine happens to have.
Both are avoidable, and the fix is not "no profile". It is "a different profile". This
page separates the good idea (a persistent profile) from the risky one (your personal
one), and shows a seed-fixed persistent context that keeps login state across runs
without carrying the host machine into every request.
## What people actually mean by "my real browser profile"
Two different wishes hide under the same sentence, and they have different answers.
The first is "I do not want to log in on every run." That is a reasonable and common
need, and a persistent profile is the right tool for it: cookies, local storage and
login state survive between sessions instead of starting empty each time.
The second is "I want to reuse the profile I browse with personally, because it is
already logged in and already looks real." That is where it goes wrong. Your daily
profile is full of your own cookies, your own history and consent decisions tied to
your own identity, and none of that belongs in an automated session. It also inherits
the fingerprint of the machine it launches on, which is a separate problem covered
below.
You want the first wish granted and the second one declined.
## Why your personal profile is the wrong choice
Two independent reasons, and either one is enough on its own.
**It mixes your identity into automated traffic.** Every cookie, every stored session,
every site that recognises you is now attached to whatever the automation does. If the
automated session is flagged, throttled or challenged, it is your account that carries
the record, not a disposable one. Linkability runs both directions: the profile links
your automation to you, and links you to your automation.
**A stock profile carries whatever fingerprint the launching machine has.** This is the
part most people miss. A plain profile does not standardise the machine underneath it.
It reports the real GPU, the real fonts, the real screen and audio devices of wherever
it runs. On your laptop that is your laptop. On a server it is a server with no GPU, no
fonts and a screen size nobody has, which is [what actually gets a datacenter session
detected](playwright-detected-as-bot.md), independent of any automation flag. Reusing
your personal profile does not fix that. It just picks one specific inconsistent machine
to leak.
The durable pattern is a dedicated profile whose identity you control, not the one you
read your email with.
## The pattern that works: a dedicated, seed-fixed profile
invisible_playwright takes a persistent profile directory the same way plain Playwright
does, through `profile_dir`. The difference is what fills in the machine. Instead of the
host's real hardware, the fingerprint is derived from a seed, so the same seed produces
the same coherent Windows browser every run: same GPU, same fonts, same screen, same
audio context. Cookies and login state accumulate in the directory across runs; the
machine stays a stable, real-looking Windows instance regardless of what the host
actually is.
The launch is two lines over plain Playwright, and everything after it is stock
Playwright:
```python
from invisible_playwright import InvisiblePlaywright
# one directory, one seed, paired for good
with InvisiblePlaywright(seed=42, profile_dir="/profiles/identity-42") as browser:
page = browser.new_page()
page.goto("https://example.com/account")
# first run: log in here. the directory keeps the session.
# later runs on the same seed + directory: already logged in.
```
The `browser` object is a real Playwright `Browser`, so `new_page`, `goto`, `click`,
`fill` and every other documented method work exactly as upstream. There is no wrapped
subset to learn. Add a proxy and a timezone the same way [Configuration](configuration.md)
describes, and the identity is complete: a logged-in session, on a consistent machine,
behind the exit you chose.
The pairing is the rule to hold onto: one directory belongs to one seed, permanently. A
stable directory with a changing seed describes a browser whose history spans weeks and
whose graphics card changed overnight, which is exactly the contradiction [a persistent
profile can create if you let the seed drift](persistent-profiles.md).
## Reproduce a run, and pin what has to stay fixed
The reason a fixed seed matters for a login profile is not only realism. It is
debuggability. If every run drew a fresh machine, a failing run would tell you nothing:
you could not separate the site changing from the fingerprint changing. Log the seed
once and a failure becomes reproducible.
```python
sf = InvisiblePlaywright(profile_dir="/profiles/identity-99")
with sf as browser:
print("seed =", sf.seed) # write this down next to the directory
page = browser.new_page()
page.goto("https://example.com")
```
Record the seed beside the directory name, because the folder outlives your memory of
which number produced it. If one specific field has to hold constant across identities
for reasons of your own, [pin that field](pinning.md) and leave the rest seed-derived
rather than reusing a whole personal profile to get it.
## The honest caveat: what a profile does and does not buy you
A dedicated seed-fixed profile preserves session trust. It does not launder anything
else, and it is worth being precise about the boundary.
What it fixes: the "no history" problem. The session looks like it has been used, stays
logged in, and does not reset to a blank browser every run. What it does not touch:
- **IP reputation.** The profile says nothing about your exit. A perfect logged-in
identity on a known datacenter address is still on a known datacenter address. Supply a
clean proxy; the profile does not.
- **Per-account limits and quotas.** A site that caps actions per account still caps
them. A reused session does not raise the ceiling, and hammering it from one session is
the surest way to spend the account.
- **Rate limits and timing.** Behaviour and pacing are yours to supply. The engine makes
the browser look real; it does not make a burst of requests look human. That is a
[session-reuse-versus-relogin tradeoff](automating-login-vs-session-reuse.md) and a
pacing decision, not a fingerprint one.
invisible_playwright is built to look like a real browser driven by a real person, which
is why the fingerprint, TLS and driver layers read as a genuine Firefox and pass most
in-page detection. That is a real and useful thing. It is not the same as evading every
control, and a profile does not change where that line sits. The reader still brings the
clean exit and the human pacing.
## Conclusion
Can you use your real browser profile with Playwright? You can, and you should not. The
part you want, staying logged in, comes from any persistent profile. The part you do not
want, your personal cookies and one specific leaky machine in every request, is exactly
what reusing your daily profile adds.
Point automation at a dedicated directory, pair it permanently with one seed so the
machine underneath stays a coherent Windows browser instead of the host, and log the
seed so a bad run is reproducible. Then remember what the profile is not: it keeps the
session, and it leaves the IP, the quotas and the pacing to you.
## Short answers to the questions that lead here
**Can Playwright use an existing browser profile?** Yes, through a persistent user data
directory. The mechanism is fine. Reusing the profile you personally browse with is the
part to avoid.
**Why not just point it at my normal Chrome or Firefox profile?** Because it drags your
personal cookies and history into automated traffic and inherits the launching machine's
fingerprint, including a server's missing GPU and fonts.
**Does a persistent profile keep me logged in between runs?** Yes. Cookies and login
state live in the directory and survive across sessions, as long as one directory maps
to one seed and is never shared between concurrent runs.
**Does reusing a profile make me undetectable?** No. It fixes having no history and
nothing else. The machine, the exit IP, the account quotas and your timing are all
separate, and a profile touches none of them.
**Do I need a new seed for each profile?** Yes, a distinct seed per profile, and the
same seed every time for a given profile. The seed is the machine; the directory is the
history.
**Will a dedicated profile fix a blocked datacenter IP?** No. Session trust and IP
reputation are unrelated. A logged-in identity on a flagged address is still on a flagged
address; that needs a clean exit, not a profile.
## Sources
- Playwright's own [`launch_persistent_context`
documentation](https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch-persistent-context),
which defines the user data directory mechanism this page builds on.
- This project's persistent-context handling and the seed-to-fingerprint derivation
described across these docs, including the seed and `profile_dir` pairing.
- The detection ordering in the companion checklist, where machine tells outrank
automation tells and the exit IP is a separate axis from the browser.
**See also:** [what a persistent profile fixes and breaks](persistent-profiles.md) for
the traps that come with the directory, [automating the login versus reusing a
session](automating-login-vs-session-reuse.md) for the tradeoff behind staying logged
in, and [scraping behind a login with Playwright](how-to-scrape-behind-login-playwright.md)
for the end-to-end version of this.
---
*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.*
@@ -0,0 +1,201 @@
---
title: "Can two devices share a browser fingerprint?"
description: "Yes - that's the goal: a shared browser fingerprint hides you among real users, while a unique one is trackable. How anonymity sets work and how to land in one."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 26
---
# Can two devices share a browser fingerprint?
Yes, two devices can present the same browser fingerprint, and if your goal is not to
be followed around, that is the outcome you want rather than the one to avoid.
The intuition most people bring to this is backwards. It feels like a fingerprint should
be unique, like a real one, and that a collision is a failure. For tracking it is the
opposite: a fingerprint that only you have is a fingerprint that follows only you. A
fingerprint that thousands of real people also have tells a tracker almost nothing about
which of them you are.
This page is about that trade, why a common configuration beats a clever one, and how to
land on a shared-looking identity on purpose instead of by luck.
## The anonymity set is the whole game
A browser fingerprint is not one value. It is a hash of many components read from
JavaScript: the GPU string, the canvas and audio outputs, the installed fonts, the
screen geometry, the platform, the language list, and dozens more. [FingerprintJS calls
the resulting hash a visitor ID](fingerprintjs-visitor-id.md), and its job is to
recognise you again on the next visit.
The number that decides whether it can is the size of the group that shares your value.
This group is the anonymity set. If ten thousand other browsers produce exactly your
hash, the visitor ID identifies a crowd, not you, and the tracker has to fall back on
other signals to tell you apart. If your hash is unique, the visitor ID identifies you
and only you, and it will do so every session until one of those components changes.
So the useful question is not "is my fingerprint unique". Uniqueness is the failure mode.
The useful question is "how many real people look exactly like this", and you want that
number large.
A one-of-a-kind fingerprint loses this even when every individual value is plausible. A
GPU nobody else reports, a screen size nobody else has, a font set assembled by no real
installer: each looks fine alone and, taken together, marks one browser out of everyone.
That is why [pinning fields by hand is risky](pinning.md) unless you know the
combination is one that real machines actually ship.
## Why a common configuration beats a clever one
The instinct to look special is exactly the wrong instinct here.
Trackers do not need to prove you are automated to follow you. They only need your
combination of values to be rare. Rarity is the signal, and it does not care whether the
values are suspicious. A perfectly innocent, perfectly consistent, perfectly unique
browser is perfectly trackable.
So the design target is the boring middle of the distribution: a Windows version many
people run, a GPU many people have, a screen size that sits on a common laptop panel, a
language list a large population shares. Land there and you disappear into a group. Land
on the tails, even with clean values, and you stand out by being precise.
This is also why "resist fingerprinting" and "blend into a crowd" are two different
strategies that can conflict. The browser's own
[resistFingerprinting mode](resist-fingerprinting.md) makes many browsers report the same
flattened values, which is one way to build an anonymity set, but the set it puts you in
is the set of people who turned that mode on, and that set has its own recognisable shape.
Blending in with the general population is a different bet: look like the common case, not
like the privacy case.
## How a seed lands you in a crowd
invisible_playwright generates each identity to look like a common, real-world Windows
machine rather than a rare or unusual one, because a configuration many genuine users
also present blends in, while a one-of-a-kind combination stands out and is trackable.
The GPU string, the renderer, and the capability limits it reports are chosen together
and cross-checked, so
[the WebGL parameters agree with each other](webgl-parameters-are-identical.md) the way a
real driver's do rather than being mixed from different machines.
Switching from stock Playwright is two lines, and the identity is generated for you:
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright() as browser:
page = browser.new_page()
page.goto("https://example.com")
```
Pass a seed and every field it implies comes back identical, run after run, so you can
inspect the exact identity a seed produces and reuse it:
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
# same GPU, same canvas hash, same fonts, same screen, every run
```
The `browser` returned is a real Playwright
[`Browser`](https://playwright.dev/python/docs/api/class-browser). Every method works
exactly as documented upstream; there is no reduced API to learn.
Two different seeds give two different plausible identities, and because each is
generated to be a common real-world configuration, both can land in a well-populated
part of the space.
That is the sense in which two of your own devices can "share" a look: not that they hash
to the same value by accident, but that each is a common configuration, and common
configurations are shared by construction with the real population.
## The caveat: fingerprint is not the only thing matched
Blending in on fingerprint does not blend in everything, and this is the honest limit of
what any fingerprint layer can do.
A browser identity that looks like a common real machine is why invisible_playwright
passes most in-page detection: the fingerprint, the TLS handshake and the driver layer
read as a genuine Firefox rather than an automated one. That is a real and load-bearing
result. It is also only one of the axes a serious system matches on, and the others are
matched separately:
- **Your IP address.** A crowd-blending fingerprint on a datacenter address, or on a
proxy IP that is already known and shared by a thousand scrapers this minute, is
singled out by the address alone. Fingerprint collisions do not help you here; supply a
clean exit yourself.
- **Your request pattern.** Rate, timing, the order you touch pages, per-account quotas.
A hundred sessions that each look like a different real person, all arriving in the same
ten seconds from the same place, are a pattern no fingerprint hides. Human pacing is
yours to supply.
- **The story your surfaces tell together.** A common browser fingerprint with a timezone
or language that contradicts the exit IP is not blended in, it is inconsistent, and
[a timezone that does not match the proxy](timezone-proxy-mismatch.md) is one of the
most common self-inflicted versions of this.
So the accurate claim is narrow and worth stating plainly: a shared, common fingerprint
helps you avoid being tracked and identified by fingerprint. It does nothing for IP
reputation, quotas, rate limits, or behaviour. Those are matched on their own, they can
single you out on their own, and the reader supplies the clean proxy and the human pacing
that address them. Anyone promising that one browser makes a session undetectable is
selling the part that does not exist.
## Conclusion
Two devices sharing a browser fingerprint is not a bug, it is the objective. Uniqueness
is what makes a browser trackable across sessions; membership in a large group of
look-alike real users is what makes it hard to follow. Sampling common, cross-checked
real-world configurations lands you in that group on purpose. Then pair it with an
address and a rhythm that fit the same story, because fingerprint blending buys you the
fingerprint axis and only that one.
## Short answers to the questions that lead here
**Can two devices have the same browser fingerprint?** Yes. Many components are shared by
large populations, so identical hashes across devices are normal, and for anti-tracking
they are what you want.
**Is a unique fingerprint good or bad?** Bad, if you do not want to be followed. Unique
means recognisable on every future visit. Common means lost in a crowd.
**Does sharing a fingerprint make me anonymous?** On the fingerprint axis it hides you in
a group. It does nothing about your IP address or your request pattern, which are matched
separately and can identify you on their own.
**Why does invisible_playwright aim for a common configuration instead of a rare one?**
Because rarity is the tracking signal. A configuration many real users also present puts
you in a large anonymity set instead of marking you out.
**If I pass the same seed on two machines, do they look identical?** Yes. The same seed
produces the same GPU, canvas, audio, fonts and screen, which is deliberate: it makes a
run reproducible and lets two devices present the same known-good identity.
**Will a good fingerprint alone stop me from being blocked?** No. It handles the
fingerprint, TLS and driver layers. A datacenter IP or a robotic request pattern is still
a datacenter IP or a robotic pattern, and you supply the clean exit and the human pacing.
## Sources
- The FingerprintJS open-source library's visitor ID model, [read from its own
source](https://github.com/fingerprintjs/fingerprintjs), retrieved 2026-08-28, for how
many components combine into one recognisable hash.
- Mozilla's own documentation of the `privacy.resistFingerprinting` mode, [read on its
own wiki page](https://wiki.mozilla.org/Security/Fingerprinting), retrieved
2026-08-28, for how the mode flattens timezone, locale and window size to one shared
value instead of a unique one.
- This project's approach of generating common, real-world Windows and GPU
configurations rather than unique ones, and its cross-checking of GPU string, renderer
and capability limits against each other.
- This project's release gates, which separate fingerprint realness from IP and request
signals precisely because a clean fingerprint does not clear the other two.
**See also:** [what a FingerprintJS visitor ID actually measures](fingerprintjs-visitor-id.md),
[why the WebGL parameters have to agree with each other](webgl-parameters-are-identical.md),
and [when the timezone does not match the proxy](timezone-proxy-mismatch.md).
---
*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.*
@@ -0,0 +1,192 @@
---
title: "Can websites detect a datacenter or proxy IP?"
description: "Yes, directly at the network layer. No fingerprint can hide the IP the connection arrives on. Why fingerprint and IP layers are independent and both must be right."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 16
---
# Can websites detect a datacenter or proxy IP?
Yes, directly. The server sees the address your connection arrives on before a
single line of your JavaScript runs, and it can look that address up: which
network owns it, whether it belongs to a hosting provider or a home broadband
line, and whether it has been abused recently. No browser fingerprint changes
that lookup, because the address is a property of the connection, not of the
page.
This is the honest boundary of any browser-side stealth. A tool like
invisible_playwright makes the browser look like a real person's, and that is
most of what public detection checks read. It does not, and cannot, change the
reputation of the IP you route through. Those are two independent layers, and
both have to be right.
## What the server reads before your page loads
Every request carries a source IP. From that one number the receiving server
derives, with no cooperation from you:
- **The ASN**, the [autonomous system number](https://datatracker.ietf.org/doc/html/rfc1930),
which identifies the network that owns the address block. Hosting and cloud
providers have their own ASNs, and they are trivially separable from
consumer broadband and mobile carriers.
- **The address type**, datacenter versus residential versus mobile, which
public and commercial datasets label directly.
- **Reputation**, meaning whether this address or its neighbours have recently
sent traffic that looked automated or abusive. Shared and heavily recycled
exits accumulate this quickly.
None of that is a browser property. It is decided at the network layer, the same
layer that carries the [TLS handshake no in-page test can see](how-to-test-bot-detection.md).
A perfect fingerprint sitting on an address the server already distrusts is a
consistent browser on a flagged IP, and the flag wins.
## Why the fingerprint cannot reach it
The fingerprint cannot reach the IP because the two are different kinds of
value: the fingerprint is data the browser volunteers to the page, and the IP
is decided by the network carrying the connection, which the page never
touches.
A fingerprint is everything the page can measure about the client from inside
the sandbox: the user agent, the GPU string, the canvas and audio hashes, the
font list, the screen, the language settings. All of it is data the browser
volunteers in response to JavaScript. That is exactly why it is spoofable, and
why matching it to a real Windows machine is worth doing.
The IP is the opposite kind of value. It is not something the browser reports;
it is where the packets came from. The browser cannot lie about it because the
browser is not the one telling the server. The network is. You can change which
IP you arrive on by routing through a different proxy, but you cannot make a
given IP read as something it is not, and no amount of in-page patching touches
it. This is the single most common misunderstanding about stealth: people expect
a good fingerprint to cover the address, and the two never meet.
## Both layers, independently, with the real API
Because the layers are independent, you supply the IP and the tool supplies the
browser. The proxy is passed at launch, and everything downstream is stock
Playwright:
```python
from invisible_playwright import InvisiblePlaywright
proxy = {
"server": "socks5://gate.example.com:1080",
"username": "user",
"password": "pass",
}
with InvisiblePlaywright(seed=42, proxy=proxy) as browser:
page = browser.new_page()
page.goto("https://example.com/")
print(page.title())
```
Two things are happening here, and they are separate. `seed=42` fixes the
browser half: the same GPU, canvas hash, audio context, fonts and screen every
run, so a failure is reproducible. `proxy=...` fixes the IP half: every request,
including DNS, leaves through that exit. The `browser` object is a real
Playwright [`Browser`](https://playwright.dev/python/docs/api/class-browser), so
`new_page`, `goto`, `click` and the rest behave exactly as documented upstream.
By default, with no `timezone=` argument, the browser timezone is derived from
the exit IP so the two stories agree. If you want to confirm the exit is what you
think it is, read it from inside the browser rather than assuming, and check that
[WebRTC is not reporting a second address next to the proxy's](how-to-check-proxy-ip-leak.md).
## Choosing the IP half so it does not undo the browser half
The fingerprint work is wasted if the address is one a server distrusts on sight.
Two rules follow directly from what the server reads:
- **Type matters more than count.** A residential or mobile exit shares an ASN
and an address type with ordinary human traffic; a datacenter exit does not,
no matter how many of them you rotate through. Rotation does not change the
type.
- **Freshness matters as much as type.** A large share of cheaply available
proxies are already public, which means their addresses are already on the
lists servers consult, and they were flagged before you ever used them. The
distinction between a clean exit and a burned one is not price, it is whether
the address is already known. The tradeoffs between exit protocols are covered
in [SOCKS5 versus HTTP proxies for a browser](socks5-vs-http-proxy-browser.md),
and the reputation problem itself in
[why scraping gets blocked even through a proxy](web-scraping-getting-blocked-proxies.md).
Get both halves right and the server sees a genuine Firefox arriving from an
address that looks like a person's. Get the browser right and the IP wrong, and
you have built a careful disguise and then signed it at the door.
## What this does and does not fix
To be explicit, because overclaiming here is both false and a real risk:
invisible_playwright is designed to look like a real browser driven by a real
person, and that is why it passes most fingerprint, TLS and driver-layer checks:
those layers read as a genuine Firefox. On its own it does not fix IP reputation,
per-account quotas, rate limits, or behaviour and timing. Those are yours to
supply: a clean exit for the address, human pacing for the behaviour, sane limits
for the account. There is no setting that makes an IP undetectable, because the
IP is not something the browser gets to describe.
## Conclusion
Can websites detect a datacenter or proxy IP? Yes, directly and early, at a layer
no fingerprint reaches. The browser fingerprint and the IP are independent
signals, read by different parts of the stack, and a detector that sees a perfect
browser on a flagged address believes the address. So match the browser, which is
what this tool does, and pair it with an exit whose type and reputation hold up,
which is what you bring. Neither half alone is a session; both right is.
## Short answers to the questions that lead here
**Can a browser fingerprint hide my IP?** No. The IP is where the connection
comes from, not something the browser reports, so no in-page value or spoof
changes it.
**Will a residential proxy alone get me through?** It fixes the address half. If
the browser still looks automated, a clean IP does not save it. Both layers have
to be right.
**How does a site know my IP is a datacenter?** From the ASN and address-type
datasets tied to the IP. Hosting networks have their own autonomous system
numbers and are labelled as such in public data.
**Does rotating IPs help?** It helps with rate limits and per-address velocity.
It does not change the type: rotating datacenter exits are still datacenter
exits.
**Can invisible_playwright change my ASN or reputation?** No, and nothing on the
browser side can. It handles the fingerprint, TLS and driver layers; you supply
the exit.
**Why do I pass every fingerprint test and still get blocked?** Because the
suites do not see your address, and a consistent browser on a distrusted IP is
still on a distrusted IP.
## Sources
- [RFC 1930](https://datatracker.ietf.org/doc/html/rfc1930), the IETF guidelines
that define an Autonomous System as a routing policy unit and specify the ASN
that identifies it.
- [Playwright's `Browser` class reference](https://playwright.dev/python/docs/api/class-browser),
for what the `browser` object in the example above exposes once the proxy is
wired in.
- This project's default behaviour: the proxy dict passed at launch routes every
request and its DNS through the exit, and the browser timezone is derived from
that exit unless an explicit zone is set.
- The [configuration notes](configuration.md) on proxy schemes and on why roughly
nine in ten cheap proxies are already known before first use.
- The [testing method page](how-to-test-bot-detection.md), which lists IP
reputation among the things no in-page suite covers.
**See also:** [the checklist for being detected on one site](playwright-detected-as-bot.md),
[how to check for a proxy IP leak](how-to-check-proxy-ip-leak.md), and
[when the timezone does not match the proxy](timezone-proxy-mismatch.md).
---
*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.*
+206
View File
@@ -0,0 +1,206 @@
---
title: "Can websites detect Playwright? What is actually visible"
description: "Stock Playwright exposes a webdriver flag, protocol artifacts and mismatched OS fingerprint. Which signals catch your run, and what a patched Firefox fixes."
parent: "The Automation Layer"
grand_parent: "Guides"
nav_order: 20
---
# Can websites detect Playwright? What is actually visible
Yes, in principle. Stock Playwright leaves signals in the page that a script can read,
and any one of them is enough to tell "this is automated" from "this is a person". But
"in principle" is doing real work in that sentence. Whether a given site catches your
specific run depends entirely on which of those signals it bothers to check, and there
are only a handful of them.
This page enumerates the concrete tells a page can read, maps each to what a real-looking
browser does about it, and shows the two-line launch that removes the browser-level ones.
It also states plainly what that launch does not touch, because a page that promised you
undetectability would be lying to you.
## The three signals a page can actually read
Strip away the folklore and stock Playwright exposes three families of tell to in-page
JavaScript:
- **A driver flag.** `navigator.webdriver` is defined by the
[WebDriver automation standard](https://www.w3.org/TR/webdriver2/), and a page reads it
with one property access.
- **Protocol and automation artifacts.** Globals left in scope by a stealth layer, a
built-in whose `toString()` no longer says `[native code]`, an event that arrives
without the trusted bit a real click carries.
- **A fingerprint that contradicts itself.** The user agent claims one operating system
while the GPU string, the font list, the audio device or the screen geometry describe a
headless machine somewhere else.
Everything a page-level bot check does falls into one of those three. The rest of this
article takes them one at a time.
## Signal one: the webdriver flag
The cheapest check there is. Under standard automation, `navigator.webdriver` returns
`true`, and a single line of page script reads it.
The naive fix makes things worse. Setting the property to `false` from a script is itself
a tell, because a genuine browser that was never automated reports `undefined`, not
`false`. A value where there should be an absence is a signature of its own. The correct
behaviour is the one an untouched browser produces, and getting there from JavaScript
patching is [harder than it looks](navigator-webdriver-explained.md).
invisible_playwright drives a Firefox patched at the C++ level, so the flag reports the
real-browser value without a script ever assigning it. There is no override to catch,
because nothing overrode anything.
## Signal two: automation globals and protocol artifacts
Automation globals and protocol artifacts are what the act of driving the browser leaves
lying around, and they exist whether or not the driver flag above was ever touched.
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 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
two disguises reads worse than one.
Because the browser is patched in the engine rather than in the page, there are no
injected globals to enumerate and no rewritten built-ins to catch with `toString()`. The
functions a page inspects are the genuine ones.
## Signal three: a fingerprint that does not match the claimed OS
A fingerprint that contradicts the claimed operating system is the family that catches most
server-side automation, and it has nothing to do with the driver at all.
A page reads the user agent, then reads the GPU renderer string, the installed fonts, the
audio device parameters and the screen geometry, and checks that they tell the same story.
A headless machine in a datacenter usually fails that check without any automation flag
being set: a software renderer under a claim of desktop hardware, a font set that belongs
to a different operating system, an audio stack answering with defaults, a screen
resolution no real display has. None of those are automation tells. They are
"this is a datacenter" tells, and they survive every page-level patch because they are not
in JavaScript's gift to change.
invisible_playwright derives a complete, internally consistent fingerprint from a seed:
GPU, canvas, audio, fonts and screen, roughly 400 fields, generated to agree with each
other and to describe a real Windows desktop rather than the host the code runs on. Same
seed, same machine, every run, which is what makes a failure reproducible enough to bisect.
This is the family that a real-browser fingerprint fixes and a property patch cannot, and
it is why the launch below passes most JS detection: the driver layer, the fingerprint and
the TLS handshake all read as a genuine Firefox.
## The launch that removes the browser-level tells
Switching from stock Playwright is two lines, and the object you get back is a real
Playwright `Browser`, so every method you already use works unchanged.
```python
from invisible_playwright import InvisiblePlaywright
# seed=42 makes the identity reproducible; drop it for a fresh one each run
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
# navigator.webdriver reads as a real browser; the fingerprint is consistent
print(page.evaluate("navigator.webdriver"))
```
Add a proxy when you deploy, since the browser-level tells are only half the picture:
```python
from invisible_playwright import InvisiblePlaywright
proxy = {"server": "socks5://gate.example.com:1080", "username": "u", "password": "p"}
with InvisiblePlaywright(seed=42, proxy=proxy) as browser:
page = browser.new_page()
page.goto("https://example.com")
```
The async API is identical, `from invisible_playwright.async_api import InvisiblePlaywright`
with `await` in front of the page calls. Nothing else about your Playwright code changes.
## What this does not fix, and why saying so matters
Here is the honest boundary, because a tool that removed only some of the signals and let
you believe it removed all of them would get you blocked with more confidence, not less.
The launch above addresses the three browser-level families: the driver flag, the
automation artifacts and the fingerprint, plus the TLS handshake, because the request is
made by a real Firefox rather than something impersonating one. What it does not touch:
- **IP reputation.** A consistent browser on a known datacenter address is still on a
known datacenter address. You supply a clean exit.
- **Per-account quotas and rate limits.** A perfect fingerprint does not raise a limit the
account already hit.
- **Behaviour and timing.** A burst of identical requests, a form filled in eighty
milliseconds, a session with no pointer motion. Some sites do not fingerprint at all,
they watch, and pacing is on you.
So the accurate claim is narrow and true: invisible_playwright makes the browser read as a
real one, which is why it passes most in-page detection. It does not make the session
invulnerable, and no software can, because half the signals are about the network and the
account rather than the browser. When a run still fails with all three browser families
clean, the [checklist for being detected on one site](playwright-detected-as-bot.md) works
the remaining suspects in the cheap-first order, and the network layer has
[its own page on the handshake](ja3-ja4-tls-fingerprint.md).
## Conclusion
Can websites detect Playwright? They can detect stock Playwright whenever they check for
one of three things: the webdriver flag, automation artifacts, or a fingerprint that
disagrees with the claimed OS. A patched Firefox driven by stock Playwright removes all
three at the engine level, which is why it clears most JavaScript detection. It does
nothing for your IP, your quotas or your pacing, so the honest answer to the title is that
it fixes the browser and leaves the rest to you. Verify it the way you would verify
anything here: [compare against a stock browser and run it more than once](how-to-test-bot-detection.md).
## Short answers to the questions that lead here
**Can a website tell I am using Playwright?** If it checks the webdriver flag, automation
artifacts or fingerprint consistency, yes for stock Playwright. A patched-engine browser
removes those browser-level tells.
**Does invisible_playwright make me undetectable?** No, and nothing does. It makes the
browser read as a real Firefox, which passes most in-page checks. Your IP, account limits
and behaviour are separate and still yours to handle.
**Is navigator.webdriver enough to catch me?** It is the cheapest check and stock
automation fails it. Setting it to `false` in a script is its own tell; a real browser
reports `undefined`.
**Why do I pass fingerprint tests and still get blocked?** Because those tests do not see
your address, your request rate or your timing, and a consistent browser on a datacenter
IP is still on a datacenter IP.
**Do stealth plugins help?** They fix the first signal and often create the second: a
rewritten built-in that a tampering check flags. Running one on top of a patched engine is
two disguises contradicting each other.
**How do I check what a site actually reads?** Open a detection suite in your automated
browser and a stock browser on the same machine, and diff the reports field by field
rather than reading the score.
## Sources
- The [W3C WebDriver specification](https://www.w3.org/TR/webdriver2/), which defines the
`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 (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.
**See also:** [the webdriver flag in detail](navigator-webdriver-explained.md),
[the checklist for a single blocking site](playwright-detected-as-bot.md), and
[how to test whether your browser is detected](how-to-test-bot-detection.md).
---
*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.*
@@ -0,0 +1,224 @@
---
title: "Can you be fingerprinted in incognito mode?"
description: "Yes: incognito mode clears cookies and site storage but leaves canvas, WebGL, fonts, user agent, timezone and the TLS handshake fully readable and re-linkable."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 23
---
# Can you be fingerprinted in incognito mode?
Yes. This is the single most common misunderstanding about private browsing, and it is
worth stating plainly before the details: incognito mode clears **state**, not
**identity**. It empties cookies and site storage at the end of a session. It does not
change what your browser looks like while the session is running, and that is exactly
the part fingerprinting reads.
This page is what private mode actually does, why stateless fingerprinting is untouched
by it, how a service re-links you across incognito windows anyway, and what changing the
fingerprint values themselves looks like in practice.
## What private mode actually clears
Open a private window and the browser makes one promise: when you close it, the cookies,
`localStorage`, `sessionStorage`, IndexedDB and cache from that session go away. History
is not written to disk. That is the whole feature, and for its intended purpose (a shared
family computer, not leaving a booking half-finished in your history) it does that job.
Notice what is on that list: all of it is **state the site wrote to your machine**. A
cookie is a value the server set and asked you to hand back. Private mode's guarantee is
that you stop handing those back once the window closes.
Nothing on that list is a property of the browser itself. And identification does not
need you to hand anything back.
## Why stateless fingerprinting does not care
A cookie is something you were **given**. A fingerprint is something you **are**. Private
mode only deletes the first kind.
When a page measures your browser, it reads values the browser exposes on request, no
storage involved:
- **Canvas.** The page draws text and shapes to an offscreen canvas and
[reads the pixels back](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)
as an encoded image. The exact bytes depend on your GPU, drivers and font rasterizer, and
they are identical in a private window because it is the same GPU. See
[why canvas output can change every run](canvas-fingerprint-changes-every-run.md) for
what a real defense against this looks like.
- **WebGL.** The
[renderer and vendor string](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info)
and the numeric limits of your graphics stack. Same machine, same values, private or not.
- **Fonts.** The list of installed fonts, measured by rendering and comparing widths. A
private window renders with the same fonts.
- **User agent, platform, language, timezone.** All reported the same way in incognito.
- **The [TLS handshake](https://datatracker.ietf.org/doc/html/rfc8446).** Decided by the
network stack before a single line of page JavaScript runs, so no browsing mode touches
it. [No in-page test can even see it](ja3-ja4-tls-fingerprint.md), and neither can
incognito.
Read that list again against the previous section. There is no overlap. Private mode
clears cookies and storage; fingerprinting reads GPU, fonts, TLS and the rest. The two
sets do not intersect, which is why a fingerprint survives the mode that was supposed to
protect it.
## How you get re-linked across incognito windows
Here is the part that surprises people. Because the fingerprint is stable and does not
depend on stored state, a service can compute the same identifier in a normal window, in
a private window, and in a second private window you opened an hour later to "start
fresh". [FingerprintJS builds exactly this kind of visitor ID](fingerprintjs-visitor-id.md)
by hashing many of those stateless components together.
So the common workflow of "open an incognito window to look like a new visitor" does not
produce a new visitor. It produces the same visitor with an empty cookie jar. The site
sets a fresh cookie, ties it to the fingerprint it just computed, and the link is
restored on the first request. Clearing the cookie deleted the label on the folder, not
the folder.
This is not a bug in private mode. Private mode never promised a new identity. It
promised no leftover state, and it delivers that.
## What changes when the values change
![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/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
probe is not reading state.
The line that moves is the canvas, hashed from `getImageData` bytes rather than from
`toDataURL`, and the reason for that choice is measured in
[why a canvas hash changes between runs](canvas-fingerprint-changes-every-run.md): the
encoded string moves on its own even when the pixels do not.
## Changing the values themselves, not clearing storage
If the problem is that the fingerprint values are stable and readable, the fix is to
change the values, which is the specific thing private mode does not do. That is what
invisible_playwright does: a Firefox patched at the C++ level so that canvas, WebGL,
fonts, screen and the rest report seed-derived values, driven by stock Playwright.
Two lines to launch, and the browser you get back is a real Playwright
[`Browser`](https://playwright.dev/python/docs/api/class-browser) with every standard
method:
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
# canvas, WebGL, fonts, screen all report seed-42 values,
# not this machine's values
```
The seed is the whole point. The same seed produces the same coherent identity every
run, and a different seed produces a different one. So where private mode gives you the
same machine with its storage wiped, a new seed gives you a genuinely different machine
that happens to be internally consistent:
```python
# a different, self-consistent identity - a different GPU, fonts, canvas hash
with InvisiblePlaywright(seed=7) as browser:
page = browser.new_page()
page.goto("https://example.com")
```
You can prove the difference to yourself. Open a public fingerprinting suite with
`seed=42`, note the visitor ID or the canvas hash, close it, reopen with `seed=42`, and
it matches. Change to `seed=7` and it moves. That is the value changing, which is the
axis incognito leaves fixed. For the Firefox `about:config` route to the neighbouring
problem, [`privacy.resistFingerprinting` and what it trades away](resist-fingerprinting.md)
is worth reading before you reach for it.
## The honest caveat: it does not change your IP
There is one thing this shares with private mode: neither touches your IP address.
Incognito does nothing for your address, and neither does changing the fingerprint. Your
exit IP, its reputation, and the ASN it sits in are all still exactly what they were.
This matters because a perfect, distinct, self-consistent browser on a datacenter IP that
a thousand other automated sessions are using this minute is still on that IP. The
fingerprint and the driver layer reading as a genuine Firefox is why most detection
checks pass; it is not why a session passes. The reader supplies the rest:
- **A clean exit.** The fingerprint work is wasted behind an address already on a
blocklist. See [Configuration](configuration.md) for proxy setup.
- **Human pacing and behaviour.** Timing, pointer motion and typing rhythm are a separate
surface that no fingerprint change addresses.
- **Per-account quotas and rate limits.** A new fingerprint is not a new account, and it
does not reset a counter the service keeps on its own side.
Changing the fingerprint fixes the fingerprint. It does not fix the network or the
behaviour, and claiming otherwise would be false.
## Conclusion
Can you be fingerprinted in incognito mode? Yes, identically to a normal window, because
private mode clears the cookies and storage a site wrote to your machine and leaves every
readable property of the browser (canvas, WebGL, fonts, user agent, timezone, TLS)
exactly where it was. Stateless fingerprinting reads those properties, so it works the
same in either mode, and a service can re-link you across incognito windows on the
fingerprint alone.
Changing the values themselves is a different operation from clearing state, and it is
the one incognito does not perform. invisible_playwright performs it per seed, so the
same input gives the same consistent identity and a new input gives a new one. Pair that
with a clean exit and human pacing, because the fingerprint is only one of the surfaces a
session is judged on.
## Short answers to the questions that lead here
**Does incognito mode stop fingerprinting?** No. It clears cookies and site storage at
the end of the session and changes nothing about canvas, WebGL, fonts, user agent,
timezone or TLS, which are what fingerprinting reads.
**Can a site tell it is the same person across two incognito windows?** Yes. The
fingerprint is stable and does not depend on stored state, so the same identifier is
computed in each window and the empty cookie jar is refilled and re-linked on the first
request.
**What does private mode actually protect me from?** Leaving state behind on the machine:
history, cookies and cache from that session. That is a real feature, just not an
anti-fingerprinting one.
**Does incognito change my IP address?** No, and neither does changing the fingerprint.
The exit IP and its reputation are a separate surface you have to handle yourself.
**How do I actually get a different fingerprint?** Change the values the browser reports
rather than clearing what a site stored. invisible_playwright does this per seed, so a
new seed is a new coherent identity.
**Is a new seed the same as a new incognito window?** No. An incognito window is the same
machine with its storage wiped. A new seed is a different machine, self-consistent across
its fields.
## Sources
- Firefox's own documentation of what private browsing clears (cookies, storage, history)
and, by omission, what it does not.
- The specs behind each stateless signal above:
[`HTMLCanvasElement.toDataURL()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)
for the canvas read-back, [`WEBGL_debug_renderer_info`](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info)
for the GPU renderer/vendor string, and [RFC 8446](https://datatracker.ietf.org/doc/html/rfc8446)
for where the TLS handshake sits relative to page JavaScript.
- The public detection suites named in this set, read for how each computes an identifier
from stateless components, each with its own page here.
- This project's seed-to-fingerprint pipeline and release gates, which measure the same
seed producing the same identity across runs.
**See also:** [how a stable visitor ID is built](fingerprintjs-visitor-id.md),
[what canvas fingerprinting reads and how to change it](canvas-fingerprint-changes-every-run.md),
and [the TLS handshake no browsing mode can hide](ja3-ja4-tls-fingerprint.md).
---
*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.*
@@ -0,0 +1,214 @@
---
title: "Can you run invisible_playwright serverless?"
description: "Why invisible_playwright mostly does not fit serverless: size of patched-Firefox is the blocker. Containers and long-lived workers are the actual home."
parent: "Scraping with Playwright"
grand_parent: "Guides"
nav_order: 84
---
# Can you run invisible_playwright serverless?
Mostly no, and for a structural reason rather than a setting you have not found yet.
The blocker is not a config flag. It is that this tool launches a full, real browser,
and a serverless function is sized for code that does not.
This page is the mechanism behind that answer, the one place it does fit, and the
container or long-lived worker that is the honest recommendation instead.
## The short answer, and why it is structural
invisible_playwright is not a JavaScript shim that patches an existing browser. It ships
a patched Firefox, built at the C++ level, and drives it with stock Playwright. On first
use it downloads that binary (about 238 MB compressed, roughly 544 MB once unpacked, as
listed on the [installation](installation.md) page), verifies a sha256, and caches it.
A real launch then needs that unpacked tree on disk plus working memory for the browser
process itself.
A typical function-as-a-service runtime caps three things at once: deployment package
size, memory, and wall-clock execution time. All three fight a cold-start browser
launch. The download alone can exceed a package limit; the unpacked tree plus a running
Firefox can exceed the memory limit; and downloading and starting a browser per
invocation can exceed the time limit before your first `goto` returns.
So the answer is not "add a bigger timeout". The weight of a real browser is the thing
that does not fit, and no configuration removes it.
## What a function actually has to do to launch this
Walk through a cold invocation of a function that has never run before:
1. Fetch the engine. If it is not baked into the image, that is a ~238 MB download on
the critical path, before any of your code runs.
2. Unpack and place it. Roughly 544 MB has to land somewhere writable and readable.
3. Verify it. A sha256 pass over the cached engine.
4. Launch Firefox and connect Playwright over its protocol.
5. Only now open a page and do the work you came for.
Steps 1 through 4 are pure overhead, and on a serverless platform they can repeat on
every cold start because the local disk and memory a function sees do not persist between
invocations by design. You are paying browser-startup cost per request instead of once.
## Where the weight goes: download, unpack, and resident memory
Three separate limits, three separate ways this fails:
- **Package or layer size.** Many function platforms cap the deployed artifact well
under the unpacked engine size. Baking Firefox into the deployment can blow past the
limit outright.
- **Ephemeral disk.** The engine has to be unpacked somewhere. A read-only or tiny
scratch filesystem cannot hold it.
- **Memory.** A real Firefox rendering a real page has a real resident-set size. Add the
unpacked binary in page cache and a modest function memory tier is gone.
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 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.
## The recommendation: a container image or a long-lived worker
The honest home for this tool is somewhere the browser is unpacked once and reused across
many jobs:
- **A container image** with the engine already inside it, run on a service that keeps
the container warm. The unpack happens at build time, not per request. This is common
enough to have its own walkthrough in
[how to use invisible_playwright in Docker](how-to-use-invisible-playwright-in-docker.md),
and the fingerprint pitfalls specific to containers are in
[running Playwright in Docker undetected](how-to-run-playwright-docker-undetected.md).
- **A long-lived worker or VM** that launches the browser once at startup and pulls jobs
from a queue, reusing the same process across many pages.
Both share one property that a stateless function cannot: the ~238 MB download and the
~544 MB unpack are paid once, at startup or build, and every job after that reuses a warm
browser. That is the difference between browser cost per deployment and browser cost per
request.
Here is a minimal worker that launches once and reuses the browser across a list of jobs.
The `browser` returned is a real Playwright
[`Browser`](https://playwright.dev/python/docs/api/class-browser), so every method is the
stock API:
```python
from invisible_playwright import InvisiblePlaywright
JOBS = [
"https://example.com/a",
"https://example.com/b",
"https://example.com/c",
]
# seed=42 makes the identity reproducible, so a failing job replays exactly.
with InvisiblePlaywright(seed=42) as browser: # binary unpacked once, reused below
for url in JOBS:
page = browser.new_page()
page.goto(url)
print(url, page.title())
page.close()
```
In a real worker the `for` loop is a queue consumer, and the `with` block stays open for
the life of the process. The launch cost is amortized across every job the worker ever
handles, which is the whole point of not being serverless.
If you must fetch the engine ahead of time in an image build, do it as an explicit build
step so the download never lands on a request path:
```dockerfile
FROM python:3.12-slim
COPY --from=ghcr.io/astral-sh/uv:0.12.10 /uv /uvx /bin/
RUN uv pip install --system invisible-playwright
# Unpack the engine at BUILD time, not per request.
RUN python -m invisible_playwright fetch
# ... your worker entrypoint ...
```
## What the stealth actually does for you here, and what it does not
invisible_playwright is designed to look like a real browser driven by a real person, and
that is why it passes most detection checks: the fingerprint, the TLS handshake and the
driver layer read as a genuine Firefox rather than as automation. That property is the
same whether the browser runs in a function, a container, or a VM - where it runs does not
change what it looks like, which matters here because "serverless" and "undetected" get
searched together and are different problems.
What it does not do, on its own and in any environment:
- **IP reputation.** A genuine-looking browser on a known datacenter address is still on a
known datacenter address. You supply a clean exit.
- **Per-account quotas and rate limits.** These are counted server-side against your
account or key, not read off the browser.
- **Behaviour and timing.** Pacing, pointer motion and the rhythm of a session are yours
to shape. An automated cadence is visible no matter how real the fingerprint is.
Serverless makes the last one worse in a specific way: fan-out. A hundred functions firing
at once, from a small pool of platform egress addresses, in a burst no human pace explains,
is a velocity signal you created by the deployment shape rather than by the browser. A warm
worker pulling jobs at a human interval is easier to keep honest. None of that is a claim of
evasion; it is the list of things you still have to get right yourself.
## Conclusion
Can you run invisible_playwright serverless? Technically sometimes, on a generous
container-backed function tier with the engine baked into the image and kept warm.
Practically, a plain stateless function that downloads and launches a full Firefox per
invocation will be slow and fragile even where it fits, because the browser weight is
structural and no setting removes it.
The tool's job is to make the browser look real, and it does that anywhere it runs. The
deployment's job is to give that browser a warm home, a clean exit and a human pace. Put
the browser in a container image or a long-lived worker, pay the unpack once, and reuse it.
## Short answers to the questions that lead here
**Can I deploy invisible_playwright to a serverless function?** Usually not on a plain
stateless function. The patched Firefox is about 238 MB to download and roughly 544 MB
unpacked, which fights typical size, memory and time limits. A container image or a warm
worker is the real home.
**Why is the browser so heavy?** Because it is a real, full Firefox patched at the C++
level, not a JavaScript patch over an existing browser. That weight is why the fingerprint
and TLS read as genuine, and it is also why it does not fit a tiny function.
**Can I just make the function timeout longer?** No. Size and memory limits fail
independently of time, and a per-request download and launch is overhead you pay on every
cold start regardless of the timeout.
**Does running it in a container make it undetectable?** No tool is undetectable. A
container is the right place to unpack the browser once and keep it warm, but it does not
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 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
a `with InvisiblePlaywright(...) as browser:` block, then consume a job queue inside that
block so the browser is reused for the life of the process.
## Sources
- This project's [installation](installation.md) and [configuration](configuration.md)
pages, for the measured engine download and unpacked sizes and the cache and binary-path
environment variables.
- The container walkthroughs in this set, linked above, for the build-time unpack pattern.
- Playwright's own [`Browser` class reference](https://playwright.dev/python/docs/api/class-browser),
for the stock API this wrapper hands back unchanged.
- General serverless platform limits on package size, memory and execution time, which are
documented per platform and are what the browser weight runs into.
**See also:** [how to use invisible_playwright in Docker](how-to-use-invisible-playwright-in-docker.md)
for the container build, [running Playwright in Docker undetected](how-to-run-playwright-docker-undetected.md)
for the fingerprint tells a headless container adds, and
[what a datacenter container gives away](playwright-docker-detection.md) for the machine
signals no stealth layer touches.
---
*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.*
@@ -0,0 +1,214 @@
---
title: "Can You Run Playwright Without Being Detected?"
description: "An honest answer for Playwright automation: what removing browser-level tells clears, why it looks like a real browser, and the three signals it does not fix."
parent: "Testing and Troubleshooting"
grand_parent: "Guides"
nav_order: 11
---
# Can You Run Playwright Without Being Detected?
Not in an absolute sense, and any tool that promises otherwise is lying to you.
What is achievable is narrower and more useful: you can remove the browser-level
tells so the fingerprint and the automation flags read like a real person's browser,
and that alone clears most JavaScript-based detection. The rest of what gets a session
flagged is not a browser problem at all, and no amount of browser work touches it.
This page draws that line precisely. It shows what "undetected" can honestly mean,
what a real-browser fingerprint clears, and the three signal classes that are detected
independently of the browser and that you, not the tool, have to supply an answer for.
## The honest answer: "looks like a real browser", not "invisible"
The useful reframing is to stop asking "can I be undetected" and start asking "does
this look like a real browser driven by a real person". That is a question you can
actually answer yes to, and it is the one that most detection is really asking.
A detector almost never has a single "is this a bot" bit. It has a pile of signals and
a score. Some of those signals live in the page, in JavaScript: the fingerprint, the
automation flags, whether any built-in has been tampered with. Some live below the
page: the network handshake, the exit address. Some live in what the session does over
time: pacing, motion, request velocity.
A tool that drives a genuine, unmodified-looking browser can make the first pile read
clean. It cannot make the other two piles read clean, because they are not properties
of the browser. Being honest about that split is the whole point of this page, and it
is why [passing every public suite still does not mean the session passes](how-to-test-bot-detection.md).
## What "detected" actually means: three layers of signal
Before touching code, it helps to name the three layers, because a fix for one does
nothing for the others.
1. **The browser layer.** The fingerprint (GPU, canvas, audio, fonts, screen), the
automation flags ([`navigator.webdriver`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver)
and friends), and internal consistency
(does the platform you claim agree with the fonts you have). This is in JavaScript's
reach, and it is the layer a stealth engine addresses.
2. **The network layer.** The TLS handshake, the HTTP/2 settings frame, header order,
and the reputation of the exit address. Decided before a line of page script runs,
and [invisible to every in-page test](ja3-ja4-tls-fingerprint.md).
3. **The behaviour layer.** Pointer motion, typing rhythm, how fast a form is filled,
how many requests per minute from one account, and the timing shape of an
automated agent.
invisible_playwright is built to solve layer 1 well, and because it drives a real
Firefox binary, the handshake half of layer 2 comes out genuine for free: a real
Firefox handshake, not an impersonation. What it deliberately does not do is
manufacture a clean IP, a per-account quota, or human pacing. Those are yours to bring.
## What invisible_playwright removes: the browser layer
The product is a Firefox patched at the C++ level, driven by stock Playwright, with a
fingerprint derived from a seed so it is real-browser-shaped and reproducible. Every
session gets a coherent identity (roughly 400 fields that agree with each other)
instead of the default automation profile that detectors are trained on.
Switching from plain Playwright is a two-line change, and the object you get back is a
real Playwright `Browser`, so every method works exactly as documented upstream:
```python
from invisible_playwright import InvisiblePlaywright
# seed=42 makes the identity reproducible; drop it for a fresh one each run
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
# navigator.webdriver reads false, the fingerprint is internally
# consistent, and the TLS handshake is a real Firefox handshake
print(page.evaluate("navigator.webdriver")) # -> False
```
Add a proxy and let the browser timezone follow the exit automatically, which is how
you keep the browser and the network from telling two different stories:
```python
proxy = {"server": "socks5://gate.example.com:1080", "username": "u", "password": "p"}
with InvisiblePlaywright(seed=42, proxy=proxy) as browser:
page = browser.new_page()
page.goto("https://example.com/login")
page.fill("#user", "someone")
page.click("#submit") # the pointer arcs to the button on a curve
```
The measurable result of layer 1 being clean: open the same fingerprinting page in
this browser and in a stock Firefox on the same machine, diff the reports field by
field, and the difference collapses to per-session noise (the IP and the random canvas
jitter a real browser also has). The JavaScript detectors read it as a genuine Firefox
because, at the layer they can see, it is one. That is why it passes most of them. It
is also the ceiling of what the browser layer can do.
## The three signal classes it deliberately does not touch
This is the part most "undetectable" claims skip. These three are detected
independently of the browser, the tool does not address them by design, and a clean
fingerprint on top of any one of them still loses.
- **IP reputation.** A perfect browser on a datacenter range, or on a residential exit
a thousand other people are sharing this minute, is still on a flagged address, and
that is decided before your script runs. Cheap and free proxy pools are reused across
thousands of scrapers, so a lot of that range is already flagged before you connect.
The fix is a clean exit, which is your input, not the
browser's output. [WebRTC through a proxy](webrtc-leak-proxy.md) is the related
browser-visible surface, but the reputation itself is not a browser property.
- **Per-account rate limits and quotas.** If one account does in an hour what a person
does in a week, no fingerprint hides it, because the signal is the account's own
history, not the browser's identity. Spreading work across accounts and staying under
human volume is an application-design decision the tool cannot make for you.
- **Behaviour and timing.** Uniform keystroke intervals, a form filled in eighty
milliseconds, a pointer that teleports, a request cadence with no human jitter, or
[the pause shaped exactly like model latency in an agent loop](ai-browser-agents-stealth.md).
The engine gives you curved mouse motion for clicks, but the overall rhythm of the
session is driven by your code.
None of these is a gap or a bug. They are outside the browser, so they are outside what
a browser-fingerprint tool can honestly claim. Pairing a real-browser fingerprint with
a clean exit and human pacing is the actual recipe; the tool is one of those three
parts.
## How to check what is left over
Because the browser layer is handled, your testing effort should go to the two layers
that are not. The method that catches the most:
- **Prove it is the browser before blaming it.** Open the target by hand from the same
machine and network. If the manual visit also gets the wrong page, this is the IP or
the account, and no browser change helps. This ordering is the whole point of the
[detected-on-one-site checklist](playwright-detected-as-bot.md).
- **Compare against a stock browser, do not read a score.** Diff the fingerprint fields
against a real Firefox on the same machine. Anything that matches is not your problem
whatever the verdict says; anything that differs, other than the address, is a
candidate.
- **Assert presence, not absence.** A blocked or empty signal is itself a tell and a
failure, not a pass. [Why a green verdict can mean the feature is broken](how-to-test-bot-detection.md)
is the trap here.
- **Watch the score, not just the pass line.** A [trust or confidence score](browser-trust-score-explained.md)
tells you more than a binary verdict, and it is where residual behaviour and IP
signals show up even when the fingerprint is clean.
Run any of this at least ten times, through the proxy you actually deploy with, on the
machine you actually deploy on.
## Conclusion
Can you run Playwright without being detected? You can make it look like a real browser
driven by a real person, and that clears most JavaScript-based detection, which is what
invisible_playwright is built to do: a patched Firefox, a seed-consistent real-browser
fingerprint, and a genuine handshake because the browser is genuine. What it does not
do, on purpose, is fix your IP reputation, your per-account quotas, or your behaviour
and timing. Those are detected independently, and you supply the answers: a clean exit
and human pacing. Treat "undetectable" as a slogan and you will overclaim; treat it as
"looks like a real browser, plus the two layers I own", and you will actually pass.
## Short answers to the questions that lead here
**Can Playwright be truly undetectable?** No, and any tool that says so is lying. You
can remove the browser-level tells so the fingerprint and flags look like a real
person's browser, which clears most JavaScript detection. IP, account limits and
behaviour are detected separately.
**Why does invisible_playwright pass most checks then?** Because at the layer those
checks can see, it is a real Firefox: real fingerprint, no automation flags, a genuine
handshake. Most public detection is a JavaScript check, and that is exactly the layer
it addresses.
**If my fingerprint is clean, why am I still blocked?** Almost always the IP, the
account's own request history, or the behaviour. Those are not browser properties, so a
clean browser does not touch them.
**Does it fix my proxy or my IP reputation?** No. It deliberately does not touch the
exit address. A perfect browser on a known-bad IP still loses, and you supply the clean
exit.
**Does it make my automation behave like a human?** It gives you curved mouse motion
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 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.
## Sources
- This project's release gates, which compare the browser's fingerprint field by field
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
(a basic bot-test page, a consistency checker,
[BotD](https://github.com/fingerprintjs/BotD), [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs),
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),
[the checklist for being detected on one site](playwright-detected-as-bot.md), and
[what a browser trust score actually measures](browser-trust-score-explained.md).
---
*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.*
@@ -0,0 +1,146 @@
---
title: "Why the same canvas draws differently on Windows and Linux"
description: "Canvas fingerprints differ across Windows and Linux because the rasteriser, font files, hinting and GPU path differ, not the canvas drawing code."
parent: "Canvas, WebGL, Fonts and Audio"
grand_parent: "Guides"
nav_order: 15
---
# Why the same canvas draws differently on Windows and Linux
Two machines running the exact same `fillText()` and `toDataURL()` calls can return
different bytes. A canvas hash never measures the drawing code alone: it measures the
text rasteriser, the actual font file behind that family name, the subpixel and
hinting policy, and whether a GPU or a software path drew it. Change any one and the
pixels change, with nothing wrong in the script itself.
## What actually differs, mechanically, between two operating systems
A `fillText()` call looks like one instruction, but several layers sit underneath it
before a pixel comes back, and any one of them can move the output between two
machines running the identical script.
### The text rasteriser and its hinting policy
Windows draws glyphs through DirectWrite, or the older GDI path; Linux desktops
typically use FreeType, fed by fontconfig. Both decide, pixel by pixel, how much of
each pixel a glyph edge covers, and that depends on the hinting level in force. A
glyph spanning eleven and a half pixels gets rounded differently by rasterisers with
different hinting rules, and the rounding shows up directly in the readback.
### Which font file actually backs the family name
`ctx.font = "16px Arial"` does not point at one universal file. On Windows it
resolves to Microsoft's own Arial. On a Linux desktop without Microsoft's fonts
installed, the same family name commonly falls back to a metric-compatible substitute
such as Liberation Sans, matching Arial's advance widths but not its glyph outlines.
Same request, same font name, a different file drawing every letter.
### Subpixel geometry and antialiasing
A desktop session with subpixel rendering on draws each glyph edge using a display's
red, green and blue sub-elements, producing colour fringing invisible at normal
viewing distance but visible in a raw pixel readback. A headless or virtualised
environment usually falls back to plain grayscale antialiasing instead, since there
is no subpixel layout to target. The glyph looks the same to a human; the bytes do
not match.
### GPU-accelerated versus software rendering paths
Canvas content can be composited by the GPU or rasterised in software, and which path
a machine takes depends on driver support. A software rasteriser and a
GPU-accelerated one do not have to agree on sub-pixel rounding, so identical draw
commands can differ by a handful of values before fonts even enter the picture.
## Why text is the least stable element on a canvas
Draw a plain filled rectangle and the pixel values are close to universal: a solid
colour passes through a rasteriser mostly unchanged, so a flat-colour hash tends to
agree across machines that disagree on everything else. Draw text instead, and every
layer named above gets involved at once: rasteriser, font file, hinting, subpixel
policy, GPU path. That is why a text-free canvas is far more stable across machines,
and why fingerprinting scripts almost always put a mixed-case string on the probe
canvas rather than a plain shape.
## A canvas hash is a platform tell as much as a machine tell
Because font rendering is tied so tightly to the operating system, a canvas hash
carries platform information whether anyone intended it to.
[Windows implies Segoe UI and a specific CJK set; a bare Linux desktop implies
DejaVu and Liberation and little else](headless-fonts-differ.md), and text rendered
through those two stacks does not converge. That gives a page a checkable claim
rather than a rare value: a browser whose user agent says Windows, drawing text whose
antialiasing looks like Linux's FreeType instead of Windows' DirectWrite, has
contradicted itself, and the check needs only one sample of each platform, not a
notion of "normal" in the abstract.
## What this project does about it, and what it does not
For the values a page can read back from a canvas, this project ties the output to
the session's own seed rather than to whatever the host has, which is what lets [the
same identity return the same canvas and WebGL hash on Windows and on
Linux](canvas-webgl-cross-platform-consistency.md); [`measureText()`'s numeric fields
get the same treatment through a different mechanism](measuretext-textmetrics-fingerprinting.md).
That is a statement about what a page can observe, not a claim that the rendering
pipeline was rewritten to erase itself: rasterisation here is real drawing, done by
[a real, bundled font stack](bundled-fonts-cross-platform.md) rather than a
substituted picture, which is why a screenshot still shows real text instead of
noise. The honest limit: the fix covers only the readback calls a page can make
today, and any new export path a future engine adds needs the same treatment first.
## Conclusion
A canvas hash is not a single number a browser decides to report. It is the visible
output of a rasteriser, a font file, a hinting policy and a rendering path, four
layers a stock browser never controls independently of its operating system. Text
draws through all four at once, which is why a text-bearing canvas is the first
readback worth checking when a hash looks wrong for the platform a session claims to
be.
## Short answers to the questions that lead here
**Why does my canvas fingerprint differ between Windows and Linux?** The pixels come
from the OS's rasteriser, its font files, its hinting and subpixel policy, and
whether the GPU or software drew the glyph, not from the drawing code.
**Does the same drawing code produce the same canvas hash on every OS?** No, not on
a stock browser. Identical calls run through a different rasteriser and font file on
each platform, and the readback reflects that.
**Is a canvas fingerprint a browser tell or a platform tell?** Mostly a platform
tell. Two browsers on the same OS, drawing the same text, agree far more closely
than one browser does across two operating systems.
**Does removing text make the hash more stable?** Yes. Solid fills pass through a
rasteriser largely unchanged, while text pulls in the font stack, hinting and
subpixel geometry at once.
**Can a browser match its canvas hash to a claimed operating system exactly?** Only
by controlling what a page reads back, since the render itself comes from whichever
rasteriser and font files are actually installed.
**See also:** [canvas fingerprint noise and why per-call randomising
fails](canvas-fingerprint-noise.md), [why a canvas fingerprint changes every
run](canvas-fingerprint-changes-every-run.md), and [measureText and TextMetrics as a
fingerprinting surface](measuretext-textmetrics-fingerprinting.md).
## Sources
- [MDN: `CanvasRenderingContext2D.fillText()`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillText),
[MDN: `HTMLCanvasElement.toDataURL()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)
and [MDN: `CanvasRenderingContext2D.getImageData()`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData),
for the calls above.
- MDN, `CanvasRenderingContext2D.measureText()`,
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/measureText -
it "returns a TextMetrics object that contains information about the measured text
(such as its width, for example)", which is the surface this page's text argument rests
on. Read 5 September 2026.
- This project's own measurements on font rendering, font bundling and canvas
readback, referenced via the linked pages on this wiki.
---
*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.*
@@ -0,0 +1,295 @@
---
title: "Canvas fingerprint changes every run: use a seed"
description: "Canvas, WebGL and audio hashes change every Playwright run because each session draws a fresh identity. Pass a fixed seed to make readbacks byte-identical."
parent: "Testing and Troubleshooting"
grand_parent: "Guides"
nav_order: 6
---
# Canvas fingerprint changes every run: use a seed
A canvas fingerprint that changes on every Playwright run is not a leak or a bug. Without
a seed, each session is handed a fresh, self-consistent device, so the canvas, WebGL and
audio readbacks are recomputed at every launch. Pass a fixed seed and all three come back
byte-identical, run to run. That single argument is the whole fix.
You open a fingerprinting page twice from the same automation, and the canvas hash
is different each time. The WebGL hash moves too, and so does the audio one. Nothing
in your code changed between the two runs, and yet the machine looks like a different
machine.
This is one of the most common confusions people hit with a fingerprint-spoofing
browser, and it is almost always a misread rather than a bug. A hash that changes on
every run is not noise leaking into your readback. It is a fresh identity being drawn
for each session, exactly as designed, and the fix is one argument.
## What "changes every run" actually means
Canvas, WebGL and audio are the three surfaces that read back a rendered value: you
draw something, then read the pixels or the samples out and hash them. On a real
machine that hash is stable, because the same GPU, the same font stack and the same
audio pipeline draw the same thing every time.
In this browser, those three readbacks are overwritten before they reach your code.
The value you read is a pure function of one number: an internal hardware seed the
wrapper derives from the identity seed of the session. Same seed in, same bytes out,
which is the direction you can rely on. The reverse does not hold as neatly: two
different identity seeds can land on the same hardware seed and hand you the same
readback, so a changed seed is not a guarantee of changed bytes. If you need two
sessions to look like two machines, check the readback rather than assuming it.
So when you launch without passing a seed, each session gets a new one, and the three
hashes move together in a self-consistent way. That is not the spoof failing. That is
the spoof drawing a new device for you. The trouble is that a device which looks
brand new on every visit is its own signal, and it is usually not the signal you want.
## Why a per-run identity reads as a rotating device
A stable fingerprint is not automatically a suspicious one. What draws attention is a
fingerprint that behaves in a way real hardware cannot.
Real hardware does not change its canvas hash between two visits. If a site, or a
linkability service like [FingerprintJS, which hands you a visitor ID](fingerprintjs-visitor-id.md),
sees the same cookie or the same login return with a different canvas hash, a
different WebGL renderer and a different audio signature every time, that is a machine
that is repainting itself. Very few legitimate users look like that, and a scorer that
watches for churn will notice.
So the per-session default is the right behaviour for one job and the wrong one for
another:
- **You want a fresh identity per session.** Many short, unrelated visits, nothing
that should be linked, no returning account. Launch with no seed and take a new
device each time. This is the default for a reason.
- **You want the same identity every session.** A returning account, a persisted
profile, or simply a bug you are trying to reproduce. Here a rotating device is a
liability, and you pin it with a seed.
The mistake is not the rotation. The mistake is leaving it on when the situation calls
for a stable machine.
## Pin the seed and the readbacks stop moving
Pass a seed explicitly and every field it implies comes back identical: the GPU
string, the canvas hash, the WebGL hash, the audio context, the fonts, the screen.
The browser object you get back is a real Playwright
[`Browser`](https://playwright.dev/python/docs/api/class-browser), so the rest of your
code does not change.
```python
from invisible_playwright import InvisiblePlaywright
# Same seed -> same canvas / WebGL / audio hash, every run.
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
# read your fingerprint page here; the readbacks are now stable
```
Run that twice and the three readbacks are byte-identical between the two runs,
because they are computed from the same seed both times. Change the number and you get
a different, equally self-consistent machine:
```python
# A different but still internally coherent device.
with InvisiblePlaywright(seed=1001) as browser:
...
```
The async surface is the same, one keyword apart:
```python
from invisible_playwright.async_api import InvisiblePlaywright
async with InvisiblePlaywright(seed=42) as browser:
page = await browser.new_page()
await page.goto("https://example.com")
```
If you launched without a seed and now want to keep the identity you happened to get,
you do not have to guess it. Every session records the seed it was generated from, so
log it once and you can replay that exact machine later:
```python
sf = InvisiblePlaywright() # no seed -> a fresh one is drawn
with sf as browser:
print("seed =", sf.seed) # write this down to reproduce this device
page = browser.new_page()
page.goto("https://example.com")
```
## Prove it: read the same hash twice
Do not take the determinism on faith. The whole point of the earlier troubleshooting
pages is that you [assert the presence of the right value rather than the absence of a
wrong one](how-to-test-bot-detection.md), and this is a case where you can measure the
right value directly.
![Four sessions of the same page served from localhost. Two sessions launched without
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/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
disagree on both readbacks. The two seeded ones agree on both, and their screenshots
are identical pixel for pixel, 0 of 79,800 differing.
The detail worth noticing is that the drawing looks the same in all four panels. Your
eye cannot separate them; the hash separates them immediately. That is the shape of
this whole surface: the readback is not the picture, and a page that hashes it is not
looking at what you are looking at.
The second unseeded panel is also physically larger, because that session drew at a
different device pixel ratio. It is not only the readbacks that get redrawn per
session: the device does.
**Two things about that panel are worth stating precisely, because guessing them wrong
sends you debugging the wrong thing.**
**What changes on every unseeded launch is the device, not necessarily the readback.**
Five unseeded launches, reading four values each: the screen alternated between
1920x1080 and 2560x1440, the core count between 4 and 12, the device pixel ratio
between 1 and 1.25. All five moved. The canvas readback, over the same five launches,
returned the same value four times. So **two unseeded runs agreeing on a canvas hash is
not evidence that your seed took effect** - it is the likelier outcome. Check a value
that varies freely, like the screen or the core count, when you want to know whether a
new identity was drawn.
**And if you hash `toDataURL()`, you are partly hashing the PNG encoder.** On the
bundled Firefox, three launches drawing the identical canvas returned three different
`toDataURL()` hashes while `getImageData()` returned the same pixel bytes all three
times. The pixels never moved; the encoded string did. A canvas hash that changes
between two runs of a *stock* browser is usually this, not a fingerprinting defence, and
it is not something `privacy.fingerprintingProtection` or `privacy.resistFingerprinting`
explains: both were tested off and on, and the encoded string kept moving either way.
Compare `getImageData` bytes when you want to know whether the drawing changed.
Draw to a canvas, read it back with
[`toDataURL()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL),
and compare the hash across two launches with the same seed:
```python
import hashlib
from invisible_playwright import InvisiblePlaywright
DRAW = """() => {
const c = document.createElement('canvas');
c.width = 300; c.height = 150;
const ctx = c.getContext('2d');
ctx.textBaseline = 'top';
ctx.font = '16px sans-serif';
ctx.fillStyle = '#069';
ctx.fillText('fingerprint probe 12345', 10, 10);
return c.toDataURL();
}"""
def canvas_hash(seed):
with InvisiblePlaywright(seed=seed) as browser:
page = browser.new_page()
page.goto("https://example.com")
data_url = page.evaluate(DRAW)
return hashlib.sha256(data_url.encode()).hexdigest()
a = canvas_hash(42)
b = canvas_hash(42)
c = canvas_hash(1001)
print("same seed match:", a == b) # True: byte-identical across runs
print("different seed differs:", a != c) # True: a different device
```
The first comparison is the one that matters. `a == b` being `True` is the readback
proving it is a stable function of the seed, not per-call randomness. This is exactly
what the project's own consistency gate checks on every release: it launches the same
seed more than once and requires an identical visitor ID from a linkability library,
and it fails the build if the two runs disagree. A green gate there means the same seed
is the same machine, run to run.
Because the readback is a function of the seed and not of the host, the same seed also
holds its hash across operating systems, which is
[why a Linux container and a Windows laptop can return the same canvas](canvas-webgl-cross-platform-consistency.md).
If instead the two hashes for one seed disagree within a single machine, that is the
tampering signal to chase, and reading the same value twice in one session is
[the cheapest such check there is](canvas-fingerprint-noise.md).
## Match the seed to the profile
Pinning the seed and pinning the profile are two halves of one decision. If you keep a
[persistent profile so cookies and storage survive between runs](persistent-profiles.md),
give it a stable seed as well. A profile that returns with the same cookies but a
different canvas hash is telling two stories at once: the account remembers you, the
hardware does not, and that contradiction is easier to spot than either half alone.
The clean pairings are the obvious ones. A fresh throwaway profile takes a fresh seed.
A durable identity that comes back tomorrow takes the same profile and the same seed
it had yesterday. Keep the two in step and the machine you present stays coherent over
its whole life instead of only within a single launch.
## Conclusion
A canvas hash that changes on every run is not a leak, it is a new device being drawn
per session, and it is the correct default for unrelated one-off visits. When you need
a machine that stays the same, whether for a returning account, a persisted profile or
a reproducible bug, pass a seed. The three readbacks then become a byte-identical
function of that seed, run to run and across operating systems, and the account and the
hardware finally tell the same story.
## Short answers to the questions that lead here
**Why does my canvas fingerprint change every run?** Because each session without a
seed gets a fresh, self-consistent identity by design. The readback is a function of
the session's seed, and a new session means a new seed.
**How do I make the canvas hash stable?** Pass a fixed seed at launch, for example
`InvisiblePlaywright(seed=42)`. The canvas, WebGL and audio readbacks then come back
identical on every run.
**Is a changing fingerprint a bug?** No. It is deliberate rotation. It becomes a
problem only when you needed a stable machine, for instance behind a returning account
or a persisted profile, and left rotation on.
**Does the same seed give the same hash on a different machine?** Yes. The readback is
computed from the seed, not from the host GPU or fonts, so the same seed holds its
hashes across operating systems.
**How do I reproduce the exact identity from an earlier run?** Read the session's seed
after launch and log it. Passing that number back reproduces the same device.
**Should the seed match my persistent profile?** Yes. A profile that returns with the
same cookies but a different fingerprint is a contradiction. Keep one stable seed per
durable identity.
**Should I hash `toDataURL()` or `getImageData()`?** `getImageData`, if you want to know
whether the drawing changed. Three launches of the bundled Firefox drawing the same
canvas returned three different `toDataURL` hashes and the same pixel bytes every time:
the encoded string moves on its own, so a data URL hash reports changes the canvas never
made.
## Sources
- The project's fingerprint generator, in which the canvas, WebGL and audio readbacks
are computed as a pure function of a hardware seed derived from the session seed.
- The release consistency gate, which relaunches a fixed seed and requires an
identical visitor ID from run to run, and fails the build otherwise.
- The [quickstart](quickstart.md) and [configuration](configuration.md) pages in this
documentation set for the seed argument and the API it belongs to.
- Playwright's own [`Browser` API reference](https://playwright.dev/python/docs/api/class-browser)
for what `new_page` returns: the object every example above drives is the standard
Playwright API, not a fork of it.
- MDN's [`HTMLCanvasElement.toDataURL()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)
reference for the readback method the proof above uses to pull bytes off the canvas.
**See also:** [how to test whether your browser is detected](how-to-test-bot-detection.md)
for the assert-the-right-value method, and
[the checklist for being detected on one site](playwright-detected-as-bot.md), whose
last step is to pin the identity so a failure is reproducible.
---
*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.*
+229
View File
@@ -0,0 +1,229 @@
---
title: "Canvas fingerprint noise: why per-call randomising fails"
description: "Per-call canvas fingerprint noise fails a detector that reads twice and flags as masking on a second check. What a consistent canvas actually looks like."
parent: "Canvas, WebGL, Fonts and Audio"
grand_parent: "Guides"
nav_order: 1
---
# Canvas fingerprint noise: why per-call randomising fails
Per-call canvas fingerprint noise fails because a detector can read the same canvas
twice. Real hardware returns an identical result both times; per-call noise returns two
different ones, which flags the browser as tampering rather than merely unusual. The fix
is not more noise, it is noise that stays consistent within a session and across sessions
of the same identity.
The standard advice for canvas fingerprinting is to add a little noise to the pixels so
your hash is not stable. It is the most widely deployed anti-fingerprinting technique
there is, and against a detector that asks once it works.
Against a detector that asks twice it is the thing that gets you caught. This page is
the check that catches it, the second check almost nobody knows about, and what a
consistent alternative has to look like.
## The check that catches per-call noise
Render the same canvas twice in the same page with
[`toDataURL()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)
and compare.
```js
function hash() {
const c = document.createElement('canvas');
const ctx = c.getContext('2d');
ctx.textBaseline = 'top';
ctx.font = '14px Arial';
ctx.fillText('abcdefghijklmnop', 2, 2);
return c.toDataURL();
}
hash() === hash(); // real hardware: true. Per-call noise: false.
```
On real hardware the answer is always identical, because drawing the same shapes with
the same rasteriser produces the same pixels. There is no source of variation.
A tool that adds `Math.random()` to the pixel values on every read produces two
different answers, and now the page knows something far more specific than your canvas
hash: it knows your canvas is being tampered with. An unusual hash makes you rare. A
hash that changes between two reads one millisecond apart makes you impossible.
This is four lines of JavaScript. Assume it is running.
## The second check, which is subtler
A detector draws a **small canvas filled with a handful of solid reference colours**,
then reads it back with
[`getImageData()`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData)
and checks those exact colour values came back unchanged. Not a hash, not a comparison
between two reads: an assertion that a flat red rectangle is still exactly that red.
The first check above is well known enough that better tools already seed their noise,
so two reads agree. This second shape is subtler, and it is worth understanding because
it caught us.
Real rendering does not change a solid fill. Any per-pixel noise does, even seeded
noise, even tiny noise. And a tool that fails this is not scored as "unusual", it is
scored as **masking detected**, which is a different and worse category.
The fix is a guard: before altering anything, count the distinct colours in the buffer.
If there are only a few, the render is a reference probe rather than a fingerprint, and
you leave it alone. Small buffers get the same treatment, for the same reason.
We shipped without that guard and learned it from a detector telling us so. The general
form is the same one that appears in audio and everywhere else:
> A detector does not have to recognise your noise. It only has to ask a question whose
> correct answer is already known, and check whether it still gets that answer.
## Additive noise versus substitution, and the cost nobody states
There are two ways to make a canvas read return something other than the truth.
| Approach | What it does | Same hash across machines? | Main cost |
|---|---|---|---|
| Additive noise | Perturbs each pixel slightly; the image still looks the same, the hash changes | No. The operating system's text stack still shows through the perturbation | The underlying platform signature leaks |
| Substitution | Replaces pixel values wholesale with seed-derived values | Yes. The hash is a pure function of the seed | Real canvas work (cropping, QR decoding, a video frame) gets the substituted values too |
**Additive.** Perturb each pixel slightly. The image still looks like the image, the
hash changes. This is what extensions do.
**Substitution.** Replace the pixel values wholesale with values derived from a seed.
The hash is then a pure function of the seed and nothing else, which means it is
identical on every machine running that identity, including a Linux server pretending
to be Windows.
Substitution is stronger for consistency, because with additive noise the underlying
rendering still carries the signature of
[the operating system's text stack](bundled-fonts-cross-platform.md) under the
perturbation. Two machines with different font backends produce different base images,
and a small perturbation on top does not hide that -
[this is the reasoning that gets the same seed to the same byte-identical hash on
Windows and Linux](canvas-webgl-cross-platform-consistency.md), not just a similar one.
Now the cost, which is real and which most write-ups omit. A substitution applied at
readback does not know why the page is reading the canvas. It cannot distinguish a
fingerprinting probe from an application that is cropping a photo, decoding a QR code,
capturing a video frame or applying a filter. Those all read pixels through the same
API, and they all get the substituted values.
So if your automation does real canvas work, you have to know this is happening. It is
a trade, not a free win, and anyone presenting per-pixel protection as costless has not
built one.
## What a defensible canvas looks like
Working backwards from the checks above:
- **Stable within a session.** Two reads agree. Non-negotiable and trivially checked.
- **Stable across sessions of the same identity.** A hash that changes every launch
describes a machine that changed its GPU overnight.
- **Different between identities.** Otherwise every user of the tool shares one hash,
which is its own cohort.
- **Solid fills come back solid.** Reference probes are untouched.
- **Consistent with the rest of the claim.** A canvas that says one platform under a
user agent that says another is caught by comparison, not by rarity.
That list is short and every item is a thing a page can verify in a few lines. That is
the level the checks are actually at.
The same canvas element carries a second surface that doesn't involve reading a single
pixel: [`measureText()` and its ten-plus numeric fields](measuretext-textmetrics-fingerprinting.md),
which fail the same way for the same reason if the noise added to them accumulates
instead of staying bounded.
## Substitution, seen on one page
![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/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.
That pairing is the distinction this page is built on. A substituted readback changes
what comes out of the canvas without changing the layout metrics the same text produces,
so a detector comparing the two does not find the mismatch that per-call noise creates.
The hash comes from `getImageData` bytes on purpose: `toDataURL` output moves between
launches on the bundled browser too, for encoder reasons that have nothing to do with
the drawing.
## Checking your own
```js
const a = hash(), b = hash();
console.log('stable within session:', a === b);
// solid-fill probe
const c = document.createElement('canvas'); c.width = 70; c.height = 5;
const ctx = c.getContext('2d');
ctx.fillStyle = '#ff0000'; ctx.fillRect(0, 0, 10, 5);
const px = ctx.getImageData(0, 0, 1, 1).data;
console.log('solid red survived:', px[0] === 255 && px[1] === 0 && px[2] === 0);
```
Then relaunch with the same identity and confirm the first hash is the same value. Two
launches, one identity, one hash.
## Conclusion
Per-call noise fails the moment a page reads the same canvas twice, and seeded noise
that survives that check can still fail the second time a page draws a flat reference
colour and checks it came back unchanged. Both checks run in a handful of lines of
JavaScript, and both are already in use.
What passes both is substitution: pixel values that are a pure function of a seed,
stable within a session, stable across relaunches of the same identity, and different
between identities. The cost is real. A substitution applied at readback cannot tell a
fingerprinting probe from a QR scanner or a photo crop, so anything reading canvas
pixels for a genuine reason inherits the substituted values too.
## Short answers to the questions that lead here
**Does adding noise to canvas prevent fingerprinting?** It prevents a stable identifier
and it announces that something is modifying the canvas. Which of those matters depends
on whether anything is checking.
**Is Canvas Blocker style protection detectable?** The per-call randomisation kind is,
in four lines. That is a statement about the technique, not about any particular tool.
**Why does my canvas hash change on every page load?** Because something is randomising
per call or per session. No real machine does that; there is
[a dedicated page on why a canvas fingerprint changes every run](canvas-fingerprint-changes-every-run.md).
**Should the hash be unique to me?** It should be consistent for one identity and
different between identities. Unique-per-request is not privacy, it is a signature.
**Does `privacy.resistFingerprinting` solve this?** It alters canvas readings, and it
also makes you identifiable as someone running that mode. There is
[a longer page on that trade](resist-fingerprinting.md).
**Will noise break my application?** If you read pixels for anything real, yes,
potentially. Protection applied at readback cannot tell your QR decoder from a
fingerprinting probe.
## Sources
- [MDN: `HTMLCanvasElement.toDataURL()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)
and [MDN: `CanvasRenderingContext2D.getImageData()`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData),
retrieved 2026-08-28, the two readback APIs the checks on this page run directly against.
- The two protections named above: [Canvas Blocker - Fingerprint Protect](https://addons.mozilla.org/en-US/firefox/addon/canvas-blocker-no-fingerprint/),
a Firefox extension whose modes include per-call random noise, and Mozilla's own
[Resist Fingerprinting support page](https://support.mozilla.org/en-US/kb/resist-fingerprinting)
for what `privacy.resistFingerprinting` changes on a canvas read, both retrieved 2026-08-29.
- This project's own testing notes: the solid-fill guard shipped without it and was
learned from a detector telling us so, and the field-by-field canvas parity
measurements referenced throughout.
**See also:** [AudioContext fingerprinting](audiocontext-fingerprinting.md), where the
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 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/oss-invisible/playwright),
a Firefox patched at the C++ level. The solid-fill guard exists because we shipped
without it.*
@@ -0,0 +1,185 @@
---
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 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 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)
cover the same shape of problem and fix, for text instead of pixels.
## The surface you can't safely touch is not the surface JavaScript reads
A GPU-backed render target is not something you can map and rewrite freely - reading
one directly with the ordinary in-process API can crash rather than return data,
depending on the backend. That rules out the obvious approach of patching the render
itself.
It turns out you don't need to. Content never touches the render surface directly. It
only ever gets pixels back through a small, enumerable set of export calls:
- [`toDataURL`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL) and
[`toBlob`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob), both on the canvas element itself
- [`getImageData`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData), on the 2D context
- [`readPixels`](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels), on the WebGL context
- a captured [`OffscreenCanvas`](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas)
- the chain that runs through [`createImageBitmap`](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)
Every one of those is a **readback** call, and readback is a single choke point you
can intercept safely, even when the surface behind it cannot be touched directly.
So the fix is the same shape as the font one: block the host's real value at the one
place content can actually observe it, rather than trying to prevent the value from
existing in the first place.
## What gets overwritten, and what doesn't
At each readback call, the real pixel buffer is rewritten with output derived from
the session's seed and the pixel's own position, before JavaScript ever sees it - for
both the canvas-2D path and the WebGL path, since they are separate APIs with
separate export calls that both needed the same treatment.
The one thing this has to get right is not breaking the pages that read canvas
content for a legitimate reason. A reference probe - a handful of flat colours used
to check whether canvas output has been tampered with at all - looks nothing like a
real rendered scene: very few distinct colours across the whole buffer. Below a
small distinct-colour threshold, the output is left untouched; above it, the
substitution applies in full.
A solid red rectangle comes back solid red. A real
rendered scene, which is high-entropy by construction, gets the full treatment. This
is what keeps a masking-detection probe from immediately noticing that something
intercepts every readback.
## Why substitution instead of noise, here specifically
[Adding noise per call is the common approach, and it fails a very cheap check](canvas-fingerprint-noise.md):
read the canvas twice in the same page and compare. What makes substitution the
right choice for cross-platform consistency specifically is a different property:
substituted output is a pure function of the seed and the pixel position, with zero
input from the actual rendering pipeline underneath.
Additive noise on top of a real
render still carries the render's own signature - two machines with different font or
GPU backends produce different base images, and a small perturbation on top doesn't
hide that. Substitution removes the underlying image from the equation entirely, so
there's nothing left for the host to leak into the result.
There's a second, sharper way per-pixel noise fails, found on this exact surface: a
detector doesn't need two reads to catch it, because the noise itself has a
statistical shape that a single read can flag. A small random offset applied to a
fraction of pixels reads as unnaturally high-frequency variation - a masking-detection
check built to look for exactly that pattern flagged it directly, on the WebGL
readback specifically, with the rest of the fingerprint surface clean.
Replacing it
with a per-channel remap - which looks like an ordinary colour-profile difference
between GPUs rather than injected noise - took a measured spike count from roughly
320 down to near zero on the same probe. Substitution inherits that property too,
for the same reason: nothing about it resembles noise added on top of a real signal.
| Approach | How it hides the host | Where it fails |
|---|---|---|
| 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 |
## 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, 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.
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
The underlying idea applies to any surface where content can only see a value
through a small number of export or readback calls: intercept there, and it doesn't
matter what happens upstream.
It is also, necessarily, an enumeration problem - the
fix is only as complete as the list of export paths it covers, and browsers keep
adding new ones (newer capture and streaming APIs, newer GPU-facing interfaces).
Treat any such list as something that needs revisiting as the platform grows, not as
a fact that becomes true once and stays true.
## Conclusion
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 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
reads alone so it doesn't break the pages that use canvas for something other than
fingerprinting.
## Short answers to the questions that lead here
**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.
Substitution replaces the value entirely, so nothing about the actual host reaches
the output.
**Won't this break real uses of canvas, like image editing or QR decoding?** A
masking-safe design leaves near-uniform, low-entropy output untouched and only
substitutes high-entropy renders, which is what a fingerprinting probe looks like
and an image editor's output usually doesn't - though the same caveat as
[canvas fingerprint noise](canvas-fingerprint-noise.md) applies if your own use case
happens to fall on the wrong side of that line.
**Is this the same fix as the font work?** The same shape - intercept at the point
content can observe, not at the source - applied to a different surface.
## Sources
- [MDN: `HTMLCanvasElement.toDataURL()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL),
[MDN: `HTMLCanvasElement.toBlob()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob),
[MDN: `CanvasRenderingContext2D.getImageData()`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData),
[MDN: `WebGLRenderingContext.readPixels()`](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels),
[MDN: `OffscreenCanvas`](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas), and
[MDN: `createImageBitmap()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap),
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 hashes on Windows and Linux, multi-seed
results against a commercial fingerprint scanner).
**See also:** [canvas fingerprint noise](canvas-fingerprint-noise.md), for why
per-call randomisation specifically fails; [how to make Linux and macOS report real
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 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/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.*
@@ -0,0 +1,242 @@
---
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
---
# The canvas and WebGL readback hash, explained
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.
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
surface reads differently.
This page is what the signature measures, where in the pipeline it is actually taken, what
has to be true for two machines to produce the same one, and how to read both values
yourself against a stock browser.
## 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
rendered 3D scene. In both cases the "signature" you see is the hash of the pixel bytes,
not of any property you can enumerate.
That distinction matters because the pixel bytes are the product of a long chain: the
font rasterizer, the anti-aliasing, the GPU, the driver, the compositor. Two machines that
report the same WebGL renderer string can still hash differently, because the string and
the pixels are decided by different code. The signature is downstream of everything, which
is exactly why detectors like it and exactly why it is hard to fake by editing properties.
[The renderer string and the pixels it implies are two separate surfaces](renderer-string-vs-render.md),
and a mismatch between them is its own tell.
## The readback is the only thing JavaScript can see
JavaScript never sees the render surface directly; the only bytes a page can obtain are the
ones a readback call hands back. The GPU draws into memory the page has no handle on. The
only way script gets any pixels at all is by calling a readback method -
[`getImageData`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData),
`toDataURL`, `toBlob` on the 2D side,
[`readPixels`](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)
on the WebGL side - and those methods are
the single point where the rendered pixels cross from the engine into script.
So the signature is not a measurement of your GPU. It is a measurement of whatever those
readback calls return. If the bytes handed back at that boundary are a pure function of a
seed, the signature is a pure function of the seed, and the GPU underneath stops mattering
to the hash entirely.
That is the whole strategy in one sentence: the render can depend on the host all it likes,
because the host contribution is overwritten before any script can observe it.
## What our substitution does at that point
At each readback boundary, the pixels the page receives are replaced with values derived
from the seed and the position of the pixel, roughly `hash(seed, pixel_index)` per byte.
The scene is still drawn, so timing and shape and side effects all behave like a real
render, but the bytes that come back out are seed-determined rather than GPU-determined.
Two consequences follow directly:
- Read the canvas twice in one session and the hash is identical, because the same seed
and the same pixel positions produce the same bytes. A hash that changes between two
reads in one session is the cheapest tampering signal there is, and
[per-call noise is exactly what a consistency probe is built to catch](canvas-fingerprint-noise.md).
- Two different operating systems running the same seed return the same bytes, because
nothing host-specific survives to the readback. That is the property the next section is
about.
Because the substitution happens where the pixels are read rather than where they are
drawn, it covers the indirect readback paths too - drawing the canvas into another canvas
and reading that, capturing it as an image bitmap and reading that - since every one of
them still ends at a readback call, and the readback is what gets replaced.
## Why a byte-identical hash across OSes is the real test
A stealth build that merely perturbs the canvas looks fine on one machine and falls apart
across a fleet, because the perturbation rides on top of a host render that still differs
between Windows and Linux. The honest test is not "did the hash change", it is "do two
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
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 |
|---|---|---|---|
| Canvas | `df2a9319` | `df2a9319` | byte-identical |
| WebGL | `0df1d6f8` | `0df1d6f8` | byte-identical |
Across a batch of sixteen distinct seeds run
through a full fingerprinting suite, zero of sixteen failed the cross-host check on either
operating system. That is the number that says the host contribution is actually gone
rather than merely reduced, and it is the same guarantee the
[canvas and WebGL cross-platform consistency page](canvas-webgl-cross-platform-consistency.md)
describes from the engine side.
The reason this is worth insisting on: a server render and a laptop render disagreeing is
one of the most common ways an otherwise-good identity gets linked across a fleet. If the
hash is byte-identical by construction, that entire class of leak is closed rather than
papered over.
## The low-entropy render left alone, and why
There is a trap in overwriting every readback unconditionally. Some pages do not draw a
fingerprint scene at all - they draw a tiny reference block, a flat rectangle of one or two
colours, precisely to check whether a browser is tampering with canvas output. A masking
scanner expects that reference to come back byte-exact. If your substitution rewrites it,
you have announced that you rewrite canvas reads, which is worse than any GPU string.
So the substitution has a threshold. A render with more than sixteen distinct colours is a
real fingerprint scene and gets the full overwrite. A render at or below sixteen distinct
colours is treated as a low-entropy reference and is left byte-exact, so its hash stays the
global constant a masking scanner expects to see. The high-entropy scene is spoofed; the
probe render is untouched. A detector looking for tampering on its reference block finds
none, and a detector reading the fingerprint scene gets a clean, seed-stable, host-free
hash.
This is the difference between hiding a signal and blocking it. Blocking canvas entirely,
or scrambling every read, is itself a loud signal - the kind
[a suppressed surface leaves behind](how-to-test-bot-detection.md). Leaving the reference
render exact while making the fingerprint render seed-deterministic is what keeps the
surface quiet.
## Reading the two hashes yourself
You do not need the detector's page to see this. Draw a canvas, read it back the way the
signature is computed, and print the hash. Do it twice in one session to confirm stability,
then relaunch with the same seed to confirm reproducibility.
```python
from invisible_playwright import InvisiblePlaywright
READBACK = """
() => {
const c = document.createElement('canvas');
c.width = 300; c.height = 60;
const ctx = c.getContext('2d');
ctx.textBaseline = 'alphabetic';
ctx.font = '16px sans-serif';
ctx.fillStyle = '#069';
ctx.fillText('signature check', 4, 40);
ctx.strokeStyle = 'rgba(120,0,90,0.7)';
ctx.beginPath(); ctx.arc(240, 30, 20, 0, Math.PI * 2); ctx.stroke();
// the readback: the one point JavaScript sees the render
const bytes = ctx.getImageData(0, 0, c.width, c.height).data;
let h = 0x811c9dc5;
for (let i = 0; i < bytes.length; i++) {
h ^= bytes[i];
h = (h + ((h << 1) + (h << 4) + (h << 7) + (h << 8) + (h << 24))) >>> 0;
}
return h.toString(16).padStart(8, '0');
}
"""
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com")
first = page.evaluate(READBACK)
second = page.evaluate(READBACK)
print("read 1:", first)
print("read 2:", second)
assert first == second, "canvas hash changed within a session - per-call noise"
```
Run the same script a second time with the same `seed=42` and the printed hash is the same
again. Change the seed and it changes. Run it on a Windows host and on a Linux host with
one fixed seed and the two hosts print the same string. To make the comparison against a
stock browser concrete, run the identical readback under plain Playwright on the same
machine and note that its hash tracks the host GPU instead:
```bash
python read_hash.py # invisible_playwright: seed-stable, host-free
python read_hash_stock.py # stock Playwright: hash follows this machine's GPU
```
The stock browser is the reference. The point is not that the two disagree; it is that the
seeded one gives the same answer on a second machine and the stock one does not.
## Conclusion
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
across operating systems, and stable across reads within a session. Leave the low-entropy
reference render exact and a tampering probe finds nothing to flag. The measurable outcome
is a canvas signature of `df2a9319` and a WebGL signature of `0df1d6f8` reproduced to the
byte on two different hosts, with zero cross-host failures across sixteen seeds.
## Short answers to the questions that lead here
**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.
**Why is my canvas hash different on my server than on my laptop?** Because a plain render
depends on the host GPU, driver and rasterizer, and those differ. When the readback is
replaced with a seed-derived function, the host drops out and the hash is the same on both.
**Should the canvas hash change on every page load?** No. A hash that changes between two
reads in one session is per-call noise, which is itself detectable. It should be stable
within a session and reproducible across sessions for a fixed seed.
**Is blocking canvas a good defence?** No. An empty or scrambled canvas is a loud signal.
The quiet approach returns a plausible, stable hash and leaves a detector's low-entropy
reference render byte-exact.
**Can I get the same signature on two machines on purpose?** Yes, that is the design. Same
seed, same signature, to the byte, on Windows and Linux alike.
**Does this touch the WebGL renderer string too?** That is a separate surface with its own
handling; see the note on [WebGL renderer strings](webgl-renderer-strings.md). The
signature is the pixels, the renderer string is a reported value, and both have to agree.
## Sources
- 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.
**See also:** [canvas and WebGL fingerprints identical across OSes](canvas-webgl-cross-platform-consistency.md),
[the cheapest tampering check there is](canvas-fingerprint-noise.md), and
[how to test whether your browser is detected](how-to-test-bot-detection.md).
---
*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.*
Loaded 100 of 1359 files, more files were not shown because too many files have changed in this diff. Show more