mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

Previously, we closed pages one by one before closing the browser when shutting down the persistent context. This logic was introduced in https://github.com/microsoft/playwright/pull/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.