Skip to content

Conversation

@dgozman
Copy link
Contributor

@dgozman dgozman commented Oct 2, 2020

To achieve this, we close all the pages one by one, then wait for the videos to finish processing, and then close the browser.

Drive-by: fixes a bug where we did not delete downloads from persistent context.

References #3996.

To achieve this, we close all the pages one by one, then wait
for the videos to finish processing, and then close the browser.
@dgozman dgozman merged commit d31cbc2 into microsoft:master Oct 5, 2020
dgozman added a commit to dgozman/playwright that referenced this pull request 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 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 added a commit that referenced this pull request 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.
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