Skip to content

fix: preserve loopback ws cdp tab ops#1314

Merged
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/9914b48c-loopback-ws-cdp
Mar 14, 2026
Merged

fix: preserve loopback ws cdp tab ops#1314
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/9914b48c-loopback-ws-cdp

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Cherry-pick of upstream 9914b48c57.

Author: steipete (thanks shrey150)
Tier: AUTO-PICK

Ensures loopback WebSocket CDP URLs are properly normalized to HTTP for JSON API endpoints (/json/list, /json/activate, /json/close, /json/new). Extracts normalizeCdpHttpBaseForJsonEndpoints from local pw-session.ts to shared cdp.helpers.ts export.

Conflict resolution:

  • CHANGELOG.md, server-context.selection.ts, server-context.tab-ops.ts: deleted in fork (selection/tab-ops were consolidated in PR Cherry-pick 75602014d: feat(browser): support direct WebSocket CDP URLs for Browserbase #1310; their normalizeCdpHttpBase usage was already present via pw-session.ts local function).
  • pw-session.ts: import conflict — fork had removed withNoProxyForCdpUrl; resolved by importing normalizeCdpHttpBaseForJsonEndpoints from cdp.helpers.ts and removing the local copy.
  • server-context.loopback-direct-ws.test.ts: removed — depends on server-context.remote-tab-ops.harness.ts which doesn't exist in fork.

Part of #908.

@alexey-pelykh alexey-pelykh merged commit efb77b8 into main Mar 14, 2026
7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/9914b48c-loopback-ws-cdp branch March 14, 2026 14:21
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.

2 participants