fix: remove NetworkServiceInProcess2 set by default (#12261)

Puppeteer has relied on this flag for a [long time](https://github.com/puppeteer/puppeteer/pull/3738) but it looks like it is not required anymore and it might lead to crashes in the latest versions of Chrome for desktop. This CL removes the flag.

Issue #12257
This commit is contained in:
Alex Rudenko 2024-04-12 11:00:42 +02:00 committed by Alex Rudenko
parent 576b417216
commit ff4f70f4ae
3 changed files with 1 additions and 3 deletions

View File

@ -77,7 +77,6 @@ describe('Chrome', () => {
'--disable-renderer-backgrounding',
'--disable-sync',
'--enable-automation',
'--enable-features=NetworkServiceInProcess2',
'--export-tagged-pdf',
'--force-color-profile=srgb',
'--headless=new',

View File

@ -77,7 +77,6 @@ describe('Chromium', () => {
'--disable-renderer-backgrounding',
'--disable-sync',
'--enable-automation',
'--enable-features=NetworkServiceInProcess2',
'--export-tagged-pdf',
'--force-color-profile=srgb',
'--headless=new',

View File

@ -192,7 +192,7 @@ export class ChromeLauncher extends ProductLauncher {
// Merge default enabled features with user-provided ones, if any.
const enabledFeatures = [
'NetworkServiceInProcess2',
// Add features to enable by default here.
...userEnabledFeatures,
].filter(feature => {
return feature !== '';