mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-15 07:19:20 -04:00
navigator.languages now lists the Accept-Language tags in order, which is Chrome's contract, instead of a second derivation from the locale tag that disagreed with the header (--locale de-DE sent de-DE,de,en but reported ["de-DE","de"]). HttpHeaders.AcceptLanguage owns both shapes and is also the CDP override type. ICU canonicalizes a BCP 47 tag read from LC_ALL itself, script subtag included, so the POSIX id conversion is gone; it dropped the script and turned zh-Hans-TW into Traditional Chinese. Also: the CDP handler keeps validateUserAgent's verdict instead of scanning for Mozilla twice, the override is cleared unconditionally on context teardown instead of through a flag, and the flags are sentinel strings so Platform passes them to setenv without copying.