Bug 2048644 - Resolve the enterprise console address from AutoConfig, falling back to distribution.ini#1076
Bug 2048644 - Resolve the enterprise console address from AutoConfig, falling back to distribution.ini#1076mkaply wants to merge 2 commits into
Conversation
BackgroundThe enterprise console address ( This patch makes both the browser and the crash reporter client prefer AutoConfig while keeping Browser (
|
jonathanmendez
left a comment
There was a problem hiding this comment.
Looks good, I just have a few cleanup requests.
… falling back to distribution.ini The enterprise console address (enterprise.console.address) is migrating from distribution.ini to AutoConfig (firefox.cfg). Teach both the browser and the crash reporter client to prefer AutoConfig while keeping distribution.ini working, so existing deployments are unaffected during the migration. Browser (nsAppRunner): once AutoConfig has been evaluated, if enterprise.console.address is locked (i.e. set via lockPref in firefox.cfg), derive the crash submission and update URLs from it and register the crash ServerURL, overriding any value read earlier from distribution.ini. The early distribution.ini read is left intact as the fallback, and the lock check means non-AutoConfig (distribution.ini) deployments keep their existing behavior. Crash reporter client: resolve the console base URL in priority order: 1. the ServerURL crash annotation recorded by the browser, 2. the AutoConfig file (firefox.cfg, byte-shift decoded), then 3. distribution.ini (legacy, retained for migration). This feeds both the crash submission URL and the Glean telemetry endpoint. The distribution.ini reader is preserved as the final fallback rather than removed.
- Rename autoconfig.rs to enterprise_prefs.rs and consolidate the console endpoint construction there (console_report_url, console_glean_url, and the hard-coded paths). - Resolve the crash report URL by validating the ServerURL annotation with url::Url::parse instead of a string-prefix check. - Rename the filename constant to ENTERPRISE_AUTOCONFIG_FILENAME and clarify that the pref has no default value. - Drop the phase-3 guard in nsAppRunner now that the pref has no default value to clobber, and remove the now-unused enterprise.felt_tests.read_update_url_from_prefs from the FELT update tests.
13055ee to
ccedd0d
Compare
Description
Bugzilla: Bug-2048644
The enterprise console address (enterprise.console.address) is migrating from distribution.ini to AutoConfig (firefox.cfg). Teach both the browser and the crash reporter client to prefer AutoConfig while keeping distribution.ini working, so existing deployments are unaffected during the migration.
Browser (nsAppRunner): once AutoConfig has been evaluated, if enterprise.console.address is locked (i.e. set via lockPref in firefox.cfg), derive the crash submission and update URLs from it and register the crash ServerURL, overriding any value read earlier from distribution.ini. The early distribution.ini read is left intact as the fallback, and the lock check means non-AutoConfig (distribution.ini) deployments keep their existing behavior.
Crash reporter client: resolve the console base URL in priority order:
This is just the enabling code. Actually putting the firefox.cfg in the build will be a separate patch.