From 434d07e711c437de136b4c2134019b90467141b3 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 19 Aug 2021 13:34:17 -0700 Subject: [PATCH] docs: clarify download lifetime when downloadsPath is specified (#8227) --- docs/src/api/params.md | 3 ++- types/types.d.ts | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/src/api/params.md b/docs/src/api/params.md index 41fad4a2e7..21ef65b379 100644 --- a/docs/src/api/params.md +++ b/docs/src/api/params.md @@ -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]> diff --git a/types/types.d.ts b/types/types.d.ts index 330f0cfa51..17ed68156e 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -8289,7 +8289,8 @@ export interface BrowserType { /** * 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 { /** * 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;