docs: clarify download lifetime when downloadsPath is specified (#8227)

This commit is contained in:
Yury Semikhatsky 2021-08-19 13:34:17 -07:00 committed by GitHub
parent 851fe8d0bd
commit 434d07e711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -667,7 +667,8 @@ Enable Chromium sandboxing. Defaults to `false`.
- `downloadsPath` <[path]>
If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is
deleted when browser is closed.
deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in
is closed.
## browser-option-executablepath
- `executablePath` <[path]>

9
types/types.d.ts vendored
View File

@ -8289,7 +8289,8 @@ export interface BrowserType<Unused = {}> {
/**
* If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is
* deleted when browser is closed.
* deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in
* is closed.
*/
downloadsPath?: string;
@ -8626,7 +8627,8 @@ export interface BrowserType<Unused = {}> {
/**
* If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is
* deleted when browser is closed.
* deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in
* is closed.
*/
downloadsPath?: string;
@ -12665,7 +12667,8 @@ export interface LaunchOptions {
/**
* If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is
* deleted when browser is closed.
* deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in
* is closed.
*/
downloadsPath?: string;