Skip to content

fix(browser): resize the browser ui only if it's not headless#10662

Merged
sheremet-va merged 1 commit into
mainfrom
fix/resize-virwport-headless
Jun 26, 2026
Merged

fix(browser): resize the browser ui only if it's not headless#10662
sheremet-va merged 1 commit into
mainfrom
fix/resize-virwport-headless

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

I found that this test always fails locally on Mac with Webkit reporting a different resolution:

@sheremet-va
sheremet-va requested a review from macarie June 25, 2026 16:21

@macarie macarie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it makes sense, even tho I don't think anyone would run with UI enabled but headless, or at least I hope 😅

It works on my machine™ (and CI?) so I wonder why the test fails tho. What are the sizes of the two screenshots?

Also, do you have this option (Appearance → Windows, at the bottom) set to "Always"?

Screenshot of macOS' Show Scroll Bars setting options

@sheremet-va

Copy link
Copy Markdown
Member Author

I guess it makes sense, even tho I don't think anyone would run with UI enabled but headless, or at least I hope 😅

It works on my machine™ (and CI?) so I wonder why the test fails tho. What are the sizes of the two screenshots?

Also, do you have this option (Appearance → Windows, at the bottom) set to "Always"?

Screenshot of macOS' Show Scroll Bars setting options

The size is just doubled, the device pixel ratio on retina kicks in

@sheremet-va
sheremet-va merged commit b5c6130 into main Jun 26, 2026
18 of 20 checks passed
@sheremet-va
sheremet-va deleted the fix/resize-virwport-headless branch June 26, 2026 06:45
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.

2 participants