commit b0fc6031702ea1db89f523b26961f051dfd78919
parent 6f17ec54eb6e327458941936168790b31ef80fa8
Author: Tom Ritter <tom@mozilla.com>
Date: Mon, 8 Dec 2025 16:31:00 +0000
Bug 1873716: Create two new canvas fingerprinting metrics for the improved telemetry design r=timhuang
SKIP_BMO_CHECK
Differential Revision: https://phabricator.services.mozilla.com/D272325
Diffstat:
1 file changed, 87 insertions(+), 0 deletions(-)
diff --git a/toolkit/components/antitracking/metrics.yaml b/toolkit/components/antitracking/metrics.yaml
@@ -134,6 +134,93 @@ contentblocking:
expires: 150
telemetry_mirror: CANVAS_FINGERPRINTING_PER_TAB
+ canvas_fingerprinting_per_tab2:
+ type: labeled_counter
+ description: >
+ Whether any canvas fingerprinting attempt was detected, as identified by either a known fingerprinting text or a known behavior (alias)
+ labels:
+ - not_found
+ - found
+ bugs:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1873716
+ data_reviews:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1847990
+ notification_emails:
+ - seceng-telemetry@mozilla.com
+ expires: 165
+
+ canvas_fingerprinting_type_text_by_source_per_tab2:
+ type: dual_labeled_counter
+ description: Fingerprinting detection hits by known fingerprinting string (key) and source (category).
+ dual_labels:
+ key:
+ description: Known Fingerprinting Strings (exponent of the bit in the KnownText bitmask)
+ labels: ["none", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"]
+ category:
+ description: >
+ Canvas Extraction Sources.
+ The first set of labels are the powers of two indicating each individual bit that can be set in the bitmask.
+ The second set of labels are the combinations of sources seen or expected.
+ A combination of sources that is not listed will be recorded under the Glean-special label __other__
+ labels: [
+ # 2^0 - 2^8
+ "1", "2", "4", "8", "16", "32", "64", "128", "256",
+ # 2^9 - 2^16
+ "512", "1024", "2048", "4096", "8192", "16384", "32768", "65536",
+ # 2^17 - 2^24
+ "131072", "262144", "524288", "1048576", "2097152", "4194304", "8388608", "16777216",
+ # 2^25 - 2^32
+ "33554432", "67108864", "134217728", "268435456", "536870912", "1073741824", "2147483648", "4294967296",
+ # 2^33 - 2^40
+ "8589934592", "17179869184", "34359738368", "68719476736", "137438953472", "274877906944", "549755813888", "1099511627776",
+ # Known Combinations
+ "80", "144", "208", "8388736"
+ ]
+ bugs:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1873716
+ data_reviews:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1847990
+ notification_emails:
+ - seceng-telemetry@mozilla.com
+ expires: 165
+
+ canvas_fingerprinting_type_alias_by_source_per_tab2:
+ type: dual_labeled_counter
+ description: >
+ Fingerprinting detection hits by fingerprinter alias (key) and the source(s) used (category).
+ An alias using multiple sources will increment each source individually once, and increment the combination once as well.
+ dual_labels:
+ key:
+ description: A numeral corresponding to the CanvasFingerprinterAlias enum
+ labels: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50"]
+ category:
+ description: >
+ Canvas Extraction Sources.
+ The first set of labels are the powers of two indicating each individual bit that can be set in the bitmask.
+ The second set of labels are the combinations of sources seen or expected.
+ A combination of sources that is not listed will be recorded under the Glean-special label __other__
+ labels: [
+ # 2^0 - 2^8
+ "1", "2", "4", "8", "16", "32", "64", "128", "256",
+ # 2^9 - 2^16
+ "512", "1024", "2048", "4096", "8192", "16384", "32768", "65536",
+ # 2^17 - 2^24
+ "131072", "262144", "524288", "1048576", "2097152", "4194304", "8388608", "16777216",
+ # 2^25 - 2^32
+ "33554432", "67108864", "134217728", "268435456", "536870912", "1073741824", "2147483648", "4294967296",
+ # 2^33 - 2^40
+ "8589934592", "17179869184", "34359738368", "68719476736", "137438953472", "274877906944", "549755813888", "1099511627776",
+ # Known Combinations
+ "80", "144", "208", "8388736"
+ ]
+ bugs:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=
+ data_reviews:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=
+ notification_emails:
+ - seceng-telemetry@mozilla.com
+ expires: 165
+
font_fingerprinting_per_tab:
type: labeled_counter
description: >