Skip to content

breaking: remove CDP from firefox with Cypress 15 #31200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 3, 2025

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Feb 28, 2025

Additional details

CDP will be removed with Firefox 141 see blogpost. Following Cypress last 3 major versions supported and relasing Cypress 15, it makes sense to remove CDP support within Firefox.

Since this could be a disruptive change to users using older versions of Firefox, we feel this is best to put this into a major version change, though it isn't technically a breaking change to the Cypress API

Steps to test

How has the user experience changed?

PR Tasks

@AtofStryker AtofStryker force-pushed the breaking/remove_cdp_firefox branch from b9fbe9b to dff3dbf Compare February 28, 2025 20:51
@AtofStryker AtofStryker changed the title DRAFT TO CLOSE breaking: remove CDP from firefox with Cypress 15 [run ci] DRAFT TO CLOSE breaking: remove CDP from firefox with Cypress 15 Feb 28, 2025
Copy link

cypress bot commented Feb 28, 2025

cypress    Run #61393

Run Properties:  status check passed Passed #61393  •  git commit e3bac5fc0a: chore: code review updates
Project cypress
Branch Review breaking/remove_cdp_firefox
Run status status check passed Passed #61393
Run duration 11m 11s
Commit git commit e3bac5fc0a: chore: code review updates
Committer AtofStryker
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 672
View all changes introduced in this branch ↗︎
UI Coverage  37.81%
  Untested elements 125  
  Tested elements 76  
Accessibility  92.17%
  Failed rules  3 critical   7 serious   1 moderate   1 minor
  Failed elements 516  

@AtofStryker AtofStryker changed the base branch from develop to release/15.0.0 March 6, 2025 17:16
@AtofStryker AtofStryker force-pushed the breaking/remove_cdp_firefox branch from dff3dbf to 07c5a8e Compare March 6, 2025 18:46
@AtofStryker AtofStryker changed the title DRAFT TO CLOSE breaking: remove CDP from firefox with Cypress 15 breaking: remove CDP from firefox with Cypress 15 Mar 6, 2025
@AtofStryker AtofStryker force-pushed the breaking/remove_cdp_firefox branch from 07c5a8e to 52676da Compare March 7, 2025 16:18
@AtofStryker AtofStryker self-assigned this Mar 13, 2025
@AtofStryker AtofStryker force-pushed the breaking/remove_cdp_firefox branch from 52676da to 70e438d Compare March 13, 2025 21:55
@mschile mschile requested a review from Copilot April 1, 2025 17:34
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes all support for the Chrome DevTools Protocol (CDP) from Firefox in favor of WebDriver BiDi as part of Cypress 15. The major changes include the removal of CDP-specific tests and code paths, updates to Firefox version validations, and cleanup of associated configuration and error messages.

Reviewed Changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
system-tests/test/cdp_deprecated_firefox_spec.ts Removed tests specifically for deprecation warnings related to CDP in Firefox.
packages/server/lib/* Eliminated CDP-related functionality and error handling in favor of BiDi.
packages/launcher/* Updated Firefox version requirements and validators to require version ≥135.
packages/extension/* Removed CDP escape hatch logic and associated header listeners.
cli/CHANGELOG.md Updated changelog with breaking changes; now references removal of CDP support.
.circleci/workflows.yml Removed jobs and configuration options related to running Firefox with CDP.
Files not reviewed (1)
  • packages/graphql/schemas/schema.graphql: Language not supported
Comments suppressed due to low confidence (1)

cli/CHANGELOG.md:8

  • Consider updating or removing the placeholder 'Addresses ' link to provide clear reference information for users regarding this breaking change.
**Breaking Changes:** - Removed support for [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol) with the [firefox](https://www.mozilla.org/) browser. Addresses []().

// To enable BiDi (without CDP), we need to set
// remote.active-protocol=1
// In order to enable CDP (without BiDi), we need to set
// In order to enable CDP (without BiDi on firefox older than version 135), we need to set
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this comment just be updated to remove active-protocol 2 and 3 since we don't support them anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to keep some type of historical reference as to how to turn on CDP if needed. I think this comment needs some word smithing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried to wordsmith this better in 425bbaa

cli/CHANGELOG.md Outdated

**Breaking Changes:**

- Removed support for [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol) with the [firefox](https://www.mozilla.org/) browser. Addresses []().
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a link to which issue addresses.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added in 425bbaa

Copy link
Contributor

@mschile mschile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall! Added a couple comments.

@AtofStryker AtofStryker force-pushed the breaking/remove_cdp_firefox branch from ee30eb9 to 425bbaa Compare April 1, 2025 19:25
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
@AtofStryker AtofStryker force-pushed the breaking/remove_cdp_firefox branch from 425bbaa to c7f8493 Compare April 3, 2025 14:50
@AtofStryker AtofStryker force-pushed the breaking/remove_cdp_firefox branch from c7f8493 to e3bac5f Compare April 3, 2025 15:32
@AtofStryker AtofStryker merged commit 25f0fd0 into release/15.0.0 Apr 3, 2025
85 of 87 checks passed
@AtofStryker AtofStryker deleted the breaking/remove_cdp_firefox branch April 3, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants