Files
archived-camoufox/pythonlib/camoufox
Ruben VereeckenandClaude Opus 4.6 40fbce61e4 Remove init_script system timezone fallback that poisons storage (#560)
The else branch in _build_init_script() reads the system timezone via
Intl.DateTimeFormat().resolvedOptions().timeZone and stores it via
setTimezone(). When geoip resolves a different timezone (set later via
CAMOU_CONFIG/launch_options), the storage value from the init_script
takes precedence — workers read the wrong timezone and the C++ MaskConfig
fallback (PR #546) is never reached.

Fix: only call setTimezone() when an explicit timezone value is provided.
When omitted, timezone propagation is handled entirely by the C++ side
(SetNewDocument + TimezoneManager::GetTimezone MaskConfig fallback).

Companion to #546 (Fix worker timezone leak when using geoip/proxy).

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 14:24:24 -04:00
..
2026-03-07 02:21:15 -06:00
2026-03-07 02:21:15 -06:00
2025-03-21 14:59:04 +01:00
2024-12-17 17:58:18 +00:00
2026-03-07 02:21:15 -06:00
2024-12-17 17:57:50 +00:00