ShardBrowser icon indicating copy to clipboard operation
ShardBrowser copied to clipboard

2.1.4 `/fingerprint/new` still ships a ru-RU default voice, `icu_locale: pl-PL`, and platform versions Chrome never emits (14/16/17)

Open ZC-eto opened this issue 3 weeks ago • 1 comments

Environment

  • ShardBrowser Launcher 2.1.4 (latest release, 2026-11-06), Windows 11
  • Engine Chromium 157.0.8103.39
  • Profiles created from GET /fingerprint/new/Windows, nothing edited in the editor

What happens

Four calls to GET /fingerprint/new/Windows in one session, nothing changed between them:

call icu_locale navigator.platform_version default voice
1 pl-PL 14.0.0 Microsoft Irina - Russian (Russia)
2 pl-PL 10.0.0 Microsoft Irina - Russian (Russia)
3 pl-PL 17.0.0 Microsoft Irina - Russian (Russia)
4 pl-PL 16.0.0 Microsoft Irina - Russian (Russia)

Every response also carries Microsoft Pavel - Russian (Russia) and Google русский in speech.voices, and marks Microsoft Irina (ru-RU, local_service: true) as is_default: true. client_hints.platform_version matches navigator.platform_version.

Why each one matters

1. platform_version — the one a page actually reads. Per #68 the only values Chrome emits on Windows are 10.0.0 (Win10 2004-22H2), 15.0.0 (22H2/23H2) and 19.0.0 (24H2+). 14.0.0 is Win11 21H2, out of support since 2023; 16.0.0 and 17.0.0 correspond to no shipped Windows release. Chrome 157 on a current Windows 11 host reports 19.0.0. Across the four calls the generator never drew 19.0.0 and drew 17.0.0 once, so a page reading Sec-CH-UA-Platform-Version / userAgentData.platformVersion is told the browser runs on a Windows build that does not exist.

2. Russian default voice. #80 reported exactly this and 2.1.0 fixed the runtime side — verified here: an en-US profile reports 21 voices, default Microsoft David - English (United States), and zero ru-RU entries in the page. The template still ships the ru-RU default, though, so the profile editor shows a Russian default voice the engine will never use, and it is what a page gets if the host has no voice pack for the profile language. #83 shows preset-derived values being written back on save, so this is not purely cosmetic.

3. icu_locale: pl-PL. POST /profiles persists the supplied fingerprint as given, so a profile created from this response through the SDK/API claims a Polish ICU locale while its language resolves to en-US. In the UI flow it ends up null (auto), which is why this one is easy to miss.

Expected

  • platform_version drawn from {10.0.0, 15.0.0, 19.0.0} (or simply kept from the preset), as suggested in #68
  • speech.voices local entries and is_default resolved from the profile language, or no is_default in the template
  • icu_locale null/"auto" by default

Reproduce

curl -s -H "Authorization: Bearer <jwt>" http://127.0.0.1:40325/fingerprint/new/Windows \
  | jq '.fingerprint | {icu_locale, pv: .navigator.platform_version,
                        default: [.speech.voices[] | select(.is_default) | .name],
                        ru: [.speech.voices[] | select(.lang=="ru-RU") | .name]}'

The JWT is HS256 over the launcher's api_secret with sub: "shardx-api", i.e. the same token the SDK uses.

Related: #68 (platform_version pool), #80 (ru-RU default from presets), #50 (voice list reaching the page), #83 (editor save writing preset values back)

ZC-eto avatar Nov 06 '26 22:11 ZC-eto

in v2.1.6

Kr1tos avatar Nov 20 '26 12:11 Kr1tos