Files
archived-camoufox/python/tests
Jake WriterandClaude Opus 5.5 9b74600adc Render at devicePixelRatio 1 too, not only at other ratios
The launcher set layout.css.devPixelsPerPx only when the identity's
devicePixelRatio was not 1, on the assumption that the host renders at 1.
On a HiDPI host (a Retina Mac, Linux with GDK_SCALE=2, Windows at 200%) the
browser then rendered at the host's scale, so a page read devicePixelRatio 1
while (resolution: 2dppx) matched (#964). Measured on 158.0.1-beta.41 headed on a
MacBook Pro's 2x Retina panel and on an Xvfb display with GDK_SCALE=2. Both
launchers now set the pref whenever the identity carries a ratio; a pref the
caller passes still wins.

On the Retina panel, innerWidth, visualViewport and the (width) media query
are unchanged by the pref. The window draws at half its physical size there,
as a 1x display's window would.

display-scale-resolution now also launches a ratio-1 identity on a 2x host,
which fails on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 20:59:05 +00:00
..
2026-10-06 19:10:22 -06:00
2026-10-19 17:08:56 +00:00