Skip to content

[πŸš€ Feature]: Do not enable CDP for FirefoxΒ #14885

@thc202

Description

@thc202

Feature and motivation

Selenium now (4.27+) warns when Firefox CDP is enabled:

if (reportedUri.isPresent()) {
LOG.warning(
"CDP support for Firefox is deprecated and will be removed in future versions. "
+ "Please switch to WebDriver BiDi.");
}

but at the same time it is enabling it:

// Firefox 129 onwards the CDP protocol will not be enabled by default. Setting this preference
// will enable it.
// https://fxdx.dev/deprecating-cdp-support-in-firefox-embracing-the-future-with-webdriver-bidi/.
addPreference("remote.active-protocols", 3);

requiring the user to set the Firefox preference to just enable BiDi and suppress the deprecation warning.

Since CDP is deprecated I think Selenium should stop enabling that protocol and remove the preference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-enhancementSomething could be better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions