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(bidi): don't accept page in firefox launch arguments (#37469)
Holger Benl0d85d44ab069
diff --git a/packages/playwright-core/src/server/bidi/bidiFirefox.ts b/packages/playwright-core/src/server/bidi/bidiFirefox.tsindex 8a11c0ba50..40543a0d0f 100644--- a/packages/playwright-core/src/server/bidi/bidiFirefox.ts+++ b/packages/playwright-core/src/server/bidi/bidiFirefox.ts@@ -97,6 +97,8 @@ export class BidiFirefox extends BrowserType {const userDataDirArg = args.find(arg => arg.startsWith('-profile') || arg.startsWith('--profile'));if (userDataDirArg)throw this._createUserDataDirArgMisuseError('--profile');+ if (args.find(arg => !arg.startsWith('-')))+ throw new Error('Arguments can not specify page to be opened');const firefoxArguments = ['--remote-debugging-port=0'];if (headless)firefoxArguments.push('--headless');