Commit 776bda4
committed
fix(mcp): support moz-firefox BiDi channels via --browser
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.1 parent 5dd0a9b commit 776bda4
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
267 | 271 | | |
268 | 272 | | |
269 | 273 | | |
| |||
465 | 469 | | |
466 | 470 | | |
467 | 471 | | |
468 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
469 | 475 | | |
470 | 476 | | |
471 | 477 | | |
| |||
0 commit comments