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>
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>
* 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>
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>
* 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>
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>
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>
* 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.
* 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>
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>
* 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>
* 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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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.
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.
`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.
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.
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.
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.
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.
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.
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.
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.
* 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
* 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.
* 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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
* 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
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.
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.
* 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.
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.
* 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>
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.
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.
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.
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.
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.
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.
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.
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.
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.
- 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.
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.
- `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>
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.
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.
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.
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.
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.
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>
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>
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>
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.
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.
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).
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.
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>
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
`__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.
* 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
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.
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.
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.
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.
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.
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.
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.
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.
* 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.
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.
* 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.
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.
* 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.
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.
* 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.
* 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>
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.
* 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.
* 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
* 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>
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.
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.
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.
* 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
* 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.
* 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.
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.
* 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.
* 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.
* 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>
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
* 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
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.
* 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.
* 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>
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
* 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.
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.
* 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>
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.
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.
* 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.
* 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.
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.
* 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>
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.
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.
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.
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.
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.
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.
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.
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.
* 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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
[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.
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.
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.
* 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
* 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.
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.
* 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
_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.
_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.
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.
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.
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.
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.
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.
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.
- 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
`---` 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>.
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.
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.
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.
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.
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.
"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.
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.
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.
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.
`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.
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.
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.
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.
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.
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.
`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.
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.
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.
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.
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.
`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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
"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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
--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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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>
`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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
The core dependency was a bare `invisible-core @ git+https://...` with no ref.
Measured, not assumed: that shape pins nothing (it resolves to whatever the
default branch held at install time, forever), and it is invisible to `pip
check`, which has no version specifier to compare and answers "No broken
requirements found" on an environment running the wrong core. The same mismatch
written as a real specifier is caught, exit 1. An index also rejects a direct
reference outright, so the package could not have been uploaded as it stood.
It is now `invisible-core==18.0.0`, declared once, in pyproject.toml. The
import-time assertion reads it back out of this package's own metadata rather
than carrying a second copy, and a test fails if a copy appears. What the
resolver cannot see is the --no-deps and lockfile residue, and that assertion is
the only layer that does - so a mismatch there is now repaired in process rather
than reported, with the repair, its guards and its timeout living in the core
where the profile manager shares them.
The comparison itself moved to invisible_core._pin. What stays here is the
prelude: the few lines that still run when the core cannot be imported at all,
which is the one state a module inside the core can never report on. It tells
"core missing or too old" apart from "core present, its own dependency missing",
because those have different cures.
Packaging, all of it measured on the built artifacts rather than inferred:
- the sdist carried tests/playwright-upstream, 322 files of Apache-2.0
third-party source inside a distribution declaring MIT. Excluded, and the
directory is now gitignored so `git add -A` cannot commit it either. 1.27 MB
to 282 KB.
- README images and links were repo-relative; an index does not rewrite those,
so the project page would have rendered with broken images and 404 links.
Badges point at main because a badge is a status indicator; screenshots and
the banner are pinned to a commit because those are evidence of a state.
- the Firefox badge said 150.0.1 while the seal ships 151.0.
Install instructions changed. Prose did not.
The >=1.55 floor was never a real compatibility bound - it was just the single
minor pinned when 0.3.1 tightened the range. The firefox-18 binary was smoke
tested (launch, new_context, navigate, evaluate, click) against 1.40, 1.45, 1.50
and 1.54 and passed on all four, so the floor drops back to 1.40 and anyone on an
older client keeps working. Upper cap stays at the tested 1.61.0.
The upper bound was an open <1.62, which would let an untested future 1.61.x (or
anything below 1.62) install and potentially break a fresh setup the way 1.61
first did. Cap it at the exact version validated against this binary, 1.61.0, so
only versions we have tested can be pulled in. The cap moves forward on purpose,
once a newer Playwright is validated against the binary.
The release e2e tests asserted the binary reported 'Firefox 150' / 'Firefox/150'
and went red the moment firefox-18 (FF151) landed - the binary correctly reports
151.0. Same class as test_constants, but these live in the e2e workflow (not the
unit run, which stayed green), so they slipped through. Now derived from
FIREFOX_UPSTREAM_VERSION so they track whatever the wrapper actually ships.
The cap was 1.55.x because 1.61 pairs with Firefox 151 and sent viewport fields
the old binary rejected. firefox-18 rebases onto 151, so the range moves to
>=1.55,<1.62 and playwright_pin.txt to 1.61.0. Both ends tested against the new
binary: 1.61 ran the full browser suite on Windows and Linux, 1.55 is protocol
drift-free. The upper bound stays exclusive so the next minor must be tested.
Neither mention was functional (the issue template is prose; the docstring
describes a cookie_profile category - the actual tag values are unchanged). Keep
the description generic.
The gate counted 72 families enumerating and passed while ten collection faces
silently fell back to another family, so a real rendering regression shipped
with the gate green. It now renders a CJK probe per collection face and compares
the metrics against the fallback, with the family list calibrated on a build
known to load them.
Also: test_constants derives the expected archive name from the basename
constant instead of hardcoding the version, since a hardcoded one turns every
upstream bump into a mechanical test edit, which is how a stale expectation gets
corrected without anyone checking the asset exists. And INVPW_TRUE_HEADLESS=1
opts into real headless for long unattended runs on Windows, where the default
cloak path intermittently hangs on launch with a persistent profile. The default
is unchanged and the fingerprint prefs are identical either way.
The version/stars/downloads badges routed through shields.io and GitHub's
image proxy, which rate-limits and intermittently rendered them as broken
images. These are now static SVGs committed under docs/badges/ and referenced
by relative path, so they render like any repo asset and cannot break.
The github v/release badge (no releases on this repo) and the github stars
badge (shields.io shares a rate-limited GitHub API call, so it intermittently
rendered as a broken image) are replaced by a static Firefox 150.0.1 badge that
never calls an API and cannot break.
Playwright 1.61 adds an isMobile field to the Browser.setDefaultViewport
Juggler command that the FF150 binary does not accept, which breaks the
session (#48). Narrow the range from >=1.40,<1.61 to the CI-tested 1.55.x
(scripts/playwright_pin.txt), so a fresh install always gets a compatible client.
Follows the invisible_core removal of the dead per-profile font-sampling:
delete the derive_font_prefs/derive_font_whitelist tests, the 'fonts' pin
tests, and the profile font_whitelist assertions. Suite green (444 passed).
The binary is now bundle-only and self-contained for fonts, so the config
pipeline emits no font prefs. Drop the two font keys from REQUIRED_KEYS and
rewrite IT7 to assert the pipeline emits NO font.* / font.name-list.* prefs
(it previously asserted the removed fontlist propagation). Matches the
invisible_core change that stopped emitting the font block.
Companion to ci_drive_gate.py, run by release.yml's gate job on each leg's
native runner. Launches the built binary headless, enumerates the visible font
families with the width probe web detectors use, and asserts: the detected set
equals the canonical Windows family set (identical on every OS), no known host
family (macOS Helvetica Neue/Menlo, Linux DejaVu/Ubuntu, ...) is visible, and
the CSS generics resolve to Windows fonts (serif=Times New Roman, mono=Consolas,
system-ui=Segoe UI). This is how the macOS build gets font-validated - there is
no local Mac. No proxy, no secrets.
The patched binary is always bundle-only and needs no external font config, so
the wrapper no longer injects any font env in _build_env (sync + async). No
external font customization channel remains. Test updated.
The firefox-14 relocation moved the binary release assets to
firefox_antidetect_patch, but test_download and test_constants still mocked
and asserted the old invisible_playwright release URLs, so they failed
against the current invisible-core. Derive the ensure_binary mock URLs from
RELEASE_URL_TEMPLATE so they track core automatically, and update the two
literal-URL guards to the new repo. Parser and non-api-url tests unchanged.
471 unit tests green.
The release/verify-assets/verify-cloak/republish workflows now live on the
source repo (feder-cr/firefox_antidetect_patch), so the built binaries are
published there — the natural home next to the source they are built from,
and reachable the same way by every consumer of invisible-core.
The wrapper keeps its own test workflows (tests/e2e/webrtc-e2e/
firefox-launch-matrix) and the scripts the source-side release jobs check
out from here (ci_drive_gate.py, gen_release_notes.py, playwright_pin.txt,
tests/test_cloak.py).
Hatchling refuses a direct-reference dependency (invisible-core @ git+...)
unless allow-direct-references is opted in, so a clean pip install from git
failed at metadata generation. Enable it so the wrapper installs.
The seed->fingerprint->prefs logic, binary download, and proxy/geo config
now live in a standalone invisible-core package (zero Playwright), so a
profile manager can reuse it without pulling Playwright in. The wrapper
depends on invisible-core and replaces the moved modules with full-alias
shims: existing imports (public API, submodules, private names) and
isinstance checks keep working unchanged. tests/test_backcompat.py locks
that contract (6 guards). Bumps to 0.3.0.
Playwright 1.61.0 (2026-06-29) ships a Browser.setDefaultViewport Juggler
call the published firefox-13 binary does not implement, so an unpinned
pip install (the wrapper declared playwright>=1.40) breaks new_context on
fresh installs. Cap the dependency to <1.61 and force the blessed pin in
the e2e clean venv so CI tests the version users actually run.
The pool had the bare "franklin gothic", which isn't a real Win11 family and
wouldn't match the bundled franklingothic_x.ttf, so the always-present standard
fonts test failed and the family could drop off the whitelist. Use the real
name (the bundle reconciliation already maps it).
firefox-13 ships the bundled Windows fonts, makes navigator.languages /
Accept-Language / the Intl locale all follow the proxy country, and gates the
audio fingerprint noise off. The prefs.py change that emits the new font/locale
prefs needs this binary, so the bump and that change land together.
locale defaults to "auto" and resolves from the proxy egress country the same
way timezone does - it reuses the egress IP, maps the country to a BCP-47 locale
with the offline mmdb, and falls back to en-US. prefs emit juggler.locale.override
(the full Accept-Language list) so the binary keeps navigator.languages and the
Intl default locale in sync.
The audio fingerprint noise is off in the baseline. Font prefs match the new
binary: the sampled whitelist drives font.system.whitelist, system-ui is Segoe
UI, the bundled fonts are activated, and the CSS generics are pinned to Windows
defaults so they resolve on a non-Windows host too.
- BINARY_VERSION -> firefox-12 (self-calibrating font widths, per-family canvas
distinctness, render-noise that preserves solid reference renders).
- font_pool: the standard Windows fonts (Calibri, Franklin Gothic, Gadugi,
Javanese Text, Myanmar Text) move from the per-profile optional set to core,
so they are always present and the detected font set matches a real Windows
install on every host. Defensive dedup in derive_font_prefs.
- GPU persona applied on every platform (Linux/macOS present a coherent Windows
GPU + WebGL params); pool re-rooted on a real-device GPU mix; render seeds
recalibrated.
- prefs: emit absolute per-family font widths that the binary self-calibrates.
- geoip: always pull the latest mmdb via the releases/latest permalink, checked
each launch, offline-safe (no pinned tag that can 404).
- tests: per-font canvas distinctness, solid-readback purity under render-noise,
always-present standard-font invariant, no duplicate families.
The Date.now self-assignment was a stopgap that the page-realm fix (the
automation layer no longer touches the realm's built-ins before page scripts
run) made unnecessary; that binary support was never landed, so the pref is a
no-op on every shipped build. Remove it and its now-inaccurate comment.
Bump BINARY_VERSION firefox-10 -> firefox-11 so first-run fetches the new
patched build (keeps the automation layer out of the page realm's observable
state + synthetic-cursor input realism). Add the Date.now property
normalization to the baseline prefs, paired with the firefox-11 binary's
zoom.stealth.normalize_date_now support.
FF150+Fission auto-loads about:newtab (TopSitesFeed) ~100ms-1s after a tab's
first navigation — a cross-process BC swap that replaces the page. The wrapper
always disables this (prefs.py); the raw-Playwright drive gate did not, so any
action that adds latency (e.g. the human-cursor motion path) let the page vanish
mid-sequence and surfaced as a phantom "waiting for locator" timeout — an
environment artifact, not a binary defect. The gate now launches with the same
newtab-suppression prefs every real run uses.
Add republish.yml: re-gate + publish an existing build run's artifacts without
rebuilding, for when all builds succeeded but a gate/test bug blocked publish.
Cut the per-seed WebGL persona to the two renderer buckets that score clean on
FP Pro tampering_ml across seeds (AMD Radeon R9 200 Series and Intel Arc A750),
weighted 70/30, cross-vendor so the fleet isn't one fixed GPU. Every NVIDIA
bucket and the integrated/ancient Intel buckets are penalised, so they're out.
The canvas/WebGL render-image hash turned out to be the dominant tampering_ml
driver, not the attributes, so the render-noise seed (zoom.stealth.fpp.hw_seed)
is now decoupled from the identity seed and drawn from a calibrated clean pool.
Per-seed determinism and per-user diversity are preserved.
Also in this change:
- audio maxChannelCount is stereo-dominant per class (it reflects the output
device, not the GPU; the old tables over-emitted 5.1/7.1 surround)
- route discrete Intel Arc desktop cards to a discrete-GPU class (not integrated)
- condition the whole sampled profile on the exposed GPU class via the sampler's
evidence path, so cores/screen/storage stay coherent with the declared GPU
- apply per-named-font width factors on Windows/macOS so canvas measureText
widths don't collapse to a single value
12/12 seeds clean on tampering_ml (worst 0.29), bot and anti-detect negative,
and the fingerprint stays identical across repeated runs of the same seed.
The Playwright/Juggler Firefox build re-enables cipher 0xC009
(TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA), which retail Firefox 150 does not offer.
That extra (17th) cipher shifted our JA3/JA4 off every real Firefox
(ja4 t13d1717h2 / ja3 6f7889b9 vs stock t13d1617h2 / 6447ab08) — a TLS
fingerprint that matches no real browser, which is itself a consistency tell.
Set security.ssl3.ecdhe_ecdsa_aes_128_sha=false in _BASELINE so JA3/JA4/peetprint
are byte-identical to retail FF150 (verified on tls.peet.ws). Non-breaking: stock
Firefox ships without 0xC009 and works on the whole web.
humanize: the wrapper wrote invisible_playwright.humanize[.maxTime], but the
binary's Juggler reads stealthfox.humanize (PageHandler.js gates the Bezier
mouse path on it). The old name was a dead no-op, so humanize never fired and
every mouse.move teleported the cursor — an automation tell. Renamed across
config.py, launcher.py and async_api.py; the mouse test now asserts the on/off
contrast instead of a false-green moves>=1.
headless (async): InvisiblePlaywright(headless=True) crashed on Windows/macOS.
_resolve_headless called make_virtual_display().start() unconditionally, but on
Win/macOS that returns None (the binary self-cloaks via DWMWA_CLOAK; only Linux
spawns Xvfb), so it died with AttributeError. It also never injected
cloak_prefs(), so the window wouldn't have hidden anyway. Mirror the sync
launcher: guard `if vd is not None` + inject cloak_prefs() when headless on
win32/darwin. Verified on FF150: headless=True loads, exits clean, window fully
hidden (no MainWindowHandle / no taskbar entry).
Alongside BotD and FingerprintJS, the detector e2e now runs two more FOSS
client-side detectors against the binary, vendored and served from localhost so it
stays offline on CI. fpscanner: assert its engine-agnostic bot rules (webdriver/
selenium/bot-UA/platform/timezone/language) are clean. CreepJS (the Firefox-aware
one): runs fully offline via window.Fingerprint with every non-loopback request
aborted, asserting headlessRating==0 and no JS-proxy stealth tell. The Chrome-only
and GPU-sensitive signals are logged, not asserted, so a software-WebGL CI host
doesn't false-red. Validated against firefox-10: full e2e 130 green.
The publish job used a fixed body that still read 'DRAFT - do not publish' on the
live release and listed none of the actual changes. Now the body is built from the
source commits that went into the binary: the build records which invisible_firefox
commit it came from (source-commit.txt), and publish diffs that against the previous
release's recorded commit via the GitHub compare API (no deep clone, no cross-repo
token) to list the user-facing subjects. docs/chore/ci/test commits are filtered out,
and the body ends with 'Built from invisible_firefox @<sha>' for traceability. It's
still a draft - the realness gate and the un-draft flip stay manual (issue #14).
firefox-10 is published: the in-binary headless window cloak (Windows DWMWA_CLOAK,
macOS NSWindow alpha-0, Linux keeps Xvfb) and the WebGL readPixels gamma remap that
clears pixelscan's masking flag. Validated against the built binary — validate_release
(linux+win), full e2e (128 passed), fppro ALL CRITICAL CLEAN, consistency PASS, and the
cloak gate green on all 5 targets (macOS via CGWindowAlpha).
test_hover_triggers_mouseenter timed out at the old 5s wait when run as part of
the full e2e suite — browser startup + CPU contention occasionally push the
mouseenter past the window. In isolation the event fires in well under a second
(5/5), so this is load-sensitivity, not a real regression. A 10s wait absorbs it
while still failing fast if mouseenter genuinely never fires.
The firefox-10 build gated green on all 5 targets but both macOS gate legs
failed. The cloak/webgl guards hard-required a live WebGL context, and macOS
GitHub runners expose none in the CI session (no software-GL fallback, unlike
Linux llvmpipe and Windows WARP). The cloak renders fine there anyway, which the
non-blank screenshot proves, so on the mac legs the WebGL-present check now
self-skips and the cocoa cloak is validated via the screenshot plus CGWindowAlpha.
The gamma masking guard skips on mac too (platform-agnostic C++, covered on Linux
and Windows).
verify-cloak.yml re-runs these guards against a prior build run's artifacts with
no rebuild, so a test-only fix like this is validated against the real binaries
in minutes instead of a 3h rebuild.
The gate runner only had Playwright; `pip install -e .` doesn't pull pytest (a
dev dep), so `python -m pytest` failed with "No module named pytest". Install
".[dev]" like e2e.yml does.
headless=True now hides the window via the binary's own cloak pref
(zoom.stealth.cloak_windows) on Windows and macOS instead of the broken
thread-level SetThreadDesktop; macOS is now supported. Linux keeps Xvfb.
Adds e2e guards that also run per-platform in the release drive-gate:
- test_cloak: the window is hidden (Windows DWMWA_CLOAKED / macOS CGWindowAlpha)
yet still renders + drives; the macOS leg is where the cocoa cloak patch runs.
- a WebGL readPixels masking guard: the gamma noise must stay a smooth gamma
remap, not the pixelscan-maskable +-1 spikes.
Audit follow-up (2026-06-10), all validated before commit.
#2 WebRTC — the shipped baseline now MATCHES the manually-validated config
(behind a residential proxy: host=<uuid>.local, srflx=proxy egress, No-Leak,
gathering completes, indistinguishable from vanilla Firefox on BrowserLeaks +
CreepJS):
- prefs baseline obfuscate_host_addresses False->True; add
zoom.stealth.webrtc.disable_ipv6=True; drop the dead
media.peerconnection.ice.disableIPv6 (no-op on FF150)
- launcher auto-derives the proxy egress IP via _geo.prepare_session_geo
(one round-trip shared with the timezone resolution) and feeds nICEr via
STEALTHFOX_WEBRTC_PUBLIC_IP + STEALTHFOX_WEBRTC_DISABLE_IPV6 in _build_env
(sync + async); an explicit caller env still wins. The C++ mechanisms were
already in firefox-9 — this activates them, no rebuild.
#1 drop orphan prefs zoom.stealth.timezone + zoom.stealth.seed (read by no C++;
the live ones are juggler.timezone.override + zoom.stealth.fpp.hw_seed).
#3 release title 'rev N' instead of 'rev firefox-N'.
CI guards (unit, leak-safe — no real proxy/creds, the kind that would have
caught this gap at zero cost):
- shipped-baseline guard + no-orphan-prefs (test_webrtc_realness.py)
- egress auto-derive in _build_env (test_launcher_helpers.py)
- prepare_session_geo returns (tz, egress) (test_geo.py)
CI keeps faking 'behind a proxy' with an in-process TCP-only SOCKS5 + RFC 5737
TEST-NET IPs; real-proxy residential realness stays a LOCAL manual gate.
449 unit pass.
firefox-9 ships linux x86_64/arm64, windows x86_64 and macOS arm64/x86_64
since the CI pipeline; the README still said Windows+Linux only. Also
document the macOS quarantine step (ad-hoc signed, not notarized) and the
fetch --force flag added with firefox-9.
Maximize what the real detectors exercise on CI:
- BotD: assert the aggregate detect().bot==false AND every individual detector
via getDetections() (webDriver/userAgent/appVersion/plugins/process/...). This
restores the per-detector granularity of the deleted hand-rolled test_botd_*,
but from the real library, with diagnostics on which detector flagged.
- FpJS: visitorId present + stable across two launches, AND a rich component
surface (>=15 signals — a suppressed/thin surface is itself a tell). We don't
hard-assert zero errored components (some are legitimately unsupported per
browser); visitorId stability is the authoritative aggregate check.
All 3 green locally against firefox-9.
These mirrored BotD's individual detectors (webdriver/appVersion/userAgent/
functionBind/productSub/process/evalLength/languages/plugins/mimeTypes/
distinctive-props/documentAttributes/windowSize/webGL) — our reverse-engineering
of BotD from before we ran the real library. Now that test_detectors_e2e.py runs
the actual @fingerprintjs/botd against the binary on CI (asserts bot===false),
they're redundant. Kept the complementary/unique tests: fpjs-surface, pinning,
sannysoft + fpscanner (which mimic detectors we do NOT run, so not covered by
BotD/FpJS), and the determinism/consistency suite.
Instead of only our hand-rolled signal checks, load the actual MIT detection
libraries against the patched binary and assert it isn't flagged:
- BotD (the client-side bot detector FingerprintJS Pro itself uses): detect()
must return bot=false (no automation/headless tell).
- FingerprintJS OSS: visitorId present and stable across two fresh launches
with the same seed (drift = per-session entropy = a bot tell).
Hermetic: the libs are vendored (tests/vendor/, pinned, MIT) and served from a
localhost server — no external CDN (Firefox tracking-protection blocks it
anyway), no IP/network dependency, runs identically on a dev box and the GitHub
runner. Both green locally against firefox-9.
Proves the patched nsProtocolProxyService end to end: the binary performs the
RFC1929 user/pass handshake with the configured socks_username/password and
relays the page through the proxy — something Playwright's own proxy= can't do,
and which test_proxy only unit-checks at the pref level.
Fully hermetic so it runs identically locally and on the GitHub runner: a local
SOCKS5 server (requires auth, records the creds it saw) + a local HTTP target,
with the localhost target forced through the proxy via allow_hijacking_localhost
+ no_proxies_on="". No external site, no secrets. 3/3 local.
Running the full e2e on GitHub (xvfb) surfaced 2 env-sensitive failures, neither
a binary bug:
- test_hover_triggers_mouseenter read window.__h immediately after hover(); the
mouseenter can land a beat later on a virtual display. Use wait_for_function
(still fails if the event genuinely never fires). 5/5 locally now.
- test_not_blocked_behind_tcp_only_socks needs a remote origin loaded fully
through the proxy to inject the synthetic srflx; that path is environment-
sensitive on a datacenter CI box. Keep the hard "zero candidates = blocked =
FAIL" check, but skip (not fail) if the srflx didn't engage — validated locally.
Maximize what's tested on CI: a new e2e job fetches the public firefox-9 binary
and runs all 138 @pytest.mark.e2e via scripts/run_e2e.py under xvfb-run. The
wrapper launches Firefox HEADED on a (virtual) display, which is stable on the
hosted runners — unlike the true-headless drive-gate that flaked. Secret-free
(public binary + local fake-SOCKS for webrtc), so safe in public CI; the proxy
realness gate (fppro) stays local. Trial-running now; will tune if xvfb/timeouts
need it.
firefox-9 is published (build 5/5, drive-gate 5/5, full e2e 137/1-skip, fppro
ALL CRITICAL CLEAN, WebRTC real, sha256-verified download path). Point the
wrapper at it.
Guard: ensure_binary() now refuses any version in BROKEN_VERSIONS (={firefox-8})
with a clear error instead of handing over an undrivable binary — a cached
firefox-8 from before this bump would otherwise keep being used silently. Tests:
the current BINARY_VERSION can never be in BROKEN_VERSIONS; firefox-8 stays
flagged; ensure_binary("firefox-8") raises.
B6: pin every third-party action in the build/publish path to an immutable
commit SHA (a retagged actions/checkout or action-gh-release would otherwise
inject code into the binary users download). The other workflows (tests, webrtc,
launch-matrix) handle no secrets, so they're left on tags.
B4: the playwright pin lived in two workflow files with no shared source. Move
it to scripts/playwright_pin.txt that both read, so they can't drift. The drive
gate already ENFORCES playwright<->juggler compatibility (an incompatible pin
fails the launch/drive and nothing publishes); the file is the single bump point
when the juggler is re-synced.
The 138 @pytest.mark.e2e tests were doubly inactive: deselected by addopts AND
skipped without a cached binary — and 3 of the 6 per-file firefox_binary
fixtures silently ignored INVPW_BINARY_PATH, so they'd test whatever was cached
even when you pointed the suite elsewhere (a false-confidence trap).
- Centralize firefox_binary into conftest.py (env INVPW_BINARY_PATH → cache →
skip); delete the 6 duplicates. Unify test_webrtc_realness onto the same env.
- scripts/run_e2e.py: one command that runs ALL e2e against a chosen binary,
with reruns so an under-load interaction flake (dblclick/hover pass 3/3 in
isolation) self-heals while a real break fails every attempt. The webrtc e2e
fake a TCP-only SOCKS locally, so the suite is offline. This is the MANDATORY
pre-release browser gate (local — hosted runners are too interaction-flaky).
- Running the suite against firefox-9 surfaced a real gap: `invisible_playwright
fetch --force` was unrecognized (the subparser took no args) though the e2e
test + docstring expect it. Implement it: drop the cached version dir, refetch.
- Add pytest-rerunfailures + playwright to the dev extras.
Baseline against firefox-9: 136 passed, 1 skipped (linux_only on win host),
1 was the --force gap now fixed.
The free hosted runners (windows-latest worst) are content-process unstable
under a heavy headless interaction sequence: clicks/moves cascade into
context-destroyed / selector-timeout / eval-CSP, even across 3 retries, even on
linux-arm64. That's an environment limit, not a binary defect (the binaries
drive 20/20 locally and the stable legs pass).
So: SMOKE (launch + http page + UA + webdriver + DOM read) runs on all 5 legs —
the firefox-8/juggler catcher, robust everywhere. FULL (+ mouse/keyboard/canvas/
navsurface, the firefox-2 class) runs only on linux-x86_64; the interaction code
is platform-identical JS (omni.ja), so one reliable full run covers every
platform, and win interaction stays covered by local pre-release testing.
windows-latest headless kept flaking on special-scheme pages: data: URLs get
re-normalized (re-nav), about:blank + redundant goto destroys the context, and
both can carry a CSP that blocks eval(). Serve the test page over a real
http://127.0.0.1 instead — none of those quirks, and it adds real-navigation
coverage (await a response). Evaluates stay arrow-functions (no eval), listeners
are inline-script (no on* attrs), and transient context-destroyed/detached/timeout
gets up to 2 retries. A genuinely broken binary fails all 3 attempts.
windows-latest failed both attempts with "Page.evaluate: call to eval() blocked
by CSP". Bare-string evaluates (page.evaluate("navigator.userAgent")) make
Playwright fall back to eval(), which a page CSP blocks. Pass arrow functions
instead (called via callFunction, never eval'd), and wire the click listener
with addEventListener instead of an inline onclick (also CSP-sensitive). Both
are Playwright best practice and platform-agnostic.
linux+macOS drive went green but windows-latest kept throwing "execution
context destroyed by navigation" at a wandering evaluate (passed 20/20 win-local,
no browser crash logged). Root cause: the unencoded data: URL gets re-normalized
(re-navigated to its percent-encoded form) by Firefox; the slower win runner
races that re-nav against the evaluates. about:blank is canonical and never
re-navigates, so the DOM is now built there via innerHTML. Also add one logged
retry on transient context-destroyed/detached (a broken binary fails both).
Re-running the enriched gate on the real binaries exposed a ~1-in-5 flake: the
iframe probe (nested data: / srcdoc) re-navigates, so Juggler's frame id changes
mid-check ("execution context destroyed" / "Frame was detached"). set_content
isn't an option either — this build rejects its document.write ("operation is
insecure").
Drop the iframe from the gate: a same-origin srcdoc iframe is a weak proxy for
the cross-origin issue #20 anyway. The page is now a plain subframe-free
goto(data:), and the mouse/keyboard/canvas-determinism/navigator-surface checks
(the firefox-2 class + stealth smoke) stay. 20/20 clean locally. The faithful
#20 sentinel (tests/test_cross_origin_iframe.py, two localhost origins) should
be wired as its own e2e gate job.
An adversarial audit of the pipeline found the drive gate only did goto+evaluate,
so several historically-shipped breakages would still pass it green:
- firefox-2 (jugglerSendMouseEvent missing) — no mouse/keyboard was tested
- issue #20 (cross-origin iframe content_frame() None) — no iframe was tested
- canvas non-determinism (stealth seed) and headless navigator tells
ci_drive_gate.py now clicks a button, moves the mouse, types into an input,
reaches into an iframe, checks an identical canvas draw is byte-stable, and
checks navigator.languages/plugins — all offline (data: URLs), GPU-free, no
proxy. Validated against the real build.
Pipeline hardening from the same audit:
- Windows: stop swallowing `mach package` failure and never fall back to the
dev tree dist/bin (that masked the firefox-7/8 packaging bugs)
- macOS: plutil -lint Info.plist + required-key checks (a malformed plist ships
fine through a headless drive but Finder calls the .app "damaged")
- publish: assert all 5 archives present + fail_on_unmatched_files (no silent
partial release if a build leg drops out)
gh release download 404s ("release not found") on a draft tag when the token
is contents:read — GitHub only shows drafts to tokens with push access. The
workflow still only reads assets; the scope bump is purely for draft visibility.
The old gate ran firefox --headless --screenshot, which renders fine even
when the juggler automation layer is missing from the package — so a binary
Playwright can't actually drive (firefox-8) passed and shipped broken.
Replace it with a real drive gate: a 5-leg matrix that launches each binary
over the juggler pipe on its native runner, loads a page, and round-trips JS
(also asserts navigator.webdriver stays hidden). Headless and no screenshot,
so it stays GPU-free on the hosted runners and needs no proxy or secrets.
Same logic is reusable standalone via verify-assets.yml to drive-test an
existing release's assets without a rebuild.
2026-06-09 12:24:06 +02:00
904 changed files with 283827 additions and 16677 deletions
Use this when something detects the browser (Fingerprint Pro, CreepJS, BotD, reCAPTCHA, Cloudflare, sannysoft, etc).
Use this when something detects the browser (Fingerprint Pro, CreepJS, BotD, reCAPTCHA, sannysoft, etc).
Bugs in operations (clicks, navigation) go to the site/action template.
Browser failing to start goes to the launch failure template.
@@ -14,10 +14,20 @@ body:
id:version
attributes:
label:Version
description:Output of `python -m invisible_playwright version`.
placeholder:0.1.7(binary firefox-7)
validations:
required:true
- type:input
id:firefox_rev
attributes:
label:Firefox revision
description:The `firefox-N` tag the binary was built from (shown in the version output above).
placeholder:firefox-7
validations:
required:true
- type:dropdown
id:os
attributes:
@@ -59,22 +69,7 @@ body:
attributes:
label:Detector name and URL
description:Exact site / service / product that flagged us.
placeholder:Fingerprint Pro — https://demo.fingerprint.com/playground
validations:
required:true
- type:textarea
id:scores
attributes:
label:Detector verdict
description:Paste the relevant flags / scores verbatim. For Fingerprint Pro paste `bot`, `vpn`, `virtual_machine`, `tampering*`, `vm_ml_score`, `suspect_score`. For CreepJS the headless / lies / trust scores. For reCAPTCHA v3 the score number.
render:text
placeholder:|
bot: bad
vpn: true
virtual_machine: true
vm_ml_score: 0.74
suspect_score: 22
placeholder:Fingerprint Pro - https://demo.fingerprint.com/playground
validations:
required:true
@@ -82,15 +77,15 @@ body:
id:screenshot
attributes:
label:Screenshot of the detector result
description:Drag-drop a screenshot of the detector page so we see what you see.
description:Screenshot of the detector result.
validations:
required:true
- type:textarea
id:snippet
attributes:
label:How you launched
description:The InvisiblePlaywright launch + navigation that produced the result above. Redact creds.
label:Reproduction script
description:Runnable. Redact creds.
render:python
value:|
from invisible_playwright import InvisiblePlaywright
# add any extra steps needed to reach the flagged result
validations:
required:true
@@ -106,7 +102,7 @@ body:
id:expected
attributes:
label:What you expected
description:Most detectors will never give a perfect score for any browser. Tell us what threshold you'd accept (e.g. bot=not_detected, vm_ml_score < 0.3).
description:For Fingerprint Pro paste the JSON from /api/event/v4/ if you have it. For CreepJS paste the full Smart Signals block. Optional but speeds things up a lot.
description:"FP Pro: JSON from /api/event/v4/. CreepJS: Smart Signals block. Optional."
about:Source-level patches in the Firefox fork go in the invisible_firefox repo. Detection results (FpJS, CreepJS, etc.) use the stealth detection template here.
description:"How many runs at most (at 12% it takes ~18 for a 90% chance)"
required:false
default:"18"
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:
hunt:
name:hunt (${{ inputs.os }})
runs-on:${{ inputs.os }}
# 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.
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 \
-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
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."
# JUGGLER GATE: the .app's omni.ja must carry juggler (else Playwright can't drive it)
python3 -c "import zipfile,sys,glob; jas=glob.glob('$APP/Contents/Resources/omni.ja')+glob.glob('$APP/Contents/Resources/browser/omni.ja'); sys.exit(0 if jas and any(any('juggler' in n.lower() for n in zipfile.ZipFile(j).namelist()) for j in jas) else 1)" \
@@ -4,21 +4,21 @@ 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).
- **Security issue?** Do **not** open a public issue — see [SECURITY.md](SECURITY.md).
- **The C++ patches** live in the companion repo [feder-cr/invisible_firefox](https://github.com/feder-cr/invisible_firefox) (branch `stealth/150`). Bugs in fingerprint spoofing usually belong there.
- **Bug or idea?** Open an [issue](https://github.com/feder-cr/invisible_playwright/issues/new/choose).
- **Security issue?** Do **not** open a public issue - see [SECURITY.md](SECURITY.md).
- **The C++ patches** live in the companion repo [feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch) (branch `stealth/151`). Bugs in fingerprint spoofing usually belong there.
## 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
Out of scope (belongs in `invisible_firefox`):
The fingerprint, the engine download and the browser protocol client are shared by every wrapper and live in [invisible_core](https://github.com/feder-cr/invisible_core).
Out of scope (belongs in `firefox_antidetect_patch`):
- Changes to the Firefox C++ source
- New preferences exposed by the patched binary
@@ -26,21 +26,24 @@ Out of scope (belongs in `invisible_firefox`):
## Development setup
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/).
@@ -63,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/feder-cr/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/invisible_firefox` 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 `feder-cr/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`
<img alt="invisible_playwright, Playwright on an anti-detect Firefox. An animation: the two-line switch from Playwright, the fingerprint set inside the engine, a mouse that moves like a hand, and the bot tests it passes." src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-light.gif" width="100%">
</picture>
<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>
**1. Is this a real browser?** Yes. It is Firefox, patched at the C++ source level.
- 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.
## Why it's powerful
**2. Is a real person using it?** Yes. The actions are humanized in the driver.
**Most other anti-detect browsers patch Chromium at the JavaScript level** - they override `navigator`, `WebGLRenderingContext.getParameter`, canvas APIs, and so on via injected scripts. This has two fatal problems:
1.**JS patches are detectable.** Anti-bots enumerate native function `.toString()`, check descriptor configurability, compare property enumeration order, watch for prototype mutations. Every patch leaves a fingerprint of its own. CreepJS has an entire battery of "lies detectors" built around this.
2.**Chromium itself is now suspect.** Residential-proxy bot traffic is overwhelmingly Chromium-based, so detectors weight anything Chromium-shaped as risky by default. Chromium-based forks inherit Chrome's open-source layers (BoringSSL, Blink, V8, ANGLE) cleanly, but they still cannot fully match Chrome in practice: Chrome ships closed-source components on top (Widevine, proprietary codecs, Google Update / Safe Browsing endpoints) that flip detectable JS feature flags and network signals, and forks lag Chrome's release cadence by days to weeks, leaving telltale version-specific behaviours that detectors lock onto.
**invisible_playwright patches Firefox at the C++ level.** The spoofed values come back out through the normal Gecko paths - there is no JS shim, no override, no `Object.defineProperty`. **From the page's point of view, the browser is just telling the truth.** Anti-bot lie-detectors have nothing to latch onto.
invisible_playwright spoofs **all the layers that matter, together, coherently**: Navigator, screen, GPU/WebGL, Canvas, fonts, audio, WebRTC, timezone, DevTools detection, SOCKS5 auth, and the rest. See [feder-cr/invisible_firefox](https://github.com/feder-cr/invisible_firefox) for the full per-layer breakdown of which C++ files are patched and why.
Everything is driven by preferences - no hardcoded values in the binary. You change one pref, you change the spoofed value.
---
## How it compares
**CloakBrowser** ships a similar pitch for Chromium, but its binary is **closed source** (the source-level patches are not published, you only get the compiled output), and it still hits the Chromium reCAPTCHA ceiling. The commercial anti-detect browsers (**Multilogin**, **GoLogin**, AdsPower, Dolphin, Kameleo) are paid SaaS that overlay JS-layer spoofing on a patched Chromium. Managed profiles are nice but raw detection bypass sits below both Camoufox and us.
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:
Every session gets a unique, coherent fingerprint drawn from real-world Firefox telemetry (GPU / audio / fonts / ~400 other fields) and Bezier-curve mouse motion baked into the browser itself.
Every session gets a distinct fingerprint (GPU, audio, fonts, screen, ~200 fields) and Bezier-curve mouse motion.
**Sync**
```python
@@ -98,19 +95,7 @@ async with InvisiblePlaywright(proxy={"server": "socks5://...", "username": "u",
The `browser` object is a `playwright.sync_api.Browser` / `playwright.async_api.Browser` - every Playwright method works as-is.
---
### Random fingerprint per session
```python
frominvisible_playwrightimportInvisiblePlaywright
withInvisiblePlaywright()asbrowser:
page=browser.new_page()
page.goto("https://creepjs-api.web.app")
```
Every call samples a new coherent profile. Log the seed to reproduce interesting runs:
Log the seed to replay a run:
```python
sf=InvisiblePlaywright()
@@ -138,7 +123,7 @@ with InvisiblePlaywright(proxy=proxy) as browser:
...
```
Schemes supported: `socks5`, `socks4`, `http`, `https`. Auth works on all of them (SOCKS5 via patched `nsProtocolProxyService.cpp`, HTTP/HTTPS via Playwright). DNS is routed through the proxy by default, no local leak.
Schemes supported: `socks5`, `socks4`, `http`, `https`. DNS is routed through the proxy by default, no local leak.
### Timezone
@@ -150,7 +135,7 @@ The browser timezone follows `timezone=`:
withInvisiblePlaywright(proxy=proxy)asbrowser:
...
# explicit IANA zone always wins — the only way to force a specific zone
# explicit IANA zone always wins, the only way to force a specific zone
[Imperva](docs/imperva-incapsula-explained.md), and
[the rest of the set](docs/guides-detectors-explained.md).
## Related projects
invisible_playwright takes a different angle than the major Firefox-hardening projects but stands on their shoulders:
**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)** - the canonical Firefox configuration for privacy/security hardening via prefs. Reading arkenfox is how you understand which `user.js` knobs matter; invisible_playwright goes further by patching the C++ source where prefs alone are insufficient (Canvas noise, WebGL parameter overrides, font whitelisting, WebRTC IP swap, DevTools detection bypass).
- **[LibreWolf](https://librewolf.net)** - a Firefox fork bundled with sensible privacy defaults. Same audience, different distribution model: LibreWolf ships a configured Firefox binary, invisible_playwright ships source patches + a wrapper for automation.
- **[Camoufox](https://github.com/daijro/camoufox)** - the most well-known open-source anti-detect Firefox project. We share design goals on the fingerprint-spoofing side; the implementation approach differs (Camoufox patches a wider surface and ships its own fingerprint database, while invisible_playwright sticks closer to vanilla and drives spoofing from a Bayesian sampler).
- **[invisible_core](https://github.com/feder-cr/invisible_core)** - seed to
fingerprint to preferences, plus proxy and geolocation. This package pins it.
- **[AIHawk](https://github.com/feder-cr/AIHawk)** - this engine as an MCP
server (`uvx aihawk`, 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**
- **[Camoufox](https://github.com/daijro/camoufox)** - patches C++ too, wider surface, ships a fingerprint database instead of deriving one from a seed. [Comparison](docs/vs-camoufox.md).
- **[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
-`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**
- WebRTC offers one synthetic candidate carrying the proxy exit, instead of leaking the real address or offering none, which is itself a tell: [WebRTC ICE candidate spoofing](docs/webrtc-ice-candidate-spoofing.md), [does the WebRTC IP match the proxy exit](docs/webrtc-ip-match-proxy-exit.md).
- 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](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/invisible_firefox](https://github.com/feder-cr/invisible_firefox).
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).
---
## Disclaimer
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>
This is an educational project. It is provided as-is, with no warranties. The maintainers take no responsibility for how it is used. Use it at your own risk and in compliance with the laws of your jurisdiction.
## Supported versions
Only the latest release on `main` receives security fixes.
Only the latest release on `main` receives fixes.
| Version | Supported |
|---------|-----------|
@@ -11,44 +15,33 @@ Only the latest release on `main` receives security fixes.
## Reporting a vulnerability
**Please do not report security issues via public GitHub issues, discussions, or pull requests.**
Do not report security issues via public GitHub issues, discussions, or pull requests.
Use one of the following private channels:
Send a report to `federico.elia.majo@gmail.com` with subject prefix `[security][invisible_playwright]`.
1.**GitHub Private Vulnerability Reporting** (preferred): open an advisory at https://github.com/feder-cr/invisible_playwright/security/advisories/new
2.**Email**: `federico.elia.majo@gmail.com` with subject prefix `[security][invisible_playwright]`
Include:
Please include:
-A clear description of the issue and impact
-Steps to reproduce (minimal repro preferred)
- The version of `invisible_playwright` and OS where it was observed
- Whether you have a suggested fix
## What to expect
- Acknowledgement of your report within **7 days**
- An initial assessment and tracking issue (private) within **14 days**
- Coordinated disclosure: a fix and public advisory are released together; reporters are credited unless they prefer to remain anonymous
- What the issue is and what it affects
- Steps to reproduce
-Version of `invisible_playwright` and OS
-Fix suggestion if you have one
## Scope
In scope:
- The Python wrapper`invisible_playwright` (this repo)
- The binary download/verification flow (SHA256 pinning, fetch endpoints)
- The Python wrapper (this repo)
- The binary download and verification flow
- The CLI
Out of scope here (report to the relevant project):
Out of scope:
- Vulnerabilities in the patched Firefox C++ source — open a private report at [feder-cr/invisible_firefox](https://github.com/feder-cr/invisible_firefox/security/advisories/new)
-Vulnerabilities in upstream Firefox / mozilla-central — report to Mozilla per https://www.mozilla.org/security/
-Vulnerabilities in third-party dependencies (`playwright`, `requests`, etc.) — report to those projects directly
- Vulnerabilities in the patched Firefox source - report to [feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch/security/advisories/new)
-Upstream Firefox / mozilla-central - report to Mozilla directly
-Third-party dependencies - report to those projects
## Out of scope
Not security issues:
-Reports that the browser is detected by a specific anti-bot service — open a regular GitHub issue, this is a product-quality concern, not a security one
- Social engineering of maintainers
- Denial of service requiring physical access or local privileged access
Thank you for helping keep the project and its users safe.
-The browser being detected by an anti-bot service - open a regular issue
- Social engineering
- DoS requiring physical or local privileged access
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/feder-cr/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.
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` LAN address. This is a real leak, and
it is *worse* than a stock browser, which hides that address by default.
- A host candidate carrying 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.
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),
`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
frominvisible_playwrightimportInvisiblePlaywright
withInvisiblePlaywright(seed=42)asbrowser:
page=browser.new_page()
page.goto("https://example.com")
report=page.evaluate("""async () => {
const motionFired = [];
window.addEventListener('devicemotion', e => motionFired.push(e), { once: true });
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
frominvisible_playwrightimportInvisiblePlaywright
withInvisiblePlaywright(seed=42)asbrowser:
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
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 AIHawk 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 AIHawk wiki, where the agent-experience content now
lives:
**[Agent retry loops trip rate limits, not fingerprints](https://github.com/feder-cr/AIHawk/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).
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 AIHawk 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 AIHawk wiki, where the agent-experience content now
lives:
**[The timing signal AI agents give off](https://github.com/feder-cr/AIHawk/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
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
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 [Camoufox](https://github.com/daijro/camoufox), a separate open-source project
that also patches Firefox at the C++ level for automation, filed
[an issue](https://github.com/daijro/camoufox/issues/555) reporting that an
Akamai-protected site blocked their Camoufox session with a flat 403 while stock,
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
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/feder-cr/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
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
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 [CreepJS](creepjs-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 [CreepJS](creepjs-explained.md) and [PerimeterX](perimeterx-explained.md), and it says nothing puzzle-specific: it only affects whether the fingerprint half of Arkose's risk read looks honest or contradictory.
The **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 CreepJS decides you are lying](creepjs-explained.md) for the fingerprint-consistency argument this page leans on.
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/feder-cr/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.*
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
frominvisible_playwrightimportInvisiblePlaywright
proxy={
"server":"socks5://gate.example.com:1080",
"username":"user",
"password":"pass",
}
# seed=42 makes the identity reproducible; the proxy is the exit you supply
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
constctx=newOfflineAudioContext(1,44100,44100);
constosc=ctx.createOscillator();
constcomp=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
[CreepJS](https://abrahamjuliot.github.io/creepjs/) 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
newOfflineAudioContext(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
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
frominvisible_playwrightimportInvisiblePlaywright
withInvisiblePlaywright(seed=42)asbrowser:
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:
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
importtime
frominvisible_playwrightimportInvisiblePlaywright
SEED=42
withInvisiblePlaywright(seed=SEED)asbrowser:
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
importimaplib
importemail
importre
importssl
importtime
defextract_text(msg):
# the plain-text part of a possibly multipart message
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.
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
importpyotp
frominvisible_playwrightimportInvisiblePlaywright
SEED=42
TOTP_SECRET="JBSWY3DPEHPK3PXP"# the same secret your authenticator app holds
withInvisiblePlaywright(seed=SEED)asbrowser:
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
importpyotp
# 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.
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_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 [CreepJS](creepjs-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/feder-cr/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.*
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,
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 CreepJS 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
,
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.
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
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
frominvisible_playwrightimportInvisiblePlaywright
# 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.
withInvisiblePlaywright(seed=42)asbrowser:
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
frominvisible_playwrightimportInvisiblePlaywright
PROBE="""
() => {
// 1. any global that a normal browser would not have?
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
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/`).
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
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
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/feder-cr/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/feder-cr/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
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
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/feder-cr/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.*
title: "Browser trust scores explained: what the number means"
description: "CreepJS trust, FingerprintJS confidence and reCAPTCHA v3 score measure different things: what each trust score means and why one green does not imply the rest."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 8
---
# Browser trust scores explained: what the number means
CreepJS trust, FingerprintJS 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: CreepJS trust asks whether your
values contradict each other, a FingerprintJS visitor ID asks whether you are the same
visitor as last time, and a reCAPTCHA v3 score asks how risky your behaviour and history
look. Line them up and the confusion evaporates:
- **CreepJS trust** is a consistency and lie count. It is high when nothing you report
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 |
|---|---|---|---|
| CreepJS trust | Do my reported values contradict each other? | Descriptors, prototypes, stack traces, canvas and font surfaces | A patched or blocked probe, or two fields that disagree |
| FingerprintJS visitor ID (+ confidence) | Am I the same visitor as before? | A hash of the browser's components, in a fixed order | Any one component changing changes the whole ID |
| reCAPTCHA v3 score | How risky do my behaviour and history look? | Interaction, cookies, storage and exit reputation, not the DOM | A warmed-up profile and realistic behaviour, not a cleaner fingerprint |
Different inputs, different outputs, different failure modes. The rest of this page is
one section per number, then why they do not move together.
## CreepJS trust: a lie count, not a rarity score
[CreepJS records a blocked probe as a lie](creepjs-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 CreepJS trust and low on reCAPTCHA v3, because a perfectly
consistent browser with no history is exactly what a consistent bot also looks like.
- You can have a stable, high-confidence FingerprintJS ID and still fail CreepJS,
because a stable ID only means your components did not move, not that they are
telling the truth.
- You can pass reCAPTCHA v3 on a warmed profile and fail CreepJS, because behavioural
reputation says nothing about whether a descriptor was patched.
They cross-cut. Each of the [five detector deep-dives in this set](how-to-test-bot-detection.md)
measures a different axis, and a green on one axis is not a green on the others. The
practical rule is to name which number you are looking at before you react to it,
because the fix for a low CreepJS trust (consistency) is not the fix for a low
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:
- CreepJS 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 CreepJS 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 CreepJS-style consistency axis and the
FingerprintJS linkability axis controllable and repeatable. It does not warm up a
profile, and the reCAPTCHA v3 number will still start low on a session with no past no
matter how clean the fingerprint is.
## Conclusion
Three numbers, three axes. CreepJS trust counts contradictions and lies, a
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 CreepJS trust score the same as a reCAPTCHA score?** No. CreepJS 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 CreepJS but still get a low reCAPTCHA score, why?** Because reCAPTCHA v3 is
mostly reading history and behaviour, and a fresh profile has neither. A clean
fingerprint does not supply a past, and past is what this score is missing.
**Does a rare fingerprint lower my trust score?** No. CreepJS trust is about
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 CreepJS-style check, a warmed profile and realistic behaviour for a
reCAPTCHA-style score, and decide whether you want the FingerprintJS ID to stay put or
change.
## Sources
- The three detectors named above, each with its own page in this set, read from their
own source rather than from a rendered verdict: [CreepJS](https://github.com/abrahamjuliot/creepjs)
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 CreepJS decides you are lying](creepjs-explained.md) for the
consistency axis, [why a fresh browser scores low on reCAPTCHA v3](recaptcha-v3-score.md)
for the history axis, and [how to test whether your browser is detected](how-to-test-bot-detection.md)
for the compare-against-a-stock-browser method that keeps these numbers honest.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
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
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 AIHawk 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 AIHawk wiki, where the agent-experience content now
lives:
**[browser-use getting blocked: what you can and cannot change](https://github.com/feder-cr/AIHawk/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
title: "BrowserLeaks canvas and WebGL hash, explained"
description: "The BrowserLeaks canvas and WebGL signature is a hash of a pixel readback, not your GPU. What it measures, and why one seed gives a byte-identical hash."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 6
---
# BrowserLeaks canvas and WebGL hash, explained
The BrowserLeaks canvas and WebGL signature is a hash of the pixels a readback call
returns, not a fingerprint of your GPU. It sits at the very end of the render pipeline,
which is why editing a reported renderer string never moves it, and why the only way to
control it is to control the bytes handed back at the readback boundary. Get that boundary
right and one seed produces a byte-identical hash on Windows and Linux alike.
BrowserLeaks shows you a canvas "signature" and a WebGL "signature" and treats each as a
stable identifier for your machine (see [what each BrowserLeaks panel tests](browserleaks-explained.md)
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 BrowserLeaks 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 -
title: "What BrowserLeaks actually tests, surface by surface"
description: "What BrowserLeaks tests, surface by surface: canvas hash, WebGL, WebRTC, fonts, ClientRects. Why a unique panel is not a fail, and the miss it never flags."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 7
---
# What BrowserLeaks actually tests, surface by surface
BrowserLeaks is the tool people reach for when they want to see a number rather than
read a verdict. It prints the raw value of each browser surface - the canvas hash, the
WebGL parameter block, the WebRTC candidate addresses, the installed font list, the
ClientRects geometry - each on its own page.
That design is its strength and the source of most of the panic it causes. It shows you
everything and scores none of it. So the panel that lights up red and says "unique" is
the one everybody worries about, while the thing that actually gets a session flagged -
two panels that quietly contradict each other - is displayed in plain text and never
called out, because BrowserLeaks does not compare its own pages to one another.
This page is what each surface measures, why "unique" is not the alarm it looks like,
and how to read the tool for the failure it will not point at.
## A raw-value inspector, not a scorer
BrowserLeaks reads each browser surface and prints its raw value; it does not judge whether the values are coherent. It shows the canvas hash, the WebGL block, the font list and how rare each is in its sample, but it never cross-checks one surface against another and never hands you a trust score. That is the distinction that makes it useful, and the one people miss.
[CreepJS asks whether you are lying](creepjs-explained.md): it takes a clean copy of the
built-ins, walks descriptors and prototypes, and cross-checks every surface against
every other one, then hands you a single trust score. BrowserLeaks does none of that. It
reads a value, hashes it if it is a bitmap, tells you how rare that exact value is in its
own visitor sample, and moves on to the next page.
That means two things. First, a "unique" result on any single BrowserLeaks page is a
statement about rarity in their sample, not about whether your browser is coherent. A
perfectly real, perfectly consistent machine can be unique. Second, and this is the part
that matters, BrowserLeaks will show you a Windows font list on one page and a WebGL
renderer that no Windows machine ships on another, side by side, both green, and say
nothing - because it has no page that reads both. The contradiction is on screen. The
tool just is not looking for it.
## Five pages, surface by surface
Each page answers one narrow question. Using them as if they were interchangeable is
most of why people get confused.
- **Canvas.** Draws text and shapes to a `<canvas>`, reads the pixels back, and hashes
them. The hash is a fingerprint of how your specific GPU, driver and font stack
rasterize that exact drawing. It is not a property you can set; it is
[a readback of what the machine actually painted](browserleaks-canvas-webgl-hash.md).
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 Camoufox 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,
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
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
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
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
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
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/feder-cr/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.*
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/feder-cr/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.*
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 CreepJS 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
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
 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 `INVPW_BINARY_PATH` 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:
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
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
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.
 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

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;
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 BrowserLeaks reports the canvas and WebGL hash](browserleaks-canvas-webgl-hash.md).
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
a Firefox patched at the C++ level. The solid-fill guard exists because we shipped
title: "Canvas and WebGL fingerprints, identical across OSes"
description: "Canvas and WebGL fingerprints identical across Windows and Linux: intercept readback, not the render, so one seed produces a byte-identical hash on every OS."
parent: "Canvas, WebGL, Fonts and Audio"
grand_parent: "Guides"
nav_order: 9
---
# Canvas and WebGL fingerprints, identical across OSes
A GPU-backed render surface can't be read from or written to directly and safely, so
the fix intercepts the one place JavaScript can actually see the result instead - the
same seed then produces a byte-identical canvas and WebGL hash on Windows and Linux.
[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 |
## The proof: byte-identical hashes, not just "looks similar"
Rendered the same seed's canvas (text plus a gradient) and WebGL scene (a
high-entropy draw) on Windows and on Linux, hashed both in-page. The hashes matched
byte for byte on both platforms. Run against a commercial fingerprint scanner across
multiple seeds, zero failures on either OS.
That is a stronger claim than "produces a plausible fingerprint." It's the same
identity, provably, regardless of which OS is actually running underneath - which is
what makes a seed a real, portable identity instead of a value that happens to look
right on the machine it was tested on.
## What 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 bytes on Windows and on Linux, because nothing about either host's actual
rendering pipeline reaches the output.
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 identical across operating systems?** Yes,
if the interception happens at every point content can read the result rather
than at the render itself, which is the part that can't be touched directly on a
GPU-backed surface.
**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.
title: "The ChromeDriver `cdc_` variable, and why renaming it fails"
description: "The cdc_ variable ChromeDriver leaves on the page is a one-line Selenium test. Renaming it in the binary raises the bar but does not remove the tell."
parent: "The Automation Layer"
grand_parent: "Guides"
nav_order: 2
---
# The ChromeDriver `cdc_` variable, and why renaming it fails
**The `cdc_` variable is a property that ChromeDriver injects into every page it
controls, and its presence is a one-line test for Selenium automation. Renaming the
string in the binary hides it from a check that greps for the exact prefix, but not
from one that looks for the pattern, because the properties are still on the page.**
If you have automated Chrome with Selenium and been detected, you have probably met
this variable. This is what it is, why renaming it in the binary does not remove it,
retrieved 2026-08-28, for the driver-to-browser relationship ChromeDriver implements.
- The [WebDriver specification](https://www.w3.org/TR/webdriver2/), retrieved 2026-08-28,
which requires a conforming browser to set `navigator.webdriver` to `true` under
automation control.
- This project's own sessions, enumerating every own property on `window` in a live
Playwright-driven Chromium session, for the claim that Playwright has no comparable
`cdc_`-style global.
**See also:** [why setting `navigator.webdriver` to false is worse than leaving it alone](navigator-webdriver-explained.md), [the three levels a stealth tool can work at](playwright-stealth-levels.md), since where the state lives is a level-two decision, and [selenium-stealth's actual maintenance status](selenium-stealth-unmaintained.md), for the popular package that patches properties next to this one.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
a Firefox patched at the C++ level. Firefox-based, so `cdc_` was never our problem,
title: "How to check a proxy's status before you rely on it"
description: "Liveness, exit location, latency and browser behaviour are four checks, not one. The order to run them, and what none of them can tell you about a site."
parent: "Network, Proxy and WebRTC"
grand_parent: "Guides"
nav_order: 40
---
# How to check a proxy's status before you rely on it
"Is my proxy working" is actually four separate questions, and treating it as
one is how people spend an hour debugging a browser fingerprint when the
proxy was down the whole time, or blame a working proxy for a site's own
block.
## The four checks, in the order to run them
**1. Is it alive at all?** Before touching a browser: `curl` through it and see
`socks5h` (not `socks5`) resolves DNS through the proxy rather than locally,
which matters for the leak question below. An HTTP proxy uses
`curl -x http://user:pass@host:port ...` instead. If this hangs or errors, stop
here - nothing downstream will work and no browser-level fix changes it.
**2. Where does it say it is exiting from?** The `ifconfig.me` response gives
you the exit IP. Check it against a geolocation lookup and against what you
expected to pay for. A proxy sold as "US residential" that resolves to a
datacenter ASN in a different country is not doing what you bought it for,
and this is worth catching before you spend time on anything else.
**3. Is it fast enough for what you are doing?** `curl -x ... -w "%{time_total}\n" -o /dev/null -s https://example.com`
gives you a round-trip number. A proxy that is technically alive but takes
eight seconds per request will make an automated flow look nothing like a
human's browsing rhythm, independent of any fingerprint concern.
**4. Does it hold up through an actual browser session, not just curl?** This
is the check people skip, and it is where a proxy that passes checks 1-3 can
still fail in practice. `curl` and a browser are different clients: a browser
opens more connections, resolves DNS differently depending on configuration,
and can leak the real address through WebRTC regardless of what the HTTP
proxy is doing correctly.
[How to check if a proxy leaks your real IP](how-to-check-proxy-ip-leak.md)
is the browser-level version of this check, and it is not optional if the
proxy's whole purpose is to hide the real address - a proxy that passes
`curl` but leaks over WebRTC has not actually done its job.
## What "proxy status" checks cannot tell you
None of the four checks above say anything about whether a *site* will let
you through. A perfectly healthy, correctly-exiting, fast proxy still gets
challenged if the browser behind it reports as automated, or if the exit
address has been used by enough other traffic to earn a bad reputation on
that specific site's own reputation database. Conflating "my proxy is up" with
"the site accepts my proxy's traffic" is a different confusion in the other
direction from the one above, and it sends people rotating proxies to fix a
browser-fingerprint problem.
## A quick reference for interpreting results
| Symptom | Likely cause | Where to look |
|---|---|---|
| curl through the proxy hangs or errors | Proxy is down or credentials are wrong | Check 1 |
| curl works, exit IP is wrong country/ASN | Wrong proxy config or provider issue | Check 2 |
| curl works, browser session times out | Browser-specific connection handling, or WebRTC leaking real address and site rejecting the mismatch | Check 4 |
| Everything above passes, site still blocks | Fingerprint, rate, or behavioural detection - not the proxy | See below |
If you have run all four checks and the proxy is confirmed healthy and
non-leaking, and you are still being challenged, the proxy has done its job
and the remaining problem is elsewhere.
[Why does my Playwright script get blocked?](why-does-my-playwright-script-get-blocked.md)
is the next page to read, and it starts from exactly this point: address
confirmed fine, now what.
## Short answers to the questions that lead here
**How do I know if my proxy is working?** Run `curl` through it against an IP
echo service before touching a browser. If that fails, nothing above it will
work either.
**Why does my proxy work in curl but not in my browser?** Different clients
handle DNS and WebRTC differently. A working `curl` test does not rule out a
WebRTC leak or a browser-specific connection issue.
**How often should I check a proxy's status?** Before every automated session
that depends on it mattering, if the proxy is shared or rotating - a proxy
that worked an hour ago can have changed reputation or gone down since.
**Does a slow proxy get detected more?** Indirectly: unusually slow, uniform
latency is itself a signal in aggregate behavioural analysis, separate from
whatever the proxy's address reputation is.
**Is a datacenter proxy always worse than residential?** Not universally - it
depends entirely on whether the specific site treats datacenter ranges
differently, which varies by site.
**See also:**
[How to check if a proxy leaks your real IP](how-to-check-proxy-ip-leak.md),
[Setting a proxy per Playwright context](set-geolocation-permissions-per-playwright-context.md),
and [WebRTC leak with a proxy](webrtc-leak-proxy.md).
## Sources
- [Playwright's documented proxy configuration](https://playwright.dev/python/docs/network#http-proxy), retrieved 2026-09-10, for how proxy credentials and per-context proxies are set.
- This project's own release gates, including the positive-form WebRTC check referenced in check 4, which replaced an earlier negative-only assertion that a fully blocked WebRTC connection could pass by mistake.
---
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
a Firefox patched at the C++ level driven by stock Playwright. The table above
exists because "the proxy isn't working" and "the site is blocking me" get
treated as the same sentence far more often than they are the same problem.*
title: "Chromium is not Chrome, and detectors know the difference"
description: "Chrome for Testing, Playwright's default since 1.57, plays H.264 but still fails the Widevine DRM check - a compiled-in gap that no JavaScript patch can close."
parent: "Comparisons"
nav_order: 3
---
# Chromium is not Chrome, and detectors know the difference
**Short answer:** no, they are not the same, and the gap moved in 2026 instead of closing.
Playwright's default Chromium - Chrome for Testing since v1.57 - now plays the same
H.264/AAC codecs as real Chrome, checked directly in a live session. It still fails
Chrome's [Widevine DRM check](https://developer.mozilla.org/en-US/docs/Web/API/Encrypted_Media_Extensions_API), and that part cannot be patched from JavaScript because it is
a compiled-in capability, not a value a page reads off a string.
Every stealth guide for Chromium-based automation quietly assumes "Chromium" and "Chrome"
mean the same thing, or that the gap between them is fixed and permanent. Neither is true.
The gap is real, it moved in 2026, and one part of it is still a **compiled-in capability**
that a page can test for directly and that no amount of JavaScript patching can produce.
This page is what Playwright actually ships today, what changed and what didn't, why the
part that remains cannot be patched, why spoofing the user agent makes it worse, not
better, and why Firefox has no equivalent gap.
## What Playwright ships today, checked directly, not assumed
Playwright's own browser documentation used to be the whole answer: the default managed
Chromium was an open-source build, missing the proprietary parts Google adds on top. As of
[Playwright 1.57](https://playwright.dev/docs/release-notes), that changed. The default managed binary - launched with no `channel` set
at all - is now **Chrome for Testing**, Google's own dedicated distribution for automated
testing, pinned to the Playwright version instead of auto-updating.
Chrome for Testing is not the stripped-down build the old default was. It ships the same
proprietary codec support as the Chrome a real visitor runs. Checked directly, in a live
Playwright session with no `channel` argument and no stealth layer applied: H.264 and AAC
both play. The codec half of this page's original argument no longer holds for a current,
default Playwright launch - it holds for whatever version you're actually pinned to, and it
is worth checking your own rather than assuming either answer.
## The Widevine gap that survives the switch
Checked in the same session: Widevine still rejects.
// current default Playwright (Chrome for Testing): rejects, NotSupportedError
```
Chrome for Testing carries Chrome's codecs but not its Widevine CDM (Content Decryption
Module) - DRM distribution has its own licensing path separate from the codec libraries,
and Google's dedicated testing distribution does not carry it. That gap is the one worth
building an argument around, because unlike the codec question, it is not a moving target
tied to which Playwright version happens to be pinned - it is a deliberate omission from a
distribution built for automation in the first place.
Here is the part that matters for anyone building or buying a stealth tool:
> **This is not a value. It is a capability.** A missing DRM module is missing machine
> code. You can lie about `navigator.userAgent` because it is a string; you cannot lie
> about whether the build can actually negotiate a Widevine session, because the page can
> ask it to and read the real answer.
This is the same distinction as
[a renderer string against the pixels a rasteriser actually draws](renderer-string-vs-render.md),
and it is the expensive class of problem for the same reason.
[The codec page](codec-fingerprinting.md) covers the wider surface; this is the sharpest
surviving instance of it, even after the part that used to accompany it closed.
## Almost nobody browses with a Widevine-less build
Almost nobody outside development, CI and automation runs a browser without Widevine.
Real people use Chrome, Edge, Brave, Opera, Vivaldi, and every one of those ships Widevine,
because a browser that cannot play protected video from a mainstream streaming service is
not a browser anybody keeps as their daily one. A build that answers "no" to the Widevine
check is a developer artefact, a CI image, or automation - not a real visitor's machine.
So the population of "sessions reporting no Widevine support" is made up overwhelmingly of
developers and automation. That is not a fingerprint value being rare. That is **a cohort
whose membership is almost entirely the thing being looked for.**
And unlike most signals in this subject, it needs no model and no scoring. It is a
capability check with a yes or no answer.
## Spoofing the user agent makes this worse
Setting the user agent to claim Chrome does not close the Widevine gap - it turns a merely
missing capability into a contradiction the page can check directly.
A stealth tool sets the user agent to claim Google Chrome. On a current, default Playwright
launch the codec set now agrees with that claim - that particular contradiction closed along
with the codec gap. The Widevine one didn't. Now the page has:
- a user agent saying **Chrome**,
- a Widevine check saying **no such CDM**,
- and in Chromium, `Sec-CH-UA` brands that
[have their own copy of the same claim](client-hints-sec-fetch.md), agreeing with the
user agent while the DRM check contradicts both.
Before the spoof, the browser was merely missing a capability real visitors have. After it,
the browser is lying about being able to do something it provably cannot, and the lie is
checkable in one line rather than inferred from a rare value. That is
[the same mistake the user agent page is about](playwright-user-agent.md), in its most
concrete remaining form.
## The `channel` escape, and what it costs
Playwright does let you opt into a branded browser:
```python
p.chromium.launch(channel="chrome")
```
That launches the real Chrome installed on the machine, with the real Widevine. It
genuinely closes the remaining gap - the one thing a current default launch, running Chrome
for Testing, still doesn't give you.
The costs are real and worth being explicit about:
- **You do not ship it.** It uses whatever Chrome is installed, at whatever version, so
your fleet is only as consistent as your machine images.
- **It updates underneath you**, on Google's schedule rather than yours.
- **It is not available everywhere**, particularly in slim containers, which is exactly
where automation runs.
- **It is still Chrome with automation attached**, so every other layer of this subject
applies unchanged.
It is the right call when you can take those costs. It is not a solved problem, it is a
traded one.
## Firefox has no equivalent gap
Firefox has no capability gap like Widevine to exploit, because it has no proprietary-versus-open
split of this kind in the first place - which is the structural reason this belongs in a
comparison rather than a list of tips.
There is no "Firefox" and
"Firefox-without-the-codecs" pair where one is what people run and the other is what
automation runs. The build Mozilla ships and a build compiled from the same source with
the release configuration have the same feature set.
So a patched Firefox is **Firefox**, in the ways a capability check can test. A patched
Chromium is **Chromium claiming to be Chrome**, and the claim is contradicted by things
that are not strings.
That is not an argument that Firefox wins overall.
[The argument against Firefox is its share of real traffic](firefox-vs-chromium-antidetect.md),
and it is serious. But on this specific axis the two engines are not in comparable
positions, and most comparisons never mention it.
## Codec and DRM support, by build
| Build | H.264 / AAC playback | Widevine DRM | What it actually is |
|---|---|---|---|
| Bare open-source Chromium (pre-1.57 default, or an explicit unbranded build) | No | No | Missing the proprietary codec and DRM additions Google adds on top of open-source Chromium |
| Chrome for Testing (Playwright's default since 1.57, no `channel` set) | Yes | No | Google's own automation distribution - Chrome's codecs, not Chrome's DRM licensing |
| Real Chrome, launched via `channel="chrome"` | Yes | Yes | The actual installed browser, with the update and install costs described above |
| Firefox, patched at the C++ level | N/A - no split | N/A - no split | One build, not two: there is no stripped variant that only automation runs |
## How to check your own build for the gap
Run this in whatever browser your automation actually launches:
Then compare against the browser you are claiming to be, on the same machine.
- If the user agent says Chrome and H.264 comes back empty, your build predates the
Chrome for Testing default, or you launched with an explicit bare-Chromium build, and you
have the codec-level version of the contradiction described above.
- If Widevine rejects while the user agent says Chrome, that is the gap that survives even
on a current, default launch.
- If both are consistent with the claim, this particular problem is not yours - but check
which one actually changed before assuming why.
## Conclusion
The most repeated advice in Chromium-based stealth is to make the browser look like
Chrome. As of Playwright 1.57's switch to Chrome for Testing as the default, the browser
got measurably closer to actually being Chrome on the codec axis - that part of the old
advice is less wrong than it used to be. Widevine did not follow, and it remains a
capability rather than a value, which puts it out of reach of every technique that works
on the others.
The choices that actually address the remaining gap are to run real Chrome through a
branded channel and accept that you no longer control the binary, or to use an engine that
does not have the gap in the first place.
What does not address it is a better user agent string, which converts a browser that is
merely missing one capability into one that is provably lying about it.
## Short answers to the questions that lead here
**Does Playwright use Chrome or Chromium?** As of Playwright 1.57, the default managed
binary (no `channel` set) is Chrome for Testing - Google's own dedicated automation
distribution, carrying Chrome's codecs but not its Widevine CDM. Earlier Playwright
versions, or an explicit bare-Chromium build, still lack the codecs too. Branded channels
remain available as an opt-in for the rest.
**How can a website tell an automated Chromium-family browser from real Chrome today?**
Mostly by asking for Widevine DRM support, which the codec-carrying default still lacks.
The codec check that used to work for this closed as of the 1.57 default switch.
**Can I patch Widevine support in?** Not from JavaScript. A missing DRM module is missing
code, not a missing property.
**Is using a Widevine-less build suspicious?** Yes, specifically: almost the only sessions
answering "no" to that one check are developers, CI, and automation.
**Should I spoof the user agent to say Chrome?** No. On a current default launch it no
longer contradicts the codec check, but it still contradicts the Widevine one, and that
contradiction is checkable in one line.
**What about `channel="chrome"`?** It closes the remaining gap and hands you a browser you
do not ship, do not version and cannot always install.
**Does Firefox have the same problem?** No. There is no widely-used stripped Firefox that
automation runs and people do not.
**See also:** [Codec fingerprinting](codec-fingerprinting.md) for the wider surface,
[why you should not set the user agent](playwright-user-agent.md),
[Client Hints and Sec-Fetch](client-hints-sec-fetch.md) for the third copy of the same
claim, and
[Firefox or Chromium for anti-detect](firefox-vs-chromium-antidetect.md) for the argument
in both directions.
## Sources
- [Playwright's release notes](https://playwright.dev/docs/release-notes), on the switch
from custom-compiled open-source Chromium to Chrome for Testing as the default managed
binary.
- Direct capability checks run in a live Playwright session, 2026-07-30: H.264 and AAC
playable, Widevine (`com.widevine.alpha`) rejected with `NotSupportedError`, on the
default managed binary with no `channel` argument set.
- [The Encrypted Media Extensions API](https://developer.mozilla.org/en-US/docs/Web/API/Encrypted_Media_Extensions_API), for the Widevine capability check above.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
a Firefox patched at the C++ level. This is the argument for the engine choice that we
find most convincing, and it is the one most comparisons leave out.*
This is the output to paste into a bug report. Two lines are worth knowing about:
- if the installer's record disagrees with the core that will actually run, a
`STALE RECORD` line appears between them. That is the state pip and `pip check`
both call healthy, because both read the record and neither reads the files.
- `cache` is where the engine trees live. Deleting a directory there is how you
reclaim the space; there is no subcommand for it, on purpose - see below.
## What happened to the other four
The command line used to have six entries: `fetch`, `fetch --force`, `path`,
`version`, `clear-cache`, `doctor`. Each 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 was lost:
| gone | where it went |
|---|---|
| `doctor` | `fetch` does it on every run. It was the thing most worth doing and the thing least likely to be typed, which is the worst combination a subcommand can have. |
| `fetch --force` | unnecessary once every run verifies. A tree is replaced because it does not match the seal, not because a flag was passed. |
| `path` | `fetch` prints it as its last line, and unlike `path` it guarantees the tree is there and correct. |
| `clear-cache` | deliberately not folded in. The cache root belongs to `invisible_core`, not to this package, so pruning "trees no seal points at" would delete an engine this package did not put there. `version` prints the location. |
The `tag` argument went with them. The seal decides which engine a given build
runs, and the engine check refuses anything else, so a tag on the command line
could only ever name something that would then be rejected.
## See also
[Installation](installation.md) for the initial `fetch`, and
[Configuration](configuration.md) for the environment variables that change where
title: "Client Hints and Sec-Fetch: headers that must agree"
description: "Client Hints (Sec-CH-UA) and Sec-Fetch headers come from the browser's own state, so they are cheap to compare and hard to fake. Why Firefox sits differently."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 6
---
# Client Hints and Sec-Fetch: headers that must agree
[Client Hints](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Client_hints) and
Sec-Fetch are two families of request headers the browser generates from
its own internal state, not from the page and not from anything you configure. That makes
them awkward to fake and very cheap to check, which is a combination detectors like.
They also catch a specific mistake: changing the user agent string and nothing else.
This page is what each family carries, the mismatches that get caught, why Firefox and
Chromium are in structurally different positions here, what automation can and cannot
control, and how to check your own.
## Client Hints: one identity in three places
Modern Chromium reports its identity in three places that come from the same internal
title: "Closed shadow roots: what Playwright cannot see"
description: "Stock Playwright finds nothing inside a closed shadow root, in Firefox and Chromium alike. Measured, with the page that reproduces it and what this engine does instead."
parent: "The Automation Layer"
grand_parent: "Guides"
nav_order: 45
---
# Closed shadow roots: what Playwright cannot see
A closed shadow root makes `element.shadowRoot` return `null`, and stock
Playwright locators stop at that boundary: measured on 5 September 2026
against a page with one open and one closed root, stock Firefox and stock
Chromium both matched the open content and returned zero matches for the
closed content. The engine this wiki documents returns one match for the
same closed content, and the page still reads `null`.
For the ordinary case, open shadow roots, Playwright crosses them by itself
and there is nothing to configure: see
[how to scrape shadow DOM content with Playwright](how-to-scrape-shadow-dom-playwright.md).
This page is about the other case, and it starts with a number rather than
an opinion.
## The measurement, and the page that reproduces it
The test page defines two custom elements. One attaches its shadow root with
`mode: "open"`, the other with `mode: "closed"`, and each puts a unique
string inside. Served from `127.0.0.1`, so no network variability, and the
description: "Instead of blocking a crawler that ignores robots.txt, Cloudflare feeds it an endless maze of real, AI-generated but irrelevant pages, wasting its time while quietly confirming it is a bot. Read from Cloudflare's own announcement and current docs."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 35
---
# Cloudflare's AI Labyrinth, Explained
Every other page in this corpus is about a gate: a check that decides whether a request gets through. AI Labyrinth is a different idea entirely. It does not block anything. When Cloudflare's systems flag a crawler that is ignoring the site's stated crawl preferences, instead of returning a 403 or a challenge, they hand that crawler an endless supply of real, readable, AI-generated pages that link to more of the same, and let it keep "succeeding" indefinitely against content that was never the site it thinks it is reading.
Cloudflare announced this on 2025-03-19 as a free, opt-in feature available to every customer, including those on free plans. Read from Cloudflare's own announcement post and its current developer documentation, both retrieved 2026-08-30.
## Why not just block it
Cloudflare's own stated reasoning for building a maze instead of a wall is a deliberate, named tradeoff: "blocking malicious bots can alert the attacker that you are on to them, leading to a shift in approach." A blocked crawler learns something immediately, that this site is defended, and can retool: rotate IPs, change its user agent, slow down, try a different path. A crawler wandering deep into a maze of plausible-looking, internally-linked pages does not get that signal. It keeps crawling, believing it is still succeeding, for as long as it is willing to follow links that go nowhere real.
The scale problem this exists to address is stated plainly too: Cloudflare's own figures describe "AI Crawlers generat[ing] more than 50 billion requests to the Cloudflare network every day," a volume where per-request blocking decisions compete for the same infrastructure the crawlers are hammering in the first place.
## How the maze is actually built
The mechanism, per Cloudflare's own description, uses "Workers AI with an open source model to create unique HTML pages on diverse topics." Two details matter for understanding what this is and is not:
**The content is real, but deliberately unrelated.** Cloudflare states the generated pages cover "scientific facts, just not relevant or proprietary to the site being crawled." It is not garbage text and not misinformation by design, it is genuine, coherent content that has nothing to do with the site a crawler thinks it is scraping, chosen specifically so the maze does not itself become a source of false claims circulating under someone else's domain.
**It is pre-generated, not created live per request.** Cloudflare's post describes "a pre-generation pipeline that sanitizes the content to prevent any XSS vulnerabilities," with pages stored (in Cloudflare's own infrastructure, via R2 object storage), not generated fresh for every hit. That is a performance and safety choice: generating unique HTML live for every crawler request at Cloudflare's traffic volume would be its own cost and attack surface, and pre-screening for injected script content closes an obvious way a maze of AI-generated pages could otherwise be turned against the very sites serving them.
## It is also a honeypot, not just a delay tactic
The links into the maze are placed where, per Cloudflare's own framing, "no human would deliberately explore deep into a maze of AI-generated nonsense." Cloudflare's developer documentation describes these as invisible, `nofollow`-tagged links: they carry no SEO effect and are "only seen by bots," never rendered in a way a real visitor would notice or click. A compliant crawler that honors a site's no-crawl signals never encounters them either, since triggering the maze specifically requires already having decided to ignore those signals.
That makes following one of these links close to unambiguous evidence of automated, non-compliant crawling. Cloudflare states this data feeds directly back into its detection systems: identifying a crawler this way "with high confidence" contributes fingerprinting signal that improves the machine-learning models Cloudflare uses for bot identification more broadly, shared, per Cloudflare's own materials, across the customer base that opts into blocking AI bots. A single crawler's decision to wander into the maze on one site can sharpen detection everywhere Cloudflare's bot-management systems run.
## Enabling it, and what changed since launch
Cloudflare's current documentation describes activation as a single dashboard toggle: navigate to Security settings, filter to bot traffic, and switch AI Labyrinth on, with no additional configuration required. It produces, per Cloudflare's own current wording, "no impact [on] your search engine optimization (SEO) or your website's appearance."
AI Labyrinth was one early piece of a larger shift in how Cloudflare treats AI crawler traffic broadly. By mid-2026, Cloudflare had extended its crawler-management framing into three explicit categories, Search crawlers (which index and return referral traffic), Agent crawlers (executing real-time tasks on a user's behalf, the same category [an LLM-driven browser agent falls into](ai-agent-timing-signal.md)), and Training crawlers (scraping to embed content into a model permanently), alongside an extension to the `robots.txt` Content Signals format letting a site express which of the three it welcomes. Cloudflare's own announced default, effective 2026-09-15, blocks "mixed-use" crawlers by default specifically on pages that carry advertising. AI Labyrinth sits underneath that broader policy shift as one enforcement mechanism among several, not a standalone feature frozen at its 2025 launch state.
## What this means for a real, engine-level browser
This is worth being direct about, because it is a genuinely different kind of mechanism from everything else in this corpus: **AI Labyrinth is not a fingerprint check at all.** It does not read canvas output, WebGL parameters, TLS handshakes, or navigator properties. It is triggered by crawling behavior, following invisible links a normal rendering and interaction pattern never reaches, after a site's crawl preferences have already been ignored. There is no honest-engine argument to make here the way there is for [CreepJS](creepjs-explained.md) or [DataDome's device layer](datadome-explained.md), because nothing about being a genuinely real browser engine changes whether a crawling process follows every link it finds on a page, including invisible ones humans never see.
`invisible_playwright` is browser-automation infrastructure, not a crawling framework, and this project makes no claim about how any particular scraping logic built on top of it handles hidden links or robots.txt. What is worth stating plainly: a scraper that respects a site's stated crawl preferences and does not follow invisible, `nofollow`-tagged links in the first place never encounters this mechanism at all. AI Labyrinth is aimed at crawlers that have already chosen not to do that.
## Short answers to the questions that lead here
**What is Cloudflare's AI Labyrinth?** A feature that, instead of blocking a crawler ignoring a site's crawl preferences, serves it an endless sequence of real but irrelevant AI-generated pages linking to more of the same, wasting the crawler's resources rather than alerting it to being detected.
**Why not just block the crawler outright?** Cloudflare's own stated reasoning: blocking tells an attacker they have been noticed, which can prompt them to change tactics. A maze keeps a non-compliant crawler engaged without revealing that it has been identified.
**Is the maze content fake or harmful?** The pages are genuine, coherent AI-generated content (Cloudflare cites scientific-fact topics as an example), deliberately unrelated to the site being protected, and pre-screened for XSS before being served, per Cloudflare's own description.
**Does AI Labyrinth affect real visitors or SEO?** No, per Cloudflare's own documentation. The maze's links are invisible, `nofollow`-tagged, and only reachable by something crawling the raw page structure rather than rendering it the way a human browsing session does.
**Does following a maze link get a crawler blocked immediately?** Cloudflare's own framing treats it primarily as a high-confidence detection signal that feeds its broader bot-identification models, rather than describing an automatic, standalone block triggered by that action alone.
**Is AI Labyrinth still the whole story on Cloudflare's AI crawler policy?** No. By mid-2026 Cloudflare had layered a three-category crawler framework (Search/Agent/Training) and a `robots.txt` Content Signals extension on top of it, with default blocking rules for certain crawler types phasing in through September 2026. AI Labyrinth is one enforcement mechanism inside that larger, evolving policy.
**Does a real, engine-level Firefox change whether AI Labyrinth triggers?** No. This mechanism is not a fingerprint check at all; it responds to crawling behavior (following invisible, non-rendered links after ignoring stated crawl preferences), which is a property of the scraping logic driving the browser, not of the browser engine's realness.
**See also:** [Anubis: the proof-of-work firewall, explained](anubis-proof-of-work-explained.md) for a completely different anti-crawler philosophy built on computational cost rather than deception; [How Cloudflare Turnstile actually works](cloudflare-turnstile-explained.md) for Cloudflare's fingerprint-and-challenge mechanism aimed at human visitors rather than crawlers; and [the AI-agent timing signal](ai-agent-timing-signal.md) for how Cloudflare's own Agent-crawler category overlaps with LLM-driven browser automation.
## Sources
- Cloudflare, [Denying AI Bots (announcement post)](https://blog.cloudflare.com/ai-labyrinth/), retrieved 2026-08-30,
for the launch date, the "blocking... alerts the attacker" reasoning, the Workers AI generation pipeline, the
XSS-sanitization and R2 storage detail, and the honeypot/detection-feedback framing.
retrieved 2026-08-30, for the current activation steps, the invisible/`nofollow` link mechanism, and the
"no impact on SEO" statement.
- 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 crawler categories, the Content Signals `robots.txt`
extension, and the 2026-09-15 default-blocking date for mixed-use crawlers on ad-bearing pages.
- Press coverage of the original launch: [Cloudflare Unveils AI Labyrinth: A New Approach to Exhaust AI Crawlers](https://cybersecuritynews.com/cloudflare-unveils-ai-labyrinth-a-new-approach-to-exhaust-ai-crawlers/),
retrieved 2026-08-30, cross-checked against Cloudflare's own post for the 2025-03-19 announcement date and
free/opt-in availability.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright), a Firefox
patched at the C++ level. This mechanism has nothing to do with browser fingerprinting, so this page has
nothing to claim about engine realness one way or the other, honestly: a scraper that respects a site's
crawl preferences and does not chase invisible links never triggers it in the first place.*
description: "Cloudflare Bot Management is the always-on scoring engine behind Cloudflare's edge, not the Turnstile widget: a 1-99 bot score from JA3/JA4, HTTP fingerprinting, ML and behavior, computed on nearly every request. Read from Cloudflare's own docs."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 44
---
# Cloudflare Bot Management, Explained
Cloudflare Bot Management is not a widget anyone sees. It is the scoring system running in
the background on almost every request to a Cloudflare-protected site, whether that site
ever shows a visitor a challenge or not. [Turnstile](cloudflare-turnstile-explained.md), the
checkbox-or-nothing widget covered elsewhere on this site, is a separate product a site
opts into and embeds on specific pages. Bot Management is the always-on system behind the
scenes that produces a score, which can feed a WAF rule, a Turnstile risk decision, or
nothing visible at all, depending on how the site owner wired it up.
Cloudflare sells both under the same "bot" umbrella, and a lot of practitioner writing
blends them into one paragraph. This page keeps them apart: what the scoring engine
measures, the score itself, the three product tiers it ships in, and where it hands off to
Turnstile rather than replacing it. Built from Cloudflare's own developer documentation and
one independent technical write-up, retrieved 2026-08-30.
## The bot score: 1 to 99, and what the number means
Cloudflare's own definition is direct: "a score of 1 means Cloudflare is quite certain
the request was automated, while a score of 99 means Cloudflare is quite certain the
request came from a human." Lower is more automated, not the other way around, which
trips people up the first time they read a Bot Analytics dashboard.
The documented bands:
| Score | Category |
|---|---|
| 1 | Automated, high confidence |
| 2-29 | Likely automated |
| 30-99 | Likely human |
| Verified bot | A non-malicious, declared automation (search engine crawlers, uptime monitors) scored separately from the numeric band |
| 0 | Not computed at all for this request |
That last row matters more than it looks: a score of 0 is not "definitely human," it means
Bot Management never ran a scoring pass on that request, for reasons Cloudflare does not
fully enumerate. Reading 0 as a clean bill of health is a misreading of the vendor's own
scale.
Granular, per-request scores are an Enterprise-with-Bot-Management feature. Sites on lower
tiers see traffic bucketed into groupings in a dashboard, not the raw 1-99 number, which the
tier section below spells out.
## What actually produces the score
Cloudflare names four detection engines, and they do not all run on every request or plan:
| Engine | What it does | Plan requirement |
|---|---|---|
| Heuristics | Matches every request against "a growing database of malicious fingerprints"; runs on all requests, all plans | All plans |
| JavaScript Detections (JSD) | Lightweight, invisible client-side script injection aimed at "headless browsers and other malicious fingerprints"; feeds its result to the other engines | All plans, optional |
| Machine Learning (ML) | Cloudflare states this engine "accounts for the majority of all detections," using supervised learning over "headers, session characteristics, and browser signals" to set the final 1-99 score | Business and Enterprise |
| Anomaly Detection (AD) | Unsupervised learning against a per-domain traffic baseline to flag outliers | Enterprise, and Cloudflare has been deprecating it |
Cloudflare's own docs name the categories and stay vague on field-level detail: the company
does not publish which headers, timing values or JavaScript properties the ML engine
weighs, or what JSD's script reads once injected. A Scrapfly write-up, working from the
outside, describes the JS-side probing as covering canvas and WebGL rendering output
alongside mouse-movement and click-cadence behavior, reconstructed from observation, the
same caveat this corpus applies to [Akamai's sensor payload](akamai-bot-manager-explained.md)
and [Imperva's reese84 cookie](imperva-incapsula-explained.md).
One documented mechanism sits underneath all of this: the `__cf_bm` cookie, necessary for
Bot Management (and the free Bot Fight Mode) to function, generated per-site, expiring
after 30 minutes of inactivity, and used, in Cloudflare's own words, to "smooth out the bot
score and reduce false positives" by carrying a session's established pattern forward
instead of re-deriving it cold on every request.
## The network layer: JA3/JA4 as one input, not the whole score
TLS fingerprinting is a documented, named input. Cloudflare's own description of JA3/JA4:
they "identify TLS clients based on how they initiate connections," and the resulting
fingerprint is "a stable identifier across different destination IPs, ports, and
certificates." JA4 exists because JA3 decayed: modern browsers randomize TLS extension
order per connection, which used to make JA3 hashes inconsistent for the same real browser,
and JA4 fixes that by sorting extensions before hashing instead of hashing arrival order.
The mechanics of both, and why one can be patched and the other cannot, are covered in
depth on [the JA3/JA4 page](ja3-ja4-tls-fingerprint.md) and
[the HTTP/2 fingerprint page](http2-fingerprint-detection.md); this page only needs that
Cloudflare treats JA3/JA4 and HTTP/2 metadata (SETTINGS values, pseudo-header order) as
inputs, exposed to Enterprise customers as `cf.bot_management.ja3_hash` and `ja4` fields
for custom WAF rules.
A matching TLS fingerprint is one input clearing, not a passed score. The same point is
made at length for a comparable vendor, where a byte-identical JA3/JA4/HTTP2 fingerprint
Cloudflare's own ML engine is described the same way, as combining "headers, session
characteristics, and browser signals," never any one of those alone.
## Three tiers, and what each one actually adds
Cloudflare sells bot detection at three levels; the free and mid tiers use the same
underlying engines as Enterprise Bot Management, with less control over what happens next.
| Tier | Plan | What it adds |
|---|---|---|
| Bot Fight Mode | Free | Challenges or blocks obvious bots; no per-category actions, no custom rules |
| Super Bot Fight Mode | Pro, Business | Adds, in Cloudflare's own phrasing, "configurable actions per bot category, bot analytics, and the ability to create exceptions using WAF custom rules," across three groupings: "Definitely automated," "Likely automated," "Verified bots" |
| Bot Management | Enterprise, paid add-on | Per-request numeric scores instead of groupings, JA3/JA4 signal fields for custom rules, dedicated Bot Analytics; Cloudflare recommends it specifically for "API or mobile app traffic" |
A site on Super Bot Fight Mode and one on full Bot Management run the same engines
described above; the difference is what the owner can see and do with the result, not a
different sensor underneath. The two are also mutually exclusive on a zone: enabling
Enterprise Bot Management replaces the Bot Fight Mode / Super Bot Fight Mode toggles
rather than stacking with them.
## Where Turnstile actually fits into this
This distinction is worth being precise about, because the two products get merged in
casual writing constantly. Bot Management is the always-on scoring system: it runs whether
or not the page shows anything, and its output is a number a site owner's rules can act on.
[Turnstile](cloudflare-turnstile-explained.md)
is a widget a site chooses to embed on a specific page, most often a login, checkout, or
comment form, with its own non-interactive checks (proof-of-work, proof-of-space, API
probing, covered in full on the Turnstile page) and its own token verified server-side
against Siteverify. The two often work together: a site can wire a low Bot Management
score into a rule that shows Turnstile specifically to the traffic already flagged,
rather than to everyone. But Turnstile is not how Bot Management works, and passing one
is not evidence about the other. A visitor with a clean Turnstile pass on one page can
still carry a low background bot score on the next request if that page has no Turnstile
embedded to act on it, because the underlying score is computed independently of whether
any widget is present at all.
## The ecosystem around it, and what it actually claims
A real, actively maintained open-source project,
[`cloudscraper`](https://github.com/VeNoMouS/cloudscraper) (6.7k stars at the time of
writing), is worth naming because it shows what practitioner tooling in this space actually
targets: its README describes handling Cloudflare's older "I'm Under Attack Mode"
JavaScript challenges (v1-v3) and, since its 3.0 release, Turnstile CAPTCHA challenges,
using a JavaScript engine to solve the puzzle payload served. That is a different problem
from the one this page describes. Solving a visible challenge is downstream of a decision
Bot Management already made to show one; it says nothing about the numeric score itself,
never exposed to the client, or the session history the ML engine weighs alongside the
current request. Reliably solving every challenge a site serves is not the same as learning
what score triggered it.
## The honest boundary
An engine-level, patched Firefox like this project answers the client-observable layer
honestly: the TLS handshake and the resulting JA3/JA4 hash come from the real network
stack, not a JavaScript override, and the canvas, WebGL, font and navigator surfaces JSD's
script can read are produced by an actually-genuine engine rather than simulated. That is
real, and only part of what Cloudflare's own documentation says the ML engine weighs.
What stays outside anything a browser build touches: the bot score itself, a server-side
number never disclosed to the client that generated it; IP and ASN reputation, which
travels with the exit connection, not the browser; `__cf_bm` cookie state accumulated
across a session; and whatever the supervised model learned from "billions of daily
requests," which no outside party has visibility into. `invisible_playwright` does not
claim to defeat, bypass, or predict Cloudflare's bot score. A real engine changes whether
the client-side half of that score is computed on honest inputs or spoofed ones; it has no
effect on the half that never reaches the client at all.
## Short answers to the questions that lead here
**Is Cloudflare Bot Management the same thing as Turnstile?** No. Bot Management runs on
requests regardless of whether a widget is present. Turnstile is a separate, opt-in
challenge widget a site embeds on specific pages. The two can be wired together, but
neither is a mode of the other.
**What does a Cloudflare bot score of 1 mean, and what does 99 mean?** 1 is Cloudflare's
highest-confidence "this was automated" reading; 99 is the highest-confidence "this was a
human" reading. A score of 0 means no scoring pass ran at all, not a clean result.
**What is Super Bot Fight Mode?** The Pro/Business-tier product, using the same detection
engines as Enterprise Bot Management, adding per-category actions across three bot
groupings, bot analytics, and WAF custom-rule exceptions the free Bot Fight Mode lacks.
**Does a matching TLS (JA3/JA4) fingerprint mean a request passes Cloudflare's scoring?**
No. It is one documented input among several (heuristics, JavaScript detections, machine
learning, and historically anomaly detection). The same "necessary, not sufficient" pattern
is documented in detail for a comparable vendor in
[the Akamai Bot Manager case study](akamai-bot-manager-explained.md).
**Can a browser automation tool guarantee a good Cloudflare bot score?** No. The score is
computed server-side from reputation and session history a browser build has no way to see
or influence.
**Does invisible_playwright bypass Cloudflare Bot Management?** No. It does not solve
Turnstile's interactive tier, does not predict or spoof the bot score, and makes no claim
to defeat the scoring pipeline as a whole. It answers the client-observable inputs to that
pipeline (TLS handshake, canvas, WebGL, fonts, navigator surface) honestly, because they
come from a genuinely real engine rather than a script overriding them.
description: "Turnstile is not a puzzle widget, it is a signal-gathering decision engine: non-interactive JS challenges, proof-of-work, a risk-scored escalation to a checkbox, and a server-side token check. Read from Cloudflare's own docs."
parent: "Detectors, Explained"
grand_parent: "Guides"
nav_order: 23
---
# How Cloudflare Turnstile actually works
Turnstile is not a captcha with the images swapped for a checkbox. Most of the time
there is no checkbox at all: the widget runs a set of quiet JavaScript checks in the
background, decides the visitor is probably fine, and hands back a token before a
human would even notice anything happened. The checkbox is the fallback path, shown
only when those quiet checks come back uncertain.
This page is about that mechanism, read from Cloudflare's own developer
documentation rather than guessed at from a blocked request. Not how to get past it,
how it decides.
## What the widget actually is
A Turnstile deployment has two halves. The client-side widget is a script loaded
from `https://challenges.cloudflare.com/turnstile/v0/api.js` and dropped into a page
either implicitly, by adding a `cf-turnstile` container div and letting the script
scan for it on load, or explicitly, by calling `turnstile.render()` yourself when
you need control over timing, such as a form that only appears after some other
interaction. Each widget carries a public sitekey and is bound to a private secret
key that never leaves your server.
When the widget finishes its checks, it produces a token and writes it into a hidden
`cf-turnstile-response` field (or hands it to a callback you registered). That token
is not proof of anything by itself. It has to be checked, server-side, against
Cloudflare's Siteverify API, which is the second half of the deployment and the part
a lot of first attempts skip.
## The part that runs before you ever see a checkbox
Cloudflare's own description of the mechanism is that it runs "a series of small
non-interactive JavaScript challenges" to gather signals about the visitor and the
browser environment, and names the categories directly: proof-of-work, proof-of-space,
probing for web APIs, and other checks aimed at browser quirks and human behavior.
**Proof-of-work** is a small computational puzzle the browser has to solve, the same
family of idea as Hashcash: spend a measurable amount of CPU on something that is
cheap for the server to verify. A script that can run arbitrary JavaScript pays this
cost the same as a real browser does; a client with no JS engine at all cannot pay it
and never produces a token. A gate built on that idea alone exists in the open, and
[Anubis is readable end to end](anubis-proof-of-work-explained.md) in a way Turnstile
is not, which makes it the cheapest way to see what this layer can and cannot decide.
**Proof-of-space** is the storage-based cousin of the same idea, trading disk or
memory instead of CPU cycles.
**Web API probing** and **browser-quirk detection** are the categories that matter
most for anything driving a real browser: calling real, specified APIs and checking
whether the answers are internally consistent with each other and with the engine the
page claims to be. Cloudflare does not publish the exact list of properties it reads,
and the widget script itself is not meant to be human-readable, so anyone claiming a
precise inventory of what it checks is going further than Cloudflare's own
documentation does. What is documented is the shape of the approach, not the field
names. The shape is the part worth internalising: a value being wrong matters less
than two values disagreeing, which is why a mismatch like
[a platform string that contradicts the oscpu beside it](navigator-platform-oscpu-consistency.md)
is a stronger signal than either field on its own.
The point of running all of this before showing anything is stated plainly in
Cloudflare's docs too: the goal is to "fine-tune the difficulty of the challenge to
the specific request and avoid showing a visual or interactive puzzle to a user" who
does not need one. Most visitors, automated or not, never see a widget at all if the
non-interactive layer is satisfied.
## The three modes, and when a checkbox appears
A site owner picks one of three widget modes when they create a sitekey, and the
mode decides whether an interactive step exists at all.
| Mode | What the visitor sees | When it appears |
|---|---|---|
| Managed | Nothing, or a checkbox | Non-interactive checks run first; a checkbox appears only if visitor risk is high enough |
| Non-Interactive | A loading spinner, never a checkbox | Verification always runs silently in the background |
| Invisible | Nothing at all | No visible widget or loading indicator under any outcome |
Managed is the one most sites use and the recommended default in Cloudflare's own
guidance, because it is the only mode that can show an interactive step, and it only
does so when the signal-gathering layer above flags the visitor as worth a second
look. Non-Interactive and Invisible never show a checkbox by design, no matter what
the signals say; a site that wants a hard human gate has to use Managed.
## The managed challenge: a human gate, not a fingerprint gate
When Managed mode does decide to show something, Cloudflare's own documentation
describes it as a "simple checkbox that the visitor must click to proceed", explicitly
not an image puzzle or text to transcribe. This is the point worth being precise
about: the checkbox is not another fingerprint probe layered on top of the earlier
ones. It is a click, gated behind whatever risk score the earlier signals produced,
and a click carries its own provenance:
[a click dispatched from page JavaScript is never trusted](playwright-clicks-istrusted.md),
while one produced by the driver or the engine is.
That distinction matters for what a real engine can and cannot do about it. Everything
in the non-interactive layer, the proof-of-work, the API probing, the consistency
checks, is answered by whatever is running the JavaScript. A genuine browser engine
answers those honestly because it is not simulating the answers, it is producing
them the normal way, the same way it would for any other page. The interactive
checkbox tier is a different kind of gate: it exists specifically for the visitors
the earlier layer could not clear on signal alone, and clicking it is a human action,
not a value a browser reports. No amount of engine-level fidelity changes what that
tier is checking for, because it stopped checking the browser and started checking
for a click.
## The token, and why passing the widget is not the finish line
A successful pass, interactive or not, produces a token. Cloudflare's own
documentation is direct about what that token is worth on its own: "You must call
the Siteverify API to complete your Turnstile implementation. The client-side widget
alone does not protect your forms." The token proves the widget ran and returned
success; it proves nothing to your server until your server checks it.
The check is a server-to-server call:
```
POST https://challenges.cloudflare.com/turnstile/v0/siteverify
```
with the site's secret key and the token as the two required parameters (an optional
`remoteip` and an `idempotency_key` for safe retries are also accepted). The response
is JSON: a `success` boolean, a `challenge_ts` timestamp, the `hostname` the challenge
ran on, an `action` and `cdata` if the integration set them, and an `error-codes`
array when it fails.
Two properties of the token matter for anyone thinking about this mechanically.
It expires 300 seconds after it is issued, and it is single-use: presenting the same
token to Siteverify twice returns a `timeout-or-duplicate` error on the second call.
A token cannot be harvested once and replayed later, and a token generated for one
page load does not answer for the next one.
## What one real deployment looked like
Security researcher Troy Hunt wrote up putting invisible Turnstile in front of an API
endpoint that was under sustained bot traffic, and the numbers are a useful reality
check on what the mechanism actually filters in practice. Over roughly five months
and more than 100 million challenges issued, he reported a 91% pass rate among issued
tokens, around 990,000 requests rejected for arriving without a valid token, and
traffic that had previously spiked to 121,300 requests in a five-minute window during
attacks dropping to zero abnormal spikes after deployment. He also noted that 40% of
the requests that failed validation traced back to just five distinct JA3 TLS
fingerprints, a network-layer signal outside anything the JavaScript layer measures.
That is one deployment, on one endpoint, and it is not a claim that every Turnstile
deployment behaves identically. It is real, named, and checkable, which is more than
most numbers floating around this topic can claim.
## Where an engine-level browser actually helps, and where it does not
The non-interactive layer is built to read real signals from a real JavaScript
environment: whether a proof-of-work computation lands where a real engine's timing
puts it, whether the web APIs it probes answer the way the engine they claim to be
actually answers, whether the browser-quirk checks find the quirks a genuine build of
that engine has. A browser that is genuinely the engine it presents, patched at the
level that produces those answers rather than overridden from a content script,
answers this layer the same way any other real instance of that engine does, because
there is no simulated answer to catch, only the real one.
What that does not change is the interactive tier. If Managed mode's risk scoring
decides a visitor needs to click the checkbox, an honest engine fingerprint does not
make that requirement disappear, because the requirement was never about the
fingerprint in the first place. It is a human-verification gate sitting downstream of
the signal layer, and no amount of realness upstream removes a gate that is checking
for something else entirely.
None of this is a claim that any tool solves Turnstile, and a captcha-solving promise
is not one this project makes: `invisible_playwright` does not click checkboxes for
you or defeat the interactive tier. What a real, engine-level Firefox does is answer
the non-interactive layer honestly, the same way a real Firefox always would, which is
the layer that decides whether most visitors ever see a checkbox at all.
## Short answers to the questions that lead here
**Does Cloudflare Turnstile detect headless browsers?** The non-interactive layer is
built to catch the gap between a browser's claimed engine and its actual JavaScript
environment, which is exactly the kind of gap an incomplete or scripted environment
tends to have. Cloudflare does not publish a specific "headless" flag; it publishes
signal categories, not a checklist.
**What is the difference between Turnstile's three modes?** Managed can show an
interactive checkbox when the earlier signals look risky; Non-Interactive always
verifies silently behind a spinner and never shows a checkbox; Invisible shows nothing
at all under any outcome. Only Managed has a human-click tier.
**Does passing the checkbox mean I passed everything?** No. The checkbox produces a
token, and the token only counts once your server has validated it against
Siteverify. A token that is never checked server-side protects nothing.
**Can a Turnstile token be reused or harvested for later?** No. It expires after 300
seconds and Siteverify rejects a second submission of the same token with a
`timeout-or-duplicate` error.
**Is Turnstile the same thing as a captcha?** No, and Cloudflare's own framing leans
on that distinction: it is a low-friction check that tries to avoid ever showing a
visual or interactive puzzle, reserving the checkbox for visitors its non-interactive
signals could not already clear.
**Does a real browser engine bypass Turnstile?** It answers the non-interactive
signal layer the way any genuine instance of that engine does, because those answers
are not overridden, they are the real ones. It has no effect on the interactive
checkbox tier, which is a human-verification gate, not a fingerprint check.
**Where does the actual detection logic live?** Cloudflare does not publish the exact
properties the widget reads or the scoring behind the risk decision. What is
documented is the category list (proof-of-work, proof-of-space, web API probing,
browser-quirk and behavior checks) and the three-mode structure; the internals below
that are not public.
**See also:** [navigator.webdriver is not the tell you think it is](navigator-webdriver-explained.md),
for the one property every detector checks first and why patching it alone changes
little; [Function.prototype.toString and the \[native code\] check](tostring-native-code-detection.md),
for why a JavaScript-level override of a Web API is itself detectable; [Playwright
detected as a bot: the checklist to fix it](playwright-detected-as-bot.md), for a
troubleshooting order when one site starts showing automation a different page; and
retrieved 2026-08-30, for the Siteverify endpoint, its parameters and response
fields, and the 300-second single-use token behavior.
- Troy Hunt, ["Fighting API Bots with Cloudflare's Invisible Turnstile"](https://www.troyhunt.com/fighting-api-bots-with-cloudflares-invisible-turnstile/),
retrieved 2026-08-30, for the real deployment numbers quoted above: challenge
volume, pass rate, rejected requests, and the JA3-fingerprint concentration among
failures.
---
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
a Firefox patched at the C++ level and driven by stock Playwright. This page describes
a mechanism, not a workaround: the product does not solve captchas or click Turnstile's
interactive tier for you, and any tool that claims to defeat Cloudflare wholesale is
title: "Codec fingerprinting: canPlayType and MediaCapabilities"
description: "Codec fingerprinting: the formats a browser claims to play reveal its build and platform; whether decoding is power efficient reveals the machine behind it."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 7
---
# Codec fingerprinting: canPlayType and MediaCapabilities
Codec fingerprinting identifies a browser by which media formats it claims it can
decode, and identifies the machine underneath by how efficiently it decodes them. Ask a
browser what video formats it can play and the answer is not about the person using it.
It is about the build, the operating system underneath, and increasingly the hardware,
which makes it three separate fingerprinting surfaces wearing one API.
It is also one of the surfaces nobody checks after spoofing everything else, which is
what makes it worth a page.
## What the two APIs actually return
Two APIs answer the "what can you play" question, from two different eras of the
platform: the old `canPlayType()` returns a vague string, the modern
`mediaCapabilities.decodingInfo()` returns a structured verdict including whether
decoding is power efficient. The old one is deliberately vague:
```js
const v = document.createElement('video');
v.canPlayType('video/mp4; codecs="avc1.42E01E"'); // "probably", "maybe", or ""
v.canPlayType('video/webm; codecs="vp9"');
v.canPlayType('audio/mpeg');
```
Three possible answers: `probably`, `maybe`, or an empty string. The vagueness is
historical, and it does not reduce the information much, because what matters is the
**pattern across a list of types**, not any single verdict.
title: "Color-gamut and HDR media queries as a fingerprint"
description: "Color-gamut and HDR media features expose display capability without JavaScript. Why they must align with screen.colorDepth and what misalignment reveals."
parent: "Browser Identity"
grand_parent: "Guides"
nav_order: 28
---
# Color-gamut and HDR media queries as a fingerprint
Most of the fingerprint surfaces people worry about live in JavaScript: `navigator`,
canvas, WebGL, audio. This one does not. The [`color-gamut`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/color-gamut), [`dynamic-range`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/dynamic-range) and
[`video-dynamic-range`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/video-dynamic-range) media features describe what a display can show, and a page can
read them from CSS alone, before a single line of script runs. That makes them a
quiet consistency check: they have to agree with everything your JavaScript says about
the same screen, and nothing you set in code touches them.
This page is what those features report, why they are read from a different code path
than `screen.colorDepth`, the disagreement that gives a browser away, and how
invisible_playwright keeps the two sides telling one story. It answers the question in
the title honestly: matching these features helps you look like a real display, and it
does nothing for your IP or your pacing.
## What color-gamut and dynamic-range actually report
Three CSS media features describe a display's color and brightness capability:
- `color-gamut` reports the range of color the output can render, as one of `srgb`,
`p3` or `rec2020`. A page tests it with `@media (color-gamut: srgb) { ... }` or from
script with `matchMedia("(color-gamut: p3)")`.
- `dynamic-range` reports whether the display and the browser can show high dynamic
range content, as `standard` or `high`.
- `video-dynamic-range` is the same question aimed specifically at video output, and
can differ from `dynamic-range` on hardware that treats the two paths separately.
None of these needs JavaScript to be readable. A stylesheet can branch on them and a
detector can observe which branch applied, so they are live even on a page that runs
no script at all. This puts them in the same family as the
[CSS media features documented for dark mode and pointer type](css-media-query-fingerprinting.md),
and distinct from them in what they describe: not a user preference, but a hardware
property of the panel.
The values are not free-floating. A real Windows laptop with a standard sRGB panel
reports `color-gamut: srgb` and `dynamic-range: standard`, and it reports a
`screen.colorDepth` of 24 to match. Those two facts come from the same physical
display, so on real hardware they never contradict each other. That is the whole
point of the surface for a detector.
## Why this is read from a different code path than colorDepth
Here is the trap. `screen.colorDepth` is a JavaScript property. The color-gamut media
feature is resolved by the CSS engine when it evaluates a media query. A page can read
both, and it can compare them, but they arrive through two entirely separate paths
inside the browser.
That separation is exactly what a consistency detector wants. If a stealth layer
overrides `screen.colorDepth` in JavaScript to report a plausible 24-bit display, but
the CSS side still resolves `color-gamut` against whatever the underlying environment
actually has, the two disagree. One code path was patched and the other was not. A
real browser cannot produce that disagreement, because both values are read off the
same panel. So a page that finds `screen.colorDepth: 24` next to a `color-gamut` that
resolves to something else has found a browser whose two halves were configured
independently, which is a tell that no single value would have given up.
The same shape shows up in
[the platform and oscpu strings that have to agree with the user agent](navigator-platform-oscpu-consistency.md):
individually every value is plausible, and the fingerprint is in whether they line up.
A JavaScript-only spoof can set the property a page reads first, and miss the second
surface that reports the same underlying fact through CSS.
## Why a page-level override cannot fix this
If your approach to fingerprinting is injecting JavaScript, this surface is a problem,
because there is nothing in JavaScript's gift to change here. You can redefine
`matchMedia` to lie about `color-gamut`, but redefining a built-in is itself one of
the loudest tells there is: [CreepJS](how-to-test-bot-detection.md) walks descriptors
and prototypes and records a patched built-in by name. And even if you patch
`matchMedia`, the pure-CSS path that applies a `@media (color-gamut: ...)` rule
without ever calling script is still resolving against the real value. You cannot
intercept a stylesheet branch from a `matchMedia` override.
The only place this can be made consistent is below JavaScript, where the CSS engine
and the `screen` object read the same display description. invisible_playwright is a
Firefox patched at the C++ level rather than a script injected into a stock browser,
so the display it presents is a single coherent object: the color-gamut media feature,
`dynamic-range`, `video-dynamic-range` and `screen.colorDepth` all resolve from one
plausible Windows sRGB display, the way they do on the real Firefox it is built from.
There is no second code path left unpatched, because the value is not being faked at
the property level at all.
This is the same reason [an impossible screen geometry](screen-size-headless-tells.md)
survives every page-level spoofer: the surfaces that describe the physical display are
not the ones a script can reach.
## Reading it yourself
The `browser` returned by invisible_playwright is a real Playwright `Browser`, so you
read these features the same way you would in any Playwright script. Launch, open a
page, and evaluate the media queries plus the property they have to agree with:
```python
from invisible_playwright import InvisiblePlaywright
title: "Combine invisible_playwright with httpx for speed"
description: "Clear the fingerprint-gated entry in a real browser, export storage_state, then hand the cookies to httpx for cheap high-volume follow-up requests - and the sharp limit."
parent: "Scraping with Playwright"
grand_parent: "Guides"
nav_order: 89
---
# Combine invisible_playwright with httpx for speed
A browser is expensive. It starts a process, renders a page, runs the site's
JavaScript, and holds memory the whole time. If you need one page a minute that is fine.
If you need a thousand JSON responses from an endpoint the site already exposes, paying
browser cost for each one is the slow way to do it.
The fast way is a split: use the browser for the part that needs a browser, and use a
bare HTTP client for the part that does not. This page shows the handoff concretely -
export the session the browser established, hand it to `httpx`, and let `httpx` do the
bulk - and it is equally clear about the one boundary where the trick stops working,
because that boundary is the whole skill.
## Why the browser clears the door and httpx does not
`invisible_playwright` is a Firefox patched at the C++ level and driven by stock
Playwright. It is built to look like a real browser driven by a real person: the
fingerprint, the TLS handshake and the driver layer all read as a genuine Firefox, which
is why it clears the checks that turn plain automation away at the door. That is the
part you cannot fake with a bare HTTP client. An endpoint that inspects the JavaScript
fingerprint, or reads the TLS handshake, expects a browser to be on the other end.
`httpx` is the opposite tool on purpose. It is a fast, async-capable Python HTTP client
with no JavaScript engine and no browser TLS stack. It sends a plain client handshake and
whatever headers you give it, and nothing else. That is exactly why it is cheap, and
exactly why it cannot pass a fingerprint check. It has no fingerprint to present.
So the division is not a hack, it is the honest shape of the problem. The browser is for
the fingerprint-gated fetches. `httpx` is for the unguarded bulk. Knowing which endpoint
is which is the entire exercise, and most of this page is about telling them apart.
## Establish the session in the browser
First, do the guarded part properly: launch the real browser, clear whatever gates the
entry (a login, a challenge page, a first navigation that sets a session cookie), and let
it settle. Switching from plain Playwright is two lines, and the object you get back is a
real Playwright `Browser`, so every method below is the stock API:
```python
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42, proxy={
"server": "socks5://gate.example.com:1080",
"username": "u", "password": "p",
}) as browser:
page = browser.new_page()
page.goto("https://example.com/app")
# ... do whatever establishes the session: submit a form, pass an
# interactive check, land on the page that issues the session cookie ...
page.wait_for_load_state("networkidle")
```
The seed is not decoration here. It pins the identity, so the fingerprint that created
this session is reproducible - which matters the moment you reuse the session, because a
reused session is still tied to the machine that created it. That coupling is the subject
of [why reusing a session beats re-automating the login form](automating-login-vs-session-reuse.md).
description: "invisible_playwright against the closest alternatives at each layer - Camoufox, Patchright, nodriver, playwright-stealth - plus the engine question underneath all of them: Firefox or Chromium."
has_children: true
nav_order: 4
---
# Comparisons
Most comparisons in this space put tools side by side that are not actually
comparable: a page-level script against a patched binary, a Chromium tool against a
Firefox one. These pages try not to do that. Each one names the layer the comparison
actually happens at, states plainly where the other tool covers more, and does not
claim an advantage it could not verify against the other project's own source or
documentation.
Start with [Three ways to make Playwright undetected](playwright-stealth-levels.md)
if you want the map before the individual matchups - it's the frame every comparison
below sits inside.
## The tools at a glance
Three columns decide most of the question: which browser the tool drives, which layer it
patches, and whether that layer is readable from inside the page. A page-level patch is a
script a detector can find. A driver-level patch is outside the page but still above the
browser. An engine-level patch changed the binary, so there is no lie left to read back.
The layer is not a ranking. A driver-level patch on Chromium reaches things a Firefox
build cannot, because it is on the browser most of the web is tuned for, and an HTTP
client with a real TLS fingerprint beats every browser on cost when the page does not
need rendering. Each page below states where the other tool covers more.
## Concepts and the map
- [Three ways to make Playwright undetected](playwright-stealth-levels.md) - The three levels stealth tools work at - page, driver, engine - and what each reaches.
- [Firefox or Chromium for anti-detect automation](firefox-vs-chromium-antidetect.md) - No CDP surface and one identity, traded against Firefox's smaller traffic share.
- [Chromium is not Chrome, and detectors know the difference](chromium-is-not-chrome.md) - Chrome for Testing plays H.264 but fails a Widevine DRM check no patch closes.
- [WebDriver BiDi vs CDP: does the new protocol hide you](bidi-vs-cdp-detection.md) - BiDi standardizes the control wire, but automation leaks live in the page, not the protocol.
- [Do I need an anti-detect browser or just Playwright?](do-i-need-an-antidetect-browser.md) - What a paid anti-detect GUI adds over stock Playwright driving a patched Firefox.
- [Migrating from Puppeteer to Playwright for stealth](migrate-puppeteer-to-playwright-stealth.md) - The near one-to-one API mapping, and what changes for detection off the CDP stack.
- [Migrating from Selenium to Playwright for stealth](migrate-selenium-to-playwright-stealth.md) - Map driver.get and find_element to page.goto and locators, dropping the WebDriver server.
- [Why Playwright Locators Never Throw StaleElementReferenceException](playwright-vs-selenium-stale-element-reference.md) - Selenium's WebElement holds a live reference that goes stale; Playwright's Locator re-resolves on every action.
- [How to Read a Stealth-Browser Benchmark Without Being Misled](how-to-read-a-stealth-browser-benchmark.md) - What to check before trusting a comparison, including this project's own, since almost every published one ranks itself first.
- [Web Scraping Proxy Costs: Build vs. Buy Your Stealth Stack](web-scraping-proxy-costs-build-vs-buy.md) - Proxy spend, engineering maintenance time and vendor lock-in, without the invented totals most build-vs-buy pages lead with.
- [Selenium vs Playwright: the actual differences](difference-between-selenium-and-playwright.md) - Protocol, driver architecture and auto-waiting compared from each project's own docs, plus the one difference neither's docs foreground.
- [Alternative Chromium browsers for automation](alternative-chromium-browsers-for-automation.md) - Brave, Edge, Opera, Vivaldi: what actually differs between the forks, and why none of it touches the CDP-level tells that matter.
- [Browser automation testing tools, and where each one actually fits](browser-automation-testing-tools.md) - Playwright, Selenium, Cypress, Puppeteer by what they were each built to test, not by feature-list length.
## Patched-engine, driver-patch and stealth-plugin tools
- [invisible_playwright vs Camoufox: two patched Firefoxes](vs-camoufox.md) - Both patch Firefox in C++; how each builds its fingerprint and whether a run replays.
- [invisible_playwright vs Patchright: driver vs engine](vs-patchright.md) - Patchright patches the Playwright driver on Chromium; this patches Firefox itself. Often you need both.
- [invisible_playwright vs rebrowser-patches: the same CDP fix](vs-rebrowser-patches.md) - Fixes the Runtime.enable CDP leak on Chromium; reaches neither Firefox nor fonts, GPU, canvas, audio.
- [undetected-playwright vs a patched Firefox binary](vs-undetected-playwright.md) - Hides Playwright's init-script and bindings tells; a patched Firefox closes the fingerprint layer.
- [invisible_playwright vs playwright-stealth: page vs engine](vs-playwright-stealth.md) - playwright-stealth patches the page in about four lines; this rebuilds the engine.
- [playwright-extra stealth plugins vs a patched browser](vs-playwright-extra-stealth.md) - Applies stealth plugins as injected JavaScript a detector reads back; a patched engine compiles them in.
- [invisible_playwright vs fingerprint-suite: injection vs engine](vs-fingerprint-suite.md) - fingerprint-suite injects a generated fingerprint into a page; this sets it in the engine.
- [invisible_playwright vs playwright-with-fingerprints](vs-playwright-with-fingerprints.md) - Injects remote-service fingerprints into a Windows-only, ageing Chromium build, and what that trade costs.
- [puppeteer-real-browser vs invisible_playwright](vs-puppeteer-real-browser.md) - Node plus real Chrome with runtime property patches vs Python plus Firefox with compiled spoofs.
## CDP and driverless Chrome tools
- [invisible_playwright vs nodriver and undetected-chromedriver](vs-nodriver.md) - Chrome-only tools, not Playwright forks; neither hides IP or fingerprint, by their own docs.
- [pydoll vs invisible_playwright: CDP without a driver](vs-pydoll.md) - pydoll drives Chrome over CDP with no chromedriver; this ships seed-consistent Firefox surfaces.
- [zendriver vs invisible_playwright: Chrome CDP vs Firefox](vs-zendriver.md) - zendriver drives Chrome over CDP; this drives a patched Firefox with cross-checked surfaces.
- [selenium-driverless vs invisible_playwright stealth](vs-selenium-driverless.md) - Drops chromedriver by driving Chrome over raw CDP but leaves rendering and TLS stock.
- [invisible_playwright vs SeleniumBase UC Mode](vs-seleniumbase-uc-mode.md) - UC Mode detaches chromedriver but never changes the engine, GPU, fonts, canvas or TLS.
- [undetected-chromedriver vs a patched Firefox browser](vs-undetected-chromedriver.md) - Strips the driver's cdc_ and webdriver leaks but ships a stock Chromium fingerprint.
- [invisible_playwright vs Ulixee Hero](vs-ulixee-hero.md) - Replayed emulation on stock Chromium vs a fingerprint decided natively in patched Firefox.
## Non-Playwright frameworks and HTTP-client libraries
- [botasaurus vs invisible_playwright: framework vs library](vs-botasaurus.md) - Batteries-included Chrome scraping framework vs a patched-Firefox engine driven with stock Playwright.
- [invisible_playwright vs Scrapling](vs-scrapling.md) - Scrapling is an adaptive parser, not a stealth engine; its ceiling is whichever browser it wraps.
- [scrapy-playwright vs a patched Firefox for stealth](vs-scrapy-playwright.md) - Runs stock Playwright inside Scrapy; point the handler at a patched Firefox and keep the scheduler.
- [invisible_playwright vs DrissionPage](vs-drission-page.md) - Fuses an HTTP session mode and a CDP browser mode, each failing a different check half.
- [curl_cffi vs invisible_playwright: TLS client vs browser](vs-curl-cffi.md) - Replays a browser's TLS and HTTP/2 at byte level but runs no JavaScript.
- [invisible_playwright vs hrequests](vs-hrequests.md) - A hybrid TLS-impersonating HTTP client plus a browser mode with injected fingerprints.
- [tls-client vs a real browser: when TLS is enough](vs-tls-client.md) - When JA3/HTTP2 socket spoofing suffices on JSON and HTML, and where JS forces a full browser.
- [invisible_playwright vs browser-use: different jobs](vs-browser-use.md) - An LLM-driven agent framework against an engine you drive yourself, and where each one fits.
## Unmaintained tools
- [puppeteer-extra-plugin-stealth: unmaintained since 2024](puppeteer-extra-stealth-unmaintained.md) - No real update since mid-2024; old patches still work but the checklist froze.
- [pyppeteer's own maintainer says to switch to Playwright](pyppeteer-unmaintained-playwright.md) - Its README calls it unmaintained and points to playwright-python; what switching does not fix.
- [selenium-stealth hasn't been updated since December 2021](selenium-stealth-unmaintained.md) - Last commit December 2021; what its property patches still do and what to check today.
- [Splash is unmaintained, and it was never a real browser](splash-unmaintained-qtwebkit.md) - A QtWebKit render service reporting an engine no real browser ships, which no spoof reaches.
[what a website can detect about a virtual machine](can-a-website-detect-a-virtual-machine.md),
and [the AI-agents integration pages](guides-ai-agents.md) for wiring a real
engine under a computer-use loop:
[back a computer-use agent with a real browser](back-computer-use-agent-real-browser.md).
Loaded 100 of 904 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.