Skip to content

Commit

Permalink
fix: deprecate CDP for Firefox (#12349)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed May 2, 2024
1 parent 533f83a commit dffad28
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/puppeteer-core/src/node/ProductLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@ export abstract class ProductLauncher {
});
};

if (
this.#product === 'firefox' &&
protocol !== 'webDriverBiDi' &&
this.puppeteer.configuration.logLevel === 'warn'
) {
console.warn(
`Chrome DevTools Protocol (CDP) support for Firefox is deprecated in Puppeteer ` +
`and it will be eventually removed. ` +
`Use WebDriver BiDi instead (see https://pptr.dev/webdriver-bidi#get-started).`
);
}

const browserProcess = launch({
executablePath: launchArgs.executablePath,
args: launchArgs.args,
Expand Down

0 comments on commit dffad28

Please sign in to comment.