tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 77177f4b976573c5d1ec0b287016162cb7606739
parent c0c36dd8e023ff3c6b1eb2e55ae24b749a680bfd
Author: Chris DuPuis <cdupuis@mozilla.com>
Date:   Fri, 17 Oct 2025 17:15:30 +0000

Bug 1994559 - Add metadata to archive file format to show whether the profile has opted into telemetry r=hsohaney,fchasen

This change adds metadata fields healthTelemetryEnabled and
usageTelemetryEnabled to teh existing metadata in the backup archive
format. These new fields are optional.

Differential Revision: https://phabricator.services.mozilla.com/D268802

Diffstat:
Mbrowser/components/backup/BackupService.sys.mjs | 8++++++++
Mbrowser/components/backup/content/BackupManifest.1.schema.json | 8++++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/browser/components/backup/BackupService.sys.mjs b/browser/components/backup/BackupService.sys.mjs @@ -2630,6 +2630,14 @@ export class BackupService extends EventTarget { osVersion: Services.sysinfo.getProperty("version"), legacyClientID: await lazy.ClientID.getClientID(), profileGroupID: await lazy.ClientID.getProfileGroupID(), + healthTelemetryEnabled: Services.prefs.getBoolPref( + "datareporting.healthreport.uploadEnabled", + false + ), + usageTelemetryEnabled: Services.prefs.getBoolPref( + "datareporting.usage.uploadEnabled", + false + ), }; let fxaState = lazy.UIState.get(); diff --git a/browser/components/backup/content/BackupManifest.1.schema.json b/browser/components/backup/content/BackupManifest.1.schema.json @@ -57,6 +57,14 @@ "profileGroupID": { "type": "string", "description": "The ID for the profile group that the backup was created on. Optional." + }, + "healthTelemetryEnabled": { + "type": "boolean", + "description": "Indicates that the user profile in this archive has enabled the sending of technical and interaction data to Mozilla. Optional, defaults to false." + }, + "usageTelemetryEnabled": { + "type": "boolean", + "description": "Indicates that the user profile in this archive has enabled the sending of technical and interaction data to Mozilla. Optional, defaults to false." } }, "required": [