headed chrome can't be quit from macOS dock and also blocks user from creating new chrome windows

オープン
#44,180 コメント 5 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@pavelfeldman がすでに取り組んでいます。

2026年11月18日 から。

  • #44191 @microsoft-playwright-automation による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
playwright, typescript
領域
backend, desktop

調査の方向性

Start by tracing how headed sessions track page closure and how the daemon decides whether to close the browser; the issue does not name the relevant files or tests. Reproduce by quitting the last headed Chrome window from the macOS Dock and checking whether the daemon still reports the session open. Done means that this action ends the session without treating tab-close or page-initiated window.close() as session termination. An open pull request already addresses the issue.

索引モデルが issue の本文から書いたものです。

説明

agent-triage milestone

playwright-cli open --headed on macOS.
right-click → quit on the dock icon closes the window, but the main Google Chrome process (launched with --remote-debugging-pipe --no-startup-window) stays alive, and the daemon still reports the session open (tab-list shows about:blank). Since headed sessions have no idle timeout, the windowless process stays indefinitely. Because it's the same app bundle as the user's Chrome, it also stops the user's regular Chrome from opening tabs until it's killed in Activity Monitor.

Happy to open a PR with a fix where, in headed mode, if the last page is closed by something other than a CLI command (e.g. the user quitting Chrome from the dock or closing its last window), the daemon treats it as the user ending the session and closes the browser. Pages closed by tab-close or by window.close() from a page would not trigger it.

主要言語
TypeScript
スター
100k
フォーク
6.9k
平均マージ
16時間 8分
マージ済み PR(30日)
281

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/playwright のほかの issue

microsoft/playwright の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。