mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-17 08:11:49 +03:00
2064d27dc6
Browser registry is responsible for 3 things:
1. Remove downloaded browsers if there are no packages that refer to them
2. Install default browsers needed for the current package
3. Install browsers on-demand when used through Playwright CLI
Currently, registry relies on a single "download" field in `browsers.json`
to carry both (1) and (2). However, browsers in (3) are marked as
`download: false` so that they aren't installed automatically in (2), so
auto-remove procedure in (1) removes them on subsequent installation.
One possible approach to fix this would be modifying package's `browsers.json` to
change `download: false` to `true` when browsers are installed with
Playwright CLI. This approach was explored here:
|
||
---|---|---|
.. | ||
cli | ||
client | ||
common | ||
dispatchers | ||
install | ||
protocol | ||
remote | ||
server | ||
third_party/highlightjs | ||
utils | ||
web | ||
.eslintrc.js | ||
browserServerImpl.ts | ||
inprocess.ts | ||
nativeDeps.ts | ||
outofprocess.ts | ||
service.ts |