Skip to content

Commit

Permalink
fix: deprecate CDP for Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Apr 29, 2024
1 parent fb0d725 commit b1272bd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/puppeteer-core/src/node/ProductLauncher.ts
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 b1272bd

Please sign in to comment.