fix: support resize_page when browser window is maximized/fullscreenwindow state#748
fix: support resize_page when browser window is maximized/fullscreenwindow state#748OrKoN merged 11 commits intoChromeDevTools:mainfrom
Conversation
a10c06a to
69af216
Compare
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
|
I guess might require setting a larger screen info for the test browser similar to https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/src/browser.ts#L178 |
|
After testing few times i noticed that the I think this happens because Chrome is still resizing from the previous test when the next test starts, and the resize listener resolves on the previous resize event rather than the current one. To fix this, I found that the puppeteer's |
|
Thanks! |
🤖 I have created a release *beep* *boop* --- ## [0.13.0](chrome-devtools-mcp-v0.12.1...chrome-devtools-mcp-v0.13.0) (2026-01-14) ### 🎉 Features * Allow opting out of default Chrome launch arguments ([#729](#729)) ([9a51af2](9a51af2)) * support filePath in performance tools ([#686](#686)) ([68ae2f8](68ae2f8)) ### 🛠️ Fixes * support resize_page when browser window is maximized/fullscreenwindow state ([#748](#748)) ([4d9ac22](4d9ac22)) * use relative path for plugin source in marketplace ([#724](#724)) ([5c1ecf8](5c1ecf8)) ### 📄 Documentation * add experimental chrome on android guide ([#691](#691)) ([4a87702](4a87702)) * autoConnect - clarify how the mcp server selects a profile ([#693](#693)) ([28b8ff8](28b8ff8)) * claude code broken link ([#707](#707)) ([1f532b8](1f532b8)) * enhance cli docs + sort required vs opt params ([#674](#674)) ([81cbd99](81cbd99)) * update auto connect docs to mention min Chrome version ([#681](#681)) ([ab2340f](ab2340f)) * Update Claude Code instructions in README.md ([#711](#711)) ([f81cd2d](f81cd2d)) * update readme to include OpenCode example ([#560](#560)) ([fbba3c9](fbba3c9)) ### ♻️ Chores * change pageIdx to page ids ([#741](#741)) ([a23c6ba](a23c6ba)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
zainudinmuji4-commits
left a comment
There was a problem hiding this comment.
.github/dependabot.yml
zainudinmuji4-commits
left a comment
There was a problem hiding this comment.
frontend/eslint.config.mjs
Related Issue - 465
Description
This change make sure that the browser window is restored to a
normalstate before resizing the page. When the window is infullscreenmode we have to set the state twice to match how Chrome CDP behaves.Tests cover window resizing for every available window states
type WindowState = 'normal' | 'minimized' | 'maximized' | 'fullscreen';