Skip to content
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

fix: chromium runner async setup should wait for the WebSocketServer to be listening #1796

Merged
merged 1 commit into from
Dec 19, 2019

Conversation

rpl
Copy link
Member

@rpl rpl commented Dec 19, 2019

Fixes #1779

The underlying issue is (unsurprisingly) a race, between the WebSocketServer starting up and the chromium extension runner setup moving on to generate the extension used to control the chromium instance (which needs to retrieve the WebSocketServer address and port to interpolate them into the extension sources).

If the WebsocketServer is not yet listening, calling wss.address() would return undefined, and the rest of the chromium runner setup fails.

@rpl rpl added the type: bug label Dec 19, 2019
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling aafa989 on rpl:fix/chromium-runner-wss-server-race into 573693f on mozilla:master.

@rpl rpl merged commit fab4738 into mozilla:master Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot consistently start chromium on macOS
3 participants