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

We try to avoid closing firefox too early, fearing that this might terminate clean shutdown sequence. Usually we assume that `Browser.enable` is called before `Browser.close` - however, this is not the case in certain tests. So we have to ensure browser initialization in `Browser.close` as well. In my local tests, this fixes the Firefox Pipe problem: it looks like we were closing browser too quickly.