From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- toolkit/components/telemetry/Events.yaml | 2578 +++ toolkit/components/telemetry/Histograms.json | 16410 +++++++++++++++++++ toolkit/components/telemetry/Makefile.in | 17 + toolkit/components/telemetry/Processes.yaml | 33 + toolkit/components/telemetry/Scalars.yaml | 7255 ++++++++ .../components/telemetry/TelemetryOriginEnums.h | 48 + toolkit/components/telemetry/TelemetryStartup.jsm | 58 + .../components/telemetry/TelemetryStartup.manifest | 1 + toolkit/components/telemetry/UserInteractions.yaml | 37 + toolkit/components/telemetry/app/ClientID.jsm | 498 + .../components/telemetry/app/TelemetryArchive.jsm | 123 + .../telemetry/app/TelemetryController.jsm | 45 + .../telemetry/app/TelemetryControllerBase.jsm | 143 + .../telemetry/app/TelemetryControllerContent.jsm | 108 + .../telemetry/app/TelemetryControllerParent.jsm | 1450 ++ .../telemetry/app/TelemetryEnvironment.jsm | 2128 +++ .../telemetry/app/TelemetryReportingPolicy.jsm | 584 + .../telemetry/app/TelemetryScheduler.jsm | 434 + toolkit/components/telemetry/app/TelemetrySend.jsm | 1600 ++ .../components/telemetry/app/TelemetryStorage.jsm | 2221 +++ .../telemetry/app/TelemetryTimestamps.jsm | 55 + .../components/telemetry/app/TelemetryUtils.jsm | 301 + .../components/telemetry/build_scripts/README.md | 5 + .../telemetry/build_scripts/gen_event_data.py | 227 + .../telemetry/build_scripts/gen_event_enum.py | 82 + .../telemetry/build_scripts/gen_histogram_data.py | 298 + .../telemetry/build_scripts/gen_histogram_enum.py | 149 + .../telemetry/build_scripts/gen_histogram_phf.py | 74 + .../telemetry/build_scripts/gen_process_data.py | 81 + .../telemetry/build_scripts/gen_process_enum.py | 68 + .../telemetry/build_scripts/gen_scalar_data.py | 216 + .../telemetry/build_scripts/gen_scalar_enum.py | 61 + .../build_scripts/gen_userinteraction_data.py | 105 + .../build_scripts/gen_userinteraction_phf.py | 71 + .../telemetry/build_scripts/mozparsers/__init__.py | 3 + .../build_scripts/mozparsers/parse_events.py | 476 + .../build_scripts/mozparsers/parse_histograms.py | 1011 ++ .../build_scripts/mozparsers/parse_scalars.py | 503 + .../mozparsers/parse_user_interactions.py | 256 + .../mozparsers/shared_telemetry_utils.py | 186 + .../telemetry/build_scripts/run_glean_parser.py | 17 + .../components/telemetry/build_scripts/setup.py | 32 + toolkit/components/telemetry/components.conf | 23 + toolkit/components/telemetry/core/EventInfo.h | 57 + toolkit/components/telemetry/core/ScalarInfo.h | 94 + toolkit/components/telemetry/core/Stopwatch.cpp | 749 + toolkit/components/telemetry/core/Stopwatch.h | 84 + toolkit/components/telemetry/core/Telemetry.cpp | 2076 +++ toolkit/components/telemetry/core/Telemetry.h | 586 + .../components/telemetry/core/TelemetryCommon.cpp | 208 + .../components/telemetry/core/TelemetryCommon.h | 193 + .../components/telemetry/core/TelemetryEvent.cpp | 1390 ++ toolkit/components/telemetry/core/TelemetryEvent.h | 71 + .../telemetry/core/TelemetryHistogram.cpp | 3658 +++++ .../components/telemetry/core/TelemetryHistogram.h | 120 + .../components/telemetry/core/TelemetryOrigin.cpp | 625 + .../components/telemetry/core/TelemetryOrigin.h | 45 + .../telemetry/core/TelemetryOriginData.inc | 2488 +++ .../components/telemetry/core/TelemetryScalar.cpp | 4202 +++++ .../components/telemetry/core/TelemetryScalar.h | 130 + .../telemetry/core/TelemetryUserInteraction.cpp | 103 + .../telemetry/core/TelemetryUserInteraction.h | 18 + .../telemetry/core/UserInteractionInfo.h | 30 + toolkit/components/telemetry/core/components.conf | 21 + .../components/telemetry/core/ipc/TelemetryComms.h | 416 + .../components/telemetry/core/ipc/TelemetryIPC.cpp | 59 + .../components/telemetry/core/ipc/TelemetryIPC.h | 116 + .../telemetry/core/ipc/TelemetryIPCAccumulator.cpp | 345 + .../telemetry/core/ipc/TelemetryIPCAccumulator.h | 54 + toolkit/components/telemetry/core/nsITelemetry.idl | 702 + .../telemetry/docs/collection/custom-pings.rst | 80 + .../telemetry/docs/collection/events.rst | 349 + .../telemetry/docs/collection/experiments.rst | 41 + .../telemetry/docs/collection/histograms.rst | 411 + .../components/telemetry/docs/collection/index.rst | 50 + .../telemetry/docs/collection/measuring-time.rst | 116 + .../telemetry/docs/collection/origin.rst | 166 + .../telemetry/docs/collection/sampleHistogram.png | Bin 0 -> 2825 bytes .../telemetry/docs/collection/scalars.rst | 327 + .../telemetry/docs/collection/uptake.rst | 118 + .../telemetry/docs/collection/use-counters.rst | 105 + .../docs/collection/user-interactions.rst | 272 + .../telemetry/docs/collection/webextension-api.rst | 158 + .../telemetry/docs/concepts/archiving.rst | 23 + .../components/telemetry/docs/concepts/crashes.rst | 25 + .../components/telemetry/docs/concepts/index.rst | 23 + .../components/telemetry/docs/concepts/pings.rst | 29 + .../telemetry/docs/concepts/sessions.rst | 37 + .../telemetry/docs/concepts/submission.rst | 42 + .../docs/concepts/subsession_triggers.png | Bin 0 -> 857375 bytes .../telemetry/docs/data/activation-ping.rst | 70 + .../telemetry/docs/data/addons-malware-ping.rst | 42 + .../telemetry/docs/data/anonymous-ping.rst | 68 + .../docs/data/backgroundhangmonitor-ping.rst | 162 + .../components/telemetry/docs/data/common-ping.rst | 42 + .../components/telemetry/docs/data/core-ping.rst | 510 + .../telemetry/docs/data/coverage-ping.rst | 40 + .../components/telemetry/docs/data/crash-ping.rst | 250 + .../telemetry/docs/data/default-browser-ping.rst | 85 + .../telemetry/docs/data/deletion-ping.rst | 26 + .../telemetry/docs/data/deletion-request-ping.rst | 52 + .../telemetry/docs/data/downgrade-ping.rst | 30 + .../telemetry/docs/data/ecosystem-telemetry.rst | 109 + .../components/telemetry/docs/data/environment.rst | 539 + .../components/telemetry/docs/data/event-ping.rst | 92 + .../telemetry/docs/data/first-shutdown-ping.rst | 11 + .../components/telemetry/docs/data/health-ping.rst | 92 + .../telemetry/docs/data/heartbeat-ping.rst | 63 + toolkit/components/telemetry/docs/data/index.rst | 20 + .../telemetry/docs/data/install-ping.rst | 234 + .../docs/data/launcher-process-failure-ping.rst | 96 + .../components/telemetry/docs/data/main-ping.rst | 502 + .../telemetry/docs/data/modules-ping.rst | 46 + .../telemetry/docs/data/new-profile-ping.rst | 83 + .../telemetry/docs/data/pioneer-study.rst | 58 + .../components/telemetry/docs/data/prio-ping.rst | 79 + .../components/telemetry/docs/data/sync-ping.rst | 351 + .../docs/data/third-party-modules-ping.rst | 131 + .../components/telemetry/docs/data/uitour-ping.rst | 26 + .../telemetry/docs/data/uninstall-ping.rst | 36 + .../components/telemetry/docs/data/update-ping.rst | 79 + .../docs/data/xfocsp-error-report-ping.rst | 69 + toolkit/components/telemetry/docs/index.rst | 26 + .../docs/internals/geckoview-streaming.rst | 26 + .../components/telemetry/docs/internals/index.rst | 10 + .../telemetry/docs/internals/mentored-bugs.rst | 49 + .../telemetry/docs/internals/pingsender.rst | 36 + .../telemetry/docs/internals/preferences.rst | 304 + .../components/telemetry/docs/internals/review.rst | 144 + .../components/telemetry/docs/internals/tests.rst | 98 + .../telemetry/docs/obsolete/fhr/architecture.rst | 226 + .../telemetry/docs/obsolete/fhr/dataformat.rst | 1998 +++ .../telemetry/docs/obsolete/fhr/identifiers.rst | 83 + .../telemetry/docs/obsolete/fhr/index.rst | 34 + .../telemetry/docs/obsolete/hybrid-content.rst | 374 + .../components/telemetry/docs/obsolete/index.rst | 14 + .../telemetry/docs/obsolete/optout-ping.rst | 33 + .../telemetry/docs/obsolete/uitelemetry/index.rst | 146 + .../telemetry/docs/start/adding-a-new-probe.rst | 153 + toolkit/components/telemetry/docs/start/index.rst | 17 + .../docs/start/report-gecko-telemetry-in-glean.rst | 259 + .../geckoview/gtest/TestGeckoViewStreaming.cpp | 236 + .../components/telemetry/geckoview/gtest/moz.build | 28 + .../streaming/GeckoViewStreamingTelemetry.cpp | 282 + .../streaming/GeckoViewStreamingTelemetry.h | 54 + .../telemetry/geckoview/streaming/metrics.yaml | 1695 ++ .../components/telemetry/histogram-allowlists.json | 1280 ++ toolkit/components/telemetry/moz.build | 268 + .../components/telemetry/other/CombinedStacks.cpp | 257 + .../components/telemetry/other/CombinedStacks.h | 110 + .../components/telemetry/other/ProcessedStack.cpp | 188 + .../components/telemetry/other/ProcessedStack.h | 140 + .../other/TelemetryIOInterposeObserver.cpp | 179 + .../telemetry/other/TelemetryIOInterposeObserver.h | 117 + toolkit/components/telemetry/other/UITelemetry.jsm | 183 + .../telemetry/other/UntrustedModules.cpp | 259 + .../components/telemetry/other/UntrustedModules.h | 31 + .../other/UntrustedModulesBackupService.cpp | 90 + .../other/UntrustedModulesBackupService.h | 69 + .../other/UntrustedModulesDataSerializer.cpp | 548 + .../other/UntrustedModulesDataSerializer.h | 78 + .../components/telemetry/pings/CoveragePing.jsm | 171 + .../telemetry/pings/EcosystemTelemetry.jsm | 404 + toolkit/components/telemetry/pings/EventPing.jsm | 259 + toolkit/components/telemetry/pings/HealthPing.jsm | 291 + toolkit/components/telemetry/pings/ModulesPing.jsm | 137 + toolkit/components/telemetry/pings/PrioPing.jsm | 156 + .../telemetry/pings/TelemetrySession.jsm | 1441 ++ .../components/telemetry/pings/UninstallPing.jsm | 104 + .../telemetry/pings/UntrustedModulesPing.jsm | 76 + toolkit/components/telemetry/pings/UpdatePing.jsm | 185 + toolkit/components/telemetry/pingsender/moz.build | 38 + .../components/telemetry/pingsender/pingsender.cpp | 234 + .../telemetry/pingsender/pingsender.exe.manifest | 19 + .../components/telemetry/pingsender/pingsender.h | 28 + .../pingsender/pingsender_unix_common.cpp | 299 + .../telemetry/pingsender/pingsender_win.cpp | 178 + .../telemetry/telemetry-constants.mozbuild | 8 + .../tests/addons/dictionary/manifest.json | 15 + .../tests/addons/long-fields/manifest.json | 12 + .../tests/addons/restartless/manifest.json | 12 + .../tests/addons/signed-webext/.web-extension-id | 3 + .../addons/signed-webext/META-INF/manifest.mf | 7 + .../addons/signed-webext/META-INF/mozilla.rsa | Bin 0 -> 4193 bytes .../tests/addons/signed-webext/META-INF/mozilla.sf | 4 + .../tests/addons/signed-webext/manifest.json | 12 + .../telemetry/tests/addons/system/manifest.json | 13 + .../components/telemetry/tests/browser/browser.ini | 13 + .../tests/browser/browser_DynamicScalars.js | 244 + .../tests/browser/browser_UpdatePingSuccess.js | 164 + .../browser_media_element_in_page_scalar.js | 128 + .../telemetry/tests/browser/file_iframe.html | 9 + .../telemetry/tests/browser/file_media.html | 9 + .../components/telemetry/tests/browser/gizmo.mp4 | Bin 0 -> 455255 bytes .../telemetry/tests/gtest/TelemetryFixture.cpp | 28 + .../telemetry/tests/gtest/TelemetryFixture.h | 39 + .../telemetry/tests/gtest/TelemetryTestHelpers.cpp | 376 + .../telemetry/tests/gtest/TelemetryTestHelpers.h | 68 + .../telemetry/tests/gtest/TestCombinedStacks.cpp | 158 + .../telemetry/tests/gtest/TestCounters.cpp | 173 + .../telemetry/tests/gtest/TestEvents.cpp | 125 + .../telemetry/tests/gtest/TestHistograms.cpp | 891 + .../telemetry/tests/gtest/TestOrigins.cpp | 290 + .../telemetry/tests/gtest/TestScalars.cpp | 491 + toolkit/components/telemetry/tests/gtest/moz.build | 30 + .../telemetry/tests/integration/tests/conftest.py | 316 + .../telemetry/tests/integration/tests/python.ini | 9 + .../tests/resources/helloworld/helloworld.html | 18 + .../tests/resources/helloworld/manifest.json | 12 + .../tests/test_deletion_request_ping.py | 65 + .../tests/integration/tests/test_event_ping.py | 51 + .../integration/tests/test_main_tab_scalars.py | 34 + .../tests/test_search_counts_across_sessions.py | 170 + .../tests/test_subsession_management.py | 148 + .../telemetry/tests/marionette/harness/MANIFEST.in | 3 + .../tests/marionette/harness/requirements.txt | 2 + .../telemetry/tests/marionette/harness/setup.py | 48 + .../harness/telemetry_harness/__init__.py | 3 + .../harness/telemetry_harness/fog_ping_filters.py | 29 + .../harness/telemetry_harness/fog_ping_server.py | 77 + .../harness/telemetry_harness/fog_testcase.py | 53 + .../harness/telemetry_harness/ping_filters.py | 75 + .../harness/telemetry_harness/ping_server.py | 65 + .../resources/helloworld/helloworld.html | 18 + .../resources/helloworld/manifest.json | 12 + .../marionette/harness/telemetry_harness/runner.py | 56 + .../harness/telemetry_harness/runtests.py | 14 + .../harness/telemetry_harness/testcase.py | 242 + .../telemetry/tests/marionette/mach_commands.py | 101 + .../telemetry/tests/marionette/moz.build | 11 + .../tests/marionette/tests/client/manifest.ini | 10 + .../tests/client/test_deletion_request_ping.py | 64 + .../marionette/tests/client/test_event_ping.py | 68 + .../tests/client/test_fog_custom_ping.py | 24 + .../tests/client/test_fog_deletion_request_ping.py | 65 + .../tests/client/test_main_tab_scalars.py | 39 + .../client/test_search_counts_across_sessions.py | 212 + .../tests/client/test_subsession_management.py | 147 + .../telemetry/tests/marionette/tests/manifest.ini | 2 + .../tests/marionette/tests/unit/manifest.ini | 4 + .../tests/unit/test_ping_server_received_ping.py | 46 + .../components/telemetry/tests/modules-test.cpp | 27 + toolkit/components/telemetry/tests/moz.build | 25 + .../components/telemetry/tests/python/python.ini | 11 + .../tests/python/test_gen_event_data_json.py | 102 + .../tests/python/test_gen_scalar_data_json.py | 100 + .../tests/python/test_histogramtools_non_strict.py | 145 + .../tests/python/test_histogramtools_strict.py | 565 + .../telemetry/tests/python/test_parse_events.py | 165 + .../telemetry/tests/python/test_parse_scalars.py | 266 + .../telemetry/tests/python/test_usecounters.py | 69 + .../tests/unit/TelemetryArchiveTesting.jsm | 81 + .../tests/unit/data/search-extensions/engines.json | 12 + .../telemetrySearchIdentifier/manifest.json | 29 + toolkit/components/telemetry/tests/unit/engine.xml | 7 + toolkit/components/telemetry/tests/unit/head.js | 589 + .../telemetry/tests/unit/testNoPDB32.dll | Bin 0 -> 8704 bytes .../telemetry/tests/unit/testNoPDB64.dll | Bin 0 -> 10240 bytes .../telemetry/tests/unit/testNoPDBAArch64.dll | Bin 0 -> 1536 bytes .../telemetry/tests/unit/testUnicodePDB32.dll | Bin 0 -> 8704 bytes .../telemetry/tests/unit/testUnicodePDB64.dll | Bin 0 -> 10752 bytes .../telemetry/tests/unit/testUnicodePDBAArch64.dll | Bin 0 -> 7168 bytes .../telemetry/tests/unit/test_ChildEvents.js | 226 + .../telemetry/tests/unit/test_ChildHistograms.js | 333 + .../telemetry/tests/unit/test_ChildScalars.js | 242 + .../telemetry/tests/unit/test_CoveragePing.js | 115 + .../tests/unit/test_EcosystemTelemetry.js | 430 + .../telemetry/tests/unit/test_EventPing.js | 290 + .../telemetry/tests/unit/test_HealthPing.js | 403 + .../tests/unit/test_MigratePendingPings.js | 151 + .../telemetry/tests/unit/test_ModulesPing.js | 297 + .../telemetry/tests/unit/test_PingAPI.js | 711 + .../telemetry/tests/unit/test_PingSender.js | 229 + .../telemetry/tests/unit/test_PrioPing.js | 140 + .../telemetry/tests/unit/test_SocketScalars.js | 55 + .../tests/unit/test_SubsessionChaining.js | 282 + .../tests/unit/test_SyncPingIntegration.js | 76 + .../tests/unit/test_TelemetryAndroidEnvironment.js | 62 + .../unit/test_TelemetryChildEvents_buildFaster.js | 132 + .../tests/unit/test_TelemetryClientID_reset.js | 180 + .../tests/unit/test_TelemetryController.js | 1271 ++ .../tests/unit/test_TelemetryControllerBuildID.js | 69 + .../tests/unit/test_TelemetryControllerShutdown.js | 75 + .../tests/unit/test_TelemetryController_idle.js | 76 + .../tests/unit/test_TelemetryEnvironment.js | 2711 +++ .../telemetry/tests/unit/test_TelemetryEvents.js | 1111 ++ .../tests/unit/test_TelemetryEvents_buildFaster.js | 468 + .../tests/unit/test_TelemetryFlagClear.js | 29 + .../tests/unit/test_TelemetryHistograms.js | 2067 +++ .../tests/unit/test_TelemetryLateWrites.js | 145 + .../tests/unit/test_TelemetryLockCount.js | 58 + .../tests/unit/test_TelemetryReportingPolicy.js | 348 + .../telemetry/tests/unit/test_TelemetryScalars.js | 1090 ++ .../unit/test_TelemetryScalars_buildFaster.js | 236 + .../unit/test_TelemetryScalars_impressionId.js | 49 + .../tests/unit/test_TelemetryScalars_multistore.js | 415 + .../telemetry/tests/unit/test_TelemetrySend.js | 1095 ++ .../tests/unit/test_TelemetrySendOldPings.js | 626 + .../telemetry/tests/unit/test_TelemetrySession.js | 2395 +++ .../test_TelemetrySession_abortedSessionQueued.js | 187 + .../unit/test_TelemetrySession_activeTicks.js | 119 + .../tests/unit/test_TelemetryStopwatch.js | 196 + .../tests/unit/test_TelemetryTimestamps.js | 78 + .../telemetry/tests/unit/test_TelemetryUtils.js | 34 + .../tests/unit/test_ThirdPartyModulesPing.js | 269 + .../telemetry/tests/unit/test_UninstallPing.js | 127 + .../telemetry/tests/unit/test_UserInteraction.js | 134 + .../tests/unit/test_UserInteraction_annotations.js | 481 + .../telemetry/tests/unit/test_bug1555798.js | 50 + .../telemetry/tests/unit/test_client_id.js | 372 + .../components/telemetry/tests/unit/xpcshell.ini | 100 + .../telemetry/tests/utils/TelemetryTestUtils.jsm | 368 + 312 files changed, 108349 insertions(+) create mode 100644 toolkit/components/telemetry/Events.yaml create mode 100644 toolkit/components/telemetry/Histograms.json create mode 100644 toolkit/components/telemetry/Makefile.in create mode 100644 toolkit/components/telemetry/Processes.yaml create mode 100644 toolkit/components/telemetry/Scalars.yaml create mode 100644 toolkit/components/telemetry/TelemetryOriginEnums.h create mode 100644 toolkit/components/telemetry/TelemetryStartup.jsm create mode 100644 toolkit/components/telemetry/TelemetryStartup.manifest create mode 100644 toolkit/components/telemetry/UserInteractions.yaml create mode 100644 toolkit/components/telemetry/app/ClientID.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryArchive.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryController.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryControllerBase.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryControllerContent.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryControllerParent.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryEnvironment.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryReportingPolicy.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryScheduler.jsm create mode 100644 toolkit/components/telemetry/app/TelemetrySend.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryStorage.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryTimestamps.jsm create mode 100644 toolkit/components/telemetry/app/TelemetryUtils.jsm create mode 100644 toolkit/components/telemetry/build_scripts/README.md create mode 100644 toolkit/components/telemetry/build_scripts/gen_event_data.py create mode 100644 toolkit/components/telemetry/build_scripts/gen_event_enum.py create mode 100644 toolkit/components/telemetry/build_scripts/gen_histogram_data.py create mode 100644 toolkit/components/telemetry/build_scripts/gen_histogram_enum.py create mode 100644 toolkit/components/telemetry/build_scripts/gen_histogram_phf.py create mode 100644 toolkit/components/telemetry/build_scripts/gen_process_data.py create mode 100644 toolkit/components/telemetry/build_scripts/gen_process_enum.py create mode 100644 toolkit/components/telemetry/build_scripts/gen_scalar_data.py create mode 100644 toolkit/components/telemetry/build_scripts/gen_scalar_enum.py create mode 100644 toolkit/components/telemetry/build_scripts/gen_userinteraction_data.py create mode 100644 toolkit/components/telemetry/build_scripts/gen_userinteraction_phf.py create mode 100644 toolkit/components/telemetry/build_scripts/mozparsers/__init__.py create mode 100644 toolkit/components/telemetry/build_scripts/mozparsers/parse_events.py create mode 100644 toolkit/components/telemetry/build_scripts/mozparsers/parse_histograms.py create mode 100644 toolkit/components/telemetry/build_scripts/mozparsers/parse_scalars.py create mode 100644 toolkit/components/telemetry/build_scripts/mozparsers/parse_user_interactions.py create mode 100644 toolkit/components/telemetry/build_scripts/mozparsers/shared_telemetry_utils.py create mode 100644 toolkit/components/telemetry/build_scripts/run_glean_parser.py create mode 100644 toolkit/components/telemetry/build_scripts/setup.py create mode 100644 toolkit/components/telemetry/components.conf create mode 100644 toolkit/components/telemetry/core/EventInfo.h create mode 100644 toolkit/components/telemetry/core/ScalarInfo.h create mode 100644 toolkit/components/telemetry/core/Stopwatch.cpp create mode 100644 toolkit/components/telemetry/core/Stopwatch.h create mode 100644 toolkit/components/telemetry/core/Telemetry.cpp create mode 100644 toolkit/components/telemetry/core/Telemetry.h create mode 100644 toolkit/components/telemetry/core/TelemetryCommon.cpp create mode 100644 toolkit/components/telemetry/core/TelemetryCommon.h create mode 100644 toolkit/components/telemetry/core/TelemetryEvent.cpp create mode 100644 toolkit/components/telemetry/core/TelemetryEvent.h create mode 100644 toolkit/components/telemetry/core/TelemetryHistogram.cpp create mode 100644 toolkit/components/telemetry/core/TelemetryHistogram.h create mode 100644 toolkit/components/telemetry/core/TelemetryOrigin.cpp create mode 100644 toolkit/components/telemetry/core/TelemetryOrigin.h create mode 100644 toolkit/components/telemetry/core/TelemetryOriginData.inc create mode 100644 toolkit/components/telemetry/core/TelemetryScalar.cpp create mode 100644 toolkit/components/telemetry/core/TelemetryScalar.h create mode 100644 toolkit/components/telemetry/core/TelemetryUserInteraction.cpp create mode 100644 toolkit/components/telemetry/core/TelemetryUserInteraction.h create mode 100644 toolkit/components/telemetry/core/UserInteractionInfo.h create mode 100644 toolkit/components/telemetry/core/components.conf create mode 100644 toolkit/components/telemetry/core/ipc/TelemetryComms.h create mode 100644 toolkit/components/telemetry/core/ipc/TelemetryIPC.cpp create mode 100644 toolkit/components/telemetry/core/ipc/TelemetryIPC.h create mode 100644 toolkit/components/telemetry/core/ipc/TelemetryIPCAccumulator.cpp create mode 100644 toolkit/components/telemetry/core/ipc/TelemetryIPCAccumulator.h create mode 100644 toolkit/components/telemetry/core/nsITelemetry.idl create mode 100644 toolkit/components/telemetry/docs/collection/custom-pings.rst create mode 100644 toolkit/components/telemetry/docs/collection/events.rst create mode 100644 toolkit/components/telemetry/docs/collection/experiments.rst create mode 100644 toolkit/components/telemetry/docs/collection/histograms.rst create mode 100644 toolkit/components/telemetry/docs/collection/index.rst create mode 100644 toolkit/components/telemetry/docs/collection/measuring-time.rst create mode 100644 toolkit/components/telemetry/docs/collection/origin.rst create mode 100644 toolkit/components/telemetry/docs/collection/sampleHistogram.png create mode 100644 toolkit/components/telemetry/docs/collection/scalars.rst create mode 100644 toolkit/components/telemetry/docs/collection/uptake.rst create mode 100644 toolkit/components/telemetry/docs/collection/use-counters.rst create mode 100644 toolkit/components/telemetry/docs/collection/user-interactions.rst create mode 100644 toolkit/components/telemetry/docs/collection/webextension-api.rst create mode 100644 toolkit/components/telemetry/docs/concepts/archiving.rst create mode 100644 toolkit/components/telemetry/docs/concepts/crashes.rst create mode 100644 toolkit/components/telemetry/docs/concepts/index.rst create mode 100644 toolkit/components/telemetry/docs/concepts/pings.rst create mode 100644 toolkit/components/telemetry/docs/concepts/sessions.rst create mode 100644 toolkit/components/telemetry/docs/concepts/submission.rst create mode 100644 toolkit/components/telemetry/docs/concepts/subsession_triggers.png create mode 100644 toolkit/components/telemetry/docs/data/activation-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/addons-malware-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/anonymous-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/backgroundhangmonitor-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/common-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/core-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/coverage-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/crash-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/default-browser-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/deletion-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/deletion-request-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/downgrade-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/ecosystem-telemetry.rst create mode 100644 toolkit/components/telemetry/docs/data/environment.rst create mode 100644 toolkit/components/telemetry/docs/data/event-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/first-shutdown-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/health-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/heartbeat-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/index.rst create mode 100644 toolkit/components/telemetry/docs/data/install-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/launcher-process-failure-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/main-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/modules-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/new-profile-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/pioneer-study.rst create mode 100644 toolkit/components/telemetry/docs/data/prio-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/sync-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/third-party-modules-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/uitour-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/uninstall-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/update-ping.rst create mode 100644 toolkit/components/telemetry/docs/data/xfocsp-error-report-ping.rst create mode 100644 toolkit/components/telemetry/docs/index.rst create mode 100644 toolkit/components/telemetry/docs/internals/geckoview-streaming.rst create mode 100644 toolkit/components/telemetry/docs/internals/index.rst create mode 100644 toolkit/components/telemetry/docs/internals/mentored-bugs.rst create mode 100644 toolkit/components/telemetry/docs/internals/pingsender.rst create mode 100644 toolkit/components/telemetry/docs/internals/preferences.rst create mode 100644 toolkit/components/telemetry/docs/internals/review.rst create mode 100644 toolkit/components/telemetry/docs/internals/tests.rst create mode 100644 toolkit/components/telemetry/docs/obsolete/fhr/architecture.rst create mode 100644 toolkit/components/telemetry/docs/obsolete/fhr/dataformat.rst create mode 100644 toolkit/components/telemetry/docs/obsolete/fhr/identifiers.rst create mode 100644 toolkit/components/telemetry/docs/obsolete/fhr/index.rst create mode 100644 toolkit/components/telemetry/docs/obsolete/hybrid-content.rst create mode 100644 toolkit/components/telemetry/docs/obsolete/index.rst create mode 100644 toolkit/components/telemetry/docs/obsolete/optout-ping.rst create mode 100644 toolkit/components/telemetry/docs/obsolete/uitelemetry/index.rst create mode 100644 toolkit/components/telemetry/docs/start/adding-a-new-probe.rst create mode 100644 toolkit/components/telemetry/docs/start/index.rst create mode 100644 toolkit/components/telemetry/docs/start/report-gecko-telemetry-in-glean.rst create mode 100644 toolkit/components/telemetry/geckoview/gtest/TestGeckoViewStreaming.cpp create mode 100644 toolkit/components/telemetry/geckoview/gtest/moz.build create mode 100644 toolkit/components/telemetry/geckoview/streaming/GeckoViewStreamingTelemetry.cpp create mode 100644 toolkit/components/telemetry/geckoview/streaming/GeckoViewStreamingTelemetry.h create mode 100644 toolkit/components/telemetry/geckoview/streaming/metrics.yaml create mode 100644 toolkit/components/telemetry/histogram-allowlists.json create mode 100644 toolkit/components/telemetry/moz.build create mode 100644 toolkit/components/telemetry/other/CombinedStacks.cpp create mode 100644 toolkit/components/telemetry/other/CombinedStacks.h create mode 100644 toolkit/components/telemetry/other/ProcessedStack.cpp create mode 100644 toolkit/components/telemetry/other/ProcessedStack.h create mode 100644 toolkit/components/telemetry/other/TelemetryIOInterposeObserver.cpp create mode 100644 toolkit/components/telemetry/other/TelemetryIOInterposeObserver.h create mode 100644 toolkit/components/telemetry/other/UITelemetry.jsm create mode 100644 toolkit/components/telemetry/other/UntrustedModules.cpp create mode 100644 toolkit/components/telemetry/other/UntrustedModules.h create mode 100644 toolkit/components/telemetry/other/UntrustedModulesBackupService.cpp create mode 100644 toolkit/components/telemetry/other/UntrustedModulesBackupService.h create mode 100644 toolkit/components/telemetry/other/UntrustedModulesDataSerializer.cpp create mode 100644 toolkit/components/telemetry/other/UntrustedModulesDataSerializer.h create mode 100644 toolkit/components/telemetry/pings/CoveragePing.jsm create mode 100644 toolkit/components/telemetry/pings/EcosystemTelemetry.jsm create mode 100644 toolkit/components/telemetry/pings/EventPing.jsm create mode 100644 toolkit/components/telemetry/pings/HealthPing.jsm create mode 100644 toolkit/components/telemetry/pings/ModulesPing.jsm create mode 100644 toolkit/components/telemetry/pings/PrioPing.jsm create mode 100644 toolkit/components/telemetry/pings/TelemetrySession.jsm create mode 100644 toolkit/components/telemetry/pings/UninstallPing.jsm create mode 100644 toolkit/components/telemetry/pings/UntrustedModulesPing.jsm create mode 100644 toolkit/components/telemetry/pings/UpdatePing.jsm create mode 100644 toolkit/components/telemetry/pingsender/moz.build create mode 100644 toolkit/components/telemetry/pingsender/pingsender.cpp create mode 100644 toolkit/components/telemetry/pingsender/pingsender.exe.manifest create mode 100644 toolkit/components/telemetry/pingsender/pingsender.h create mode 100644 toolkit/components/telemetry/pingsender/pingsender_unix_common.cpp create mode 100644 toolkit/components/telemetry/pingsender/pingsender_win.cpp create mode 100644 toolkit/components/telemetry/telemetry-constants.mozbuild create mode 100644 toolkit/components/telemetry/tests/addons/dictionary/manifest.json create mode 100644 toolkit/components/telemetry/tests/addons/long-fields/manifest.json create mode 100644 toolkit/components/telemetry/tests/addons/restartless/manifest.json create mode 100644 toolkit/components/telemetry/tests/addons/signed-webext/.web-extension-id create mode 100644 toolkit/components/telemetry/tests/addons/signed-webext/META-INF/manifest.mf create mode 100644 toolkit/components/telemetry/tests/addons/signed-webext/META-INF/mozilla.rsa create mode 100644 toolkit/components/telemetry/tests/addons/signed-webext/META-INF/mozilla.sf create mode 100644 toolkit/components/telemetry/tests/addons/signed-webext/manifest.json create mode 100644 toolkit/components/telemetry/tests/addons/system/manifest.json create mode 100644 toolkit/components/telemetry/tests/browser/browser.ini create mode 100644 toolkit/components/telemetry/tests/browser/browser_DynamicScalars.js create mode 100644 toolkit/components/telemetry/tests/browser/browser_UpdatePingSuccess.js create mode 100644 toolkit/components/telemetry/tests/browser/browser_media_element_in_page_scalar.js create mode 100644 toolkit/components/telemetry/tests/browser/file_iframe.html create mode 100644 toolkit/components/telemetry/tests/browser/file_media.html create mode 100644 toolkit/components/telemetry/tests/browser/gizmo.mp4 create mode 100644 toolkit/components/telemetry/tests/gtest/TelemetryFixture.cpp create mode 100644 toolkit/components/telemetry/tests/gtest/TelemetryFixture.h create mode 100644 toolkit/components/telemetry/tests/gtest/TelemetryTestHelpers.cpp create mode 100644 toolkit/components/telemetry/tests/gtest/TelemetryTestHelpers.h create mode 100644 toolkit/components/telemetry/tests/gtest/TestCombinedStacks.cpp create mode 100644 toolkit/components/telemetry/tests/gtest/TestCounters.cpp create mode 100644 toolkit/components/telemetry/tests/gtest/TestEvents.cpp create mode 100644 toolkit/components/telemetry/tests/gtest/TestHistograms.cpp create mode 100644 toolkit/components/telemetry/tests/gtest/TestOrigins.cpp create mode 100644 toolkit/components/telemetry/tests/gtest/TestScalars.cpp create mode 100644 toolkit/components/telemetry/tests/gtest/moz.build create mode 100644 toolkit/components/telemetry/tests/integration/tests/conftest.py create mode 100644 toolkit/components/telemetry/tests/integration/tests/python.ini create mode 100644 toolkit/components/telemetry/tests/integration/tests/resources/helloworld/helloworld.html create mode 100644 toolkit/components/telemetry/tests/integration/tests/resources/helloworld/manifest.json create mode 100644 toolkit/components/telemetry/tests/integration/tests/test_deletion_request_ping.py create mode 100644 toolkit/components/telemetry/tests/integration/tests/test_event_ping.py create mode 100644 toolkit/components/telemetry/tests/integration/tests/test_main_tab_scalars.py create mode 100644 toolkit/components/telemetry/tests/integration/tests/test_search_counts_across_sessions.py create mode 100644 toolkit/components/telemetry/tests/integration/tests/test_subsession_management.py create mode 100644 toolkit/components/telemetry/tests/marionette/harness/MANIFEST.in create mode 100644 toolkit/components/telemetry/tests/marionette/harness/requirements.txt create mode 100644 toolkit/components/telemetry/tests/marionette/harness/setup.py create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/__init__.py create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/fog_ping_filters.py create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/fog_ping_server.py create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/fog_testcase.py create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/ping_filters.py create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/ping_server.py create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/resources/helloworld/helloworld.html create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/resources/helloworld/manifest.json create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/runner.py create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/runtests.py create mode 100644 toolkit/components/telemetry/tests/marionette/harness/telemetry_harness/testcase.py create mode 100644 toolkit/components/telemetry/tests/marionette/mach_commands.py create mode 100644 toolkit/components/telemetry/tests/marionette/moz.build create mode 100644 toolkit/components/telemetry/tests/marionette/tests/client/manifest.ini create mode 100644 toolkit/components/telemetry/tests/marionette/tests/client/test_deletion_request_ping.py create mode 100644 toolkit/components/telemetry/tests/marionette/tests/client/test_event_ping.py create mode 100644 toolkit/components/telemetry/tests/marionette/tests/client/test_fog_custom_ping.py create mode 100644 toolkit/components/telemetry/tests/marionette/tests/client/test_fog_deletion_request_ping.py create mode 100644 toolkit/components/telemetry/tests/marionette/tests/client/test_main_tab_scalars.py create mode 100644 toolkit/components/telemetry/tests/marionette/tests/client/test_search_counts_across_sessions.py create mode 100644 toolkit/components/telemetry/tests/marionette/tests/client/test_subsession_management.py create mode 100644 toolkit/components/telemetry/tests/marionette/tests/manifest.ini create mode 100644 toolkit/components/telemetry/tests/marionette/tests/unit/manifest.ini create mode 100644 toolkit/components/telemetry/tests/marionette/tests/unit/test_ping_server_received_ping.py create mode 100644 toolkit/components/telemetry/tests/modules-test.cpp create mode 100644 toolkit/components/telemetry/tests/moz.build create mode 100644 toolkit/components/telemetry/tests/python/python.ini create mode 100644 toolkit/components/telemetry/tests/python/test_gen_event_data_json.py create mode 100644 toolkit/components/telemetry/tests/python/test_gen_scalar_data_json.py create mode 100644 toolkit/components/telemetry/tests/python/test_histogramtools_non_strict.py create mode 100644 toolkit/components/telemetry/tests/python/test_histogramtools_strict.py create mode 100644 toolkit/components/telemetry/tests/python/test_parse_events.py create mode 100644 toolkit/components/telemetry/tests/python/test_parse_scalars.py create mode 100644 toolkit/components/telemetry/tests/python/test_usecounters.py create mode 100644 toolkit/components/telemetry/tests/unit/TelemetryArchiveTesting.jsm create mode 100644 toolkit/components/telemetry/tests/unit/data/search-extensions/engines.json create mode 100644 toolkit/components/telemetry/tests/unit/data/search-extensions/telemetrySearchIdentifier/manifest.json create mode 100644 toolkit/components/telemetry/tests/unit/engine.xml create mode 100644 toolkit/components/telemetry/tests/unit/head.js create mode 100644 toolkit/components/telemetry/tests/unit/testNoPDB32.dll create mode 100644 toolkit/components/telemetry/tests/unit/testNoPDB64.dll create mode 100755 toolkit/components/telemetry/tests/unit/testNoPDBAArch64.dll create mode 100644 toolkit/components/telemetry/tests/unit/testUnicodePDB32.dll create mode 100644 toolkit/components/telemetry/tests/unit/testUnicodePDB64.dll create mode 100755 toolkit/components/telemetry/tests/unit/testUnicodePDBAArch64.dll create mode 100644 toolkit/components/telemetry/tests/unit/test_ChildEvents.js create mode 100644 toolkit/components/telemetry/tests/unit/test_ChildHistograms.js create mode 100644 toolkit/components/telemetry/tests/unit/test_ChildScalars.js create mode 100644 toolkit/components/telemetry/tests/unit/test_CoveragePing.js create mode 100644 toolkit/components/telemetry/tests/unit/test_EcosystemTelemetry.js create mode 100644 toolkit/components/telemetry/tests/unit/test_EventPing.js create mode 100644 toolkit/components/telemetry/tests/unit/test_HealthPing.js create mode 100644 toolkit/components/telemetry/tests/unit/test_MigratePendingPings.js create mode 100644 toolkit/components/telemetry/tests/unit/test_ModulesPing.js create mode 100644 toolkit/components/telemetry/tests/unit/test_PingAPI.js create mode 100644 toolkit/components/telemetry/tests/unit/test_PingSender.js create mode 100644 toolkit/components/telemetry/tests/unit/test_PrioPing.js create mode 100644 toolkit/components/telemetry/tests/unit/test_SocketScalars.js create mode 100644 toolkit/components/telemetry/tests/unit/test_SubsessionChaining.js create mode 100644 toolkit/components/telemetry/tests/unit/test_SyncPingIntegration.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryAndroidEnvironment.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryChildEvents_buildFaster.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryClientID_reset.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryController.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryControllerBuildID.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryControllerShutdown.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryController_idle.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryEvents.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryEvents_buildFaster.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryFlagClear.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryHistograms.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryLateWrites.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryLockCount.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryReportingPolicy.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryScalars.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryScalars_buildFaster.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryScalars_impressionId.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryScalars_multistore.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetrySend.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetrySendOldPings.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetrySession.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetrySession_abortedSessionQueued.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetrySession_activeTicks.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryStopwatch.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryTimestamps.js create mode 100644 toolkit/components/telemetry/tests/unit/test_TelemetryUtils.js create mode 100644 toolkit/components/telemetry/tests/unit/test_ThirdPartyModulesPing.js create mode 100644 toolkit/components/telemetry/tests/unit/test_UninstallPing.js create mode 100644 toolkit/components/telemetry/tests/unit/test_UserInteraction.js create mode 100644 toolkit/components/telemetry/tests/unit/test_UserInteraction_annotations.js create mode 100644 toolkit/components/telemetry/tests/unit/test_bug1555798.js create mode 100644 toolkit/components/telemetry/tests/unit/test_client_id.js create mode 100644 toolkit/components/telemetry/tests/unit/xpcshell.ini create mode 100644 toolkit/components/telemetry/tests/utils/TelemetryTestUtils.jsm (limited to 'toolkit/components/telemetry') diff --git a/toolkit/components/telemetry/Events.yaml b/toolkit/components/telemetry/Events.yaml new file mode 100644 index 0000000000..95218b1c94 --- /dev/null +++ b/toolkit/components/telemetry/Events.yaml @@ -0,0 +1,2578 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +partner_link: + click: + objects: ["newtab", "urlbar"] + release_channel_collection: opt-out + products: + - "firefox" + record_in_processes: ["main"] + description: > + This is recorded when clicking a partner link. The value is the partner. + bug_numbers: [1637217, 1644442, 1643426] + notification_emails: + - "dao@mozilla.com" + expiry_version: never + attribution: + objects: ["success", "failure", "abort"] + release_channel_collection: opt-out + products: + - "firefox" + record_in_processes: ["main"] + description: > + This is recorded when sending an attribution request for a partner link. The value is the partner. + bug_numbers: [1637217, 1644442, 1643426] + notification_emails: + - "dao@mozilla.com" + expiry_version: never + +activity_stream: + event: + objects: [ + "ARCHIVE_FROM_POCKET", + "BLOCK", + "BOOKMARK_ADD", + "BOOKMARK_DELETE", + "CLICK", + "CLICK_PRIVACY_INFO", + "CLOSE_NEWTAB_PREFS", + "SHOW_PERSONALIZE", + "HIDE_PERSONALIZE", + "DELETE", + "DELETE_FROM_POCKET", + "DELETE_CONFIRM", + "DIALOG_CANCEL", + "DIALOG_OPEN", + "DRAG", + "DROP", + "MIGRATION_CANCEL", + "MIGRATION_START", + "OPEN_NEWTAB_PREFS", + "OPEN_NEW_WINDOW", + "OPEN_PRIVATE_WINDOW", + "PIN", + "PREF_CHANGED", + "PREVIEW_REQUEST", + "SAVE_TO_POCKET", + "SEARCH", + "SEARCH_EDIT_ADD", + "SEARCH_EDIT_CLOSE", + "SEARCH_EDIT_DELETE", + "SEARCH_HANDOFF", + "SHOW_PRIVACY_INFO", + "SKIPPED_SIGNIN", + "SUBMIT_EMAIL", + "DISCLAIMER_ACKED", + "MENU_ADD_SEARCH", + "MENU_ADD_TOPSITE", + "MENU_COLLAPSE", + "MENU_EXPAND", + "MENU_MANAGE", + "MENU_MOVE_DOWN", + "MENU_MOVE_UP", + "MENU_PRIVACY_NOTICE", + "MENU_REMOVE", + "TOP_SITES_EDIT", + "TOP_SITES_EDIT_CLOSE", + "TOPSITE_SPONSOR_INFO", + "UNPIN"] + release_channel_collection: opt-out + products: + - "firefox" + - "fennec" + record_in_processes: ["main"] + description: > + This is recorded with every user interaction on Activity Stream elements. + bug_numbers: [1429497, 1429489, 1514732] + notification_emails: + - "najiang@mozilla.com" + - "msamuel@mozilla.com" + - "rrosario@mozilla.com" + expiry_version: never + extra_keys: + addon_version: The Activity Stream addon version. + session_id: The ID of the Activity Stream session in which the event occurred + page: about:home or about_newtab - the page where the event occurred + user_prefs: An integer representaing a user's A-S settings. + action_position: The index of card receiving interactions. + end: + objects: ["session"] + release_channel_collection: opt-out + products: + - "firefox" + - "fennec" + record_in_processes: ["main"] + description: > + This is recorded with every session ended in Activity Stream. + bug_numbers: [1429497, 1429489] + notification_emails: + - "najiang@mozilla.com" + - "msamuel@mozilla.com" + expiry_version: never + extra_keys: + addon_version: The Activity Stream addon version. + session_id: The ID of the Activity Stream session in which the event occurred + page: about:home or about_newtab - the page where the event occurred + user_prefs: An integer representaing a user's A-S settings. + +addonsManager: + install: + description: > + These events are recorded during the install and update flow for extensions and themes, + the value of the event is an install_id shared by the events related to the same install + or update flow. + objects: ["extension", "theme", "locale", "dictionary", "other", "unknown"] + methods: ["install", "update"] + extra_keys: + addon_id: A string which identify the extension (when available) + download_time: The number of ms needed to complete the download + error: The AddonManager error related to an install or update failure. + source: > + The source that originally triggered the add-on installation, one of "about:addons", + "about:debugging", "about:preferences", "amo", "app:profile", "disco", "distribution", + "extension", "enterprise-policy", "file-url", "geckoview-app", "gmp-plugin", + "internal", "plugin", "rtamo", "sync", "system-addon", "temporary-addon", "unknown". + method: > + The method used by the source to install the add-on (included when the source can use more than one, + e.g. install events with source "about:addons" may have "install-from-file" or "url" as method), + one of "amWebAPI", "drag-and-drop", "installTrigger", "install-from-file", "link", + "management-webext-api", "sideload", "url". + num_strings: The number of permission description strings in the extension permission doorhanger + updated_from: Determine if an update has been requested by the user or the application ("app" / "user") + step: > + The current step in the install or update flow: + - started, postponed, cancelled, failed, permissions_prompt, completed + - site_warning, site_blocked, install_disabled_warning + - download_started, download_completed, download_failed + notification_emails: ["addons-dev-internal@mozilla.com"] + expiry_version: "92" + products: + - "firefox" + - "fennec" + - "thunderbird" + record_in_processes: ["main"] + bug_numbers: [1433335, 1515697, 1523641, 1549770, 1590736, 1630596, 1672570] + release_channel_collection: opt-out + install_stats: + description: > + These events are recorded at the end of the install flow, but only when + the source that originally triggered the add-on installation is "amo" or + "disco". The value of an event is the SHA256 hash of the addon_id. + objects: ["extension", "theme", "locale", "dictionary", "other", "unknown"] + extra_keys: + addon_id: > + A string which identifies the add-on. This value might be trimmed. + utm_campaign: > + The specific product promotion or strategic campaign that drives + traffic to the install page. + utm_content: > + The specific item that a person clicks on to access the install page + (such as an A/B test, a website banner, or a specific ad). + utm_medium: The channel used to share the install page. + utm_source: > + The name of the product, domain of the website that drives traffic to + the install page. + notification_emails: ["addons-dev-internal@mozilla.com"] + expiry_version: never + products: + - "firefox" + record_in_processes: ["main"] + bug_numbers: [1653020] + release_channel_collection: opt-out + manage: + description: > + This events are recorded when an installed add-ons is being disable/enabled/uninstalled, + the value of the event is the addon_id (which also allow to correlate multiple events + related to each other). + objects: ["extension", "theme", "locale", "dictionary", "other"] + methods: ["disable", "enable", "sideload_prompt", "uninstall"] + extra_keys: + source: > + The source from which the addon has been installed (See extra_keys.source description from + addonsManager.install telemetry event definition). + method: > + The method used by the source to install the add-on (included when the source can use more than one, + e.g. install events with source "about:addons" may have "install-from-file" or "url" as method). + num_strings: The number of permission description strings in the extension permission doorhanger + notification_emails: ["addons-dev-internal@mozilla.com"] + expiry_version: "92" + products: + - "firefox" + - "fennec" + - "thunderbird" + record_in_processes: ["main"] + bug_numbers: [1433335, 1515697, 1523641, 1549770, 1590736, 1630596, 1672570] + release_channel_collection: opt-out + link: + description: > + A link method event triggered when a user follows a link. The object is the page that the link is on: + aboutAddons or aboutPreferences. The value is where the link goes: about:addons, about:preferences, + about:debugging, support (on SUMO) or rating, search, author (on AMO) or homepage (on AMO or elsewhere), + discohome (on AMO via a recommended add-on card), + discomore (on AMO via discover), disconotice (on SUMO via discover) + objects: + - aboutAddons + - aboutPreferences + - customize + extra_keys: + view: The view the user was on (discover, list, detail or updates). + type: "For search: the type of page for this view (especially extension or theme list)." + notification_emails: ["addons-dev-internal@mozilla.com"] + expiry_version: "92" + products: + - "firefox" + - "fennec" + record_in_processes: ["main"] + bug_numbers: [1500147, 1546248, 1590736, 1630596, 1672570] + release_channel_collection: opt-out + view: + description: > + A view method event is triggered when a user views a page in about:addons. The object is always + aboutAddons. The value is the view name: discover, list, updates or detail. + objects: + - aboutAddons + extra_keys: + type: > + The type of the view, for about:addons views shared between the supported add-on types + it is set to an extension type, while for views related to updates it is set to + "recent" or "available". + source: The source of the installation for an add-on. + addonId: The id of the add-on being acted upon. + notification_emails: ["addons-dev-internal@mozilla.com"] + expiry_version: "92" + products: + - "firefox" + - "fennec" + record_in_processes: ["main"] + bug_numbers: [1500147, 1590736, 1630596, 1672570] + release_channel_collection: opt-out + action: + description: > + An action method event is triggered when a user performs an action through the UI on an add-on + (besides the object "appUpgrade" which is referred to action performed automatically for the user + as part of a Firefox upgrade). The object is where in the product the action was performed. + objects: + - aboutAddons + - browserAction + - customize + - pageAction + - doorhanger + - appUpgrade + extra_keys: + action: > + The action that was performed. Options include disable, enable, uninstall, undo, contribute, preferences, + installFromFile, manage, dismiss, checkForUpdates, checkForUpdate, setUpdatePolicy, setAddonUpdate, + installFromRecommendation, resetUpdatePolicy, privateBrowsingAllowed and releaseNotes. + type: "For enable, disable, uninstall, undo and installFromRecommendation: the add-on type that is being acted upon." + view: > + The view for the event when object is aboutAddons, or the specific doorhanger when object is doorhanger. + addonId: The id of the add-on being acted upon. + notification_emails: ["addons-dev-internal@mozilla.com"] + expiry_version: "92" + products: + - "firefox" + - "fennec" + record_in_processes: ["main"] + bug_numbers: [1500147, 1513344, 1529347, 1546248, 1590736, 1630596, 1672570] + release_channel_collection: opt-out + report: + description: > + An abuse report submitted by a user for a given extension. The object of the event + represent the report entry point, the value is the id of the addon being reported. + objects: + - amo + - menu + - toolbar_context_menu + - uninstall + extra_keys: + addon_type: > + The type of the add-on being reported (missing on ERROR_ADDON_NOT_FOUND, ERROR_AMODETAILS_NOTFOUND + and ERROR_AMODETAILS_FAILURE). + error_type: > + AbuseReport Error Type (included in case of submission failures). The error types include + ERROR_ABORTED_SUBMIT, ERROR_ADDON_NOT_FOUND, ERROR_CLIENT, ERROR_NETWORK, ERROR_UNKNOWN, + ERROR_RECENT_SUBMIT, ERROR_SERVER, ERROR_AMODETAILS_NOTFOUND, ERROR_AMODETAILS_FAILURE. + notification_emails: ["addons-dev-internal@mozilla.com"] + expiry_version: "92" + products: + - "firefox" + - "fennec" + - "thunderbird" + record_in_processes: ["main"] + bug_numbers: [1544927, 1580561, 1590736, 1630596, 1672570] + release_channel_collection: opt-out + +downloads: + added: + description: > + Sent when downloading a new file. Possible values are in contained in DownloadsCommon::kFileExtensions. + All other downloads not in the listare marked as other. + objects: ["fileExtension"] + bug_numbers: [1627676] + notification_emails: ["rtestard@mozilla.com", "emalysz@mozilla.com"] + products: + - "firefox" + record_in_processes: ["main"] + release_channel_collection: opt-out + expiry_version: never + +form_autocomplete: + show: + objects: ["logins"] + bug_numbers: [1619498, 1628849] + description: >- + An content form autocomplete popup was shown. Details on the timing and context are provided. + The `value` is the number of milliseconds since the autocomplete search started. + expiry_version: never + extra_keys: + acFieldName: The "field name" token (last one) of the field's autocomplete attribute. + fieldType: The `type` property value of the field. + generatedPasswo: The number of generated password rows shown. + hadPrevious: Whether the autocomplete results had cached previous results it could use. + typeWasPassword: Whether the input `type` was ever "password". + insecureWarning: The number of insecure login field warning rows shown (should be 0 or 1). + login: The number of login rows shown (with or without the domain line). + importableLogin: The number of import suggestion rows shown. + loginsFooter: The number of "View Saved Logins" footer row shown. + stringLength: Length of the text in the field that triggered these results. + notification_emails: ["passwords-dev@mozilla.org"] + products: + - firefox + record_in_processes: ["main"] + release_channel_collection: opt-out + +creditcard: + doorhanger: + description: >- + User interactions for the browser credit card autofill doorhanger. + objects: + - "capture_doorhanger" + - "update_doorhanger" + methods: + - "show" + - "save" + - "update" + - "cancel" + - "disable" + bug_numbers: [1653073, 1653083] + notification_emails: ["jmathies@mozilla.com", "chsiang@mozilla.com"] + expiry_version: "93" + products: + - "firefox" + record_in_processes: ["main"] + release_channel_collection: opt-out + manage: + description: >- + User interactions for credit card autofill preferences management UI. + objects: + - "manage" + methods: + - "show" + - "add" + - "delete" + - "show_entry" + - "edit" + bug_numbers: [1653073, 1654167] + notification_emails: ["jmathies@mozilla.com", "chsiang@mozilla.com"] + expiry_version: "93" + products: + - "firefox" + record_in_processes: ["main"] + release_channel_collection: opt-out + cc_form: + description: >- + User interactions for credit card autofill forms + objects: + - "cc_form" + methods: + - "detected" + - "popup_shown" + - "filled" + - "filled_modified" + - "submitted" + bug_numbers: [1653073, 1653162] + notification_emails: ["jmathies@mozilla.com", "chsiang@mozilla.com"] + expiry_version: "93" + products: + - "firefox" + record_in_processes: ["content"] + release_channel_collection: opt-out + extra_keys: + cc_name_found: Whether the cardholder name field was identified + cc_number_found: Whether the credit card number field was identified + cc_exp_found: Whether the expiration date was identified + cc_name: Whether the name was autofilled (autofilled / not_filled / user_filled / unavailable) + cc_number: Whether the credit card number field was autofilled (autofilled / not_filled / user_filled / unavailable) + cc_exp: Whether the expiration date was autofilled (autofilled / not_filled / user_filled / unavailable) + field_name: Name of the field being affected by the method + fields_not_auto: >- + Number of fields in a `submitted` event that were not autofilled. + Note that this number counts all fields in a form, even if some of those fields might have been identified as password and/or address fields. + Additionally, it may include input elements that are not rendered as user-modifiable, such as hidden fields as well as