Skip to content

fix(firefox): wire screen context option through to Juggler#39843

Open
nadja-y wants to merge 1 commit intomicrosoft:mainfrom
nadja-y:pr-firefox-screen-override
Open

fix(firefox): wire screen context option through to Juggler#39843
nadja-y wants to merge 1 commit intomicrosoft:mainfrom
nadja-y:pr-firefox-screen-override

Conversation

@nadja-y
Copy link
Copy Markdown
Contributor

@nadja-y nadja-y commented Mar 25, 2026

Backports SetScreenAreaOverride from upstream
(https://phabricator.services.mozilla.com/D273425,
mozilla-firefox/firefox@a689946)
to decouple screen dimensions from Responsive Design Mode emulation.
When screen differs from viewport, Juggler now uses
setScreenAreaOverride instead of inRDMPane — achieving parity with
how Chromium handles this via setDeviceMetricsOverride and WebKit
via setScreenSizeOverride.

Fixes #39841

@nadja-y nadja-y force-pushed the pr-firefox-screen-override branch from 7cb2879 to 3367932 Compare March 25, 2026 11:29
@Skn0tt
Copy link
Copy Markdown
Member

Skn0tt commented Mar 30, 2026

cc @aslushnikov

Wires the screen context option through Juggler to Firefox's native
SetScreenAreaOverride API (https://phabricator.services.mozilla.com/D273425,
mozilla-firefox/firefox@a689946)
to decouple screen dimensions from Responsive Design Mode emulation.
When screen differs from viewport, Juggler now uses
setScreenAreaOverride instead of inRDMPane — achieving parity with
how Chromium handles this via setDeviceMetricsOverride and WebKit
via setScreenSizeOverride.

The Firefox revision now pinned in UPSTREAM_CONFIG.sh
(mozilla-firefox/firefox@4eb5a4f)
includes this API natively, so bootstrap.diff changes are no longer
required (cf. microsoft@3367932).

Fixes microsoft#39841
@nadja-y nadja-y force-pushed the pr-firefox-screen-override branch from 3367932 to 0a874f9 Compare March 31, 2026 05:36
@nadja-y
Copy link
Copy Markdown
Contributor Author

nadja-y commented Mar 31, 2026

Rebased onto main. The Firefox revision now pinned in UPSTREAM_CONFIG.sh includes SetScreenAreaOverride natively, so bootstrap.diff changes are no longer required — this is now pure Juggler/TypeScript wiring.

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.

Firefox: screen context option has no effect

2 participants