Bug 1745788: Add telemetry for situations when Firefox is running under App Translocation on macOS. r=mstange

Differential Revision: https://phabricator.services.mozilla.com/D142109
This commit is contained in:
Stephen A Pohl 2022-04-04 17:30:10 +00:00
Родитель 4e3a8b1761
Коммит 5d6b6caf5a
3 изменённых файлов: 27 добавлений и 3 удалений

Просмотреть файл

@ -5927,7 +5927,7 @@ startup:
Recorded on every run of a Firefox install on macOS, with a boolean value Recorded on every run of a Firefox install on macOS, with a boolean value
indicating whether Firefox is being run directly from .dmg without indicating whether Firefox is being run directly from .dmg without
installing, or not. installing, or not.
expires: "99" expires: "108"
keyed: false keyed: false
kind: boolean kind: boolean
notification_emails: notification_emails:
@ -5941,6 +5941,26 @@ startup:
- 'main' - 'main'
release_channel_collection: opt-out release_channel_collection: opt-out
is_run_from_app_translocated_location:
bug_numbers:
- 1745788
description: >
Recorded on every run of a Firefox install on macOS, with a boolean value
indicating whether Firefox is being run from an app translocated location,
or not. This is always false when `is_run_from_dmg` is true.
expires: "108"
keyed: false
kind: boolean
notification_emails:
- spohl@mozilla.com
operating_systems:
- mac
products:
- 'firefox'
record_in_processes:
- 'main'
release_channel_collection: opt-out
script.preloader: script.preloader:
mainthread_recompile: mainthread_recompile:
bug_numbers: bug_numbers:

Просмотреть файл

@ -469,6 +469,8 @@ bool MaybeInstallAndRelaunch() {
} }
Telemetry::ScalarSet(Telemetry::ScalarID::STARTUP_IS_RUN_FROM_DMG, isFromDmg); Telemetry::ScalarSet(Telemetry::ScalarID::STARTUP_IS_RUN_FROM_DMG, isFromDmg);
Telemetry::ScalarSet(Telemetry::ScalarID::STARTUP_IS_RUN_FROM_APP_TRANSLOCATED_LOCATION,
isTranslocated);
if (!isFromDmg && !isTranslocated) { if (!isFromDmg && !isTranslocated) {
if (getenv("MOZ_INSTALLED_AND_RELAUNCHED_FROM_DMG")) { if (getenv("MOZ_INSTALLED_AND_RELAUNCHED_FROM_DMG")) {

Просмотреть файл

@ -21,17 +21,19 @@ startup:
- privileged_install_failed - privileged_install_failed
- installed_and_relaunched - installed_and_relaunched
description: > description: >
The outcome after the app detected that it was running from DMG and The outcome after the app detected that it was running from DMG or an app
should offer to install and relaunch itself. translocated location and should offer to install and relaunch itself.
metadata: &metadata metadata: &metadata
tags: tags:
- "Toolkit :: Startup and Profile System" - "Toolkit :: Startup and Profile System"
bugs: bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1743328 - https://bugzilla.mozilla.org/show_bug.cgi?id=1743328
- https://bugzilla.mozilla.org/show_bug.cgi?id=1755049 - https://bugzilla.mozilla.org/show_bug.cgi?id=1755049
- https://bugzilla.mozilla.org/show_bug.cgi?id=1745788
data_reviews: data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1743328#c1 - https://bugzilla.mozilla.org/show_bug.cgi?id=1743328#c1
notification_emails: notification_emails:
- jwatt@jwatt.org - jwatt@jwatt.org
- mbalfanz@mozilla.com - mbalfanz@mozilla.com
- spohl@mozilla.com
expires: 108 expires: 108