Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore(chromium): remove switches and features that no longer exist in Chromium (#43458)
Dmitry Gozmanb335271cdc2b
diff --git a/packages/playwright-core/src/server/chromium/chromiumSwitches.ts b/packages/playwright-core/src/server/chromium/chromiumSwitches.tsindex fd5568c3b6..b3973be72d 100644--- a/packages/playwright-core/src/server/chromium/chromiumSwitches.ts+++ b/packages/playwright-core/src/server/chromium/chromiumSwitches.ts@@ -21,9 +21,6 @@ const disabledFeatures = [// See https://github.com/microsoft/playwright/issues/14047'AvoidUnnecessaryBeforeUnloadCheckSync','DestroyProfileOnBrowserClose',- // See https://github.com/microsoft/playwright/pull/13854- 'DialMediaRouteProvider',- 'GlobalMediaControls',// Hides the Lens feature in the URL address bar. Its not working in unofficial builds.'LensOverlay',// See https://github.com/microsoft/playwright/pull/8162@@ -35,8 +32,6 @@ const disabledFeatures = [// Chromium 155 aborts preflighted cross-origin redirects with net::ERR_ABORTED while// Fetch interception is enabled. See https://github.com/microsoft/playwright/issues/43242'AvoidCorsURLLoaderRestartOnRedirect',- // See https://github.com/microsoft/playwright/issues/16126- 'Translate',// Prevents downloading optimization hints on startup.'OptimizationHints',// Prevents network time queries to clients2.google.com on startup.@@ -56,7 +51,6 @@ export const chromiumSwitches = (options?: { android?: boolean }) => ['--disable-backgrounding-occluded-windows','--disable-back-forward-cache', // Avoids surprises like main request not being intercepted during page.goBack().'--disable-breakpad',- '--disable-client-side-phishing-detection','--disable-component-extensions-with-background-pages','--disable-component-update', // Avoids unneeded network activity after startup.'--no-default-browser-check',@@ -80,7 +74,6 @@ export const chromiumSwitches = (options?: { android?: boolean }) => ['--use-mock-keychain',// See https://chromium-review.googlesource.com/c/chromium/src/+/2436773'--no-service-autorun',- '--export-tagged-pdf',// https://chromium-review.googlesource.com/c/chromium/src/+/4853540'--disable-search-engine-choice-screen',// https://issues.chromium.org/41491762@@ -93,8 +86,6 @@ export const chromiumSwitches = (options?: { android?: boolean }) => [// This disables Chrome for Testing infobar that is visible in the persistent context.// The switch is ignored everywhere else, including Chromium/Chrome/Edge.'--disable-infobars',- // Less annoying popups.- '--disable-search-engine-choice-screen',// Prevents the "three dots" menu crash in IdentityManager::HasPrimaryAccount for ephemeral contexts.options?.android ? '' : '--disable-sync',// Prevents relaunching as non-admin when started from an elevated process on Windows.