From b020e7799130c8a2a8c62c1afd13c414e719cae2 Mon Sep 17 00:00:00 2001 From: Thiago Perrotta Date: Thu, 12 Oct 2023 19:48:42 -0400 Subject: [PATCH] chore: expose enabled chrome features as an array (#11141) --- packages/puppeteer-core/src/node/ChromeLauncher.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/puppeteer-core/src/node/ChromeLauncher.ts b/packages/puppeteer-core/src/node/ChromeLauncher.ts index e1c5d938..af8b59ab 100644 --- a/packages/puppeteer-core/src/node/ChromeLauncher.ts +++ b/packages/puppeteer-core/src/node/ChromeLauncher.ts @@ -176,6 +176,8 @@ export class ChromeLauncher extends ProductLauncher { 'ProcessPerSiteUpToMainFrameThreshold', ]; + const enabledFeatures = ['NetworkServiceInProcess2']; + const chromeArguments = [ '--allow-pre-commit-input', '--disable-background-networking', @@ -200,7 +202,7 @@ export class ChromeLauncher extends ProductLauncher { // TODO(sadym): remove '--enable-blink-features=IdleDetection' once // IdleDetection is turned on by default. '--enable-blink-features=IdleDetection', - '--enable-features=NetworkServiceInProcess2', + `--enable-features=${enabledFeatures.join(',')}`, '--export-tagged-pdf', '--force-color-profile=srgb', '--metrics-recording-only',