Reverts https://github.com/microsoft/playwright/pull/20509 and https://github.com/microsoft/playwright/pull/20596 Fixes #22215