mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
fix(firefox): do not create first window on start (#1727)
This commit is contained in:
parent
99c3f2b279
commit
a1ffed6052
@ -185,8 +185,13 @@ export class Firefox implements BrowserType<FFBrowser> {
|
||||
firefoxArguments.push('-juggler', String(port));
|
||||
firefoxArguments.push(...args);
|
||||
|
||||
if (launchType === 'persistent') {
|
||||
if (args.every(arg => arg.startsWith('-')))
|
||||
firefoxArguments.push('about:blank');
|
||||
} else {
|
||||
firefoxArguments.push('-silent');
|
||||
}
|
||||
|
||||
return firefoxArguments;
|
||||
}
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ async function testSignal(browserType, action, exitOnClose) {
|
||||
handleSIGINT: true,
|
||||
handleSIGTERM: true,
|
||||
handleSIGHUP: true,
|
||||
executablePath: browserType.executablePath(),
|
||||
});
|
||||
const res = spawn('node', [path.join(__dirname, 'fixtures', 'closeme.js'), playwrightPath, browserType.name(), JSON.stringify(options), exitOnClose ? 'true' : '']);
|
||||
let wsEndPointCallback;
|
||||
|
Loading…
Reference in New Issue
Block a user