зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1522919 - Add basic telemetry for startup and control panel events for cryptomining and fingerprinting. r=johannh
Include a boolean reporting whether these prefs are enabled on startup. inlcude extra information when user interacts with the control panel reporting if anything is being blocked. Differential Revision: https://phabricator.services.mozilla.com/D19843 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
6cab4dbf63
Коммит
9a54423518
|
@ -4,6 +4,7 @@
|
|||
|
||||
var Fingerprinting = {
|
||||
PREF_ENABLED: "privacy.trackingprotection.fingerprinting.enabled",
|
||||
telemetryIdentifier: "fp",
|
||||
|
||||
strings: {
|
||||
get subViewBlocked() {
|
||||
|
@ -114,6 +115,7 @@ var Fingerprinting = {
|
|||
|
||||
var Cryptomining = {
|
||||
PREF_ENABLED: "privacy.trackingprotection.cryptomining.enabled",
|
||||
telemetryIdentifier: "cm",
|
||||
|
||||
strings: {
|
||||
get subViewBlocked() {
|
||||
|
|
|
@ -1406,6 +1406,12 @@ BrowserGlue.prototype = {
|
|||
}
|
||||
}
|
||||
Services.telemetry.scalarSet("contentblocking.exceptions", exceptions);
|
||||
|
||||
let fpEnabled = Services.prefs.getBoolPref("privacy.trackingprotection.fingerprinting.enabled");
|
||||
let cmEnabled = Services.prefs.getBoolPref("privacy.trackingprotection.cryptomining.enabled");
|
||||
|
||||
Services.telemetry.scalarSet("contentblocking.fingerprinting_blocking_enabled", fpEnabled);
|
||||
Services.telemetry.scalarSet("contentblocking.cryptomining_blocking_enabled", cmEnabled);
|
||||
},
|
||||
|
||||
_sendMediaTelemetry() {
|
||||
|
|
|
@ -808,6 +808,7 @@ security.ui.identitypopup:
|
|||
bug_numbers:
|
||||
- 1484251
|
||||
- 1522256
|
||||
- 1522919
|
||||
description: >
|
||||
How many times the control center was opened.
|
||||
Keyed by the state of the content blocking shield, where the shield-showing key indicates
|
||||
|
@ -822,6 +823,8 @@ security.ui.identitypopup:
|
|||
record_in_processes:
|
||||
- main
|
||||
extra_keys:
|
||||
fp: Whether Fingerprinter blocking was active while the user opened the popup
|
||||
cm: Whether Cryptominer blocking was active while the user opened the popup
|
||||
tp: Whether Tracking Protection was active while the user opened the popup
|
||||
cr: Whether Cookie Restrictions was active while the user opened the popup
|
||||
products:
|
||||
|
@ -854,6 +857,8 @@ security.ui.identitypopup:
|
|||
record_in_processes:
|
||||
- main
|
||||
extra_keys:
|
||||
fp: Whether Fingerprinter blocking was active while the user interacted with the UI
|
||||
cm: Whether Cryptominer blocking was active while the user interacted with the UI
|
||||
tp: Whether Tracking Protection was active while the user interacted with the UI
|
||||
cr: Whether Cookie Restrictions was active while the user interacted with the UI
|
||||
products:
|
||||
|
|
|
@ -480,6 +480,32 @@ contentblocking:
|
|||
release_channel_collection: opt-out
|
||||
record_in_processes:
|
||||
- main
|
||||
cryptomining_blocking_enabled:
|
||||
bug_numbers:
|
||||
- 1522919
|
||||
description: >
|
||||
True if cryptominer blocking is enabled globally at startup.
|
||||
expires: never
|
||||
kind: boolean
|
||||
notification_emails:
|
||||
- aedelstein@mozilla.com
|
||||
- seceng-telemetry@mozilla.com
|
||||
release_channel_collection: opt-out
|
||||
record_in_processes:
|
||||
- main
|
||||
fingerprinting_blocking_enabled:
|
||||
bug_numbers:
|
||||
- 1522919
|
||||
description: >
|
||||
True if fingerprinter blocking is enabled globally at startup.
|
||||
expires: never
|
||||
kind: boolean
|
||||
notification_emails:
|
||||
- aedelstein@mozilla.com
|
||||
- seceng-telemetry@mozilla.com
|
||||
release_channel_collection: opt-out
|
||||
record_in_processes:
|
||||
- main
|
||||
|
||||
sandbox:
|
||||
no_job:
|
||||
|
|
Загрузка…
Ссылка в новой задаче