Files
2026-11-30 12:28:40 +00:00

215 KiB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.61.0] - 2026-11-30

Changed

  • Pins invisible-core 71.85.0 on the engine firefox-71 (Firefox 159.0).
  • The window origin is declared by the core, and the screen coordinates a page reads go through it, in the top document and in an out-of-process frame of another site: such a frame used to read the top document's origin without its own position.
  • The end point of a drag is mapped through the window of the drag source, and tooltips and autoscroll open at the real pointer.
  • A popup's position and outer size are set when it opens by Firefox's own rule, and a positioned popup is kept on the declared screen by Firefox's own clamp; the core no longer declares a popup position.
  • The height of the maximized browser chrome follows Firefox's toolbar density rule, and the window frame is computed from the system metrics at the declared scale: at 125% the bar above the page is 106 device pixels, as in retail Firefox 159, where 0.60.0 declared 107.
  • The core accepts exactly the display scales Windows offers (100% to 500%), and refuses a scale the declared screen does not offer.

Fixed

  • The load of a frame waits for the processes below it, a navigation that does not create a new document no longer releases a frame, and the ready of a page is told once, after its document.
  • Drag and drop driven by the client reaches a frame of another site: the drag has one session, owned by the browser process, as a real drag does; dragend ends at the screen point of the declared window, the drag events carry the buttons held, and drag fires at the source.
  • A select dropdown opened by a click no longer closes on that click's own release: menus close on the next press or wheel, as with a real mouse, never on a release or a move.
  • wait_for_selector(state="hidden") returns at once when nothing matches and never returns a handle, as stock Playwright does.
  • A font face that our text code used after it could be released (a dangling HarfBuzz face pointer) is now held by its own type.
  • Through a UDP proxy, an IPv6 socket reaches its IPv4 relay after the association too.

[0.60.0] - 2026-11-27

Changed

  • Pins invisible-core 70.83.0 on the engine firefox-70 (Firefox 159.0).
  • The engine carries Firefox's fix for the race between the start and the shutdown of its telemetry (Glean): a browser closed while it was still starting no longer leaves that work half done.
  • ElementHandle pointer actions (click, dblclick, hover, tap, check, uncheck, set_checked) now use the same humanised pointer walk as selector actions (they used to jump to the exact centre of the element in one move).
  • Screenshot parameters that Playwright honours by modifying the page (mask/maskColor, style, animations="disabled", caret="initial") are now refused by name with a clear error instead of being silently ignored; omitBackground with PNG answers Firefox's own Not implemented, as stock Playwright does. A refused screenshot of an element or a locator is refused before the page is scrolled or measured.

[0.59.0] - 2026-11-24

Changed

  • Pins invisible-core 69.82.0 on the engine firefox-69 (Firefox 159.0).

Added

  • An element handle serves the methods of Playwright's ElementHandle that it used to refuse as a gap: query_selector, query_selector_all, eval_on_selector, eval_on_selector_all (rooted at the element), evaluate_handle, is_visible, is_hidden, is_enabled, is_disabled, is_checked, is_editable, wait_for_element_state, dblclick, select_text and dispatch_event, with the answers and the errors Playwright's own server gives. wait_for_selector on an element handle is still refused.
  • set_input_files with a file path works from a client attached with connect: the file is streamed into the session, as a stock client does over a remote connection, and a stream can be used only by the context that made it.

Fixed

  • The argument of evaluate and its kin (page.evaluate(fn, element), evaluate_handle, eval_on_selector, eval_on_selector_all and the frame and handle forms) reaches the page as Playwright sends it: element and JS handles, dates, URLs, errors, shared references, undefined, -0 and ArrayBuffer are decoded in the page instead of arriving as null.
  • screenshot(scale="css") is a picture in CSS pixels, as in stock Playwright; the scale was ignored and the picture was in device pixels.
  • tap on a context without has_touch is refused with Playwright's own message before anything is sent to the page.
  • A read that waits for its element (inner_text, text_content, get_attribute and the others) and runs out of time now always fails with Playwright's own Timeout Nms exceeded. On Windows it could fail with the engine connection's no response in 0s instead, when the last probe ran out of the caller's time a moment before the clock said so.

Engine firefox-69

  • On Linux the engine no longer runs the host's GL probe when the machine is declared: whether WebGL is available comes from the declaration alone.
  • A navigation that changes process is no longer ended by the document it left, and a page is reported ready only after its document.
  • A request to a page process that went away is answered instead of being left waiting, and the end of a network request and the contexts of a frame are reported as Playwright expects.
  • The engine's security-state generation no longer ends in a crash now and then (the telemetry was starting during shutdown).
  • On Windows, the port a WebRTC connection holds is its own.

Known issues

  • tap with has_touch fails with an engine error: the engine cannot send a touch event since Firefox 159. It will be fixed in the engine.

[0.58.0] - 2026-11-21

Changed

  • Pins invisible-core 68.80.0 on the engine firefox-68 (Firefox 159.0).
  • Every profile starts with the security state a retail Firefox has: the intermediate certificates, OneCRL and the CRLite revocation filters. invisible-playwright fetch downloads them from Mozilla's service and has the engine build them once; every launch copies the result into its profile. Filters ten days old or more are left out, as a retail Firefox does, with one warning that says to run fetch.

Fixed

  • networkidle waits for the end of the document request that is still arriving when the page is cut, instead of ending early.
  • A navigation the page's process reports as aborted while the parent is still carrying its request now waits for that request, so a goto no longer fails with a false abort.
  • Behind a SOCKS5 proxy, WebRTC sockets on ports Windows reserves no longer take the proxy's UDP association from the sockets that work.

[0.57.1] - 2026-11-20

Fixed

  • Pins invisible-core 67.79.0 (same engine, firefox-67). On Windows, two browsers launched together on an empty cache could fail with «Access is denied» on the font list file the first browser held open: the file is now created once and never replaced or read back.

[0.57.0] - 2026-11-20

Changed

  • Pins invisible-core 67.78.0 (same engine, firefox-67). The core keeps no value in memory between two calls: the seal, the identity of the engine, the GPU tables, the time zones, the keyboard tables, the exit address and the UDP verdict of a proxy are read or measured each time they are needed, so what a launch costs is visible where it is paid.
  • invisible-playwright fetch looks for a newer list of intermediate certificates every time it runs (a small request; the list is downloaded only when Mozilla changed it). A launch only reads the list on disk and starts no background check.
  • new_context(proxy=...) measures the UDP exit of its proxy every time, instead of reusing a measurement of the same proxy from the last 30 minutes.
  • A launch without a proxy asks for its exit address every time, instead of reusing an answer from the last 2 minutes.
  • The UDP verdict the session measured at launch is handed to the browser's proxy command explicitly.

Fixed

  • wait_for_load_state("networkidle") and goto(..., wait_until="networkidle") on a new document count the quiet from that document's commit, as Playwright does: the silence before the commit no longer counts toward its 500 ms.

[0.56.0] - 2026-11-19

Engine firefox-67

  • A site that sends an incomplete certificate chain (its certificate without the intermediate that signed it) opens from the first second, as it does on a Firefox that has been in use for days. Firefox completes such chains with the intermediate certificates Mozilla publishes, which a fresh profile only downloads a minute or so after its start; the list is now declared by the core and written into the profile before the first page, so every session has it from its start.
  • The engine no longer downloads that list itself: no request for it leaves the browser, through the proxy or otherwise.
  • The browser tells the client it is ready only once the list is written, so no page can be opened before it is in place.

Changed

  • Pins invisible-core 67.77.0 and with it the engine firefox-67. The core downloads the list from Mozilla's service once, verifies every certificate against the hash Mozilla publishes for it, keeps it in its cache and asks again at most once a week, after the browser has started, so a launch never waits for it; with no copy and no network the browser starts without the list and a warning is printed.
  • invisible-playwright fetch also downloads the list, after the engine, so the first launch does not.
  • The CI legs launch with a fixed, empty list of the repository (ci/intermediates.json), so no test asks Mozilla for anything.

[0.55.0] - 2026-11-19

Changed

  • Pins invisible-core 66.76.0 (same engine, firefox-66): the core no longer carries its legacy API, and the wrapper no longer reaches any of it.
  • tests/conftest.py takes the engine entry table from invisible_core.seal.DEFAULT_ENTRY_REL, and a test fails if a file of the wrapper imports a name the core removed.
  • The workflows arm the pre-push gates with python -m invisible_core.hooks install.

Removed

  • The nine modules that only re-exported invisible_core (invisible_playwright._geo, _headless, _proxy, _webgl_personas, config, constants, download, prefs, _fpforge) and invisible_playwright._reaper: import invisible_core.<module> (invisible_core.process for the reaper). resolve_session_timezone is no longer re-exported from the package root.
  • INVPW_CURSOR_ENGINE=binary and the fallback to the browser's own motion when no generator is found: the engine is the Python one, or off. The variable is strict: unset, python or off; any other value (binary, none, false, 0...) is a ValueError that lists them.
  • The test that scanned a driver bundle tree, which only the removed Node driver had.
  • INVPW_TRANSPORT=driver and its refusal message: there is one transport.
  • scripts/install_hooks.py: python -m invisible_core.hooks install (with --check to only report) does the same, from the core.

Fixed

  • The documentation no longer presents INVPW_BINARY_PATH as a variable of the library, which reads none; a binary you already have is passed as binary_path=.

[0.54.0] - 2026-11-18

Engine firefox-66

  • A screenshot on Linux draws text in the fonts the page used. The browser's main process rebuilds each font of a screenshot from its file and asks fontconfig to confirm that file; it now shows the bundled fonts to fontconfig before it builds its font list, so the file is known and kept instead of being replaced by a fallback font (screen and canvas were already right; only screenshots were wrong).
  • A face of a font collection (.ttc) keeps its own index when the main process rebuilds it, so it is no longer drawn as another face of the same file (Cambria Math, MS PGothic and NSimSun came out as Cambria, MS Gothic and SimSun). This is Mozilla's fix of bug 2077661, carried as Mozilla wrote it until a Firefox release ships it.
  • Windows was not affected.

Changed

  • Pins invisible-core 66.75.0 and with it the engine firefox-66.

Added

  • A test that draws text in each bundled family the identity declares (accents, a typographic apostrophe, Chinese, Japanese, Arabic, Russian, and two faces that are not the first of their collection) and compares the screenshot, byte for byte, with the same text drawn by the page itself into a canvas, on Linux and on Windows.
  • A Linux test that a second launch reads the bundle from fontconfig's cache and does not scan the folder again, measured under strace, with a test of the strace stand-in itself.

[0.53.1] - 2026-11-16

0.53.0 was tagged but never published; its changes ship in 0.53.1. One of its tests read the page's address too early when the first of two navigations wins; 0.53.1 corrects that test.

Engine firefox-65

  • Keys, clicks and the mouse path stay on their planned timing under load.
  • A second goto that starts while a site is changing process no longer hangs.
  • The isolated worlds of init scripts are always created.
  • A worker comes back with its page from the back-forward cache.
  • The names looked up as a context closes go through that context's proxy.
  • close() returns when the browser has exited, and never interrupts it while it exits.

Changed

  • Pins invisible-core 65.74.0 and with it the engine firefox-65.
  • The path of the cursor leaves as one stroke. The approach, the walk before a click, the wheel burst and the idle movement hand their planned timeline to the core's Actions.walk, which sends each point at its planned instant on the client's own clock, without waiting for the reply of the one before; the replies are collected at the end. Before, each point was a command of its own that waited for the engine's reply, and a slow reply was a pause in the path that the page saw (2.6 s measured on a GitHub runner), with the points after it crowded together. A lone mouse.down, mouse.up or one-step mouse.move is still a single command that waits for its reply, as in Playwright.
  • close() returns when the browser has exited, and the removal of the session's directories and the last reap of its tree are left to the reaper of the launch (invisible-core 65.74.0), instead of being done at once and waiting for the sender of the shutdown pings. A session that is over is forgotten by the registry of reapers, so a long-lived server no longer keeps one entry per session.
  • The download and upload folders of a session are removed by the reapers of its launches, after the tree has ended, and no longer on the server's shutdown thread that the user's exit waits for (4 profiles removed together took up to 2.5 s on Windows). With no reaper they are removed at once, as before.

Fixed

  • The cursor's motion never fails an action for what the engine or the page answers (a closed target, a detached frame, a refused or unanswered command), and no longer hides a bug of ours: an error of our own in the path (an AttributeError, a TypeError) comes out of the action instead of being swallowed with one warning and a click that goes out with no path.

Removed

  • pytest-rerunfailures from the dev extra. No run of this repository reruns a test (the e2e run refuses the plugin by name, -p no:rerunfailures).

