fix(mcp): recover from page renderer crash#40617
Conversation
When the renderer crashes, mark the Tab as crashed via the page 'crash' event. On the next ensureTab() call, close the dead page, open a fresh about:blank, and log a synthetic console error. Non-current crashed tabs are surfaced with a [crashed] marker in the tab list. Fixes: microsoft/playwright-mcp#1599
chrome://crash never dispatches the crash event there, matching the existing skip in tests/library/page-event-crash.spec.ts.
Test results for "MCP"22 failed 6888 passed, 1046 skipped Merge workflow run. |
Summary
'crash'event.ensureTab()detects a crashed current tab, closes it, opens a freshabout:blank, and logs a synthetic console error so the LLM can see what happened.[crashed]marker inbrowser_tabs list.Fixes microsoft/playwright-mcp#1599