Commit Graph
7 Commits
Author SHA1 Message Date
Jake WriterandClaude Opus 5.5 b3679d28c2 Say which Windows values were measured, and what a macOS host gets
The test docstring claimed every value was measured on stock Windows; four
behaviour prefs were, and the rest are Firefox 158's Windows defaults from its
pref files. windows-keyboard.patch's tables, text bindings and AltGr are GTK
code, so on a macOS host only the editor caret style changes. The test UAs
claim 158.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 11:28:16 -06:00
Jake WriterandClaude Opus 5.5 9bb4181cf8 Windows identity: drop behaviour prefs no page can observe
searchclipboardfor.middleclick is browser chrome, clipboard.autocopy only fills
the X primary selection, middlemouse.openNewWindow is overridden by the
browser's own link handling, and select popups are drawn in the parent
process. use-system-size is read only by Windows' own LookAndFeel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 11:27:16 -06:00
Jake WriterandClaude Opus 5.5 4e2515bc64 Leave EME at the build's default for Windows identities
Windows Firefox has PlayReady behind EME; a Linux build cannot supply
it, so turning media.eme.enabled on claimed more than the build
delivers. The pref is no longer among the Windows behaviour defaults,
and the Python and TypeScript tests now require that it is left alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:30:26 -06:00
coffeegrind123andClaude Opus 5.5 e3b76b2acf Draw Windows' scrollbars for Windows identities on another host
The launcher pins overlay versus classic scrollbars per identity, but
the scrollbars were still drawn by the host build's theme. On a Linux
host a Windows 10 identity's classic gutter measured 12 px (GTK's);
stock Firefox on Windows measures 17. For a Windows identity on a
non-Windows host the launchers now select Windows' non-native
scrollbar style (Windows 10 or 11, following ui.useOverlayScrollbars),
at Windows' own size rather than the host's system metric. A Linux or
macOS identity, and any identity on a Windows host, is left as before.

viewport-no-rdm.py now runs for a Linux and a Windows identity: the
Linux one must show the host theme's non-zero gutter, the Windows one
stock Windows' 17 px. The skiplist's 12 px entries stay right: the
Playwright suite launches the bare binary, which claims no OS.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-18 09:54:01 +03:00
coffeegrind123andClaude Opus 5.5 4812579537 Set Windows behaviour defaults for Windows identities
A Linux build claiming Windows kept Linux's defaults for prefs a page
or the user can observe: EME was off ("EME has been preffed off" is a
Linux-only message), middle click pasted the X11 primary selection,
double-click left out the trailing space, fullscreen was instant,
<select> popups ignored page styling, and scrollbar track clicks
followed GTK.

The launchers now set Firefox's Windows defaults for these
(windowsBehaviourPrefs in launcher-constants.json, shared by the
Python and TypeScript launchers) when a Windows identity runs on a
non-Windows host, where upstream did nothing. Caller-supplied values
still win. Each one was checked against 156.0.1's all.js, firefox.js
and StaticPrefList.yaml and still differs between the Windows and GTK
builds, the fullscreen transition included: GTK builds default to
"0 0" there, so it is not redundant now that camoufox.cfg no longer
sets it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-18 09:54:00 +03:00
coffeegrind123andClaude Opus 5.5 1912e974fa Give Windows identities Windows' keyboard
A Linux build claiming Windows edited text the GTK way, which both the
user and the page could tell: Alt+Backspace did not undo, Shift+Delete
with nothing selected did nothing, Ctrl+Up in a textarea moved up a line
instead of to its start, Ctrl+/ selected all, Ctrl+Backspace on a rich
text selection deleted only the selection, and AltGr reported keyCode
225 where Windows reports 18.

windows-keyboard.patch switches on config input:windowsKeyboard, which
the launcher sets for Windows identities on a non-Windows host, where
upstream did nothing. The shortcut tables are Windows' own, built from
the same definitions file with the Windows platform macros; GTK's
native text bindings are skipped, including the emulated ones that
synthesized (Playwright) key events get from GetEditCommandsForTests;
AltGr reports Alt and HTML editors take Windows' caret style. Without
the key, or with it false, behaviour is unchanged. The key is
launch-wide: the shortcut tables and GTK's key handling are
process-level. The patch relies on touchscreen-fingerprint-spoofing
for /camoucfg in dom/events and was re-derived on 156.

The windows-keyboard guard checks each behaviour for a Windows and a
Linux identity, with real X11 keys where only a native event exercises
the code, so the parity leg installs xdotool and setxkbmap.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-18 09:53:59 +03:00
coffeegrind123andClaude Opus 5.5 580f4aee99 Compute Math.sin/cos/tan/pow as the Windows CRT does
The last bit of these differs between glibc (or fdlibm) and the
Windows CRT, so one call told a page that a build claiming Windows ran
on Linux: against stock 152.0.4 on Windows, sin differed on 22, cos on
26 and tan on 30 of 1,670 inputs, pow on 45 of 1,410.

windows-crt-math.patch adds javascript.options.use_ucrt_math, which
routes them to ports of ucrtbase.dll's FMA3 code path
(browser/additions/js/src/builtin/UcrtMath*.c), keeping SpiderMonkey's
own pow fast paths. On 156 the pow hook sits in pow_libm_or_fdlibm, the
one place both callers already reach the platform pow. It is built
only for 64-bit non-Windows targets, without FP contraction. The
launcher turns it on for Windows identities on a non-Windows host,
where upstream did nothing; the TypeScript launcher does the same.

browser/tests/ucrt-math checks the C alone against ucrtbase.dll on
~127,000 results in the static job. The windows-crt-math guard checks
the browser against stock Windows Firefox cold, JIT-hot and constant
folded, with a pref-off control that must differ; a missing result
counts as a difference.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-18 09:53:59 +03:00