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:
- Chrome 137+ branded builds do not support the
--load-extension argument
- 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
Summary
Starting with Chrome 137, official Chrome branded builds will remove support for the
--load-extensioncommand 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:
--load-extensionargument is presentDocumentation 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:
--load-extensionargument--load-extension:Example Warning Message
References
@cypress/puppeteerplugin to warn users about Chrome 137+ branded builds #31703--load-extensionflag in Chrome #31690