Skip to content

fix(mcp): support moz-firefox BiDi channels via --browser#41126

Open
jrmuizel wants to merge 1 commit into
microsoft:mainfrom
jrmuizel:feat/mcp-moz-firefox-channels
Open

fix(mcp): support moz-firefox BiDi channels via --browser#41126
jrmuizel wants to merge 1 commit into
microsoft:mainfrom
jrmuizel:feat/mcp-moz-firefox-channels

Conversation

@jrmuizel
Copy link
Copy Markdown

@jrmuizel jrmuizel commented Jun 3, 2026

playwright-core already registers the moz-firefox, moz-firefox-beta and moz-firefox-nightly channels and routes them through WebDriver BiDi (Firefox.launch branches on channel.startsWith('moz-')), but the MCP layer never plumbed them through:

  • resolveBrowserParam() did not recognize the moz-firefox* values, so --browser moz-firefox resolved to no channel.
  • mergeConfig() dropped the channel for any non-chromium browser, which also discarded a valid Firefox BiDi channel coming from a config file.

Recognize the moz-firefox* channels in resolveBrowserParam(), and keep moz-* channels in mergeConfig() instead of stripping them.

Comment thread packages/playwright-core/src/tools/mcp/program.ts Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2026

Test results for "MCP"

7230 passed, 1103 skipped


Merge workflow run.

playwright-core already registers the `moz-firefox`, `moz-firefox-beta`
and `moz-firefox-nightly` channels and routes them through WebDriver BiDi
(Firefox.launch branches on `channel.startsWith('moz-')`), but the MCP
layer never plumbed them through:

- resolveBrowserParam() did not recognize the moz-firefox* values, so
  `--browser moz-firefox` resolved to no channel.
- mergeConfig() dropped the channel for any non-chromium browser, which
  also discarded a valid Firefox BiDi channel coming from a config file.

Recognize the moz-firefox* channels in resolveBrowserParam(), and keep
moz-* channels in mergeConfig() instead of stripping them.
@jrmuizel jrmuizel force-pushed the feat/mcp-moz-firefox-channels branch from d1b86db to 776bda4 Compare June 4, 2026 00:41
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