Open Bug 1927721 Opened 21 days ago Updated 15 days ago

Force a shutdown of Firefox if the Websocket port cannot be aquired after 5s

Categories

(Remote Protocol :: Agent, defect, P2)

defect
Points:
2

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

Details

(Whiteboard: [webdriver:m14])

In Marionette, we use a PollPromise to retry the creation of the ServerSocket for 5 seconds to avoid immediate failure if another Firefox process is shutting down and still has the same socket in use. If we can't acquire the requested port, we force a shutdown of Firefox to prevent lingering processes.

Interestingly, we don't apply the same logic for the Remote Agent and its WebSocket port. We should probably introduce similar behavior to prevent Firefox instances from lingering if they can’t be controlled or shut down properly by the client.

This may be the cause of the issue seen with Puppeteer: https://github.com/puppeteer/puppeteer/pull/13245.

Severity: -- → S3
Points: --- → 2
Priority: -- → P2
Whiteboard: [webdriver:m14]
You need to log in before you can comment on or make changes to this bug.