Skip to content

Add warning for --load-extension usage with Chrome 137+ branded builds #31702

Description

@AtofStryker

Summary

Starting with Chrome 137, official Chrome branded builds will remove support for the --load-extension command line switch. Cypress should warn users when this combination is detected to help them migrate to supported alternatives.

Implementation Details

Add a warning when the following conditions are met:

  • Chrome version 137 or higher is detected
  • It's a branded build (not Chrome For Testing/Chromium)
  • The --load-extension argument is present
  • Running in headed mode

Documentation on https://docs.cypress.io should be updated to include that extension loading does not working in chrome branded 137+

The warning should inform users that:

  1. Chrome 137+ branded builds do not support the --load-extension argument
  2. Alternative browsers that support --load-extension:
    • Chrome For Testing
    • Chromium
    • Other Chrome variants

Example Warning Message

Warning: Chrome 137+ (branded) does not support the --load-extension argument. 
To test with extensions, please use Chrome For Testing, Chromium, or another Chrome variant that supports loading unpacked extensions.

References

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions