Files
camoufox/settings/chrome.css
T
Jake WriterandClaude Opus 5 d8d3f4a508 fix(settings): stock values for page-observable prefs; launcher prefs at startup
Page-observable defaults that no stock Firefox has, restored:
- the forced built-in dark theme (it also removed the 1 px nav-bar separator,
  and was applied ~1 s after startup, resizing the viewport) and
  ui.systemUsesDarkTheme (prefers-color-scheme disagreed with the desktop);
- focus rings off, autoplay allowed, popup blocker off;
- gfx.color_management.mode=0 (Playwright's test pref: ICC-tagged images were
  drawn unconverted, readable from a canvas pixel);
- ui.use_standins_for_native_colors (non-native system colours);
- GMP updates off (Widevine/OpenH264 never available);
- storage.estimate() quota derived from the raw disk instead of the stock cap.
The HardwareAcceleration:false enterprise policy is removed: it locked software
WebRender with no hardware video decoding on every OS (guard
tests/patches/hardware-acceleration-policy.py). The minimal-theme chrome.css is
emptied: its ~55 px chrome made outerHeight - innerHeight impossible.

Playwright's non-persistent launch writes no user.js, so launcher prefs only
arrived through juggler after startup and anything Gecko reads while starting
raced (on Windows the UI locale lost 3 of 4 launches). camoufox.cfg now applies
the launcher's CAMOU_PREFS_1..N env chunks as default prefs at startup (guard
tests/patches/startup-prefs.py).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 22:09:01 -06:00

12 lines
522 B
CSS

/*
Camoufox chrome stylesheet.
The former "minimalistic theme" shrank the tab strip to 25 px and the
nav-bar to 30 px, which made the window chrome ~55 CSS px tall. A page can
measure that (outerHeight - innerHeight, mozInnerScreenY) and every stock
Firefox shows ~85-90 px on Windows/GNOME; the presets camoufox draws its
outer/inner sizes from also come from stock chrome. Keep the UI at stock
size so the geometry the page sees is coherent with a real browser
(measured 2026-09-14: 55/57 vs 86/90).
*/