Skip to content

Fix: close the browser process when the BiDi close command fails (#15469) - #3605

Merged
kblok merged 2 commits into
masterfrom
implement-upstream-change-15469
Oct 8, 2026
Merged

kblok merged 2 commits into
masterfrom
implement-upstream-change-15469

Conversation

@kblok

@kblok kblok commented Oct 8, 2026

Copy link
Copy Markdown
Member

When `browser.close` failed over BiDi, the error was logged and the close callback was skipped, so the browser process stayed alive after `CloseAsync` returned. With Firefox this left a stray process on every failed close. The close callback now runs even when the close command fails, so the process is always cleaned up.

🤖 Generated with Claude Code

kblok and others added 2 commits October 8, 2026 11:04
When browser.close failed over BiDi, the error was swallowed and the
close callback never ran, so the browser process was left alive after
CloseAsync returned. The close callback now runs even if the close
command fails.

Port of upstream puppeteer/puppeteer#15469.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@kblok
kblok merged commit bb53bb1 into master Oct 8, 2026
17 checks passed
@kblok
kblok deleted the implement-upstream-change-15469 branch October 8, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant