// User-Agent for the Goanna/UXP engine.
//
// IMPORTANT - the only pref the engine actually reads for the global UA is
// network.http.useragent.global_override (per nsHttpHandler.cpp). Mozilla-era
// general.useragent.override and its per-host .HOST suffix variants are NOT
// honored on this engine - don't set them.
//
// We claim Firefox 128 ESR for two reasons:
//   1. Google's account-login flow refuses "may not be secure" browsers. It
//      cross-checks the UA against features (e.g. a Chrome UA + missing
//      navigator.userAgentData = obvious fake). Firefox doesn't ship
//      userAgentData or the sec-ch-ua-* client hints either, so a Firefox UA
//      matches the actual feature surface and clears Google's check.
//   2. Firefox 128 ESR is on Google's supported-browsers list, so other sites
//      that gate on minimum-supported versions also accept us.
//
// Bump the rv= and Firefox/ numbers as new ESR releases ship.
pref("network.http.useragent.global_override",
     "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0");
// Don't add a Firefox suffix to whatever native UA the engine would build -
// our global_override above replaces it entirely, so this is moot, but keep
// it false for clarity.
pref("general.useragent.compatMode.firefox", false);
pref("intl.accept_languages", "en-US, en");
