Skip to content

chore: ignore SIGINT inside driver process#23028

Merged
mxschmitt merged 1 commit into
microsoft:mainfrom
mxschmitt:driver-ignore-sigint
May 16, 2023
Merged

chore: ignore SIGINT inside driver process#23028
mxschmitt merged 1 commit into
microsoft:mainfrom
mxschmitt:driver-ignore-sigint

Conversation

@mxschmitt
Copy link
Copy Markdown
Contributor

@mxschmitt mxschmitt commented May 15, 2023

microsoft/playwright-python#1843

Almost reverts #11826 since this is not used by VSCode anymore and was legacy.

Copy link
Copy Markdown
Member

@yury-s yury-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add a test for this?

Comment thread packages/playwright-core/src/protocol/transport.ts Outdated
@mxschmitt mxschmitt force-pushed the driver-ignore-sigint branch from ac2bc2b to aece2d8 Compare May 16, 2023 22:56
@mxschmitt mxschmitt force-pushed the driver-ignore-sigint branch from aece2d8 to 9e2721d Compare May 16, 2023 22:58
@mxschmitt mxschmitt merged commit 3cd21cb into microsoft:main May 16, 2023
mxschmitt added a commit that referenced this pull request May 18, 2023
Issue is that [when `stop()` is
called](https://github.com/microsoft/playwright/blob/28504f6dc7ffbd920244365c6f890410f1a5d9a1/tests/library/browsertype-launch-selenium.spec.ts#L202),
`onExit()` gets called and then it throws an unhandled rejection.

This regressed in #23028.

I didn't find a reason to keep onExit, so removed it for now since
transport should handle these scenarios.

Fixes #23110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants