Skip to content

Bug 2100702 - [firefox-mcp] Wait up to 30 seconds for the BiDi WebSocket to open - #264

Closed
juliandescottes wants to merge 1 commit into
mozilla:mainfrom
juliandescottes:bug-2100702-websocket-open-timeout
Closed

juliandescottes wants to merge 1 commit into
mozilla:mainfrom
juliandescottes:bug-2100702-websocket-open-timeout

Conversation

@juliandescottes

@juliandescottes juliandescottes commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Bug 2100702

The first BiDi command after connecting opens the WebSocket. waitForWebSocketOpen gave up after 5 seconds. On Windows CI, after a slow Firefox startup, opening the WebSocket sometimes took longer, and the connection failed with Timeout waiting for WebSocket to open.

Timings from the diagnostic run on PR 263 (88 connections on Windows): median 187 ms, 90% under 1.4 s, maximum over 5 s.

This PR raises the limit to 30 seconds.

No test: a real Firefox cannot be made to open the WebSocket slowly on demand.

…ket to open

The first BiDi command opens the WebSocket. On Windows CI, opening it
after a slow Firefox startup sometimes took more than the 5 second
limit, and the connection failed with "Timeout waiting for WebSocket to
open". Measured on Windows CI: median 187 ms, 90% under 1.4 s, maximum
over 5 s.

No test: a real Firefox cannot be made to open the WebSocket slowly on
demand.
@juliandescottes

Copy link
Copy Markdown
Collaborator Author

Superseded by #265, which includes this commit and the test timeout changes.

@juliandescottes
juliandescottes deleted the bug-2100702-websocket-open-timeout branch December 3, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-integration Trigger integration tests for a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant