-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Conversation
b9fbe9b
to
dff3dbf
Compare
cypress
|
Project |
cypress
|
Branch Review |
breaking/remove_cdp_firefox
|
Run status |
|
Run duration | 11m 11s |
Commit |
|
Committer | AtofStryker |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
1
|
|
0
|
|
0
|
|
672
|
View all changes introduced in this branch ↗︎ |
UI Coverage
37.81%
|
|
---|---|
|
125
|
|
76
|
Accessibility
92.17%
|
|
---|---|
|
3 critical
7 serious
1 moderate
1 minor
|
|
516
|
dff3dbf
to
07c5a8e
Compare
07c5a8e
to
52676da
Compare
52676da
to
70e438d
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 [](). |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in 425bbaa
There was a problem hiding this 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.
ee30eb9
to
425bbaa
Compare
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
425bbaa
to
c7f8493
Compare
c7f8493
to
e3bac5f
Compare
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
cypress-documentation
? chore: remove CDP deprecation notice cypress-documentation#6116type definitions
?