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

Motivation: On Windows we call around 50 times `PrintDeps.exe` which takes on a very fast machine 500+ms. On Linux we do it around 120 times (`ldd`) which takes around 150ms. This change validates the dependencies once on browser install (`npx playwright install`). In case its failing, it will emit a warning, in case of a success, it will create a marker file that the binary has been validated. For future `launch()` calls, we'll read this file and if exists, we'll not validate again. Otherwise we'll validate again. Note: If the marker file is older than 30 days, the browser will be validated again.