Skip to content

invisible-playwright 0.4.3

Choose a tag to compare

@feder-cr feder-cr released this 27 Jul 12:16
· 1499 commits to main since this release

Fixes a leak that reached half the users while the changelog said it was closed.

The lifetime guard added in 0.4.0 was wired into the sync entry point only. If you drive this package with async with on Windows, a killed runner left the whole browser tree behind, through 0.4.0, 0.4.1 and 0.4.2. Upgrading is the fix.

While measuring that, a second one turned up. The guard 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. It only showed up under a real kill: counting the browsers still carrying the session's token gave sync 0/0/0/0 and async 2/0/0/2 - the same code on both, differing only in timing, which is what let an intermittent race pass for a working feature. Ten sessions after the fix, zero survivors on either path.

INVPW_TRUE_HEADLESS now applies on both entry points. It was read in the async class alone, so a documented variable worked or did not depending on which one you used.

Under the hood the two entry points now share their session logic - prefs, the launch environment, the timezone table - instead of restating it. That restatement is how a fix reaches one of them and a release note describes both.

Requires invisible-core 18.3.0.