Skip to content

[Bug] Extension mode: navigating to linkedin.com/messaging always drops the relay connection and orphans the tab (crash on 0.0.77, silent disconnect on 0.0.78) #41917

Description

Environment

  • @playwright/mcp: reproduced on 0.0.77 and 0.0.78 (extension mode)
  • Playwright MCP Bridge extension: 0.2.1
  • macOS 26.5.2 (arm64), Chrome stable, Node v24.15.0
  • Transport: stdio ClientSession (also reproduced over streamable HTTP)

Summary

In --extension mode, browser_navigate to https://www.linkedin.com/messaging/ (logged-in session) drops the extension relay connection every single time. The page itself loads fine in the tab, but the tab falls out of the Playwright tab group, the relay WebSocket closes, and the next tool call fails. Navigation to other LinkedIn routes (/feed/, /jobs/, /notifications/) works and stays attached.

On 0.0.77 the failure mode is worse: the navigate call itself crashes with

TypeError: Cannot read properties of undefined (reading 'url')

and the session stays wedged (every subsequent browser_navigate returns the same TypeError until a full server restart). On 0.0.78 the crash is gone (matches the v0.0.78 release note "browser_navigate no longer crashes the response when navigation closes the last tab") and the session self-recovers on the next call with a fresh Welcome/connect.html attach — but the underlying disconnect + orphaned tab still happens on every attempt.

Deterministic reproduction (10/10 in our testing)

  1. Start @playwright/mcp --extension with the Bridge extension token; the Welcome (connect.html) tab appears.
  2. browser_navigatehttps://www.linkedin.com/feed/ (logged-in LinkedIn) — works, ~7s, tab stays in group.
  3. browser_navigatehttps://www.linkedin.com/messaging/ — returns in ~2.6s:
    • 0.0.77: TypeError: Cannot read properties of undefined (reading 'url')
    • 0.0.78: reports success, but the next call fails with Target page, context or browser has been closed; a subsequent call re-attaches with a NEW Welcome tab. The messaging tab is left orphaned outside the group.

Variations tested: messaging directly from the Welcome tab — same result; via /notifications/ first — same result; waiting 75s on the feed before navigating — same result. /feed//jobs/ and all other route pairs we tried never disconnect.

DEBUG=pw:mcp* excerpt at the failure moment (0.0.78)

pw:mcp:relay → Playwright: Network.loadingFailed
pw:mcp:relay → Playwright: Log.entryAdded
pw:mcp:test delete http session
pw:mcp:test close browser
pw:mcp:relay closing extension connection: Playwright client disconnected
pw:mcp:relay Playwright WebSocket closed
pw:mcp:server:response callResult { ... '### Open tabs\nNo open tabs. Navigate to a URL to create one.' }
pw:mcp:relay Extension WebSocket closed: undefined

Impact

LinkedIn messaging is effectively unreachable via browser_navigate in extension mode; each attempt costs an orphaned tab. In long-running agent setups the 0.0.77 crash additionally wedged the whole session (we've since pinned 0.0.78).

Happy to run further diagnostics — the repro is fully deterministic on our side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions