Skip to content

feat(extension): speak CDP between the client and the extension - #44270

Open
Pavel Feldman (pavelfeldman) wants to merge 1 commit into
microsoft:mainfrom
pavelfeldman:extension-cdp
Open

Pavel Feldman (pavelfeldman) wants to merge 1 commit into
microsoft:mainfrom
pavelfeldman:extension-cdp

Conversation

@pavelfeldman

Copy link
Copy Markdown
Member

Summary

  • Protocol version 3: after the user approves the connection, the WebSocket between the client and the extension is a CDP transport. Each tab of the client is a page target.
  • The extension has one CDP session that owns the tab isolation. A thin layer translates the chrome.* protocol of version 2 clients into CDP, so released clients continue to work.
  • The client side is a plain ConnectionTransport; the relay, the browser model and the protocol types are removed.

Protocol version 3: the WebSocket of the extension is a CDP transport.
The extension changes CDP into chrome.debugger and chrome.tabs calls,
and the client side is a transport that does not read the messages.

The extension still supports the clients of protocol version 2: a layer
changes their chrome.* protocol into CDP for the same session.
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

23673 passed, 708 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5250 passed, 644 skipped


Merge workflow run.

This branch has not been deployed

No deployments
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.

1 participant