[Feature]: Update chromium-bidi

オープン
#44,036 コメント 7 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@pavelfeldman がすでに取り組んでいます。

2026年11月20日 から。

  • #44278 @OrKoN による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript
領域
backend, testing

調査の方向性

Start by reading bidiOverCdp.ts and tests_bidi.yml, then check the supported chromium-bidi releases and their Node.js compatibility. Update the devDependency and adjust the paths and LoggerFn usage described in the issue. Run the BiDi Chromium tests; done means browser.newContext() and browser.newPage() work and the previously failing tests pass.

索引モデルが issue の本文から書いたものです。

説明

milestone
🚀 Feature Request

Update the chromium-bidi devDependency from 12.1.0 to a recent release.

Since 157.0.8080-0, chromium-bidi is built from the Chromium source tree, and its version matches the Chrome version. For example, 158.0.8127-x releases match the bundled Chromium 158.0.8127.18.

Things to know for the update:

  • The package is now ESM only, and its files moved from lib/cjs/... to out/Default/gen/src/..., so the paths in bidiOverCdp.ts must change. require() still works on the Node.js versions that the package supports (20.19+ and 22.12+).
  • The LoggerFn type changed to (type) => ((...messages) => void) | undefined.
  • 159.x releases use DisposableStack, which Node.js 20 and 22 do not have. tests_bidi.yml uses Node.js 20. 158.0.8127-x releases do not use DisposableStack.
Example

No response

Motivation

#43668 (merged on 2026-10-28) changed BidiBrowserContext.initialize() to always send emulation.setMediaFeaturesOverride. [email protected] does not implement this command, so browser.newContext() and browser.newPage() fail on bidi-chromium:

Error: browser.newPage: Protocol error (emulation.setMediaFeaturesOverride): unknown command
Message: Unknown command 'emulation.setMediaFeaturesOverride'.

Since the 2026-10-29 run, about 4,000 bidi-chromium tests fail with this error in the daily tests BiDi workflow. For example, the 2026-11-10 run has 4,007 failed and 883 passed tests: https://github.com/microsoft/playwright/actions/runs/42728590598. This is why the Chrome results dropped on https://firefox-dev.tools/playwright-bidi-dashboard/. The checks on #43668 did not show the problem, because tests_bidi.yml does not run bidi-chromium on pull requests.

Recent chromium-bidi releases implement emulation.setMediaFeaturesOverride. Also, Playwright adds new BiDi commands over time, as #43668 did. With an old chromium-bidi, bidi-chromium fails on these commands even when Chromium supports them, so the dashboard shows less Chromium BiDi support than Chromium really has.

主要言語
TypeScript
スター
100k
フォーク
6.9k
平均マージ
16時間 8分
マージ済み PR(30日)
281

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/playwright のほかの issue

microsoft/playwright の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。