Commit c2ccc9b6 authored by Erica Wright's avatar Erica Wright
Browse files

Bug 1529425 - Add Telemetry to count the number of users in each Content...

Bug 1529425 - Add Telemetry to count the number of users in each Content blocking mode. r=johannh,janerik

On browser startup, include the value of the browser.contentblocking.category pref with the main ping.

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

--HG--
extra : moz-landing-system : lando
parent d012deb3
......@@ -1419,9 +1419,26 @@ BrowserGlue.prototype = {
let fpEnabled = Services.prefs.getBoolPref("privacy.trackingprotection.fingerprinting.enabled");
let cmEnabled = Services.prefs.getBoolPref("privacy.trackingprotection.cryptomining.enabled");
let categoryPref;
switch (Services.prefs.getStringPref("browser.contentblocking.category", null)) {
case "standard":
categoryPref = 0;
break;
case "strict":
categoryPref = 1;
break;
case "custom":
categoryPref = 2;
break;
default:
// Any other value is unsupported.
categoryPref = 3;
break;
}
Services.telemetry.scalarSet("contentblocking.fingerprinting_blocking_enabled", fpEnabled);
Services.telemetry.scalarSet("contentblocking.cryptomining_blocking_enabled", cmEnabled);
Services.telemetry.scalarSet("contentblocking.category", categoryPref);
},
_sendMediaTelemetry() {
......
......@@ -506,6 +506,19 @@ contentblocking:
release_channel_collection: opt-out
record_in_processes:
- main
category:
bug_numbers:
- 1529425
description: >
This scalar reports the value of the content blocking category pref (0 = "standard", 1 = "strict", 2 = "custom", 3 = some other value, this is not supported).
expires: never
kind: uint
notification_emails:
- aedelstein@mozilla.com
- seceng-telemetry@mozilla.com
release_channel_collection: opt-out
record_in_processes:
- main
sandbox:
no_job:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment