Killed Playwright scripts on Linux can leave Chromium processes and profile directories behind
A Playwright script can end through an exception, process.exit(), SIGTERM, or SIGKILL, and each path may leave different traces on a Linux host. The author tested these cases on Linux 6.8 with Node v24.22.2 and Playwright 1.63.0 using the bundled headless shell. A harness measured which child and browser processes survived three seconds after termination and whether profile directories remained on disk. The results cover only that single machine and browser build, not containers, systemd, macOS, or Windows. The tests also included a mode where Chromium was started separately and Playwright only attached to it, a setup common in browser pools.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in