Websocket Connection Closed: When BrowserCriClient
destroys an extra target while that target is being initialized, the App crashes
#30100
Labels
Current behavior
If
BrowserCriClient
's_onTargetDestroyed
event handler is triggered while the_onAttachToTarget
event handler is pending theFetch.enable
CRI command, the app can crash with an uncaught exception,Error: WebSocket connection closed
.This is a separate manifestation of the
WebSocket connection closed
issue that was resolved in theCriClient
class inv13.13.1
.Desired behavior
No response
Test code to reproduce
None currently, but should be reproducible with a unit test in
packages/server/test/unit/browsers/browser-cri-client_spec.ts
Cypress Version
13.13.1
Node version
18.17.1
Operating System
OSX 14.3
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: