Skip to content

feat(bidi): Improve window management error handling#3150

Merged
kblok merged 1 commit intomasterfrom
implement-upstream-change-3116
Feb 18, 2026
Merged

feat(bidi): Improve window management error handling#3150
kblok merged 1 commit intomasterfrom
implement-upstream-change-3116

Conversation

@kblok
Copy link
Member

@kblok kblok commented Feb 18, 2026

Summary

  • Ports upstream puppeteer PR #14618 (feat(webdriver): Implement window management)
  • Adds try/catch with debug logging around SetWindowBoundsAsync in BidiBrowserContext.NewPageAsync() to tolerate browsers that don't support browser.setClientWindowState
  • Improves the existing setViewport catch to log errors via ILogger instead of silently swallowing them
  • Updates upstream test expectations from webDriverBiDi to firefox for window management tests, since BiDi now supports them on Chrome

Test plan

  • Build succeeds with zero errors
  • NewPageTests pass with Chrome/CDP (3 passed, 1 skipped)

Closes #3116

🤖 Generated with Claude Code

…expectations

Port upstream puppeteer PR #14618. Add try/catch with logging around
SetWindowBoundsAsync in BidiBrowserContext.NewPageAsync and improve
the existing setViewport catch to log errors instead of silently
swallowing them. Use a _logger field initialized in the constructor.
Update test expectations from webDriverBiDi to firefox for window
management tests now that BiDi supports them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(webdriver): Implement window management

1 participant