Skip to content

Conversation

@dgozman
Copy link
Contributor

@dgozman dgozman commented Nov 1, 2022

Previously, we closed pages one by one before closing the browser when shutting down the persistent context. This logic was introduced in #4040 to properly finish video recordings in persistent context.

Such a process makes it unnecessary brittle to close the persistent context. For example, Chromium headless is sometimes unable to close the last persistent page for unknown reasons.

Instead, we can just stop video recordings manually and close the browser right away.

Fixes #18229.

Previously, we closed pages one by one before closing the browser
when shutting down the persistent context. This logic was introduced
in microsoft#4040 to properly
finish video recordings in persistent context.

Such a process makes it unnecessary brittle to close the persistent
context. For example, Chromium headless is sometimes
unable to close the last persistent page for unknown reasons.

Instead, we can just stop video recordings manually and close
the browser right away.
@dgozman dgozman merged commit c568770 into microsoft:main Nov 1, 2022
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.

[internal] chromium headed on macOS ends up in worker teardown timeout error

2 participants