Implement workspace-aware default window sizing with unified API (1440x900 for workspaces, 1200x800 for empty windows) (#262266)

This commit is contained in:
Copilot
2025-08-19 10:58:58 +00:00
committed by GitHub
parent a496091135
commit 3f44d80059
6 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ async function launchBrowser(options: LaunchOptions, endpoint: string) {
}
const page = await measureAndLog(() => context.newPage(), 'context.newPage()', logger);
await measureAndLog(() => page.setViewportSize({ width: 1200, height: 800 }), 'page.setViewportSize', logger);
await measureAndLog(() => page.setViewportSize({ width: 1440, height: 900 }), 'page.setViewportSize', logger);
if (options.verbose) {
context.on('page', () => logger.log(`Playwright (Browser): context.on('page')`));
+2 -2
View File
@@ -57,8 +57,8 @@ if (args.help) {
process.exit(1);
}
const width = 1200;
const height = 800;
const width = 1440;
const height = 900;
type BrowserType = 'chromium' | 'firefox' | 'webkit';
type BrowserChannel = 'msedge' | 'chrome';