Skip to content

Commit dffad28

Browse files
authoredMay 2, 2024··
fix: deprecate CDP for Firefox (#12349)
1 parent 533f83a commit dffad28

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎packages/puppeteer-core/src/node/ProductLauncher.ts

+12
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,18 @@ export abstract class ProductLauncher {
112112
});
113113
};
114114

115+
if (
116+
this.#product === 'firefox' &&
117+
protocol !== 'webDriverBiDi' &&
118+
this.puppeteer.configuration.logLevel === 'warn'
119+
) {
120+
console.warn(
121+
`Chrome DevTools Protocol (CDP) support for Firefox is deprecated in Puppeteer ` +
122+
`and it will be eventually removed. ` +
123+
`Use WebDriver BiDi instead (see https://pptr.dev/webdriver-bidi#get-started).`
124+
);
125+
}
126+
115127
const browserProcess = launch({
116128
executablePath: launchArgs.executablePath,
117129
args: launchArgs.args,

0 commit comments

Comments
 (0)
Please sign in to comment.