headed chrome can't be quit from macOS dock and also blocks user from creating new chrome windows
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- playwright, typescript
调研方向
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 内容生成。
描述
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 分钟
- 30 天内合并 PR
- 281
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/playwright 的其他 Issue
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)未关闭
难度 2/5 1-3 小时 新手友好度 62/100
microsoft/playwright#44289 ·
维护者通常 1 天内回复
-
agent-triage-done
难度 2/5 1-3 小时 新手友好度 72/100
microsoft/playwright#44264 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 12/100
microsoft/playwright#44290 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 22/100
microsoft/playwright#44288 ·
维护者通常 1 天内回复
-
[Bug]: page.goto never returns for a load started as a newer service worker takes over (Chromium)未关闭
难度 5/5 一周以上 新手友好度 12/100
microsoft/playwright#44287 ·
维护者通常 1 天内回复
查看 microsoft/playwright 的全部 Issue
相似的 Issue
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
难度 2/5 1-3 小时 新手友好度 76/100
openclaw/openclaw#203385 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
nwverse/persona#12800 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
good first issue
难度 2/5 半天 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
WISE-Community/WISE-Client#2404 ·
维护者通常 1 天内回复