Tests

  • The e2e tests wait for a condition with a deadline of 30 s, not for a clock, and the workers share no port: a Marionette port per launch, the HTTP/3 server serves on the UDP socket its picker held. A test that is red now says what it saw. (#507, #511, #514)
  • The shelved engine line is firefox-66; its 15 tests wait for it. (#509)
  • A loop late in its selector is not held; only the time its thread runs counts. (#508)
  • A check that the e2e tests do not wait on clocks, share ports, write the environment or reach the world; the debt of that check only shrinks.
  • The whole unit suite is a required suite of the candidate: 1988 tests on Linux and 1989 on Windows.
  • The click and pointer benches count a stroke's instants on their virtual clock, and the key-delay test reads the browser's own event time stamps. (#516)
  • The e2e workflow uploads the junit of every pass of the run (Linux, and each Windows part), green or red.

[0.52.1] - 2026-11-15

Changed

  • Pins invisible-core 64.73.0 (same engine, firefox-64). The compositor is now declared in software on every machine, as a retail Firefox reports on a machine without a usable GPU, and never read from the host. Before, the hardware compositor was declared over a software adapter, which cost about 6x the CPU in the GPU process.
  • Windows: the engine is created inside a job of its own, so a launch no longer scans every process of the machine to bind the engine's tree. (#498)
  • Several browsers in one async program no longer slow one another down:
    • connect() starts no thread on the event loop (#497).
    • The virtual display of headless=True starts off the event loop (#499).
    • Closing a browser waits for its processes and removes its profile without holding the loop that serves the others: with four browsers in one process the loop was held for up to about 0.5 s per close, and is not held now (#503).
  • Comments, the fork notes and one test message no longer point at scripts that were deleted (the transport comparison scripts and the prefs byte-parity gate: no round ran them). No behaviour changes. (#458)

Added

  • page.expose_function, page.expose_binding, context.expose_function and context.expose_binding, as in Playwright: the page calls a Python function and gets a promise (the value, a rejection when the function raised, an await when it is async). The page sees the function and nothing else (no name of ours on the window, no init script); an engine without Page.addBinding is refused with a clear sentence. Arguments and results cross as JSON. (#471)
  • Locator.screenshot() and ElementHandle.screenshot(): a picture of the element, as in Playwright, in the page, in a frame of another site and in a frame nested in it. (#470)

Fixed

  • A context init script added after a page exists runs once in it, not twice. (#469)
  • A CORS preflight (an OPTIONS request that no route holds) is no longer reported to the client, as in Playwright's own server: page.on("request"), route and a request counter hear of one request fewer for each preflighted fetch of the page. (#467)

Tests

  • Every test module is checked to leave no browser open (a census of the connection threads, which needs no package to run). (#497, #500)
  • Software compositing is declared: the compositor in use, the CPU of the GPU process, and the bytes a page reads compared against a recorded reference, on Linux and Windows. (#501)
  • The UDP bench survives a loaded Windows machine, and its verdict says what it saw. (#502)

[0.52.0] - 2026-11-14

Changed

  • Pins invisible-core 64.71.0 and with it the engine firefox-64. A request a page causes now leaves in the context of that page, by that context's proxy and resolver: the name of a TURN server over TCP, the OCSP request of a certificate, the TLS over a tunnel, the Safe Browsing completion of a page load. Nothing of a context with a proxy goes out DIRECT when a proxy lookup fails or the context has just closed. On Linux the profile lock no longer looks up the machine's host name.
  • Typing: each key is sent at its planned time measured from the start of the action, so a late reply no longer shifts the keys after it, and the engine delivers each key at once with its event born the declared latency in the past. Measured against stock Playwright Firefox, 20 runs per cell, slip of the last key against the plan (median): Windows 635 ms before, 6 ms now (stock 122); Linux 554 ms before, -5 ms now (stock 91).

Fixed

  • Screencast: a frame that arrives while the start of the screencast is being answered is held and acknowledged, not dropped, so the stream no longer dies from its first frame (the engine keeps one frame in flight and waits for its acknowledgement).
  • No thread is started on the engine connection's reader any more (the adoption of a new page and the file chooser hand their work to one long-lived starter). On Windows under load a Thread.start there held every event behind it; without instrumentation, goto(..., wait_until="networkidle") on pages that replace themselves missed 1 in 1200 instead of 4.

Tests

  • The suites "nothing of a context leaves but through its proxy" (a witness of every direct arrival, the engine's resolver log as the sink of native lookups), on Linux and Windows, including two contexts with their own proxies at once and a PeerConnection of a torn-down window.
  • Windows: the isolated-page test moves the page when the test says so instead of on a 500 ms timer; the sandbox test reads again a process that is still starting.

[0.51.1] - 2026-11-13

Changed

  • Pins invisible-core 63.68.0 (core fixes on the same firefox-63 engine: two sessions starting together on Windows no longer fail on the shared font-manifest cache; no MOZ_*, GL or toolkit variable of the host reaches the engine; GitHub is asked for the latest GeoIP database once a day, not on every launch; mouse moves carry the pressed buttons; a CORS preflight does not count for networkidle).
  • The project moved to the oss-invisible GitHub organization: every GitHub link, the issue templates and the package URLs point to github.com/oss-invisible/playwright. The PyPI name and the import name do not change; the old addresses redirect.

Fixed

  • A popup (a window.open or a target=_blank link) could be handed to the client at about:blank, with the blank page's load, when it was opened with no route on the context: the commit of its address, or its DOMContentLoaded and load, arrived while the page was being handed from its buffer to its dispatcher and was told to nobody (page.url stayed about:blank, or wait_for_load_state("load") timed out). Measured on Windows with the library's client in the same process, test_popups_reach_the_client_e2e.py x20 on 4 workers: 3 runs red with the published firefox-62 engine and 11 with firefox-63. The page is now handed over in one step: what the client was not told is said once, in order, and nothing the engine sent in that period is lost.
  • The same hand-over dropped every event that is not a request: a console message, a pageError, a dialog (an alert() that opened while the popup was being built blocked its page for good, because no client had been told of it and none could answer it), a crash, a file chooser. All of them are given back now, in the order they arrived. The only bound left is the memory of the buffer (512 events): an event beyond it is lost and a RuntimeWarning says how many, once per page.
  • The hand-over holds when the engine's reader, the adoption and a close run at the same time: a load is told to the client once (not twice, so page.on("load") runs once); an event the engine sends while the held ones are being given back waits for them (a response is never handled before its request); a document committed at the same address as the previous one is told; a page closed while it was being adopted is not given frames, and is not announced, after its __dispose__; one frame never gets two dispatchers.
  • A popup could still be handed to the client at about:blank (or with its navigation pending again, and "Execution context was destroyed" in its first evaluate) when the destination committed while the events the page had missed were being replayed to it: the engine's reader went on delivering the live events to the lifecycle, and the replay then brought older ones after them. The page now subscribes its readers and is handed the missed events in one step, with the delivery of the sessions' events held, so a live event never overtakes the replay. With the three corrections together, on Windows with the library's client in the same process, under load: 680/680 and 256/256 popup cases green (run 43261858525).
  • Control+A selects all in an <input> and a <textarea> on Windows, on the published engine and the core this package pins: a new end-to-end test (five ways to press the shortcut, in-process and served to the stock client), run by e2e.yml on Windows, 20/20 green (run 43262320744).
  • Tests only: the e2e tests of the test servers take their ports from one sequence (no two servers draw the same one); the two tests that read a consecutive pair of host ports run alone, after the parallel tests; the sandbox e2e (the browser's seccomp filter) runs in a step of its own that turns unprivileged user namespaces on, and is left out of the normal run; every leg launches with a GeoIP database the repository builds (same bytes every run, no download); the CodeQL alerts of the test code are fixed; the install job waits for the package index through both installers; the raw Juggler tests wait for Page.ready and the main frame instead of a fixed time.

[0.51.0] - 2026-11-12

Changed

  • Engine firefox-63 through invisible-core 63.67.0, which this version pins (63.67.0 is 63.66.0 with the protocol mirror regenerated from the published engine; the mirror of 63.66.0 differed from it). Behind a proxy: names are resolved by the browser's own DNS-over-HTTPS through the proxy (not by the machine's resolver; checked with a resolver trap on Linux), WebRTC and HTTP/3 send their UDP through the proxy's relay when its UDP was measured to leave from the same address as its TCP, and a proxy whose UDP does not hold (including one whose UDP leaves from another address) is treated as a router that drops it (HTTP/3 falls back to HTTP/2, ICE gathers no server-reflexive candidate). A proxy given to a context declares its own measured UDP exit. The interface list WebRTC gathers is the network the session declares.
  • Behind a SOCKS5 proxy the proxy now receives addresses, not names (the names are resolved by the DNS-over-HTTPS through it); a proxy that cannot carry HTTPS to mozilla.cloudflare-dns.com resolves no name.
  • A STUN server list can be given at launch (udp_stun_servers) for the measurement of the proxy's UDP.
  • Every context carries the position the core declares for the session (the geolocation override of the context).
  • The package's launcher and server refuse the two prefs that govern the launch counter, invisible_firefox.usage_ping.enabled and invisible_firefox.usage_ping.url, in extra_prefs (and in the firefoxUserPrefs of a served launch). The engine counts launches with an anonymous GET to the usage-counter release of the engine's repository (oss-invisible/firefox_antidetect_patch).

Added

  • preload_newtab=False turns off the preloaded New Tab page, on request only (InvisiblePlaywright, invisible_playwright.async_api.InvisiblePlaywright and launch_server): by default the browser keeps it, as a retail Firefox does. A retail Firefox keeps the New Tab page ready in a content process of its own; with the option it is not started. None writes nothing, True says the retail value aloud, and a browser.newtab.preload in extra_prefs wins over it. Needs invisible-core 63.66.0 or later. Measured on Windows (run 43211271731), on an engine build of the firefox-63 candidate line (not the published engine), one page of a site, five alternating runs: the browser's processes together take 448-454 MB as shipped and 231-239 MB with the option (private memory 301-307 against 158-171 MB).

Fixed

  • A request the browser resumed and whose channel is replaced and cancelled before the replacement starts (a fetch with keepalive, a beacon) is reported as failed, so it no longer keeps networkidle from arriving (engine firefox-63).
  • A navigation the page overtakes (location.replace) ends, and the document that overtook it is told (engine firefox-63).
  • A click in a frame under a CSS transform is mapped back to the point the frame shows, and a click in a frame scrolls the element in even when its point is inside the main viewport (invisible-core 63.66.0).
  • request.resource_type agrees with the pinned driver: a beacon is beacon and a CSP report is cspreport (it said other).
  • A download whose finish is seen before its announcement is marked finished: save_as, path and failure used to wait for ever on it. The early finishes the browser keeps are bounded (64) and forgotten with their context. (That the engine sends a finish before the announcement is not proven; the path is defensive.)
  • The opener kept for the downloads of a target whose adoption failed lives until the engine detaches the target, and none is made for a target already detached.
  • Tests only: the end-to-end tests that look at content processes ask for the processes of a site by its name and no longer compare two counts.

Known differences from stock Playwright

What a script that drives the browser can observe, from the configuration of Playwright's own Firefox and of a retail Firefox (no comparison run is saved). The result of a window.open (null or a window) is read by the page; the others are what the script sees.

  • A window.open from a script with no user gesture is blocked, as in a retail Firefox. Playwright's own Firefox turns the popup blocker off (dom.disable_open_during_load false in its playwright.cfg); a retail Firefox keeps it on, and so does this browser. So page.evaluate("window.open(url)") returns null to the page and no page event comes; the same window.open from a click opens the popup on both. To get stock's behaviour: open the popup from a click; or pass extra_prefs={"dom.disable_open_during_load": False} for the session, knowing that a page then sees a browser that differs from a retail Firefox.

[0.50.1] - 2026-11-12

0.50.0 was tagged and never published: its end-to-end gate was red on two tests that counted processes. 0.50.1 is 0.50.0 with those tests corrected.

Changed

  • Engine firefox-62 through invisible-core 62.63.0, which this version pins: firefox-61 plus Fission and the Juggler for frames in another process. When goto returns, the frames below have the address of their first document (an iframe of another site used to be listed with an empty url for a moment); a goto to the address the page is already at ends; a late event of a frame that left the page no longer brings it back into page.frames.
  • Fission: iframes of another site run in a content process of their own (isolation strategy 1, fission.autostart on, four isolated content processes), as in retail Firefox on desktop. The strategy comes from the invisible-core baseline of the firefox-62 engine, whose Juggler reaches a frame in another process like any other. The tests that held strategy 0 (tests/test_cross_origin_iframe.py) now hold strategy 1, and the Fission end-to-end tests (frame tree, element to frame, geometry, input, crash of an iframe process, identity of the iframe and of its page) run on that engine.

Fixed

  • goto(wait_until="networkidle") arrives on a page that is reused for many addresses, and on a served browser whose context routes every request, as with a stock Firefox. Two causes, both ours. A route answered after the browser had already closed its request (a fetch the page aborted, an image it replaced, an iframe it removed, a beacon cancelled with its document) came back to the client as an error, which the client kept for the whole connection and raised on the next route command; that command was never sent, its request stayed held in the engine, and so on down the page. The server now takes such an answer as done, whatever wording the engine gives it ("Cannot find request", or "NS_BINDING_ABORTED" when the channel was cancelled while the answer was on its way), as Playwright's own server does. The same defect was found a month earlier by richardpowellus (#351), on the favicon of the page a goto had just left; his test is part of this release. And the core counted the requests in flight with one integer per page, never reset by a navigation, so one request whose end never arrived kept every later address from going idle (invisible-core 62.64.0 keeps them by request id, per document, and does not keep the requests of a frame that already left: a beacon sent at pagehide is announced after its frame is gone).
  • A goto sent right after new_page is no longer "interrupted by another navigation to about:blank" on a loaded machine. The page was handed to the caller as soon as its main frame was announced, while the engine had not yet committed the page's own initial about:blank; a navigation answered before that commit lost to it. The page is now handed over when the engine says it is ready (Page.ready), as Playwright's own page is (invisible-core 62.65.0, Lifecycle.wait_for_page_ready; a page closed before it was ready ends the wait with an error at once).
  • A launch that names no session (Playwright's own BrowserType.launch against the server) gets a session composed the way InvisiblePlaywright() composes one: prefs, environment and, behind a proxy, the egress the page reads as its WebRTC address. It used to come up with Mozilla's defaults, and on Linux its first new_page failed with "Unexpected number of tabs in the new window: 2".
  • A frame that left the page (an iframe a script removed) answers a call with "Frame was detached", as Playwright does, not "Target page, context or browser has been closed".
  • grant_permissions uses the permission names of the engine. geolocation and notifications used to reach the engine under the web names while it keeps a grant under geo and desktop-notification, so a page of a context that had been granted geolocation and given a position was still denied. The names are those of the Playwright client for this browser (geolocation, persistent-storage, push, notifications, screen-wake-lock); any other name raises Unknown permission, as it does there, and a grant with no origin is a grant for every origin.
  • The end-to-end tests that count content processes count the ones that host a site, not every content process that is new. The engine keeps a pool of preallocated processes and refills it whenever it gets to it, so a refill landing between two reads looked like a process the test had caused (a same-site frame, a closed context with a service worker that never stops). Measured on firefox-62: a closed context leaves no process of its site. On Linux the process is named by the site it hosts; elsewhere these tests skip.
  • A popup (a target=_blank link, window.open) reaches the client as it does with Playwright's own Firefox: when its destination answers, with no limit of time, with the destination's address as its url, and with load reachable on it. It used to be given up on after 20 s, could be announced with about:blank as its url, and about one in a hundred was never announced. A destination that never becomes a page (a 204, a server that never answers) is not announced, as on stock. Measured against stock destination by destination, with answers after 4 s and after 25 s: 18 cases of 18; and 128 popups announced of 128 across the two transports (the library client, a stock client over launch_server).
  • For a popup whose answer is a download, the opener's download event comes after the popup's page event, as on stock. With little CPU the download could arrive and the page never be announced. Measured on a runner limited to one CPU: 8 runs red of 10 before, 0 of 10 after.

Known differences from stock Playwright

Measured against Playwright's own Firefox with the same script, on this version. None of them is a value a page reads; they are what a script that drives the browser can observe.

  • The url of a popup that turns into a download. A link or a window.open whose answer is an attachment gives, as on stock, a page event, a download event on the opener, and a popup that closes at once. The popup's url at the page event is about:blank here and the empty string on stock. Measured: 8 cases of 8 (link and window.open, the library client and a stock client over launch_server), against 4 of 4 on stock.
  • The url of a frame of another site at the page's DOMContentLoaded. A frame of another site runs in another process, as in a retail Firefox, and commits its navigation after the page's DOMContentLoaded; stock Playwright keeps frames in the page's process. So frame.url read right after goto(..., wait_until="domcontentloaded") can be the empty string. After load it is always set. Measured, 30 runs each: after load the url was there 30 times here and 30 on stock; at DOMContentLoaded once here and 30 times on stock. Wait for load, or for the frame's own navigation, before reading it.
  • A click takes longer with the library client. From click() on a link to the page event of the popup it opens: 0.8 to 1.7 s more than stock with the library client, and the same as stock (within 0.1 s) with a stock client over launch_server. Measured on 64 popups per transport and on destinations that answer after 4 s and after 25 s. The same run with humanize=False was not measured.
  • Back and forward restore the page from the back-forward cache. As in a retail Firefox, go_back and go_forward bring the page back as it was; Playwright's own Firefox loads it again. So a script that runs when the page loads does not run again here. Measured on a 17-step journey with the same script on both: on its three back and forward steps the page's load-time requests were sent again on stock (6 beacons each) and not here (0, 2 and 0, the two being the ones a page sends when it is left); every step ended on the same page, and the other 14 steps sent the same requests.

[0.49.1] - 2026-11-10

Changed

  • Engine firefox-61 through invisible-core 61.62.0, which this version pins: firefox-60 plus four fixes. A context that ends no longer leaves a content process behind when a service worker that never stops keeps it alive (the engine kills the processes of the container that stay); the shared font resources of a closed window leave WebRender's pool with it; Page.screenshot empties its canvas on every way out; Page.setEmulatedMedia names the media features it refuses, in English.
  • A context route turns the context's cache off while it is active, as Playwright does.

Fixed

  • page.request_gc() works on a served browser. It sent the engine's Heap.collectGarbage on the browser-level connection, whose handler does not have it, so every call failed with Handler for does not implement method "Heap.collectGarbage"; it is now sent with the session of the page, as the engine answers it.

[0.49.0] - 2026-11-10

Changed

  • Engine firefox-60 through invisible-core 60.61.0, which this version pins: firefox-59 plus the Juggler's memory fixes. A tab no longer keeps the documents it left alive (they used to stay as detached windows after leaving the back/forward cache), and a main-frame navigation drops the response bodies of the documents it left, as Chromium does: response.body() of such a response raises the evicted error Playwright already returns for Firefox.

[0.48.1] - 2026-11-10

Added

  • launch_server, launch_server_async and RemoteServer are importable from invisible_playwright, and the README's "Serving one browser to many clients" has a complete example: a server, and a Playwright for Python client that connects to its ws_endpoint.

Changed

  • invisible-core 59.60.0, which this version pins. The browser never opens its crash reporter: the launch environment carries MOZ_CRASHREPORTER_DISABLE=1, so an engine that refuses a launch no longer leaves a "Crash Reporter" window on a Windows desktop.
  • The e2e run stops at the first refusal of the engine instead of launching the browser for every test (a change to the test suite, not to the package).

[0.48.0] - 2026-11-10

Added

  • launch_server() serves one browser on a WebSocket to any Playwright client: the Playwright initializer is the one of protocol 1.62, a call's timeout is read from its metadata or its parameters, a Dialog is a protocol object, and the pointer's path is drawn by the server, once, for every client.

Changed

  • Engine firefox-59 (Firefox 159.0), through invisible-core 59.59.0, which this version pins. On Linux WebGL draws on the engine's own GL, never the host's, under X11 too, and every extension the persona declares answers as on Windows. The same seed gives the same pointer path, typing and persona on Python 3.11 to 3.14 (59.59.0 replaces the two builtins that differ between versions).
  • The server collects its oldest protocol objects as Playwright's does, with a lower limit for Request, Response and Route (2000, not 10000; nothing younger than 10 seconds). A program that holds more than 2000 requests or responses in hand for longer than 10 seconds gets "Target closed" on the oldest ones. INVPW_GC_LIMITS changes the limits.
  • A closed context leaves nothing in the server's registry.

[0.47.1] - 2026-11-08

Changed

  • invisible-core 58.56.0, which this version pins. A persona has the keyboards Windows installs with its language and country, read from Windows' locale.nls (English US besides Persian, Azerbaijani, Bashkir, Cherokee and Sakha; Russian besides Belarusian, Tatar and Armenian; Hindi Traditional for Hindi), and switches as a user does: left Alt + Shift to the next language, Ctrl + Shift to the next keyboard of the same language. The keyboard pref carries Windows' own form (LANGID:KLID joined by semicolons).

[0.47.0] - 2026-11-08

Changed

  • Engine firefox-58 (Firefox 159.0), through invisible-core 58.55.0, which this version pins.
  • A persona has the keyboards Windows installs with its language: the language's, and the second one (English US with Russian, Greek, Arabic, Hebrew and most languages not written in Latin letters). A character the active keyboard lacks is typed on the other one, after left Alt + left Shift, Windows' default switch; press("x") on a Russian or Greek session no longer raises "unknown key". Only a character no keyboard has is inserted as text.
  • scroll_into_view_if_needed() is the engine's own scroll, only when needed.

Fixed

  • In the engine: a navigation Firefox refuses before any channel (a restricted port) ends with its error instead of never; a request held by route() that the page cancels is no longer held; unroute with a request that can no longer be resumed no longer fails; a session cookie set with expires: -1 is kept, sameSite: "None" is SameSite=None, and a cookie Firefox refuses fails add_cookies() with Firefox's reason.

[0.46.4] - 2026-11-08

Fixed

  • The engine and the GeoIP database install when GitHub's direct release links fail. Through invisible-core 57.54.0, which this version pins: each release file is fetched from the API route first and from the direct link second, and one download attempt tries both, so a 504 on one route is served by the other at once. On 2026-11-08 every direct link answered 504 while the API route served the same files.

[0.46.3] - 2026-11-08

Changed

  • Engine firefox-57 (Firefox 159.0), through invisible-core 57.53.0, which this version pins. The WebGL extensions a page sees are decided once, by the engine's WebGL host, from the persona's declared list: the content process no longer has a list of its own, an extension the host's GPU cannot serve is never created (its calls stay harmless), and getSupportedExtensions() lists them in Firefox's own order, the only order a retail Firefox gives (the WebGL 1 list had EXT_sRGB before EXT_shader_texture_lod).

[0.46.2] - 2026-11-07

Changed

  • The persona types on the keyboard a Windows install gives its language in its country, for every language: German in Switzerland on the Swiss keyboard, Dutch on US-International, Polish, Czech, Turkish, Greek, Hebrew, Arabic and the rest on their own keyboards; a language Windows has no profile for takes the keyboard of the country's main language; Japanese and Korean type on the keyboard under the IME. The session passes its country to the server, which only had the language list before. The tables come from invisible-core 56.53.0, which this version pins, read from the bytes of the Windows layout files rather than from the machine.

[0.46.1] - 2026-11-07

Fixed

  • The typing rhythm uses the hand of the key on the persona's keyboard, through invisible-core 56.52.0, which this version pins: on a German keyboard z was counted as a left-hand key and an Italian ò had no hand, so the same-hand and alternate-hand timings were applied to the wrong pairs. The US keyboard is unchanged.
  • The pyproject comment on the dependencies names the server that exists (_juggler/), not a Node driver (tests/test_pyproject_names_real_paths.py).

[0.46.0] - 2026-11-07

Changed

  • Engine firefox-56 (Firefox 159.0), through invisible-core 56.51.0. A WebGL extension the persona declares can now be called without killing the browser: the host serves every declared extension wherever its GL can, and an entry point whose extension is off returns instead of asserting. Until now one provokingVertexWEBGL() call on Linux took the main process down, one page in 5,000 (tests/test_a_declared_webgl_extension_survives_its_use_e2e.py).
  • The persona types on the keyboard of its language. The server reads the language the launcher decided for the session (intl.accept_languages) and hands the matching layout to every page's hands: Italian, German, French, Spanish, Brazilian (ABNT2) and British keyboards, read from the layouts Windows ships, with Firefox's own keyCodes on Windows; everything else stays on the US keyboard. Until now every persona typed on one US table with Chromium's key codes: an Italian persona typed ò with no key event at all and @ as Shift+Digit2, and every persona sent 186/187/189 for ;/=/- where Firefox sends 59/61/173. The tables and the keyboard live in invisible-core 56.51.0, which this version pins (tests/test_the_keyboard_follows_the_session_language.py).
  • A dialog (alert, confirm, prompt) is answered after the pause a reader takes, counted from the moment it opened: a reaction part and a reading part that grows with the words, both drawn from the session's seed and clamped, one draw per dialog. Until now Page.handleDialog left in the same millisecond Page.dialogOpened arrived, whether the client dismissed the dialog itself (no handler) or a handler called accept(); a page timing alert()'s return saw single-digit milliseconds. Only the remainder is waited, so a handler that took its time is not made slower, and a session with no seed (humanising off) answers at once as before (_juggler/dialogs.py, tests/test_a_dialog_is_answered_after_a_pause.py).

Removed

  • Linux arm64 is no longer supported from firefox-56: no engine is built for it. firefox-55 is the last engine with a Linux arm64 build. The engines are Linux x86_64 and Windows x86_64; Windows on ARM64 still runs the x86_64 engine.
  • scripts/ci_font_gate.py and its test. The host gate (scripts/ci_host_gate.py) asks the general question, whether anything a page reads comes from the host, and it covers the font list. It ran green on the firefox-55 release, which was the condition for removing the font gate.

[0.45.0] - 2026-11-04

The pin moves to invisible-core 55.50.0, which brings the firefox-55 engine. Firefox is still 159.0.

Changed

  • What a page reads about the graphics card is the identity's, on every host. Each identity now stands for one real Windows 11 GPU, and Firefox's graphics blocklist answers as Firefox 159 for Windows answers on that GPU. A host whose adapter Firefox would block (a virtual machine, a CI runner) no longer turns WebGL2 or antialiasing off.
  • navigator.gpu.requestAdapter() returns the adapter of Firefox 159 for Windows on every identity, with the same features and limits, also on hosts without a GPU.
  • Text is measured and drawn the same way on every OS (the Windows DirectWrite implementation): on Linux, text metrics and rendering are those of Windows.
  • A 2D canvas is drawn on the CPU on every host, so its pixels no longer depend on the host GPU.
  • WebRTC video encoding support is the same as Firefox 159 for Windows, whatever encoders the host has.
  • A new profile opens straight on the page: the first-run terms-of-use dialog of Firefox no longer covers it and the page has focus and input at once.
  • Fullscreen follows the identity's screen.
  • 17 seeds in 1500 get a different GPU: the identities that drew a Direct3D 10 class card (which has no Windows 11 driver) now draw a current GeForce card.

Fixed

  • getParameter answers state the page has set (depth function, stencil, blend, pixel store, draw buffers) from the live context instead of its initial value; the stencil masks are 4294967295 as on Firefox 159.
  • getParameter(MAX_VIEWS_OVR) answers 4 wherever OVR_multiview2 is offered, instead of the host's value.
  • The CSS system colour -moz-dialog is white, as on Firefox 159.

Tests

  • The host gate: what a page reads at a given seed is compared between Windows and Linux hosts and with official Firefox 159, including the window in fullscreen and back.

Known issues

  • On Linux arm64 navigator.gpu.requestAdapter() returns null.
  • On Linux maxBindingsPerBindGroup differs from Firefox 159 for Windows.

[0.44.1] - 2026-10-31

The pin moves to invisible-core 54.49.0. The engine is the same firefox-54 (Firefox 159.0).

Fixed

  • navigator.mediaCapabilities.decodingInfo({type: "webrtc"}) no longer reports the host GPU's hardware decoding for VP8, VP9 and AV1. The answer is now the same as Firefox 159 on Windows, on Windows and Linux alike. AV1 follows the identity's AV1 setting.

[0.44.0] - 2026-10-31

The pin moves to invisible-core 54.48.0, which brings the firefox-54 engine: Firefox 159.0.

Changed

  • invisible-core 53.48.0 -> 54.48.0, sealed to the firefox-54 engine (Firefox 159.0). Every identity reports what Firefox 159 reports: its User-Agent, its WebGL extensions and its branding.
  • A click on an element that is already in full view no longer scrolls the page. The element is brought to the centre only when part of it is outside the viewport, as Chromium's scrollIntoViewIfNeeded does.

Fixed

  • Downloads reach Playwright: page.expect_download(), Download.save_as(), path(), failure(), delete() and cancel() work, and a goto that ends in a download fails with "Download is starting" instead of hanging until its timeout. Contexts created with accept_downloads=False cancel downloads.
  • BrowserContext.set_offline() works instead of being refused: an offline context loads nothing and reports navigator.onLine === false.

Tests

  • e2e: a clicked download and a navigation that ends in a download.
  • e2e: no scroll for an element in full view, also inside a same-origin frame; an element below the fold is centred.
  • e2e: set_offline stops loads and set_offline(False) resumes them.

[0.43.0] - 2026-10-24

The pin moves to invisible-core 53.48.0, which brings the firefox-53 engine.

Fixed

  • After a page that runs in a content process of its own (served with Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy, as challenge pages are) sends itself to a page that does not, locators, inner_text and query_selector no longer fail for good with "Cannot find object with id" when a read was made on the first page. The engine's context ids are now unique for the session, and an element handle kept across such a move can no longer reach a different node.

Changed

  • The exposed fonts are the set of a clean Windows: Leelawadee, Microsoft Uighur, Wingdings 2 and Wingdings 3, which such a machine does not have, are no longer exposed (67 families).

Tests

  • e2e: reads on an isolated page, then on the page it sends itself to.
  • The font gate checks that the engine's own manifest declares exactly the canonical families, none more and none less.

[0.42.0] - 2026-10-24

The pin moves to invisible-core 52.48.0, which brings the firefox-52 engine.

Changed

  • invisible-core 51.48.0 -> 52.48.0, sealed to the firefox-52 engine (Firefox 151.0). A 2D canvas, on the page or offscreen, now reads back exactly as it was drawn, as on retail Firefox: the canvas noise is applied to WebGL and WebGPU readback only, which is unchanged.
  • A toDataURL/toBlob PNG carries the per-session deBG chunk retail Firefox 151 writes after IDAT; the pixels are untouched.
  • 1920x1080 panels are drawn at 125% and 150% as often as the Windows fleet is, so more seeds report a display scale above 1 (core).
  • ClearType gamma and contrast are a declared persona field. Every seed keeps the untuned machine's values today.

Tests

  • e2e: a 2D canvas reads back as drawn on a page canvas and on an OffscreenCanvas, and screenshots follow the persona's display scale.

[0.41.0] - 2026-10-21

The pin moves to invisible-core 51.48.0, which brings the firefox-51 engine.

Changed

  • invisible-core 50.48.0 -> 51.48.0, sealed to the firefox-51 engine (Firefox 151.0). The canvas noise now spares two-colour blends (edge_tolerance replaces edge_step in the core).

Added

  • font.system_text_quality is documented on the pinning page. It was already pinnable (0 none, 4 standard antialiasing, 5 ClearType; default 5) and documented nowhere.

[0.40.0] - 2026-10-19

The pin moves to invisible-core 50.48.0, on the same firefox-50 engine.

Fixed

  • expect() works for every condition, not two families. The server re-wrote Playwright's assertions in Python one condition at a time and had written to_have_count and the to_be_* states; to_have_text, to_contain_text, to_have_value, to_have_values, to_have_attribute, to_have_class, to_contain_class, to_have_css, to_have_id, to_have_js_property, to_be_focused, to_be_empty, to_be_in_viewport, to_have_title, to_have_url and the accessibility ones answered "is not implemented yet". Each reading is now Playwright's own expect, from the injected script this package already ships, called the way Playwright's server calls it: strict mode, element(s) not found, and a JavaScript error that ends the wait with its message. On Playwright's own suite, its expect tests on firefox-49 went from 30 of 94 passing to 75, with none lost.
  • to_have_js_property with an object, an array or a date as the expected value is refused by name: the page's value lives in another realm, and comparing it would always report a difference. Primitives are compared. to_match_aria_snapshot is refused by name too: its template is YAML that Playwright's server parses, and this one has no parser for it.
  • A failed expect reports an object as the object. The client read the value the server sent twice, the second time as if it were still in its wire form, so {"a": 1} failed with KeyError: 'id' instead of the assertion's message, and {"v": "x"} or {"n": 5} were reported as x and 5. The vendored client had the two reads from Playwright 1.61.0, which still has them; the second one is gone.
  • A failed expect prints its call log, as Playwright's does: the assertion and its timeout (Expect "to_be_visible" with timeout 5000ms), what it waited for (waiting for locator("#a1")), and what each reading found (locator resolved to <input/>, unexpected value "Go"). The message said what was expected and what was seen, and nothing of the wait in between.
  • page.goto follows the context's base_url. The server never read it, so goto("/empty.html") in a context created with a base failed with "Invalid url /empty.html"; it now navigates to the base's /empty.html, as Playwright does. The address is resolved by the engine's own URL parser, the one that then navigates to it.
  • page.evaluate, evaluate_handle, wait_for_function and the element-scoped evaluations run the caller's text as a script, as Playwright does. The server put it inside an expression so that it could call the result in the same pass, so a statement with its semicolon, setTimeout(() => {...}, 2000);, died with "missing ) in parenthetical". The text is now evaluated on its own and a function it produces is called with the argument, and the page sees the caller's code without anything around it. wait_for_function evaluates a function predicate once per document and calls it on every turn, as Playwright's poll does.

Changed

  • The user-install job runs on the ledger pull request, not on release: published, which never fired: the Release is created with GITHUB_TOKEN, and an event that token causes starts no other workflow. CI checks the wiring with python -m invisible_core.install_job.
  • The release tests keep out of the venvs they build every variable the core's library reads, as invisible_core.install_job.LEAKS lists them: an engine folder, a seal file or a GitHub token in the caller's shell no longer changes what they measure.
  • The publish workflow checks the version and the ledger against the index before it uploads (invisible_core.release check --verify-index), as the pre-push hook does: a clone without the hook can no longer skip it.
  • The vendored client's README says what actually differs from upstream. _pw/README.md named _impl/_driver.py, a file removed with the Node driver, as the only changed file, while eight files carry the # MODIFIED by invisible_playwright marker; it now lists them, in English.
  • _pw/ is no longer excluded from the English gate. The upstream code is English already, so the folder exclusion only hid our own text: the README and the error raised for chromium and webkit, now in English.
  • THIRD_PARTY_FORK.md gives the vendored client's version as 1.61.0, which is what _pw/_repo_version.py and the development pin say.

[0.39.0] - 2026-10-18

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 launch no longer writes TZ into the browser's environment. On Windows no TZ could satisfy both the C runtime and ICU, so some zones showed the machine's time inside a Worker, and zones outside a ten-row table were never covered; that is gone with it.

Changed

  • The IANA-to-POSIX conversion is no longer imported or used. Code that took IANA_TO_POSIX_TZ from the core has to stop: the core 50.47.0 removes it.

[0.38.0] - 2026-10-18

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 and more - are declared by the persona instead of read from the machine it runs on, and each of them can be pinned (pinning).

Changed

  • The way in is uv. The README installs with one complete block per system: uv from its own installer, uv init --python ">=3.11" my-project, uv add invisible-playwright, uv run invisible-playwright fetch. CONTRIBUTING, the guides and the issue template teach the same, and CI refuses an install instruction that is not uv (python -m invisible_core.way_in, core 49.45.0).
  • A remedy this package prints is the command for your environment. In a venv uv made, which has no pip, a broken install was told to run pip install --force-reinstall invisible-playwright; it is now told the uv command, and an environment pip made is still told pip, through its own interpreter.

Fixed

  • The Docker guide's base image has a Python older than this package needs, and the arm64 guide's Debian image an externally managed one, so neither install line could work: uv now brings the interpreter. The installation guide no longer lists macOS, which has had no engine since 2026-08-26.

[0.37.0] - 2026-10-17

The pin moves to invisible-core 49.44.0, on the firefox-49 engine.

Changed

  • Your code runs in a world of its own, where a page that replaced a standard API cannot count your calls. evaluate, evaluate_handle, wait_for_function, eval_on_selector(_all), locator.evaluate, handle.evaluate and set_content ran in the page's own realm, so a call to document.querySelector went through whatever the page had put in its place: a Cloudflare challenge wraps it, and one lookup of its token field from an evaluate got the clearance refused. They now run in a world with the page's principal where a name the standard defines is the native one, and every other name is the page's: window.__NEXT_DATA__, a node's __vue__ and the page's functions answer as before. On what the page created (its classes, their instances, its plain objects) the page's definitions win, toString and valueOf included, and an object your code hands to the page keeps its identity and looks to the page like its own (instanceof Array holds, its constructor is the page's). What changes, and it is declared rather than accidental: a name the standard defines for one of the browser's own objects wins even where the page redefined it on that object itself (a setter the page put on one input's value does not run; .wrappedJSObject gives the page's own view); a bare assignment to an undeclared name creates a global of your world, not of the page (window.x = 1 still reaches the page); and your code's own eval is not governed by the page's Content-Security-Policy, which governs the page's (window.eval) as before. Needs firefox-49.
  • request.post_data holds the body with no route as well. Until firefox-48 the engine read a request's body only while a route was set, so every POST of a page with no route answered None, like a form sent empty. It now reads every body up to 10 MB, as Playwright's does, and the upload reaches the site whole. Needs firefox-49.
  • response.security_details() names the certificate, and response.from_service_worker says when a service worker answered. The engine reported neither (None and False for every response); it now reports both as Playwright's does. Needs firefox-49.

Fixed

  • eval_on_selector, eval_on_selector_all, locator.evaluate and handle.evaluate see what the page put on an element. They ran behind the automation's own view, where el.__vue__ and the methods of a custom element's class do not exist.
  • The browser's favicon request no longer reaches the client. A page.route("**/*") handler saw GET /favicon.ico now and then, as did the request, response and requestfinished listeners, and a route.fallback(post_data=...) rewrote it too. As in Playwright, the favicon, and a request it redirects to, now sends no event, reaches no route handler and is not a request networkidle waits on. Unlike Playwright it is not aborted under a route: it goes to the site, as from any Firefox.
  • A request held after interception was switched off no longer stalls the session. Its release was sent from the thread that delivers the engine's events and waited for a reply only that thread could read; the next command of the page then waited forever.
  • route.abort() with no error code fails the request with NS_ERROR_FAILURE, as in Playwright on Firefox. It failed with NS_ERROR_ABORT, the code of route.abort("aborted").
  • A route that sends a navigation to another URL lands there. route.fallback(url=...) or route.continue_(url=...) on a document request made goto fail with "reported committed on ..., which is not where it went", and the response kept the URL the request was sent with. The response is now the routed URL's, and goto lands on it.

[0.36.2] - 2026-10-17

The pin moves to invisible-core 48.43.0, still on the firefox-48 engine.

Fixed

  • response.security_details() hands on the certificate the engine sent. It answered None for every response, HTTPS included, which a script reads as "not over TLS". The response now keeps what the engine reported; an engine that reports nothing (firefox-48 and earlier) still answers None.
  • The e2e tests that measure time run alone. Eight of them assert an upper bound on a wall-clock duration, and beside four browsers the device enumeration one went red on a rerun-clean SHA three times. They carry the new wall_clock marker, and the core's e2e run gives them the machine alone after the parallel tests.

[0.36.1] - 2026-10-16

The pin moves to invisible-core 48.42.0, on the same firefox-48 engine.

Fixed

  • wait_for_function ends when the predicate returns an element. wait_for_function("() => document.querySelector('#x')") timed out although the element existed: the predicate ran by value and the result was judged after serialization, where a node is nothing truthy. It is now judged as JavaScript judges it, from one run of the predicate, and the element is the handle the wait returns.
  • A handle from evaluate_handle can be used. Its text_content, evaluate and json_value all failed with "Cannot find object": the value was made in the page's own world and the handle looked for it in the automation's. A node is now carried into the automation's world, as the handles of add_script_tag already were, and any other value's handle runs its operations where the value lives. The same goes for the handle wait_for_function returns.
  • A GeoIP database being downloaded is never read half-written. Two sessions starting together on a cold cache could have one open the database while the other was still writing it, and fail with "Is this a valid MaxMind DB file?". The core now extracts it outside the cache, checks it with the real reader and moves it into place in one step (invisible-core 48.42.0).

[0.36.0] - 2026-10-16

The pin moves to invisible-core 48.41.0, on the firefox-48 engine. 0.35.11 was never published: its fix is listed here.

Added

  • The branding a page reads is a profile field. pin={"branding": ...} takes "official" (the default, the retail Firefox's files), "unofficial", or the absolute path of a zip archive of your own with the same 16 files at its root. The engine serves the declared files at chrome://branding/content/ and resource://usercontext-content/branding/ instead of its own, from inside the archive as Firefox serves its own branding. Needs firefox-48.

Changed

  • The speechSynthesis voices follow the session's language. An it-IT session lists the voices of a Windows with Italian added instead of only the American ones; a language without a measured set keeps the English one, and a hardware.voices pin still wins.

Fixed

  • A persistent profile stays the same machine across launches. With profile_dir and no seed, every launch used to draw a new seed, so the same profile came back with another GPU, screen and fonts. The first launch now records its seed in the profile and later ones reuse it; an explicit seed that differs from the recorded one is refused.
  • Opening and closing pages quickly no longer breaks new_page(). A page's close and the delivery of its events ran on two threads with nothing between them, so an event of a page being closed could create a response under a request the client had already dropped, and the client raised 'dict' object has no attribute '_object', from new_page() or from a response listener: 3 to 5 failed cycles out of 150 in every run of four. A page's events now go through one gate under its close's lock, and do nothing once it is closed: 0 out of 600.

[0.35.10] - 2026-10-15

The pin moves to invisible-core 47.41.0, on the same firefox-47 engine.

Added

  • The engine can live on a read-only disk. INVISIBLE_PLAYWRIGHT_ENGINE_DIR puts the sealed engine trees somewhere of their own, written only by a download; INVISIBLE_PLAYWRIGHT_CACHE_DIR keeps the machine's writable state (the GeoIP database, the font manifest). Unset, nothing moves. A launch on an engine already fetched by the same core writes nothing into the store.

Changed

  • timezone="auto" that cannot be resolved now fails the launch without a proxy too. It used to fall back to the host's timezone in silence when the exit could not be discovered or the GeoIP database could not be obtained, which on a server kept in UTC gives a timezone that contradicts its own IP. The error names the cause; pass an explicit IANA zone to launch offline.

[0.35.9] - 2026-10-15

The pin moves to invisible-core 47.40.0, on the same firefox-47 engine.

Fixed

  • Closing a browser no longer closes the pipe of another browser in the same process. The driver closes a browser's pipe from Browser.close and again when the session shuts down, and each call closed the pipe's descriptor numbers. A released number goes to the next pipe the process opens, so when one process drove several sessions the second call closed another browser's pipe: its launch died with EISDIR, or it stopped answering. The connection now releases each end once and never touches the number again.

[0.35.8] - 2026-10-14

The pin moves to invisible-core 47.39.0, which seals the firefox-47 engine.

Fixed

  • A page can no longer tell that the engine carries the automation protocol (#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 one line, new Worker("chrome://juggler/..."): it returns on our engine and throws SecurityError 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/, a namespace every Firefox has and inside which a page cannot tell which files exist; the engine now registers exactly the chrome packages and resource substitutions Firefox 151 does, and its release is refused if it registers any name that Firefox does not.
  • 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 on its way, and the engine dropped every such stop of the main frame (a workaround meant for the spurious one a Fission process swap fires): goto answered OK while the page was still the previous one, 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 (document.open, window.stop, location.replace and assign, a form submit, an iframe navigating the top, history.back, pushState, a meta refresh, a second goto) is tested against upstream Playwright's answers, in one process and across a process swap.
  • goto refuses a success the engine made up: when the commit attributed to its navigation is not where that navigation's request went (redirects included), it raises "Navigation to ... was reported committed on ..., which is not where it went" instead of answering OK.
  • A goto that the caller's next goto stops says "is interrupted by another navigation to" the new address, as upstream; it said NS_BINDING_ABORTED.
  • goto(until="load") counts only its own document's load: the states were cleared when a navigation started, not when it committed.
  • A goto that waited out its timeout no longer says "the current navigation is nav-N, not our nav-N": it says that our navigation started and neither committed nor was aborted.
  • The wheel is born before the page sees it, as keys and mouse moves are since 0.35.7: event.timeStamp was the instant the wheel reached the page, 0 to 2 ms below performance.now() in the handler where a real wheel is 6 to 14, and half of the wheel events failed the filter a tracker applies.

[0.35.7] - 2026-10-13

The pin moves to invisible-core 45.39.0, which seals the firefox-45 engine.

Fixed

  • A key or a mouse move is born before the page sees it, as on a real machine, where the system takes a few milliseconds between the hardware and the page's handler. The engine stamped every input event at the instant it reached the page, so event.timeStamp equalled performance.now() there, and a script that keeps only the events with timeStamp < performance.now() dropped most of our keys (page.type, keyboard, mouse). Each event is now born a few milliseconds earlier, drawn per event from the session (a median of 6 to 11 ms, fixed by the seed): measured in the handler, 4 to 22 ms.
  • The first navigator.mediaDevices.enumerateDevices() of a session takes the same time on Windows and on Linux, a time the seed fixes between 240 and 640 ms. It took the host's audio stack time, 15 to 40 ms on Linux and about 300 ms on Windows, so a script that sends its payload before the list arrives saw a device field on one build and not on the other. With fake devices the browser no longer asks the host for its speakers; the list a page sees is unchanged.

[0.35.6] - 2026-10-13

The pin moves to invisible-core 44.39.0, which seals the firefox-44 engine.

Fixed

  • 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 the window for it; when a stop landed during a capture, the browser answered nothing more. Measured with one browser on the hidden desktop: frozen within the first ten stops on the engines before 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 "'é' has no key on the US layout". 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': a Blob or a File made with endings: "native" turns \n into \r\n, and the text of a selection across two blocks is joined by \r\n, as on Windows.
  • speechSynthesis.getVoices() is Windows' list: David, Mark, Zira and the two Desktop voices, in that order, and none of them is the default. David was the default and Zira came before Mark.

[0.35.5] - 2026-10-13

The pin moves to invisible-core 43.39.0, which seals the firefox-43 engine.

Fixed

  • 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 while it loaded them, once the back-forward cache let an older page of the tab go: page.frames missed them and a frame_locator into them waited until its timeout. Measured with five pages in a row: none of the three frames of the fifth before, all three now.
  • On Linux, AAC is answered as on Windows. canPlayType and MediaSource.isTypeSupported of audio/mp4, audio/aac, audio/x-m4a and video/mp4; codecs="mp4a.40.2" answered "maybe" at first and then nothing from about 300 ms on, on a host without its own AAC decoder, while H.264 stayed "probably": no Windows Firefox answers that. They now answer what Windows does, "maybe", "maybe", "maybe" and "probably", with MediaSource true, false, false, true. A Linux host without an AAC decoder still cannot play the audio.

[0.35.4] - 2026-10-13

The pin moves to invisible-core 42.39.0, which seals the firefox-42 engine.

Fixed

  • A page that replaces itself no longer loses its main world. Now and then, after a page that navigated or reloaded itself, the new document's main world was never announced, and a read in the page's world waited 30 seconds and failed: the engine's channel answered the new page's first requests with the answers an earlier page had been given.
  • A session keeps the focus when another one starts beside it. With two sessions on one desktop, the first lost the focus when the second opened its window: its page got blur, document.hasFocus() turned false and a focused field stopped taking keys. Measured on Windows, two sessions on one hidden desktop: 4 first sessions in 6 lost it before, 0 in 6 now.
  • The real mouse no longer turns a click into a drag. In a visible session, the person's cursor moving over the window during a click could start a native drag on a link, and the click failed with an error from dispatchDragEvent.
  • evaluate of a function that rejects with something that is not an Error (a plain object, an Event) raises, as in Playwright; it answered None.

[0.35.3] - 2026-10-13

The pin moves to invisible-core 41.39.0.

Fixed

  • go_back() and go_forward() to a same-document entry (a hash, a pushState) answer None at once, as Playwright's. They waited for a navigation id that a same-document navigation never has, and raised TimeoutError at the timeout (measured on 0.35.2: 8 s for go_back(timeout=8000)).
  • A protocol command inside an action waits for what is left of the action's timeout and no longer has a 10 s bound of its own (invisible-core 41.39.0), so an action on a loaded host does not fail before its timeout; a key or a pointer event waits for the engine's answer, which the engine bounds itself.

[0.35.2] - 2026-10-12

The pin moves to invisible-core 41.38.0.

Added

  • page.evaluate_read(expression, arg=None), not in Playwright: evaluate for a read that has no effect on the page, which the caller declares. When the page navigates under it, it is made again on the page that replaced it and answers from there, where evaluate raises. Never pass it code with an effect: it may run in both documents.

Fixed

  • 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, so a script with an effect ran twice (since 0.35.0). It now raises "Execution context was destroyed, most likely because of a navigation", as Playwright does, and is never sent again. wait_for_function keeps polling on the new page. The library's own reads are not the caller's code and still answer with the page that replaced the one they went to: count, inner_text, text_content, and now all_inner_texts and all_text_contents too, which no longer travel as an eval_on_selector_all.

[0.35.1] - 2026-10-12

The pin moves to invisible-core 41.37.0.

Fixed

  • A browser that dies ends every wait at once. A wait for an event - a page's load state, its main frame, a navigation - had nothing to wake it when the browser closed or crashed, so it ran to its timeout, and with no timeout (timeout=0) it never ended. It now raises at once that the target closed.

[0.35.0] - 2026-10-12

The pin moves to invisible-core 41.36.0.

Fixed

  • A page that replaces itself right after it loads no longer breaks the next call. On a page that calls location.replace from its <head> or just after load (a JavaScript challenge, a consent redirect), a read made right after goto failed with the engine's raw "Failed to find execution context", and goto(..., wait_until="networkidle") timed out; on a loaded machine domcontentloaded did too. Both now answer on the page that took its place.
  • A goto the browser abandons answers at once. Sent while the previous page's own redirect was in flight, a goto could lose to it: Firefox loads the redirect and drops ours without a word, and the call waited for its whole timeout. It now raises at once with Playwright's own Navigation to "X" is interrupted by another navigation to "Y", as upstream Playwright does on Firefox, and the page is on Y.
  • page.frames lists the frames the page has. After a navigation that moved the page to another browser process it kept the old document's iframes and listed the main frame again, one more each time.
  • Reads wait for the element, as in Playwright. inner_text, text_content, inner_html, input_value, get_attribute, is_enabled, is_checked and the other selector reads failed at once with "no element matches" instead of waiting up to their timeout; is_visible and is_hidden raised on a missing element instead of answering False and True.
  • expect(locator) works. Every to_be_* and to_have_count failed with an empty AssertionError whatever the page held; they now wait for the condition within their timeout, not_to_* included. to_be_empty, to_be_focused and to_be_in_viewport say they are not implemented instead of passing.

[0.34.0] - 2026-10-11

The pin moves to invisible-core 41.35.0, which seals the firefox-41 engine.

Fixed

  • bypass_csp=True lifts the page's Content-Security-Policy. The option reached the browser and changed nothing it enforced: inline scripts, eval and add_script_tag stayed blocked (#295). With firefox-41 the page's header and <meta> policies are not applied when the option is on, and are applied exactly as before when it is off.
  • A screencast keeps the rate it was asked for. Below 4 frames a second it delivered about twice what was requested: asking for 2 gave 4. It now gives about 2.
  • On Linux a window covered by another one is not reported as hidden, the same as on Windows. Pages in a visible session covered by a second session's window read document.visibilityState === "hidden" and had their timers and animation frames throttled.
  • A launch that fails before the browser starts stops the hidden display. With headless=True, a launch that failed while composing the prefs, the proxy or the environment (a proxy scheme the engine cannot express, a font manifest it does not carry) left the hidden display running: an Xvfb process on Linux, a desktop handle on Windows. A retry loop around the launch collected one per attempt (#326, by RayenMlayeh).
  • A launch gets the whole timeout the caller gave it. launch(timeout=) bounded only the wait for the browser to start; the proxy command and the last startup step after it had 10 and 30 seconds of their own. On a loaded machine the proxy command could go unanswered for 10 seconds and the launch failed with "the engine refused the proxy" while its 60 seconds still had time. One deadline now covers the whole startup, a launch past it raises TimeoutError instead of claiming a refusal, and timeout=0 means no limit, as in Playwright, where it used to mean 60 seconds.
  • timeout=0 means no limit. An action, a wait or a navigation given timeout=0 gave up after 30 seconds; as in Playwright, it now waits as long as it takes.
  • A timeout is a TimeoutError. A click on an element that never became actionable, or a wait_for_function that never became true, raised a plain Error, so except TimeoutError around them caught nothing. They raise TimeoutError now, as in Playwright.
  • No fixed bound on calls Playwright gives none. Creating a context and applying its options, cookies, permissions, geolocation, closing a page or a context, and page commands such as set_viewport_size or bring_to_front each had 10 or 30 seconds of their own. They wait for the browser's answer, and still end at once if the browser is gone; screenshot takes its own timeout.

[0.33.1] - 2026-10-11

Fixed

  • A new page waits for the browser as long as the caller does. Opening a page gave the browser a fixed 30 seconds to answer, shorter than the caller's own bound: on a loaded machine, right after a slow launch, the first page of a session (and so the first navigation of an MCP session) failed at 31 seconds and worked when repeated (#321). The wait now ends when the browser answers or when it is gone.
  • A request's resource_type says what it is. Juggler sends a request's cause as an nsIContentPolicy constant name (TYPE_DOCUMENT, TYPE_XMLHTTPREQUEST, TYPE_FETCH), and the table it was looked up in was keyed by document, xmlhttprequest, fetch, so nothing matched and every request reported other. The lookup now uses the Playwright driver's own table, internalCause first so an EventSource reports eventsource (#305, by richardpowellus).

[0.33.0] - 2026-10-11

Fixed

  • The shutdown pings leave by the session's proxy. At the end of a session longer than a minute, Firefox posts its shutdown telemetry from a separate process. That process took its network settings from the machine, so a session behind a SOCKS5 or HTTP proxy sent those pings from the machine's own address. With the firefox-40 engine (invisible-core 40.35.0) they go through the same proxy as the session, or directly when the session has none, and the session waits for them to finish before it removes its files: closing a long session takes about a second more.

[0.32.0] - 2026-10-10

Fixed

  • A session no longer leaves its temporary profile behind. On Windows a session longer than a minute left an invisible_profile_* directory in %TEMP%, holding an empty saved-telemetry-pings. The profile was removed before the browser was closed, and, once that order was right, while the pingsender.exe the browser starts at exit still held a file in it. The session's directories (the core's SessionFiles) are now removed after every process of the session has ended, a launch that fails or a proxy the engine refuses no longer keeps its profile, and a new session sweeps what a killed one left.
  • The browser's temporary files go with the session. Firefox wrote into the system temporary directory, and a short session cut off its cleanup: a 70 s session left two 4 MB certificate bundles in %TEMP%. The browser now gets a temporary directory of its own, inside this process's, removed with the profile.
  • Characters that need Shift are typed with Shift. @, ! and capital letters reached the page with shiftKey false and no Shift keydown, a combination no keyboard produces; with Shift held by hand, pressing 2 wrote 2. They are typed with Shift down now, timed by the session's hand (invisible-core 39.35.0).
  • A pause before every click. The press came one protocol round trip after the pointer arrived, where a hand waits a moment. The session's hand now pauses at the end of the approach, before the button goes down.

[0.31.0] - 2026-10-10

Fixed

  • A pointer call answers once the page has handled its event. With the firefox-39 engine, page.mouse.move, down, up and click, and every element action, return after the page's listeners have run, so the next call - a script evaluation, a scroll - can no longer reach the page first. It used to answer when the event was handed over: under load a press could be judged after a scroll sent later, and a short drag lost its drop.
  • A right click no longer waits for an acknowledgement that never came (part of the same engine change).

[0.30.0] - 2026-10-09

Changed

  • The Juggler client this package drives the browser with now lives in invisible-core (38.34.0, invisible_core.juggler), shared with invisible-selenium and invisible-puppeteer instead of copied into each. It is the same client: the same seed still draws the same pointer paths, typing rhythm and persona cookies (the core pins a digest of what the three former copies of the seed mixer answered). invisible_playwright._juggler keeps the Playwright server.
  • A firefoxUserPrefs value that is not a bool, an int, a float or a string is refused with a TypeError naming the pref. It used to be written as its text (None became the string "None"), a pref nobody asked for.

Removed

  • The private modules of the client: _behaviour, _motion, _pacing and, under _juggler, connection, protocol, lifecycle, injected, actions, keyboard, keylayout and _profile. Their public names are in invisible_core.juggler.

[0.29.0] - 2026-10-09

Changed

  • The window a page reads is the one Windows Firefox draws. With invisible-core 38.33.0 and the firefox-38 engine. A maximized window now answers screenX -8 and an outerWidth 16 wider than screen.availWidth at 100%, as Windows Firefox does (it sits the invisible resize border off the screen), where it answered 0 and the work area. Its content starts where retail's does at every display scale (mozInnerScreenY 85.6 at 125%). A popup answers its own outerWidth, outerHeight, screenX and screenY instead of the main window's, 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.

Removed

  • The pins screen.chrome_w, screen.chrome_h, screen.window_x and screen.window_y. The window is no longer four numbers: it follows screen.dpr, which takes 1, 1.25, 1.5 or 2, and another value is refused.

[0.28.0] - 2026-10-09

Changed

  • service_workers="block" works per context inside the engine. With invisible-core 37.33.0 and the firefox-37 engine, new_context(service_workers="block") and launch_persistent_context(..., service_workers="block") turn service workers off for that context through the engine (Browser.setServiceWorkersBlocked, contributed by Richard Powell in firefox_antidetect_patch#15 and #299 here). No page script and no global preference are involved, and route() still sees every page request. On a persistent profile, turning the block on 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.
  • The screen a page reads is in CSS pixels. A 1920x1080 panel at 125% reports screen.width 1536 and screen.height 864, as Firefox on that monitor does. Before, it reported the panel's device pixels. The default viewport is derived the same way.

Fixed

  • On Linux the virtual display keeps X access control on. The Xvfb display opened for a headed session without a screen used to run with access control off (-ac), so any local process could connect to it and read or drive the browser window. It now gets a private session cookie, handed only to the browser, and removed when the session stops.
  • An empty request header survives a route. A header with an empty value went out without a route and was dropped when a route continued the request (firefox-37).
  • A glide to where the pointer already is sends nothing instead of raising.

Added

  • docs/differences-from-playwright.md: every place this package deliberately behaves differently from Playwright, and why.

[0.27.0] - 2026-10-06

Changed

  • The language of locale="auto" is the real Firefox of the egress country, by share. Through invisible-core 36.33.0 (the required version is exact, as before). A country used to map to one country tag (de-DE) that no Firefox build has, so a German egress sent de-DE,de;q=0.9,... where a German Firefox sends de,en-US;q=0.9,en;q=0.8, and every session of a country spoke the same language. Now each country carries the Firefox builds people there run and their share, from Mozilla's Firefox Public Data Report (Belgium: French 40%, Dutch 31%, US English 22%), and the egress IP picks one: the same address always gets the same language, and the addresses of a country spread over its builds as measured.
  • An explicit locale is navigator.language. locale="en-AU" reports en-AU, en-US, en (it reported en-US, en), and "fr-FR" reports fr-FR, fr, en-US, en (it reported fr first): the requested tag goes first and Firefox's own table gives the tail.

[0.26.1] - 2026-10-05

Fixed

  • add_script_tag and add_style_tag work, on the page and on a child frame. The client sends both on the Frame channel, and the server served them on the Page alone, so every call answered Frame has no method 'addScriptTag'. The returned handle is now usable by later ElementHandle calls.
  • add_script_tag(type=...) is honoured. type="module" makes an ES module; the tag was always text/javascript.

[0.26.0] - 2026-10-05

The firefox-36 engine, pinned through invisible-core 36.32.0. The core now decides the session language once, and every value this package hands the browser reads that decision.

Changed

  • The engine is firefox-36, through invisible-core 36.32.0 (the required version is exact, as before).
  • A session reports one language in every value. locale="auto" and an explicit tag both go through invisible_core.prepare_session_geo, the same call that resolves the timezone, and the session keeps its result: the language list Firefox's own table gives that tag. navigator.language, navigator.languages, the locale prefs, the default context's locale, the Accept-Language header and the Google CONSENT cookie all read it. A region that has no Firefox build of its own used to report two languages: an Australian egress resolved en-AU for the locale prefs and en-US, en for the language list, so navigator.language said en-US while the requested locale said en-AU. It now reports en-US everywhere, as an English Firefox installed in Australia does. The same holds for the other regions in that position (New Zealand, Ireland, India, Singapore, the Philippines and more).
  • The default context's locale is the decided language, not the tag you passed. InvisiblePlaywright(locale="fr-FR") gives contexts locale="fr", the first entry of the French list (fr, fr-FR, en-US, en), which is what navigator.language reports. locale="" now means en-US explicitly instead of leaving the option out.
  • The persona cookies (prep_recaptcha=True) come from the core (invisible_core.persona_cookies). Same cookies for the same seed; the CONSENT cookie's language now reads the decided language instead of the raw tag, so it can no longer name a language the page does not report.

Fixed

  • new_context(locale=...) is the context's language. On firefox-35 a context's locale was ignored and every page reported the launch locale. With firefox-36 navigator.language, navigator.languages, Intl and the Accept-Language header of the context's pages follow it, and the server sends the engine the whole language list the tag stands for (de-DE, de, en-US, en for de-DE, as a German Firefox reports), not the bare tag.
  • Workers speak their context's language: dedicated, shared and service workers report the same navigator.languages and Intl locale as the pages that made them. On firefox-35 they reported the launch locale.
  • Every request carries the Accept-Language a retail Firefox sends. Firefox-35 sent the raw list (it-IT, it, en-US, en) on navigations, fetch and XHR and the q-valued form (it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7) only from workers; firefox-36 sends the q-valued form everywhere.
  • ignore_https_errors=True loads a self-signed page. On firefox-35 new_context failed with NS_ERROR_NOT_AVAILABLE.
  • A routed request carries its body. request.post_data, post_data_json and post_data_buffer were None for every POST, in a route handler and on the request event alike (oss-invisible/core#90). The body is there whenever a route is set on the page or its context; without a route it stays None, which keeps the engine from copying every POST body.
  • go_back() goes back over a page the script left without a gesture, like history.back(). A page that navigated by location.href from a script made go_back() return None and stay where it was, because the engine asked the Back button's question (was there a user interaction).
  • A window.open popup with a size keeps that size instead of taking the tab's viewport.

Removed

  • invisible_playwright._recaptcha_seed, a private module: the cookie data is in the core, and the two call sites hand its list to the context.

Internal

  • The e2e tests for the engine changes above are plain tests: they fail on firefox-35 and pass on firefox-36. The ignore_https_errors test needs cryptography for its certificate, now in the dev extra.
  • A unit test fails if a locale comparison with "auto", or an import of the core names removed in 36.32.0, comes back into this package.

[0.25.13] - 2026-10-04

Added

  • page.route(). It was refused as an unimplemented gap. A request is offered to the page's handlers first and falls through to the context's, as in Playwright.

Fixed

  • context.route() handlers run. The first request a handler answered was answered on the browser session instead of the page's, the engine refused it, and the page hung on that request.
  • route() refuses, instead of doing nothing, in a browser launched with dom.serviceWorkers.enabled=false. Firefox only offers a request to the interception hook while that pref is true, so a route set as a guard was accepted and saw no request at all while every POST went out. The error names the pref.
  • new_context(service_workers="block") refuses instead of being ignored. The option was accepted and nothing read it, so a page's own service worker kept answering requests no route saw. Playwright honours it with a page script whose source names Playwright, which any page can read, so it is refused with a sentence saying why. Routes work with service workers allowed.
  • A seed replays which tab has which rhythm, with the async API too. Every page draws its pauses, keys, clicks, drags and cursor paths under its number in the session. The server counted those numbers in the order the engine answered, so asyncio.gather(browser.new_page(), browser.new_page()) gave the first call number 1 in 4 runs out of 10, and a popup took the next number too, so a new_page() gathered with the click that opens one could take the popup's. The cursor counted a third time, at each page's first movement. The client now reserves the number at the call and the server takes it from the request; a popup is numbered from its opener and its rank among that opener's popups, in a space of its own; the cursor reads the page's number from the page. Pages created one after the other keep the numbers they had (0, 1, 2); a new_page() after a popup no longer counts the popup, and popups draw new rhythms.

[0.25.12] - 2026-10-04

Removed

  • invisible_playwright.hesitation(), added in 0.25.8. The package adds nothing to Playwright's public contract, and this was the one helper that did. Its only use was the pause before answering a file chooser, which now happens inside the standard methods (see below).

Changed

  • set_input_files, and so FileChooser.set_files, hand the files over after a person's pause to pick them. With humanising on, the files arrive two of the session's hesitations after the call, finding the file and confirming it, bounded by the action's timeout, instead of a few milliseconds after the chooser opened, which no hand does. With humanising off nothing changes.

[0.25.11] - 2026-10-04

Fixed

  • A page the site opens is a Page. A window.open() or a target=_blank link opened a tab or a window the client never heard about: no page event on the context, no popup event on the opener, expect_page() and expect_popup() timed out, and context.pages never listed it. Every page the engine reports is now built on one path, the one new_page() uses too, with its opener, so popup.opener() answers and the popup is driven like any other page. A popup the site closes with window.close() now fires close and leaves context.pages.
  • A popup's own document reaches context.on("request") and context.on("response"), once each and with its body. It is requested before the popup's page exists, and only its subresources used to arrive; that response is where a PDF opened in a new tab lives.

Notes

  • A popup opened without a user gesture is still refused by Firefox's popup blocker, as in any Firefox: page.evaluate("window.open(...)") returns null, because evaluate does not carry a user gesture. A real click does.

[0.25.10] - 2026-10-04

Fixed

  • eval_on_selector and eval_on_selector_all pass arg to the expression. The argument was dropped, so an expression 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.
  • networkidle waits for the new document, and reaches every wait that asks for it. After a goto, the old page's silence could satisfy wait_until="networkidle" before the new document had loaded. And wait_for_load_state("networkidle"), wait_for_url and expect_navigation with networkidle always timed out, because the state was computed inside one wait and never sent to the client. It is now a load state like the others, reached once the current document has loaded and the network has been quiet for half a second, and both goto and the client read that one definition.
  • After a goto to a fragment of the same page, page.url already has the fragment. The answer came before the navigation event, so the URL stayed one step behind until the next call.

[0.25.9] - 2026-10-03

Changed

  • select_option, and fill on a field whose value is picked rather than typed (date, time, color, range...), let the engine commit the value through Firefox's own user path (Page.selectOptions, Page.setUserInput). Firefox then fires input and change itself, with the flags a user's change has (not cancelable), and nothing at all when a select did not change. The page-side script used to set the value and ask the engine for hand-built trusted events afterwards (Page.dispatchTrustedInputEvents): those came out cancelable, and inside a shadow root the request failed with NS_ERROR_UNEXPECTED, so a <select> or a date field in a web component could not be set at all. This needs the firefox-35 engine, which drops Page.dispatchTrustedInputEvents; on firefox-34 these two actions fail with an unknown-command error.

Fixed

  • A click lands where it was asked on a page with a saved zoom. The engine sent page coordinates into the window with no zoom factor, so with a site zoomed to 110% or 120% a click landed 145 or 263 px away, a click meant for an iframe reached its parent, and set_viewport_size waited forever. The engine now converts with the zoom Firefox actually applies.
  • On Linux behind a SOCKS proxy, real sites see WebRTC working. Firefox handed the proxy's wildcard address to the default-route probe, Linux answered with loopback, and no UDP candidate and no srflx were made: sites reported WebRTC as blocked or the page as manipulated. The engine now falls back as it does on Windows. The WebRTC check behind a TCP-only SOCKS proxy, which skipped this case and blamed the CI machine, now fails instead.

Requires

  • invisible-core 35.32.0, which seals the firefox-35 engine. This version does not run on firefox-34, and earlier versions do not run on firefox-35.

[0.25.8] - 2026-10-02

Added

  • invisible_playwright.hesitation(seed, act, *, nonce=0, times=1), the session's pause before an act, in seconds, for an act this package does not perform itself (answering a file chooser, say). It is drawn from the same typing persona the keyboard uses, so it varies per session and per act, and it returns 0 when seed is None. A caller that needed this used to import private names of the package and copy the spread of a hesitation.

Fixed

  • fill and press_sequentially (type) wait a moment between the focus and the first key. They 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 (a store that writes its stored value back into the input, a formatter, a field that loads its suggestions) wrote over the text that was arriving: on a field whose store empties it 300, 600 or 900 ms after the focus, an address kept only its last letters in 30 fills out of 30. With humanising on, the session's typist now pauses for one of its hesitations, starting again whenever the field changes, for no longer than the action's timeout: the same 30 fills kept the address 10, 7 and 3 times out of 10, each time the pause outlasted the store's timer, which nothing on the page shows in advance. A fill takes a median 0.7 s longer. The page gets no new event, only time, and the field is read from the utility world, where the page cannot see the read. With humanising off nothing changes. The spread of a hesitation is now one field of the typing persona, used by both pauses.
  • delay reaches the keyboard on page.type, locator.type, press_sequentially and press. keyboard.type and the element-handle type honoured it; the selector operations accepted it and dropped it, so locator.type("abcd", delay=150) went out 6, 10 and 22 ms apart, and locator.press(key, delay=300) held the key for the session's own time. For type it is the gap between two keys and for press how long the key stays down, as Playwright documents both, and one reader takes it off the wire for every key operation.
  • Each tab of a session types, pauses and clicks with its own rhythm. The counters that tell two acts apart (the pause before a field, the intervals between keys, how long a click is held, the curve of a drag) lived on each page and started again with every new one, so with one seed the first field of every tab waited the same pause and was typed with the same intervals, and the first click of every tab was held for the same time. Measured with seed 106 and three tabs: a pause of 2.14 to 2.16 s in all three, keydown intervals within a few milliseconds of each other, and a hold of 107 to 109 ms. The session now numbers its pages and every act draws under its page's number, as the cursor already did for its paths: the same three tabs pause 2.15, 0.83 and 1.08 s and type with intervals that differ by as much as 274 ms. The same seed still replays the same sequence, and the first tab of a session pauses, types and clicks exactly as before.
  • expect_navigation() and wait_for_url() no longer crash on a new document. Every navigation event announced its document with a request of None, a value Playwright's protocol does not allow there, and the client died on it with AttributeError: 'NoneType' object has no attribute '_object'. The event now carries the navigation's request, or no request when there was none (about:blank), and after a redirect expect_navigation().value is the final response.
  • A same-document navigation now reaches the client. A pushState, a hash change or the route change of a single-page application arrives from the engine as Page.sameDocumentNavigation, and the server updated its own record of the frame and sent nothing up: page.url kept the URL of the last full load, wait_for_url never resolved and framenavigated never fired. A click that worked therefore timed out, on every site that routes in the client rather than reloading. The event now goes up as a navigated without a newDocument, the shape upstream sends, so the client tells it from a full load the way it always did.
  • Locators and handles work through nested cross-origin frames. A locator two frames deep found its element and then read it in the wrong frame: inner_text answered "Cannot find object", bounding_box, select_option and scroll_into_view_if_needed matched nothing, and a handle from wait_for_selector belonged to the top frame. frame.parent_frame is no longer None, frame.frame_element() answers instead of refusing, and frame.url and the frame's load states follow every new document instead of the last goto.
  • A humanised click lands off-centre in a nested frame and inside a shadow root. The cursor checked its chosen point with its own hit test, at the top frame's coordinates and blind to shadow roots, so it rejected every off-centre point there and the click went to the exact geometric centre of the element, the same point in every install. The cursor now asks the check the action itself makes before it presses.
  • fill('') and clear() empty the field. On a text input, a textarea or a contenteditable, the injected script only selects the text when the value is empty, and fill then asked the engine for bare input/change events: the page heard about a change while the old text stayed, a contenteditable got a change no user can produce, and inside a shadow root the request failed with NS_ERROR_UNEXPECTED. It now presses Delete, as Playwright does: the page gets the trusted InputEvent (deleteContentForward) a user's Delete gives, and change waits for blur.
  • set_input_files, focus, blur and dispatch_event work on a hidden element. Each asked the element for a point it never uses, and an element with display:none has none, so the action timed out: a file chooser opened from the usual styled button in front of a hidden <input type=file> could not receive its files through set_files or set_input_files. The four act on a hidden element now, as they do in Playwright.
  • set_input_files with content instead of a path uploads that content. A {"name", "mimeType", "buffer"} payload was read as nothing at all: the input was cleared, change fired with no files, and the call returned as if it had worked. The payload now reaches the page as a file with its name and its bytes, through the same path as a file on disk, so its type is the one Firefox gives that name, as for a file a user picks. A folder, which the engine cannot take, is refused with a message that says so.
  • On Linux, a headless session starts on its own virtual display. The display counted as ready as soon as its lockfile existed, which Xvfb writes before it opens its sockets: sessions started together could land on each other's display, and an Xvfb that died opening its sockets passed for alive, so the browser failed with cannot open display. That was 19 failures and 9 errors in one run of this package's Linux e2e suite, and none with the core below. The display is also no longer reachable over TCP.

Requires

  • invisible-core 34.32.0, which carries the display fix. Same engine (firefox-34).

[0.25.7] - 2026-09-25

Fixed

  • goto returns on a page that replaces itself from script while it loads. YouTube (?themeRefresh=1), Reddit's JavaScript challenge and any page that calls location.replace before load start a new navigation after ours has committed, and goto kept waiting for the load of the one that was replaced, which never comes: 45 s and a TimeoutError on a page that was ready, while stock Playwright answered in 2 to 4 s on the same Firefox. The wait now accepts our navigation or one that came after it, and still refuses the states of the page we are leaving.
  • A long session no longer freezes the browser. Its stdout and stderr share one pipe, which was read only until startup. Once Firefox had written a pipe buffer's worth after that, its next write blocked and the browser stopped answering, with no error. The output is now read for the whole life of the process, and when the browser goes away mid-session the error carries its exit code and its last lines instead of only "the pipe is closed".

Requires

  • invisible-core 34.31.0: the GeoIP database now opens under a non-ASCII path, so a Windows user named José or with a CJK account name can start the browser behind a proxy (it failed with FileNotFoundError on a database that exists), and a Windows ARM64 Python gets the x86_64 engine instead of being refused. Same engine (firefox-34).

[0.25.6] - 2026-09-25

Fixed

  • The engine starts under Claude Desktop and other MSIX hosts on Windows. An app installed as an MSIX package (Claude Desktop, the Microsoft Store Python) silently redirects the files its processes write under AppData into its own package folder. The engine was downloaded there, and launching it from the AppData path failed with [Errno 14001] ... side-by-side configuration is incorrect, because Windows looks for mozglue.dll where the file really is. Retail Firefox fails the same way when installed like that. The engine path handed to the launcher is now the one the file system reports, so it starts. Reported in discussion #256; issue #22 was the same failure.

Requires

  • invisible-core 34.30.0, which carries the fix. Same engine (firefox-34).

[0.25.5] - 2026-09-23

Added

  • The README is checked for promises no measurement supports, on every change. A sentence that puts a word quantifying everything next to a circumvention word and a protection word ("it passes every bot detection test") is refused by CI. The check used to run by hand, from outside this repository, after the text was already public. It is invisible_core.claims, shared with the MCP server's repository; a circumvention claim on its own stays allowed and is only reported.

Requires

  • invisible-core 34.29.0, which carries that check. Same engine (firefox-34), no change in this package's runtime beyond the pin.

[0.25.4] - 2026-09-21

Fixed

  • Asking again is the caller's choice, not the downloader's. 0.25.3 put the retry inside the shared download primitive, so the geoip database refresh inherited it - and that caller had already written down the opposite answer, because it holds a cached copy it falls back on. A transient failure there would have spent up to ten seconds of backoff, at browser-session start, on the way to the fallback it was taking anyway, and printed retry lines in a path designed to be silent. The attempt count is now the caller's: the engine download keeps three, and the geoip refresh asks once when it has a cache and three times when it does not, which is the case where the failure is terminal for the session.

Requires

  • invisible-core 34.28.0, which carries that change. Same engine (firefox-34), no change in this package beyond the pin.

[0.25.3] - 2026-09-21

Fixed

  • A transient gateway error on the engine download is asked again instead of ending the install. Nothing in the package had ever asked twice: a 504 Gateway Time-out from GitHub on the 262 MB archive came out as error: 504 and that was the end of it, on a CI runner and on the machine of anyone whose first use of the package landed on one. The download now makes up to three attempts on the failures that mean "ask again" (408, 429, 500, 502, 503, 504, dropped connections, read timeouts, a stream that dies mid-transfer), waits 2s and then 8s between them, honours a Retry-After the server sends up to a minute, and says on stderr that it is doing so. A permanent answer is unchanged and still comes out on the first ask: a 404 keeps reaching the message that explains a withdrawn tag, and the download deadline is never repeated, because retrying it would multiply the very wait it exists to cap.

Requires

  • invisible-core 34.27.0, which carries that change. Same engine (firefox-34), no change in this package beyond the pin.

[0.25.2] - 2026-09-21

Changed

  • One composer for the launch environment. _session.build_env was a twin of the core's launch.build_launch_env, and the hidden surface's half of the contract (the variables launch_env() names, including the ones to remove) lived only in the twin. The wrapper now verifies the font manifest against the executable, which is the one thing that needs the executable, and delegates the composition to the core. Same environment on the wire.

Requires

  • invisible-core 34.26.0, where build_launch_env takes display_env. Same engine (firefox-34).

[0.25.1] - 2026-09-21

Fixed

  • A launch environment the caller names is the whole environment. The in-process Juggler server added the named variables onto its own process environment, so a variable build_env had removed came back: measured on 0.25.0 from the index, a headless=True session on Linux was born with WAYLAND_DISPLAY still set, 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 starts and then cannot reach the network.

[0.25.0] - 2026-09-21

Fixed

  • On Linux the Xvfb display no longer travels through os.environ. _LinuxVirtualDisplay.start() used to write DISPLAY, MOZ_ENABLE_WAYLAND and GDK_BACKEND into the process environment and pop the five Wayland variables from it, restoring everything in stop(). Every session's environment is a copy of os.environ, so a headless=False session opened while an Xvfb session was still alive in the same process was born on the Xvfb and never appeared. The whole fact now travels in the surface's launch_env(), the same channel the Windows hidden desktop already used: the variables to set, and, named with None, the ones the browser must not carry; build_env applies both to the session's environment only.

Requires

  • invisible-core 34.25.0, where launch_env() gained the None half of the contract. Same engine (firefox-34).

[0.24.0] - 2026-09-21

Changed

  • headless=True on Windows creates the browser on a hidden Win32 desktop instead of asking the engine to cloak its window. The spawner now calls CreateProcessW itself, naming a fresh desktop object in STARTUPINFO.lpDesktop - the one field subprocess cannot set - so the launcher, the parent, the GPU process and every content process are born off screen, out of the taskbar and out of alt-tab, with no cooperation from the binary. Linux is unchanged (Xvfb). The pref zoom.stealth.cloak_windows is no longer emitted and invisible_core.cloak_prefs is gone; the engine is stock on that surface, and the next engine release removes the dead hook.

    Measured on the sealed firefox-33 before shipping, same seed hidden against headed: hasFocus, visibilityState, innerWidth/Height, outerWidth/Height, screenX/Y, screen.*, devicePixelRatio and the WebGL renderer string identical, ANGLE D3D11 on both, one Firefox window on the session's desktop and none on the interactive one, three cross-origin navigations in a row without a content-process crash. The two sandbox keys that a hidden desktop needs (security.sandbox.gpu.level=0, security.sandbox.content.level=4, measured in 2026-05) ride only when the desktop was actually created, never from the platform name.

    Why: the owner chose a stock engine on this surface, and the same mechanism a mass-test harness has used since 2026-05 for dozens of parallel workers. What made it possible now and not in June is that the Node driver is gone: the process is ours to create.

Requires

  • The firefox-34 engine, for the screencast of a hidden session. On firefox-33 a headless=True session on Windows starts the window capture and never receives a frame: the engine's cropping capturer saw a visible, uncloaked window and cropped it from the SCREEN, which shows the input desktop only, and the screen capturer moved the capture thread there, after which the window capturer could not read the window either. 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 2026-09-20: 0 frames in 15 s on firefox-33, both screencast tests green on the fixed build, hidden. tests/test_hidden_desktop.py now asks for a frame from the hidden session, so the engine's release gate proves it on every build.

Removed

  • tests/test_cloak.py, 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.
  • build_prefs(headless=...): the argument selected the cloak layer and selects nothing now. virtual_display is the fact that remains.

[0.23.0] - 2026-09-20

Changed

  • The engine floor moves to firefox-33. It is the first build where a drag gesture is delivered, where a gesture interrupted by a navigation does not leave the page dead to the pointer, and where the renderer acks every mouse event it handles - the ack this driver's questions about input rest on, and the one the engine had lost in its port to Firefox 150.

    On the drag: until now the pinned engine sent its mouse events through a door that could not dispatch dragover at all, and then lost the acknowledgement that upstream used to await, so a drag born in the gap between two calls went unnoticed. Measured against the previous engine, a humanised journey opened 0 drag sessions out of 20; against this one, 5 out of 5, and the dose-response on the pause between events went from 5 deliveries out of 24 to 24 out of 24, which is the threshold disappearing rather than moving. Nothing in this package changed to get that: the pin carries it, and a consumer only ever runs the engine its seal names.

    The 0.22.3 that was prepared and never published pinned firefox-32, a build that delivered the drag and, under load, failed clicks more often than the engine it replaced - measured on the same runners, the same day: 0 red runs out of 6 before, 1 out of 4 with that engine alone. That is the defect the entry below closes, and it is why that version went out as this one instead.

Fixed

  • Under load, a humanised movement no longer collapses into a jump. The pacer drops an event whose successor is already due rather than sending it late, and that rule had no ceiling in space: on a loaded machine nearly every point was overtaken, the destination survived, and one event carried 89% of an 820 px journey with a timestamp exactly where the plan put it. Now an event is dropped only while the one after it lies within twice the plan's largest step of the last position sent; past that it goes out late, still no closer to the previous one than the 8 ms floor, and the movement overruns its budget by however much the machine is behind. The one overslept sample the Windows timer produces is still dropped, and the plan still ends on time. Both drivers now tell the pacer where the pointer starts, so the first drops are measured from where it really is.
  • A pointer action that did not reach its element no longer reports success. hover, click, check and uncheck now ask the engine where each event actually landed, as recorded at dispatch by a privileged listener the page cannot see, and raise ActionMissed when the move, the press or the release fell on something else. Measured on a target that moves: hover returned normally 2 times out of 8 and click 8 times out of 8 with the page having seen no event at all. The miss is reported, not retried - the press happened, and repeating it is the defect the retry loop exists to prevent. force skips this as it skips the hit-target check. Requires an engine that answers Page.pointerLanded and returns an eventId from Page.dispatchMouseEvent: the question carries the id of the last event the action sent and the engine waits for the renderer's ack of it before it looks, because a mousemove is coalesced and dispatched at the next refresh tick, after a question sent right behind it.
  • The e2e test that asserted a hover reaches the page through a handle asserted an entrance, not a move. It listened for mouseover, which fires only when the pointer enters the element, and did not control where the previous action had left the pointer; whether it passed depended on the humanised path of the action before it. It now says what it means. This was the red that appeared on runs whose whole diff was a data file, and it was the test, not the driver.

[0.22.2] - 2026-09-18

Fixed

  • __version__ describes the code, not the install record. It came from importlib.metadata, 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 while the code keeps moving, and pulling does not touch it. Measured minutes after the checkout had been brought to zero commits behind origin/main: the record said 0.16.2 while the tree declared 0.22.1, six releases apart.

    That matters here more than in most packages, because this is the one a measurement names. Read from the program, the X in "measured against invisible-playwright X" was the moment somebody ran pip install -e, not the code under test.

    The version is now the install record for a normal install, and for an editable one the version the source tree declares 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 pip itself wrote in direct_url.json (PEP 610), not from a guess about __file__. The record is still reported, under __install_record_version__, the way invisible_core already names it.

  • Two tests were exercising whatever was installed rather than this code. The --version and -V arms spawned a subprocess, and a subprocess does not inherit pytest's pythonpath. 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.

[0.22.1] - 2026-09-18

Fixed

  • A click is delivered once, whatever the click does to the page. One 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 0.22.0, three buttons on one page differing only in what their handler does, thirty calls each: a button that does nothing and a button that moves itself were correct thirty times out of thirty, and a button that hides itself received 1068 clicks across 30 calls, all of which were then reported as failures.

    The discriminant is not movement. It is the target ceasing to be hittable by its OWN effect, which is what a modal's close, a cookie banner's accept, a menu item and a submit that becomes a spinner all do.

    The hit target was read before the action and again after it, and both reads raised WrongHitTarget, which the retry loop absorbs by starting over - and starting over presses again. 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. It is gone rather than narrowed.

    What replaces it is one read, between the approach and the press. The read also moved after the approach, which is where the race is: a page that rearranges itself on hover was being judged in the layout from before the pointer arrived.

[0.22.0] - 2026-09-17

Fixed

  • strict now refuses an ambiguous selector instead of picking one. The option was accepted across the public API, the injected script has always known how to raise on it, and nothing in between passed it on: the default stayed false all the way down. Every Locator method sends strict=True, so page.locator("button").click() on a page with two buttons clicked the FIRST one and reported success. That is not a missing error message. The automation acted on an element nobody had chosen, and said nothing about it.
  • force now bypasses the actionability checks it promises to bypass, and both of them: the state checks and the hit-target check. "Receives events" is one of the checks the option names, and an overlay intercepting the pointer is the ordinary reason to pass it, so honouring only the first half would leave the option indistinguishable from doing nothing.

Changed

  • The server reads the per-action options in ONE place rather than one reader per option. A reader per option is the shape that lost these two: seven copies of params.get("trial") is how the eighth action gets written without one. A test derives the list of actions that can carry the options from the code and requires every operation reaching one of them to hand them over, so an action added without the wiring is red on the day it is written.
  • no_wait_after is NOT in this list, and the note that grouped it with the other two was wrong. Upstream declares it deprecated and without effect, so a client that ignores it matches upstream rather than departing from it.

[0.21.0] - 2026-09-17

Added

  • go_back() and go_forward() are back, and the cause 0.18.0 withdrew them for turned out to be here rather than in the engine. A restored document left this client holding the injected script it had cached PER FRAME, while that script is an object inside one execution CONTEXT, and a frame outlives its contexts: every navigation replaces them and so does a restore. The handle and the context it was minted in are stored together now, so "is this still mine" is decided from state rather than inferred from destruction events arriving complete and in order. They do not: on a restore the engine destroys worlds this client was never told existed.
  • The end to end test walks back, forward and back again and READS THROUGH A LOCATOR each time. One movement was green against the defect, and so is asserting on the URL: both of the earlier tests did one of those.

Changed

  • The perimeter's WITHDRAWN set is empty again and stays declared, for the next operation that is written and cannot be trusted yet.

[0.20.0] - 2026-09-16

Added

  • A gate on what the injected script leaves on the page's NODES. The half of this class that concerned the page's window was closed in 0.19.0; this is the other verb. computeAriaRef writes 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: it stays. With mode="ai" the snapshot comes back carrying refs and the sandbox sees the expando, while the page sees nothing at all. Nothing was broken and nothing needed fixing - but the day that confinement stops holding, every interactable element would carry a property any page can enumerate, and nothing would have said so. The test drives the writing branch deliberately and fails if it ever stops being reached, so it cannot go quietly green.

[0.19.0] - 2026-09-16

Changed

  • A click has a duration now, and a double click has an interval. mousedown and mouseup used to leave together, so what a page measured as the hold was 8.0 ms against the 60-120 ms a finger takes; and the two presses of a double click had nothing between them, yet were still delivered as a dblclick, because that event is born from clickCount rather than from the interval - so a page received a double click no operating system would have accepted as one. Both now come from the session's PointerPersona, and delay=, which was dropped here along with button and modifiers before it, works again as the override Playwright documents it to be. humanize=False keeps the old behaviour.

  • Typing now takes the time a hand takes, and that is a real slowdown you should know about before upgrading. page.type, locator.press_sequentially, keyboard.type and the typing half of fill used to emit keys as fast as the protocol allows: a keydown and its keyup measured 4.0 ms apart on a real page, against the 60-120 ms a finger takes, and eleven characters went by in about 50 ms. A site does not have to probe for that, it only has to listen, and a password field is where that listening is already installed. The rhythm now comes from a TypingPersona drawn from the session seed - dwell, gaps, the digram structure that makes alternating hands faster than one hand, and occasional hesitations - so password123 takes about 1.8 s instead of 50 ms. Same seed still types the same way. humanize=False keeps the old speed, and the delay= you pass still wins over the persona for that call.

  • A drag travels now, instead of arriving. The whole of drag_and_drop was five events, and the two carrying the journey were identical and 7 ms apart - a pair no device can report, since a move event is born from moving. They were deliberate: one jump alone did not reliably start the drag. Measured on a 480-pixel drag, that journey now takes 27 events over 26 distinct points, on a path drawn by the same generator and delivered under the same pacing rules as every other pointer movement this package makes. The approach to the source is a path too. humanize=False keeps a single event, and humanize=<seconds> now caps this movement as it already capped every other one.

Fixed

  • drag_and_drop raised on a draggable element, and left the mouse button down. Gecko started a native drag session off that single 480-pixel jump, dispatchDragEvent then failed with NS_ERROR_FAILURE, and the mouseup never went out - so the buttons field of every event after it said "pressed", including the recovery mouseup in the error path, which failed the same way. The whole of HTML5 drag and drop was therefore unusable and nothing said so, because there was no end-to-end test of a drag at all. With a real path the drag is born the way it is for a hand and the gesture completes. It is the same change as the entry above: one absence, three symptoms.

  • delay= on typing was measured in milliseconds and slept in seconds. The public API documents it in milliseconds; the one server path that forwarded it handed the number straight to time.sleep, so element_handle.type("abc", delay=100) waited five minutes instead of 0.3 seconds. The six paths that dropped the value were accidentally protected from the bug the seventh had. All seven honour it now, and the unit is in the name.

  • trial=True no longer performs the action. It 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, so it reached the wire and fell off it: a call whose whole purpose was not to click clicked. The single place that did read it made the outcome worse rather than better, skipping the humanised pointer approach and then running the action anyway, so the click went out in the most recognisable shape a click has. It is honoured now in the retry loop, which is the only thing that knows what actionable means: the checks run, the hit target is verified, and nothing is dispatched. A drag checks both ends.

  • A mis-aimed click is retried instead of blocked, and the injected script no longer touches the page's window at all. The hit-target interceptor installed capture listeners there for the duration of every action and called preventDefault on the events that landed on the wrong element. Both halves are gone. The listeners were the last thing this package left on the page, and the blocking was the worse half: a real mousedown that disappears is not something an input stack produces, so the defence announced itself exactly when it worked. The check is now a pure DOM read run before the action and again after it, so a target that moves is caught and the action retried. What a page sees 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. The guarantee narrows in one case: an element that moves between the check and the event now receives that one event before the retry, where before it received none.

[0.18.0] - 2026-09-16

Removed

  • go_back() and go_forward() now refuse. 0.17.0 made them work for one step, and one step is the problem. The engine restores the document and reports the navigation, but a restored page leaves the driver holding a stale handle for that page's world: go forward, or go back a second time, and every locator raises Cannot find object with id while evaluate() and content() keep answering from the right document. reload() clears it. A method that is right once and wrong afterwards puts the failure somewhere else, where it reads as a broken selector on a healthy page, so both refuse with a sentence naming what would have happened. Navigate to the URL instead; reload() is unaffected, and a page moving its own history with history.back() still restores from the cache.

Changed

  • The perimeter gained a fifth category, WITHDRAWN, for an operation that is written and held back by a defect rather than missing. The four that existed would each have said something untrue about these two, and an inventory that lies is worse than one with a gap.
  • The README stops claiming all methods. It never covered tracing, HAR, CDP or the API request context, and every refusal has said so for a while; the headline had not caught up.

[0.17.0] - 2026-09-16

Fixed

  • An authenticated HTTP or HTTPS proxy routes the page again. It was accepted and then bypassed, silently, on every engine from firefox-24 to firefox-30: the credentials went to the proxy endpoint, where Gecko implements them for SOCKS only, so the call failed inside the channel filter and the connection went out directly over the host's own address with nothing raised anywhere. SOCKS was unaffected, which is why it lived through seven releases. HTTP proxy auth answers the 407 challenge instead, and that path was already wired. Reported from the outside, not caught here. There is now an end to end test that drives a browser through an authenticated HTTP proxy, on both the launch road and the context road, which is the case nothing covered.
  • go_back() and go_forward() report the navigation they performed. The engine went back all along; Juggler had no bookkeeping for a document restored from the back forward cache, so the client was never told the navigation had committed. The test asserts that going back RESTORES the document rather than fetching it again, because asserting on the URL alone passes against a browser that silently refetches.

Changed

  • Pinned engine moves to firefox-31, via invisible-core 31.23.0.
  • The pinning page's worked examples now run as written. Two of them named a GPU the validated pool cannot present and raised when copied.
  • The ledger step realigns this file's heading date to the date the index reports, so a heading typed hours before the upload it describes cannot disagree with the gate that checks it.

[0.16.2] - 2026-09-15

Changed

  • The language gate comes from the core. The check that this repository is English used to be a script here and a copy in AIHawk, and the copies drifted: this one never gained the .js, .css and .html coverage the other did, so the front end was outside its sight. It now runs as invisible_core.english from the pinned core, invisible-core 30.23.0, and what this repository exempts is declared once in [tool.invisible.english] in pyproject.toml. An exclusion that names nothing is refused, which is the check the copies did not have.
  • Three names cross into English with the core. srflx_to_declare(), the srflx_declared keyword of build_launch_env and the attribute that carries the decision follow the core's rename in the same release, because either half alone breaks the launch. Nothing the browser receives changes: the emitted prefs and the launch environment are byte-identical to 0.16.1.

[0.16.1] - 2026-09-15

Fixed

  • Setting real files on a file input works. Both doors ended in InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable, a sentence naming no file, no API and no preference. The refusal is in the parent process: it declines to build a File for any content process whose remote type is not file. The preference the engine's own gate calls the "or for testing" escape ships from invisible-core 30.22.0, which this release pins, and the two tests that covered the defect are hard assertions again for the first time since it was opened.
  • FileChooser.set_files() could not upload anything, and said so. A chooser already holds the input element, so the client asks the ElementHandle for setInputFiles rather than going through a selector, and this package had no such method: the whole listening half of the file-chooser feature led to a dispatcher that correctly reported a gap rather than a decision. The element handle now performs the same upload the frame does, through the same action and the same reader of the request, so there is one upload path and not two. The engine-side half of file uploads is a preference that belongs to invisible-core and arrives when the pin moves: the two tests covering it stay expected-red until then, and are now strict so they turn red the day they start passing.
  • locator.scroll_into_view_if_needed() works. It never had. It sent the engine command Page.scrollIntoViewIfNeeded, whose handler calls scrollRectIntoViewIfNeeded - a method declared in no binding of Element anywhere in the engine, so it was undefined for every caller and the call threw every time. Measured at four positions, including an element already in view: a timeout on all four, while bounding_box() on the same element answered correctly. The package already knew how to scroll, in the one place that mattered: every click has scrolled through the injected script since a click below the fold was found to miss. The public method now calls that same helper, so there is one scroll and not two. It centres the element rather than scrolling the minimum, and a rect argument is not honoured.

Added

  • Every operation that refuses now says so in _juggler/perimeter.py, and a test keeps it that way. Ten operations raised ProtocolException inline with a good reason beside the code and nothing anywhere that recorded they existed, so there was no way to tell a deliberate refusal from a gap without reading the dispatcher end to end. They are declared in three sets that keep the distinction: the engine offers no command (drop, setOffline, setWebSocketInterceptionPatterns), the answer is fixed when the injected script is built (registerSelectorEngine, setTestIdAttributeName), or it is simply not written yet (exposeBinding, frameElement, resolve, reject, setExtraHTTPHeaders). The test fails both ways: a new inline refusal nobody declares, and a declared name that has since started working.

[0.16.0] - 2026-09-15

Changed

  • A GPU pin now selects a validated persona instead of setting a label, and an impossible value is refused rather than ignored. pin={"gpu.renderer": ...} used to change the Profile object and leave the browser reporting the seed's own GPU: measured on seed 1561645783, the profile said AMD RX 7900 XTX while zoom.stealth.webgl.renderer stayed the seed's NVIDIA GTX 980. The same held for gpu.vendor and gpu.class_tier, so all three keys were decorative with respect to the page. A renderer string cannot travel alone - around 81 getParameter values, the shader precisions and the extension list belong to the same GPU - so a pin picks one of the validated personas, and a renderer, vendor or class the pool cannot present raises with the available values named. Sessions that pin nothing are unaffected: 404 seeds emit byte-identical preferences before and after.
  • webgl.msaa_samples is no longer a pin key. The engine now emits the same MSAA sample count on Windows and Linux, so a pin has nothing left to move. Before this, the value was honoured on Linux and held at 4 on Windows, and the two builds emitted a different gl.SAMPLES for the same seed on seven of eight measured seeds.

Fixed

  • docs/pinning.md described behaviour the code did not have. It said gpu.renderer "lands verbatim in UNMASKED_RENDERER_WEBGL" and "does not condition other fields"; both were the opposite of true. The README example pinned a card no validated persona carries, so the snippet a reader copied did nothing.

  • The pinning surface loses three keys that could not work. screen.tier could not condition the screen it named, because pins are applied after the sampler has drawn. screen.avail_width and screen.avail_height were page-contradicting: the engine derives the available rect from width, height and taskbar_px, so pinning either moved a label on the profile and nothing a page reads. Pin screen.width, screen.height and screen.taskbar_px; the available rect follows from them.

  • codec.webspeech_synth is gone from the profile. media.webspeech.synth.enabled is emitted as a constant true, which is what retail Firefox does on desktop, so the sampled field only ever made the profile disagree with the browser - on about 12% of seeds.

Internal

  • Requires invisible-core==30.21.0.
  • _cursor.humanize_prefs is deleted. It was a second implementation of the stealthfox.humanize* contract with no caller in src/, and it disagreed with the live one: it never emitted stealthfox.humanize.stepMs. The two properties its tests asserted now run through _session.build_prefs, which is the function both front doors actually call.

[0.15.2] - 2026-09-14

Fixed

  • evaluate no longer rewrites the JavaScript you passed it. The argument was placed by searching the built script for the placeholder ARG and replacing it - over a string that already held your expression - so those three uppercase letters were rewritten to the argument's JSON anywhere they appeared in your own code. 'CARGO'.length answered 6 instead of 5, a selector [data-role='TARGET'] matched nothing, /ARGH/ became /nullH/, and const ARG = 5 was a syntax error. The three letters only had to appear inside a longer word, and three of those four failures were silent. The argument is now placed in the same formatting pass that inserts the expression, so your code is never scanned. page.evaluate, page.evaluate_handle and page.wait_for_function were affected; element_handle.evaluate and eval_on_selector already built their wrapper this way and were not.
  • The script the page actually runs is unchanged, character for character, for every expression that did not spell the placeholder, and a test pins it: evaluate is the one call that deliberately runs in the main world, so the shape of that wrapper is something a site can look at.

[0.15.1] - 2026-09-14

Changed

  • The engine is firefox-30, through invisible-core 30.19.0. The screencast capture no longer ends for good when a headed window is minimised for a moment: the engine listens for its capture module ending, starts another one a second later for as long as the window cannot be captured, and repeats the last frame every 250 ms while the module is quiet, so the age of a frame means one thing to a client that watches it. Nothing else moves: the pin follows the seal.

[0.15.0] - 2026-09-14

Changed

  • A closed pipe is a closed target. A call made after the browser's pipe closed, or one that was waiting when it closed, now raises TargetClosedError - the same class a call on a disposed page, context or browser raises - instead of a plain Error carrying the pipe closed. The browser being gone is one fact and reaches a caller as one type.
  • invisible_playwright.async_api and invisible_playwright.sync_api export Error, TimeoutError and TargetClosedError, so a caller can catch the type without importing a private path.

[0.14.0] - 2026-09-08

Added

  • page.screencast.start(fps=...) sets the frame rate, and the default stays at ten. The engine has taken a frame rate all along, and the wrapper passed its own constant to it whatever the caller asked, so a live view could not go past ten frames a second no matter what it did. 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, which is the whole shape of the change: raising it would put two and a half times the bandwidth on every consumer to serve the one that is watching a window, so the caller decides and the constant is what happens when nobody does. That is how quality and size on the same call already work.

[0.13.2] - 2026-09-07

Fixed

  • page.goto() now answers with the Response, instead of always None. The navigation itself was never broken - the page loaded, the response events carried the right statuses and expect_response worked - but the return value was hardcoded to None, so page.goto(url).status was not reachable. page.reload() answers with a Response too, and so does history navigation, which shares that code path but is still held back by a separate engine defect of its own. A redirect chain answers with the FINAL response, and a same-document navigation still answers None, as upstream does. Crawlee treats a None here as a failed load, so a PlaywrightCrawler driven by this package failed every request; it now finishes them.

[0.13.1] - 2026-09-06

Changed

  • The engine is firefox-29, through invisible-core 29.19.0. It carries the screencast that page.screencast.start(on_frame=...) needs, so the feature shipped in 0.13.0 now has an engine that answers it, and the full-window frame no longer carries the Windows resize border. Nothing else moves: the pin follows the seal.

[0.13.0] - 2026-09-05

Added

  • page.screencast.start(on_frame=...) streams JPEG frames of the browser WINDOW. page.screenshot() gives the content viewport and can never show the pointer, which is drawn in the chrome document precisely so that no page can see it. The screencast captures the window through the operating system in the parent process - tab strip, address bar and pointer included, nothing injected into the page - and hands each frame to on_frame as JPEG bytes with the captured window's size. Needs an engine from firefox-28 on; size= bounds the frame (scaled down to fit, never up, default 1280x800) and quality= the JPEG quality (default 80). path= (a video file) is refused by name: the engine has no video encoder.

Fixed

  • Two threads writing the Juggler pipe could splice two commands into one line. Frames are acknowledged from the reader thread while the caller's thread dispatches input; the pipe now has a write lock, and a Connection.post that sends without waiting for the reply.

[0.12.3] - 2026-09-05

Fixed

  • Orphaned .tmp-<tag>-<pid> trees in the engine cache are swept. Through invisible-core 27.19.0: a download killed during verifying or extracting used to leave up to the whole extracted tree behind, because only a fresh download by the same pid ever removed it. ensure_binary now removes the trees whose process is gone, on every call, and leaves alone this process's 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 made a killed download an ordinary event rather than a Ctrl-C.

[0.12.2] - 2026-09-05

Changed

  • The launch counter lives on the engine's repository. Every session now declares invisible_firefox.usage_ping.url through invisible-core 27.18.0, pointing at the usage-counter release of firefox_antidetect_patch, 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. To opt out of the ping, set invisible_firefox.usage_ping.enabled to False in extra_prefs. (Since 0.51.0 this is no longer possible: the counter cannot be turned off or redirected.)
  • The browser launches badge is back. It was removed in 0.7.2 because the counter behind it lived on a repository that had been deleted, so the badge would have redrawn a frozen number every morning. The counter has lived on this repository since 2026-08-19 and is counting again, so the figure the badge shows is live. It is cumulative, and it undercounts: engines before firefox-21 still ask the old address, and they rejoin only as they upgrade.

[0.12.1] - 2026-09-05

Fixed

  • A persistent profile keeps its cookies and storage for the next session. Since 0.8.0, profile_dir= kept nothing: the first session on a profile set a cookie and a localStorage entry and read both back, the second session on the same profile read an empty jar and None, and on disk cookies.sqlite held zero rows. The persistent launch handed back an ordinary context, a Juggler container with its own userContextId, and Juggler deletes a container's cookies and storage together with the identity when the context is removed; everything a session wrote lived in a container that died with the session. The persistent context is now the browser's default one, the one whose state is the profile's, addressed by omitting browserContextId and never removed; closing it closes the browser, as upstream does. Found by a clean-environment check of 0.12.0, on the day after the docs page promised "logging in once instead of every run".

Added

  • A test that a persistent profile keeps state, e2e: two sessions on one profile, cookie and localStorage written in the first and read in the second, and the cookie row read from cookies.sqlite in between, so a regression cannot pass by keeping the data where the page sees it and the disk does not. Against 0.12.0 it fails on the on-disk read.

[0.12.0] - 2026-09-04

Fixed

  • The first launch on Windows works. On a machine that had never run the engine from that path, the first InvisiblePlaywright(...) exited with 3221226505 (0xC0000409) before the protocol came up, and the second one worked. It was Firefox's launcher process, not the browser: on a new path firefox.exe runs as the launcher first and forwards the Juggler pipe to the real browser, and it read that pipe from CRT descriptors 3 and 4, which the Node.js driver provides and this client does not, since it names the handles in PW_PIPE_READ / PW_PIPE_WRITE. The launcher died on _get_osfhandle(3); the next launch found a launcher timestamp with no browser timestamp in the registry and disabled the launcher for that path, which is why it failed exactly once per machine and why nothing about the cache directory mattered. The engine is firefox-27, where the launcher forwards the handles it is handed. Every Windows first launch since 0.8.0, the release where this client replaced the Node driver, had this; the daily Windows install check had been red since 2026-08-31. (#144)

Added

  • A test for the first launch from a path Firefox has never run from, Windows only, e2e. It removes the launcher's registry values for the binary under test, launches once, and checks both that the page answers and that the launcher recorded a start followed by the browser's, so a success with the launcher disabled, the path that always worked, does not pass. Against firefox-26 it fails with the exit code above.

Internal

  • Engine pin moved to firefox-27 through invisible-core 27.17.0.

[0.11.0] - 2026-09-04

Fixed

  • A screenshot photographs where the page is. The clip was {x: 0, y: 0, width: innerWidth, height: innerHeight}, and that clip is in document coordinates: not the window, but the top corner of the page at the window's size. An agent that scrolled and looked got the same image every time, and nothing in the image says so. full_page was not read at all: 800x600 came back where 800x4000 was asked for. (#136)
  • Two manual workflows stop calling the removed path command. Both called python -m invisible_playwright path, a subcommand removed when the CLI became fetch plus version. The Windows launch matrix failed in all three cells before reaching its launch probe, and the WebRTC gate had not run since the removal. The existing parser gate scanned Python tests only, so neither call site was in its perimeter; there is now one that reads the workflows too. Thanks to @SamadhiFire for finding and fixing it. (#141)

Added

  • A check that asks the index whether the version a change proposes is still free, on pull requests. This release exists partly because that check found its own repository in the state it exists to prevent: 0.10.0 was on the index while main sat on 0.10.0 with fifteen commits on top of the tag, the screenshot fix among them. A release from there would have published nothing and reported success, because the publish workflow treats an already-present version as a deliberate no-op, which is right for a re-pushed tag and indistinguishable from somebody forgetting to bump. (#142)

Documentation

  • Twelve pages stop shipping code that cannot run as pasted, tool metadata is out of the shipped screenshots, and the front page names the agent layer that sits on this engine. (#137, #138, #139, #140)

[0.10.0] - 2026-09-03

Added

  • Nine acting methods on ElementHandle. click, hover, fill, type, press, focus, check, uncheck and select_option now work on a handle, so page.query_selector("#go").click() does what it does in Playwright. Until now the driver served fourteen handle methods, every one of them a read, and every action answered ElementHandle has no method 'click'.

    They go through the same humanised path as the selector versions - approach, hover, press, release, with the hit-target check and the actionability retry - rather than a second, simpler one. Two click paths would be two fingerprints. What differs is only what should: the node is not looked up again, and the handle is still usable afterwards.

Documentation

  • Two pages said there is no MCP server for this project. Both were written on 2026-07-27 and the server was published on 2026-08-19: true when written, and afterwards they steered readers to Microsoft's server, which cannot carry the seeded profile, for a problem ours solves. The integration page now opens with ours and is what it actually is - how to point Microsoft's playwright-mcp at this engine if you are already on it, and what that costs.

  • The 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 third-party ones.

  • The Python floor was stated only as a badge image about 200 lines below the install block, and the first-run download size disagreed across three READMEs, all three wrong against the packaged seal. One home for it, here.

  • Four wiki pages edited in a working tree on 2026-08-30, rescued onto a branch and then lost a second time when the branch was never merged. Landed.

Internal

  • The English-only gate was written for this repository on 2026-08-27 and wired nowhere: not into tests.yml, not into the pre-push hook. Both sibling packages copied the script and the CI step; this one kept only the script. Run here for the first time it found four Italian test files, now translated, and it runs in CI from now on.

[0.9.0] - 2026-09-02

Fixed

  • wait_for_timeout has never waited. A request for 2000ms returned in 1ms, in both the sync and the async API and in every caller of either, for as long as this package has had its own driver. Nothing raised, so nothing showed.

    The defect was in _juggler/server.py, the driver written here to replace the Node one: op_wait_for_timeout read params.get("timeout"), a key the client never sends for this call, so the sleep was always zero. The client sends waitTimeout, which looks like a typo and is not - upstream Playwright declares this one parameter under its own name because timeout is the reserved key on that channel, carrying the per-call action timeout for every other call.

    ⛔ The first attempt patched the vendored client instead, to make it send the key the server happened to read. That is a fix at the symptom: it leaves the defect in the code this project owns, the next re-vendor of upstream would silently undo it, and it committed a false claim about the protocol into a comment, this changelog and a test. Review caught it before it shipped.

    What it cost, where it was found. A corpus run against real sites reported three of them as blocked by three different anti-bot products, one with the challenge markup sitting in the document; all three serve their real page once the wait exists, so those verdicts were artefacts of the tool rather than measurements of anything. A fourth site was reported as never loading and loads in twenty seconds. In the MCP package a polling loop of sixty one-second waits ran to completion instantly, so a test with a sixty-second budget failed in fourteen for no reason anybody could see.

    ⛔ This changes timings for existing callers, which is why it is a minor bump and not a patch. Code that called wait_for_timeout and returned instantly will now take the time it asked for. That is the documented behaviour of the API and the old behaviour was silently wrong, but a script that waited in a loop will get slower rather than faster.

[0.8.3] - 2026-08-31

Changed

  • Pins invisible-core 26.17.0, which seals firefox-26. That engine moves every input handler in the visible-pointer overlay out of input delivery. Until now only the mousemove one had been deferred; the press handler was still adding a class, CREATING a DOM node, attaching a listener to it and appending it - which starts a CSS animation - synchronously in the parent process while a mousedown was in flight. That is more work than what had been removed, and on the click path rather than the move path.

    The move handler's cost was measured: with the overlay on, the median gap between the mousemove events THE PAGE receives moved by a whole clamp step, 18 ms against 17, p = 0.0005. The press path was never measured, because the bench that found the first one injects and listens for mousemove only - it was watching the branch that had already been fixed. The remedy here is the same rule applied to all four handlers rather than a second special case: a handler records numbers and asks for a frame, and one place draws.

    ⛔ The timing gain is NOT measured. A press-path bench now exists and refuses to run on a loaded machine, which is all that has been available. This is a fix with a mechanism and a measured precedent, not a number.

  • The core it pins also stops the pre-push hook from naming one cause for every kind of publish-gate refusal.

[0.8.2] - 2026-08-31

Changed

  • The pinned engine moves to firefox-25, which has no updater. Until now every session showed an "Update available" badge in the toolbar shortly after start. No preference could remove it: app.update.auto stops the download rather than the notification, app.update.suppressPrompts only delays the doorhanger because the badge is shown immediately and unconditionally, and app.update.disabledForTesting is inert unless the browser is driven by Marionette or the remote agent, which this package is not.

    The engine is therefore built without the update machinery at all: the build options are gone rather than switched off, so nothing checks for an update, nothing can install one over the binary the seal pins, and the badge has no code left to draw it. The update channel is unchanged, because the application's remoting name derives from it.

    One consequence is worth stating: a retail Firefox contacts Mozilla's update service at startup and this build no longer does. No page can observe that - no API exposes the updater's state - but anything watching the connection can.

[0.8.1] - 2026-08-30

Fixed

  • proxy= with an http or https scheme was accepted and ignored. The page went out on the host's address while the timezone, the locale and the WebRTC candidate had all been resolved through the proxy, so the session announced one country and connected from another. That is worse than having no proxy: it is the mismatch this package exists to avoid, produced by the package. SOCKS was unaffected, which is why it went unnoticed.

    The cause was three ways of expressing one thing, with the scheme choosing between them: SOCKS wrote network.proxy.* preferences, HTTP was handed to the Playwright driver to route per channel, and HTTP without a driver got different preferences again. Removing the Node driver removed the middle one and nothing said so. The other two are now gone rather than repaired: the endpoint is read once and routed by the engine command, for every scheme. A proxy that cannot be expressed refuses the launch instead of starting a browser without it. Reported from outside, with a 24-site case study behind it.

  • SOCKS proxies that require a username and password could not connect at all. The credentials reached the engine's channel filter and stopped there, so the browser offered "no authentication" and the proxy closed the connection. The symptom was a connection refused, which reads like a dead proxy rather than a missing password. Needs the matching engine release.

  • profile_dir= raised KeyError: 'browser'. A persistent context never opened: the reply carried the context and not the browser, and the client reads both.

Changed

  • Pins invisible-core 24.16.0, which seals the firefox-24 engine. The proxy credentials fix lives in the engine, so on an older binary that one is inert.

[0.8.0] - 2026-08-30

Removed

  • The Node driver. invisible_playwright._driver (6 MB of vendored JavaScript) and the node.exe downloader are gone, and the browser is now driven from Python over the Juggler protocol directly. The wheel goes from 1.6 MB to 0.7 MB and the installed package from 11.2 MB to 6.5 MB, and a first install no longer downloads a 92 MB Node runtime - it fetches the browser and nothing else.
  • invisible-playwright show-trace. The trace viewer is a Node application and left with the runtime that ran it. Traces themselves are unaffected: they are still recorded, and playwright show-trace from an ordinary Playwright install opens them.

Changed

  • Pins invisible-core 23.16.0, which seals the firefox-23 engine. That is the engine carrying the two fixes below: both need it, and on an older binary the Python half of each is inert.
  • The visible pointer overlay is ON by default. It draws the Windows arrow, with the package logo's green halo around it, in the browser's own chrome window - which the page cannot reach, so no site sees a difference either way. What it changes is what a person watching the screen sees. Pass show_cursor=False for the previous behaviour.

Fixed

  • A teardown that was cancelled left the browser running. asyncio.CancelledError inherits from BaseException, not from Exception, so the guard around each close step never caught it: cancel the task and teardown stopped wherever it had reached, skipping every later step including the one that reaps whatever the close did not. A cancellation is now caught, kept, and re-raised once every step has run, so it still propagates and nothing is left behind. Reported by DatGuy1 in #104.
  • A browser that had opened a few hundred pages stopped delivering events entirely while still answering commands, so the next new_page() timed out waiting for a session that had already been announced. Event delivery was a chain of nested calls that grew by three per page and never shrank; past roughly 330 pages it crossed Python's recursion limit, and the failure was swallowed by the handler that keeps a bad callback from killing the connection. Delivery is now flat and subscribers are removed when their page closes.
  • A closed page is now disposed, so neither the client's nor the server's object registry grows for the life of the browser.
  • A CSS query on a page returned the browser's own form widgets. Firefox builds the controls inside <input type=date|time> in a shadow root it marks closed, and the engine handed those to automation along with the closed roots a page had authored, so the selector engine collected them as if the page had written them: page.locator("button") answered 2 on a document with one button, and the extra match was invisible. The damage was not the count. A click on the invisible match reported success and sent nothing, so a site that had not blocked anything looked like it had. Needs the matching engine release; the guard is Element::GetShadowRootForBindings refusing UA widgets, which is what the sibling API has done upstream since bug 2035665. Reported from outside, with a 24-site case study behind it.
  • Response.text() and Response.body() read the body again. The command they rest on had been removed from Juggler while trimming it, and two more callers used it without saying so: traces and HARs recorded with embedded content were being written with every response body empty, and nothing raised. Bodies cost memory again, bounded as upstream bounds them: 100 MB per tab, 10 MB per response, oldest evicted first. Reading one from inside a page.on("response") handler now waits for the request to finish instead of racing it, which is why the main document used to fail where subresources did not.

[0.7.4] - 2026-08-27

Changed

  • Pins invisible-core 21.16.0, which pins the firefox-21 engine.
  • The CI font gate writes its preferences into the profile instead of sending them over the protocol. From firefox-21 the engine refuses Browser.enable with a userPrefs field rather than applying it late: preferences that arrive after startup mean the first launch initialises graphics and fonts with the defaults and the second with the stealth values, two different code paths. Nothing changes for users of this package - the vendored driver already writes them into the profile before startup.

[0.7.3] - 2026-08-26

Changed

  • The Playwright client is now vendored inside the package. invisible_playwright._pw (client) and _driver (Node driver) ship with the wheel, and playwright is no longer a dependency: the code that runs is the code we ship. The vendored copy carries four changes over upstream 1.61.1 - set_content waits for load the way a driven page needs, ~643 KB of unused subsystems removed (android, electron, bidi, recorder, chromium, webkit), _exposeConsoleApi neutralised, and console.debug dropped from injected code. It is Apache-2.0 inside an otherwise MIT package; pyproject.toml declares MIT AND Apache-2.0 and THIRD_PARTY_FORK.md records the provenance.
  • Pins invisible-core 20.16.0.

Removed

  • macOS is no longer supported. Releases stopped at firefox-20; the CI builds Windows and Linux only. On a Mac the package now refuses at launch with a message that says why, instead of trying to download a binary that will not exist. Already published macOS assets are untouched.

Fixed

  • Without a proxy the egress IP was discovered twice before the browser started - two identical requests to an external service, from the real address, where a real user makes none. It is discovered once now.
  • pyee and greenlet are declared explicitly. They were transitive dependencies of playwright; removing that dependency removed them too, while the vendored client still imports them, so the wheel installed and then failed to import.

[0.7.2] - 2026-08-18

Fixed

  • Pins invisible-core 20.15.0, which carries a fix for a defect that lived in 17 published core versions. An http:// or https:// proxy handed to build_launch_plan produced NO proxy preference at all: configure_proxy returns a non-SOCKS endpoint to its caller, because only Playwright can answer a proxy's 407, and that path launches the binary with subprocess and had nowhere to put it. The browser then went out on the machine's own address while the geo layer had already resolved timezone, locale and egress THROUGH the proxy, so the session announced one country and connected from another.

    This wrapper was never affected and needs no change on your side. It hands the endpoint to Playwright, and that was measured: the same exit IP as curl through the same proxy, in http and in socks5. The fix matters if you also use invisible_core.launch.build_launch_plan directly.

Removed

  • The browser launches badge. The counter behind it was a release asset hosted on a repository that was deleted on 2026-08-18, so the series is frozen on its last real value and the renderer would have redrawn that number every morning. A frozen figure presented as current is worse than no figure. The history is untouched and the SVG on the badges branch stays, because already-published PyPI pages are serving it.

[0.7.1] - 2026-08-17

Changed

  • Pins invisible-core 20.14.0, which seals firefox-20. The engine release is the memory one: the same fingerprint at the same seed, the same detector verdicts, less RAM and less CPU. The font faces stopped being copied twice on their way into the shadow list, the bundle is opened by path instead of being held in the heap, and the .ttc accounting now counts the faces we DECLARE rather than every face the file happens to carry.

Fixed

  • This entry itself was missing until 2026-08-18. 0.7.1 shipped to the index on 2026-08-17 and the changelog stopped at 0.7.0, so for a day the released version was undocumented. It was not caught by the release: the guard that compares the index against this file, test_the_changelog_documents_every_ version_it_claims_to_cover in tests/test_release_e2e.py, is marked e2e and the default selection deselects it. It fired on the first full e2e run after the release, which is the run that happens for a reason unrelated to releasing.

[0.7.0] - 2026-08-11

Changed

  • Pins invisible-core 19.14.0, which seals firefox-19. The engine release carries a seal.json asset for the first time, so the seal a client verifies and the seal the build produced are the same bytes rather than two things that agree.
  • session_kwargs in the test bench no longer pins the proxy exit. It used a literal session id, and the providers are sticky on it, so every realness measurement this project made left through the same address: one distinct IP in twenty-four hours, eleven events on it in one hour, and the detector had classified it as a datacenter. The same binary on fresh exits scores 0, 3 and 0 where it scored 14. Consistency runs still pin one exit for their pair, because that comparison is about our own determinism and a rotating exit puts the network inside it.

Fixed

  • scripts/ci_font_gate.py asked a question whose answer could not mean anything. It launched the engine raw, which since the generic-family map became a declaration means launching it without one - and the engine does not invent declarations. And it inferred "did this face load" from a line height that we declare: it worked while the fallback measured 91 and the families 95, and stopped the day the metrics became declared and the fallback landed on 95. It now hands in the one declaration it needs and asserts which families SHARE a face, measured from the ink box. Green on this build, on the previous release, and on both platforms.

Added

  • Two e2e tests for failures the suite could not see: a session that dies under heavy text shaping, and a frame reporting its parent's screen origin instead of its own. Both validated by reintroducing the real defect in the engine and rebuilding, not by reasoning about them.

[0.6.1] - 2026-08-05

Changed

  • Pins invisible-core 18.13.0, which puts an upper bound in wall-clock time on the engine download. A requests timeout is per socket operation, so a connection delivering a byte every 59 seconds satisfied it forever and the transfer had no total limit; INVISIBLE_DOWNLOAD_DEADLINE (default 1800s) bounds it, and the refusal names the deadline, the elapsed time and the bytes received. Set it to 0 on a genuinely slow link.
  • README: the Telegram invitation moved to the top and the status badges to the bottom.

[0.6.0] - 2026-08-01

Fixed

  • browser.new_page() now gives the page the same context browser.new_context() does: the profile's viewport, screen, DPR, colour scheme, locale and timezone. It did not, because Playwright's Browser.new_page forwards to the IMPLEMENTATION object, whose own new_page calls new_context on itself, so a wrapper installed on the api object was never consulted. Measured in a real browser with the seed the e2e uses: new_page gave 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 this package's README, in the class docstring and in every example it ships, which is why this is a minor bump and not a patch.
  • The engine-mismatch message told you 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.
  • Four tests marked unit drove __enter__ with Playwright mocked and made two real network calls each, then sat out the lifetime guard's full 10s deadline waiting for a browser tree a mock never produces. 45.6s to 0.34s for that file. CI-only.

Changed

  • Requires invisible-core==18.12.0, which carries one prefs composition for all three entry points (compose_session_prefs), a proxy= argument on get_default_stealth_prefs that had no way to reach configure_proxy before, a proxy endpoint with no port refused rather than dropped silently, and a process scan that no longer asks psutil for the parent of every process on the machine.
  • build_prefs delegates to that composition, so the three entry points that used to stack layers on top of translate_profile_to_prefs in their own order now agree, with the difference asserted as an exact set. 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, because 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.
  • Eight imports in launcher.py and async_api.py were unused and are gone. The ninth, IANA_TO_POSIX_TZ in _session.py, is not dead: the import IS the probe that turns an old core into a message about a version instead of a message about a symbol, so it keeps a noqa carrying the reason.
  • datetime.utcfromtimestamp is replaced in _recaptcha_seed.py. It returns a naive datetime and has been deprecated since 3.12, which matters now that the matrix reaches 3.14.
  • CI runs 3.11, 3.12, 3.13 and 3.14 on Ubuntu and Windows, every version requires-python promises; two of them had never run here. ruff selects F601 beside F821 and F811, because a dict literal with a repeated key silently keeps only the last one and Python does not warn.
  • ruff is declared in the dev extra instead of being pip-installed unpinned on every run, so the tool that gates every push cannot change under us between two pushes. pytest-mock and responses were declared and used by no test in this package, and are dropped.
  • Publishing is a workflow on a tag push using PyPI trusted publishing (OIDC, environment pypi), so there is no long-lived token on a machine or in a secret. The upload sits 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, since a tag push does not trigger the ordinary test workflow. It needs a GitHub publisher registered on PyPI before its first run; until that exists the upload fails with invalid-publisher, which is the correct failure.

[0.5.0] - 2026-08-01

Changed

  • The CLI is two commands, fetch and version. path, clear-cache, doctor and fetch --force are gone, and so is the tag argument. Breaking for anybody scripting the four that were removed - they fail loudly rather than being ignored, and a test asserts that. None of the behaviour is gone.
  • doctor runs inside fetch now, on every run and 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.
  • --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.
  • 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.
  • 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.

[0.4.9] - 2026-08-01

Changed

  • Requires invisible-core==18.11.0. 18.10.0 classifies 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 is that 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 in this package's behaviour changed.

Fixed

  • The README said the sampler draws "~400 fields". Measured against a real profile: 197 leaves on the most generous count, which treats every bundled font name as a field, and 155 prefs emitted. Corrected to ~200. tests/test_readme_claims.py now gates the engine version, the platform list, the download size, the documented subcommands in both directions, and every fenced Python example on the page - four claims that had nothing checking them.
  • A publish was racing its own verification: the install e2e runs on release:, which fires seconds after the upload, and the index does not serve a new version to pip immediately, so the job reported a forgotten publish that had happened two minutes earlier. A bounded five-minute poll on the per-version endpoint, scoped to the release event. CI-only.

[0.4.8] - 2026-07-28

Changed

  • Requires invisible-core==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.
  • CI runs ruff with F821 and F811 selected, those two only: they catch a name that cannot resolve, which is not a style question and not findable by running tests. Nothing here had ever run a linter, and there are zero violations once the three below are fixed.

Fixed

  • Renderer was 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.
  • prof: Any in _motion.py, with Any itself 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] a few lines away.
  • The install e2e imported the venv helpers from invisible_core.testing, which the runner does not have on purpose, so the job went red at collection having tested nothing. The helpers are local to those two files again, with the reason above them, and the core's suite now parses every file the user-install workflows name and refuses the import. CI-only.
  • CI arms the hooks, because the suite asserts they are armed. The assertion moved into invisible_core.testing and all three repos started making it, but only the core's workflow ran install_hooks.py, so this repo went red on every push with a message about an unset config that reads like a developer's mistake rather than a missing CI step. CI-only.

[0.4.7] - 2026-07-28

Changed

  • Requires invisible-core==18.8.0, which carries the work of the last two days: the prefs builder split into fourteen named steps with its output hash-identical across 400 profiles, the GeoIP fetch moved out of download, invisible_core.pin as a public module, and a publish gate whose index cross-check finally asks about the package it is gating.
  • Nothing in this package's behaviour changed. The imports moved: it asks invisible_core for what that package exports instead of reaching into its private modules, and its own back-compat shims are for users again rather than for its own source.

Fixed

  • The suite could not tell a collapsed selection from a pass in one place and the install e2e imported the package it tests the install of in another; both are CI-only and neither reached a user.

0.4.6 - 2026-07-27

Changed

  • This package can no longer be published without a gate. A release used to be a bare twine upload of whatever happened to be in a directory - which is how 0.4.4 reached the index built from a tree that predated the fix it was meant to carry. The gate is invisible_core.release, one implementation for all three packages, and the pre-push hook runs it on a release tag. What makes it work is that publish builds and uploads what it just built, so a stale directory cannot be what ships.
  • PUBLISHED.json records what actually reached the index, back-filled from the artifacts themselves.
  • Requires invisible-core==18.6.0.

0.4.5 - 2026-07-27

Fixed

  • An environment holding an older invisible-core failed on the browser launch path with ImportError: cannot import name 'IANA_TO_POSIX_TZ' from 'invisible_core' - a symbol name, from a package whose version the reader did not choose. It now states 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. 0.4.4 has this bug and cannot be corrected in place; a PyPI filename is never re-uploaded. Use 0.4.5.

0.4.4 - 2026-07-27

Changed

  • The process-lifetime machinery moved into invisible-core, shared with the profile manager. Both packages launch the same browser and both had the same leak; the manager had it a day longer because the fix lived here. invisible_playwright._reaper stays as a re-export, so nothing you import changes.
  • The IANA-to-POSIX timezone table is the core's now. This package carried a byte-identical copy of all ten entries, including the Arizona row that exists because mapping it to MST7MDT made libc apply DST and an identification service deduce a Denver origin - and the core's own copy carried a comment admitting it had been copied from here. Two copies with a documented keep-in-sync obligation and nothing enforcing it.

Fixed

  • The lifetime guard counted an attempted job assignment as a successful one, so a process it had failed to adopt was never retried and the count it reported was a number of tries. Measured on the sibling package, that reported eight processes held while eight survived the kill. This package shipped the same accounting.

0.4.3 - 2026-07-27

Fixed

  • async with InvisiblePlaywright(...) no longer leaves browsers behind when the runner is killed. The lifetime guard added in 0.4.0 reached the sync entry point only, so every async user kept the entire leak while this file said it was closed. If you drive this package with async with on Windows, upgrading is the fix.
  • The guard itself stopped adopting the process tree after the first process it found, so part of the tree stayed outside the kernel job even on the sync path. Found by killing the runner mid-session and counting the browsers still carrying that session's token: sync 0/0/0/0, async 2/0/0/2 - the same code on both, differing only in timing, which is what made an intermittent race look like a working feature. After the fix: ten sessions, zero survivors on both.
  • INVPW_TRUE_HEADLESS now works on both entry points. It was read in the async class alone, so a documented environment variable applied or did not depending on whether you wrote with or async with.

Changed

  • The two entry points share their session logic instead of restating it: prefs, the launch environment and the IANA-to-POSIX timezone table live in one module both call. 80.6% of the async class was the sync class retyped, which is how a fix reaches one of them and a release note describes both.
  • Requires invisible-core==18.3.0.

[0.4.2] - 2026-07-26

Changed

  • The lifetime guard is a strategy object instead of a module of flags. SessionToken (a value object), find_processes (the only place psutil appears) and LifetimeGuard with a JobObjectGuard / NullGuard pair: os.name is tested in exactly one place, so no launcher code branches on the platform, and the Null implementation reports that it guarantees nothing rather than doing nothing while looking successful. Behaviour unchanged.
  • The stroke planner is six named stages instead of one 203-line function, and the idle planner is a table of episodes instead of an if/elif chain with the weights written as bare literals in the branch conditions. Both verified byte-identical against recorded output, which caught two float-associativity regressions that no other test could see - a * b * c and a * (b * c) differ in the last bit, and that is enough to change a rounded pixel and every draw after it. A permanent fingerprint test now covers 576 cases and 16135 waypoints.

[0.4.1] - 2026-07-26

Changed

  • Three long functions became named stages, with their output pinned before and after so the refactor could not change it in silence.
  • The lifetime guard became a strategy rather than a module of flags.
  • The forbidden-name scan no longer blocks a clone that has no word list.

[0.4.0] - 2026-07-26

Added

  • Pointer movement is generated in this package, from the session seed, instead of by the engine. Existing code gets it with no edit: the six internal funnels every pointer action already goes through are wrapped, so a page.click written a year ago moves through the new generator. A plain sync_playwright() browser in the same process is untouched.
  • Movement between actions: drift while reading, motion while the wheel turns, overshoot and correction, and movements that end on nothing. If every movement ends on something clickable, the set of endpoints is itself a signature however good each path is.
  • INVPW_CURSOR_ENGINE selects the generator: python (default), binary (the previous behaviour) or off.
  • The browser process tree is tied to this process's lifetime on Windows, so it cannot outlive a runner that was killed. Measured: eight survivors on the first attempt and twelve on the second before, zero after. psutil becomes a dependency for this - an optional reaper is absent exactly on the machines that need it, and silently. This reached the SYNC entry point only. async with kept the whole leak through 0.4.2 - see 0.4.3.

Changed

  • Install is now pip install invisible-playwright, from the index. The git URL is gone from the README, the CLI docs and the generated release notes. Nothing about the package changes for someone who was already installing it from git, except that pip can now see what it is holding.
  • invisible-core is declared as an exact version specifier (invisible-core== an exact version) instead of a git+https://... direct reference. A direct reference carries no version, so there is nothing for pip check to compare and a broken environment reports clean; a real specifier is reported, exit 1, and a plain reinstall of this package repairs it. The cost is that a binary bump is now a release of every package that pins the core, which is deliberate.
  • Requires invisible-core>=18.2.0, which bounds the timezone lookup as a step rather than only per request.

Fixed

  • hover() no longer fails intermittently on Windows. The approach now completes before the automation layer's hit-target check is installed, so the only event inside its window is that layer's own move, on target. Measured on a page whose target needs a scroll: 3 failures out of 3 before, 0 out of 3 after.

[0.3.6] - 2026-07-25

Fixed

  • The browser tree now dies with this process even when the process is KILLED. An exception out of the with block was never the leak - __exit__ runs and Playwright cleans up, measured over an interleaved A/B with zero survivors. The leak is the killed-runner path, where __exit__ never executes at all: launch, kill the runner, and eight processes were still alive, twelve on the second attempt.

Changed

  • Declared as invisible_playwright on the index, pinning invisible-core==18.1.0.

[0.3.5] - 2026-07-25

Changed

  • Playwright pin is back to >=1.55,<=1.61.0: the floor drop to 1.40 shipped in 0.3.4 is reverted. The conservative CI-tested floor (1.55) is kept together with the tested upper cap (1.61.0).

[0.3.4] - 2026-07-24

Changed

  • Playwright floor lowered to >=1.40,<=1.61.0. The 1.55 floor was never a real compatibility bound - it was only the single minor that 0.3.1 had pinned. 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 anyone on an older client keeps working; the upper cap stays at the tested 1.61.0. Reverted in 0.3.5.

[0.3.3] - 2026-07-24

Changed

  • Playwright pin is now >=1.55,<=1.61.0 (was >=1.55,<1.62). The open upper bound would let an untested version below 1.62 install and break a fresh setup the way 1.61 first did; the cap is now the exact version validated against this binary, 1.61.0. It moves forward on purpose, once a newer Playwright is tested against the binary.
  • The expected Firefox version in the tests is derived from the constant instead of a hardcoded literal, so a binary bump no longer needs the test edited alongside it.

[0.3.2] - 2026-07-24

Changed

  • Playwright pin moved to >=1.55,<1.62 (was >=1.55,<1.56). The firefox-18 binary rebases onto Firefox 151, which is what the latest Playwright (1.61) pairs with, so 1.61 now drives the binary natively - no more pinning to an older client. Both ends of the range were tested against the new binary (full browser suite on 1.61; drift-free protocol on 1.55). scripts/playwright_pin.txt -> 1.61.0.
  • README badges are served as SVGs from the repo instead of a third-party badge service, so the header no longer depends on an external endpoint; the dynamic Firefox-version badge, which was the flaky one, is now static.

Fixed

  • The CI font gate checks that the whitelisted faces actually LOAD, not only that the family enumerates. Enumerating a font is not loading it, so the previous check could pass on a build that could name a family it could not render.

[0.3.1] - 2026-07-13

Fixed

  • #48: Playwright 1.61 adds an isMobile field to the Browser.setDefaultViewport Juggler command that the FF150 binary does not accept, which kills the session. The range narrows from >=1.40,<1.61 to the CI-tested 1.55.x (>=1.55,<1.56, single-sourced from scripts/playwright_pin.txt) so a fresh install always gets a compatible client. Widened again in 0.3.2, once firefox-18 rebased onto Firefox 151.

Changed

  • The patched-Firefox source repo is now oss-invisible/firefox_antidetect_patch (it was feder-cr/invisible_firefox, a name the profile manager took over). Release notes, CI references and the release URLs the download tests mock all point at the new name; the binaries themselves are unchanged.
  • The wrapper no longer injects the font-list / system-UI environment variables at launch: the binary ships its own font bundle and is self-contained on that front. The integration tests were adapted and the font-sampling tests dropped.

Added

  • scripts/ci_font_gate.py: asserts the Windows font persona on every OS, so a Linux or macOS runner catches a font regression that would otherwise only show up on Windows.

[0.3.0] - 2026-07-03

Changed

  • Pure config (seed -> fingerprint -> prefs, binary download, proxy, geo) is split out into a standalone invisible-core package with zero Playwright, so a profile manager can reuse it without pulling Playwright in. The wrapper depends on it 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 with 6 guards.
  • BINARY_VERSION walks firefox-7 -> firefox-13 across this cycle: firefox-8, then firefox-9 (firefox-8 was found broken and is refused outright, not merely superseded), firefox-10, firefox-11, firefox-12 (the cross-OS render-parity build) and firefox-13 (geo-aware locale/Intl + the Windows font bundle + the audio gate).
  • Playwright is capped at <1.61 (>=1.40,<1.61) and the pin is single-sourced from scripts/playwright_pin.txt instead of being written in two places.
  • WebGL personas: only the GPU buckets that survive the tampering checks are shipped, and the render-noise seed is decoupled from the persona seed.
  • The dead zoom.stealth.normalize_date_now baseline pref is dropped.
  • New runtime dependencies: requests[socks] (SOCKS egress lookup), maxminddb (mmdb reader), tzdata (IANA database for zoneinfo, which Windows lacks). After the split they arrive transitively through invisible-core.

Added

  • timezone="auto": the browser timezone is auto-derived from the egress IP. By default (no explicit timezone) it ALWAYS resolves - from the proxy egress when a proxy is set, otherwise from the host's own public IP - so the zone can never disagree with the IP (the classic timezone_mismatch signal). An explicit "Area/City" is the only way to force a specific zone. On failure: with a proxy the launch raises (no silent host-TZ fallback behind a foreign proxy); without a proxy it falls back to the host TZ so a transient lookup can't break the launch.
  • The egress IP is mapped to its IANA zone with an offline mmdb (daijro/geoip-all-in-one). It always tracks the upstream weekly rebuild: on every launch the current latest release tag is resolved from the releases/latest/download permalink (no GitHub API → no rate limit) and pulled only if newer than the cache, older copies pruned. Offline → the cached copy is reused; never a pinned tag (daijro prunes old releases, so a pin eventually 404s). STEALTHFOX_GEOIP_MMDB points at your own .mmdb to skip the download.
  • resolve_session_timezone(timezone, proxy) and ensure_geoip_mmdb() re-exported at the package root (plus GeoTimezoneError) so integrations that own their launch can reproduce the resolution.
  • tests/test_geo.py (37) + tests/test_geoip_update.py (freshness / auto-update / offline fallback) unit tests.
  • Cross-OS render parity (needs firefox-12): the same font/canvas/WebGL fingerprint now renders consistently on Windows, Linux and macOS, so a Windows persona looks identical regardless of the host the binary runs on. Each whitelisted font renders a distinct canvas image (font-detection probes that dedup by rendered image keep every name), the standard Windows fonts (Calibri, Franklin Gothic, Gadugi, Javanese Text, Myanmar Text) are always present so the detected font set matches a real Windows install, and the per-seed render-noise leaves a solid-colour reference render byte-exact while still varying real fingerprint renders.
  • GPU persona applied on every platform: Linux/macOS hosts now present a coherent Windows GPU (renderer + WebGL parameters) instead of the host's real adapter; pool re-rooted on a real-device GPU mix.
  • tests/test_canvas_render_stealth.py, tests/test_webgl_noise_active.py and new tests/test_sampler.py cases: regression guards for per-font canvas distinctness, solid-readback purity under render-noise, and the always-present standard-font invariant.
  • macOS support in the wrapper (x86_64 + arm64): the release pipeline builds five targets and the wrapper resolves the archive for the host it runs on.
  • Headless is cloaked on Windows and macOS and runs under Xvfb on Linux, instead of the flagged headless mode; CI carries a cloak guard and a WebGL-masking guard. The cloak applies on the async path too.
  • The e2e suite runs the real detectors offline (BotD, FingerprintJS, fpscanner, CreepJS, vendored under tests/vendor/) and a hermetic SOCKS5 auth + routing e2e, all on CI on every push. The 15 hand-rolled BotD imitations are dropped now that the real one runs.
  • fetch --force on the CLI, to re-download an archive over a cached one.

Fixed

  • WebRTC behind a proxy ships the validated realness configuration, with CI guards: a fully blocked WebRTC is itself a tell, so the guard asserts the positive form and not merely the absence of a leak.
  • The TLS ClientHello matches stock Firefox again: cipher 0xC009 was being offered and stock Firefox does not offer it.
  • The humanize prefs were written under the wrong namespace.
  • The font pool uses the real Windows 11 family name franklin gothic medium; the previous name does not exist on a real install.

[0.2.0] - 2026-05-28

Added

  • Public config helpers in invisible_playwright.config: get_default_stealth_prefs(seed, *, pin, locale, timezone, extra_prefs, humanize, virtual_display) returns a complete firefox_user_prefs dict; get_default_args() returns the baseline CLI args list (currently empty). Both also re-exported at the package root.
  • invisible_playwright.ensure_binary re-exported at the package root for parity with the cloakbrowser.download.ensure_binary integration pattern that downstream projects (Skyvern, Crawlee, agno) already expect.
  • These helpers let third-party fetchers (changedetection.io plugins, Crawlee BrowserPool subclasses, agno toolkits) drive playwright.firefox.launch(executable_path=..., firefox_user_prefs=...) themselves without depending on the InvisiblePlaywright context manager owning the lifecycle.
  • tests/unit/test_config_public.py: 14 unit tests covering deterministic seed, locale / timezone / pin / extra_prefs / humanize variations, and round-trip via the public namespace.

Unchanged

  • InvisiblePlaywright context manager surface is identical (backwards compatible).
  • BINARY_VERSION stays at firefox-7. Python-only release; no new Firefox build.

[0.1.8] - 2026-05-23

Fixed

  • #20: cross-origin iframes were unreachable from Playwright. element_handle.content_frame() returned None, frame.evaluate() threw cross-origin SOP errors, and frame_locator(...).click() timed out even with force=True. Root cause: FF150 defaults fission.webContentIsolationStrategy=1 (IsolateEverything), which site-isolates every cross-origin iframe into a separate webIsolated content process even when fission.autostart=False. The parent's Juggler FrameTree then has a Frame placeholder with no docShell and no URL - every protocol op that needs to enter the iframe fails. Fix: pin fission.webContentIsolationStrategy=0 (IsolateNothing) in the baseline prefs. The setting can be flipped back per session via extra_prefs={"fission.webContentIsolationStrategy": 1}.

Added

  • tests/test_cross_origin_iframe.py: 4 unit + 5 e2e regression sentinels for cross-origin iframe interaction. The e2e layer runs entirely offline against two local HTTP servers on 127.0.0.1 (two ports = two SOP origins) and covers page.frames URL tracking, content_frame(), frame.evaluate(), frame_locator(...).locator(...), and end-to-end dispatch_event("click") for plain, sandboxed and titled iframes. A future FF upgrade or fingerprint A/B that flips the pref back to 1 will fail the suite before shipping.

Unchanged

  • BINARY_VERSION stays at firefox-7. Python-only release; no new Firefox build was needed.

[0.1.7] - 2026-05-21

Fixed

  • #18: Tab crash when running with headless=True on Windows on pages that trigger cross-process navigation. Two separate bugs that only manifested together: (1) the Chromium content sandbox at default level 6 puts content processes on kAlternateWinstation, but the wrapper hides the browser window on its own alt-desktop (CreateDesktop for headless on Windows). Mismatched desktops → cross-process navigations couldn't reparent windows → content process exits cleanly and Playwright fires page.on('crash'). (2) The canvas2d getImageData stealth spoof wrote to a read-only mapped DataSourceSurface. On GPU-backed canvases that memory is write-protected → segfault during the final getImageData at page unload. Wrapper now sets security.sandbox.content.level=4 in the alt-desktop workaround set, and firefox-7 ships the source fix that moves the noise to the JS array's writable backing buffer.

Changed

  • BINARY_VERSION bumped from firefox-5 to firefox-7. firefox-6 was rolled back when its partial fix turned out to be wrong (the iframe-burst hypothesis was a dead end; bisection in the evening found the real two-bug cause documented above).

[0.1.6] - 2026-05-21

Added

  • profile_dir= kwarg on InvisiblePlaywright (sync + async). When set, the session uses firefox.launch_persistent_context() so cookies, localStorage, sessionStorage, extensions, cache and prefs are kept on disk between runs. __enter__ returns a BrowserContext directly: with InvisiblePlaywright(profile_dir=p) as ctx: ctx.new_page(). Pair with a stable seed= to also pin the fingerprint identity across runs. First run creates the dir; subsequent runs reuse it.

Fixed

  • launch_persistent_context(timezone_id="…") no longer times out at 180s. Root cause: juggler/content/main.js calls docShell.overrideTimezone(...) on every navigation; the patched Firefox up to firefox-4 didn't expose that IDL method on nsIDocShell, so the call threw TypeError: docShell.overrideTimezone is not a function. On the non-persistent path the error fired after launch and was harmless; on the persistent path it blocked the launch handshake. firefox-5 ships the C++ method (see patch.md section 19); this release removes the firefox-4 era Python workaround that was filtering locale/timezone_id out of the persistent context kwargs.

Changed

  • BINARY_VERSION bumped from firefox-4 to firefox-5. The Python source delta is JS/Python only; the new Firefox build adds 50 lines of C++ in docshell/base/nsIDocShell.idl + nsDocShell.cpp.

[0.1.5] - 2026-05-20

Fixed

  • #15: python -m invisible_playwright fetch raised RuntimeError: no SHA256 for firefox-150.0.1-stealth-linux-x86_64.tar.gz in checksums.txt for every user because the parser kept the * binary-mode prefix that sha256sum writes in front of filenames. Now .lstrip("*") is applied to the key. Reporter + patch: @LostBoxArt. Unrelated to the firefox-N binary; existing caches still work, only first-time fetches were broken.

[0.1.4] - 2026-05-20

Fixed

  • #13: every page that threw an uncaught JS error (e.g. bunny.net) crashed the Playwright client with TypeError: Cannot read properties of undefined (reading 'url'). Root cause: upstream Playwright Juggler added a required location field to the Page.uncaughtError event in the 2026-05-07 roll (microsoft/playwright@c8604ec); our fork was carrying the pre-roll schema in every firefox-N build. Fix matches upstream - Runtime.js builds the errorLocation, PageAgent.js forwards it on both worker and runtime error paths, Protocol.js declares the schema field. Reporter: @dionorgua.

Changed

  • BINARY_VERSION bumped from firefox-3 to firefox-4. JS-only change inside chrome/juggler/; xul.dll and firefox.exe are byte-identical to firefox-3.

[0.1.3] - 2026-05-19

Changed

  • BINARY_VERSION bumped from firefox-2 to firefox-3. The new archives on both Windows and Linux are built from a clean clone of oss-invisible/firefox_antidetect_patch#stealth/150 - the consolidated source-of-truth fork (renamed from feder-cr/firefox; the companion feder-cr/firefox-stealth patches repo was deleted, all patches now live as commits on top of mozilla-firefox/firefox).
  • The patched Firefox archive now ships the proper C++ implementation of windowUtils.jugglerSendMouseEvent, replacing the JS shim from 0.1.2.

C++ fixes landed in this release

  • C1+C2: setDownloadInterceptor IDL + cpp (re-landed for FF150).
  • C4: 5 nsIDocShell stealth attributes (fileInputInterceptionEnabled, overrideHasFocus, bypassCSPEnabled, forceActiveState, disallowBFCache).
  • C5: LauncherProcessWin.cpp + nsWindowsWMain.cpp juggler-pipe handle inheritance - without this, the Playwright pipe disconnects immediately on launch.
  • C6: juggler-navigation-started-renderer / -browser observer notifications in nsDocShell.cpp and CanonicalBrowsingContext.cpp - without these, Page.ready never fires and ctx.new_page() hangs.
  • C7 (partial): storage stub for nsIDocShell.languageOverride. Workaround InvisiblePlaywright(locale="") recommended until full BC FIELD port lands.

Verified

  • Both archives built from same source: oss-invisible/firefox_antidetect_patch commit 68906f1f9c55.
  • Windows + Linux smoke suite green: launch, ctx.new_page(), page.mouse.{move,down,up,click,wheel}, navigator.webdriver=false, sannysoft 32/33 PASS.
  • SHA256 published in checksums.txt on the firefox-3 release.

Notes

  • This is the first release with a native Linux build of the patched binary (previous firefox-3 draft mentioned shipping the Linux firefox-2 archive byte-for-byte; that no longer applies - Linux now has the full C++ patch series).

[0.1.2] - 2026-05-18

Changed

  • BINARY_VERSION bumped from firefox-1 to firefox-2. The patched Firefox archive on GitHub Releases now contains the JS fix from 0.1.1 (every page.mouse.* / page.click() / locator.click() / mouse.wheel() failure on the FF150 binary). Users on 0.1.1 must run python -m invisible_playwright clear-cache && python -m invisible_playwright fetch to pick up the new archive.

Verified

  • Archive integrity tests on both platforms: Windows zip extracted + booted via Playwright (mouse.move + click + page.click(selector) all succeed end-to-end), Linux tarball file-level checks (firefox/libxul.so sizes, byte-identity of patched JS files against Windows source). 21/21 assertions pass.
  • SHA256 published in checksums.txt on the firefox-2 release.

0.1.1 - 2026-05-18

Fixed

  • Critical: every page.mouse.*, page.click(selector), locator.click(), page.hover(), mouse.wheel() failed on the patched Firefox 150 binary with win.windowUtils.jugglerSendMouseEvent is not a function. The Juggler JS was porting calls to a Playwright-specific C++ method that was never landed in the FF146→FF150 port; replaced with the Mozilla chrome-scope win.synthesizeMouseEvent helper which is present in FF150. Six call sites patched across juggler/protocol/PageHandler.js and juggler/content/PageAgent.js. Reporter: @trob9 - #9.
  • _linkedBrowser.scrollRectIntoViewIfNeeded() is now guarded at both call sites in PageHandler.js (dispatchMouseEvent and dispatchWheelEvent) - the method is not present on the shipped FF150 <browser> element, so the unguarded call threw before the mouse event was dispatched.

Added

  • tests/test_mouse.py: 12-case regression suite covering every patched code path (mouse.move/click/dblclick/right-click, modifiers, locator.click/hover, wheel, manual mousedown+up, off-viewport move, humanize intermediate moves, scroll-and-click on offscreen element). Test cases inspired by microsoft/playwright-python/tests/async/test_click.py.
  • Community standards: CODE_OF_CONDUCT.md, CONTRIBUTING.md, SECURITY.md, .github/ISSUE_TEMPLATE/*, .github/PULL_REQUEST_TEMPLATE.md.

Notes

  • The Stealthfox humanize Bezier expansion continues to fire intermediate mousemove events; the swap to synthesizeMouseEvent does not change the human-trajectory behavior (verified by test).
  • The reCAPTCHA v3 score (0.90) and FingerprintPro / CreepJS results documented in the README are unaffected - synthesizeMouseEvent is a legitimate Mozilla helper that does not increase the anti-detect surface.
  • A binary refresh of the patched Firefox archive on GitHub Releases is required for users to receive this fix (the Juggler JS is shipped inside the archive). The BINARY_VERSION will be bumped to firefox-2 in that release.

0.1.0 - 2026-05-13

Added

  • Initial public release.
  • InvisiblePlaywright sync and async context managers - drop-in replacement for playwright.sync_api.Browser / async_api.Browser.
  • StealthFox humanize hook: Bezier-curve mouse trajectories enabled by default.
  • _fpforge Bayesian fingerprint sampler with ~400 fields per session.
  • CLI: invisible-playwright fetch | path | version | clear-cache.
  • Pinnable fingerprint fields via pin={...} (see docs/pinning.md).
  • SOCKS5 / SOCKS4 / HTTP / HTTPS proxy support with auth.
  • Linux x86_64 and Windows x86_64 binary support.

The two oldest entries point at a COMMIT, not a tag: 0.1.0 and 0.1.1 predate arriving on PyPI (the index starts at 0.3.5) and never had a tag. Creating one today is not harmless: publish.yml triggers on v*, and for a version the index does not serve, already-published does not short-circuit, so a new tag could kick off a publish attempt. The commit is the same information without that risk.