mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: deprecate CDP for Firefox (#12349)
This commit is contained in:
parent
533f83af5a
commit
dffad28a42
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user