tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 59b42bfa716a865e0a9b2b9297ef70801c0a9a0a
parent adb219b72c25e91df4f85b1d2421065d35225f9a
Author: Anna Weine <anna.weine@mozilla.com>
Date:   Thu, 23 Oct 2025 15:43:36 +0000

Bug 1994606 - Removing pdfjs.digital_signature.certificate telemetry r=calixte

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

Diffstat:
Mtoolkit/components/pdfjs/content/PdfJsTelemetry.sys.mjs | 24------------------------
Mtoolkit/components/pdfjs/metrics.yaml | 22----------------------
2 files changed, 0 insertions(+), 46 deletions(-)

diff --git a/toolkit/components/pdfjs/content/PdfJsTelemetry.sys.mjs b/toolkit/components/pdfjs/content/PdfJsTelemetry.sys.mjs @@ -55,9 +55,6 @@ export class PdfJsTelemetry { } } break; - case "signatureCertificates": - this.onSignatureCertificates(aData.data); - break; case "comment": this.onComment(aData.data); break; @@ -67,27 +64,6 @@ export class PdfJsTelemetry { } } - static onSignatureCertificates(data) { - if (!(data?.length > 0)) { - return; - } - const labels = new Set([ - "adbe_x509_rsa_sha1", - "adbe_pkcs7_detached", - "adbe_pkcs7_sha1", - "etsi_cades_detached", - "etsi_rfc3161", - ]); - for (const cert of data) { - const label = cert.toLowerCase().replaceAll(".", "_"); - if (labels.has(label)) { - Glean.pdfjsDigitalSignature.certificate[label].add(1); - } else { - Glean.pdfjsDigitalSignature.certificate.unsupported.add(1); - } - } - } - static onTimeToView(ms) { Glean.pdfjs.timeToView.accumulateSingleSample(ms); } diff --git a/toolkit/components/pdfjs/metrics.yaml b/toolkit/components/pdfjs/metrics.yaml @@ -896,28 +896,6 @@ pdfjs.signature: - pdfjs-team@mozilla.com expires: never -pdfjs.digital_signature: - certificate: - type: labeled_counter - description: > - Counts the number of certificates used to sign a PDF document. - labels: - - adbe_x509_rsa_sha1 - - adbe_pkcs7_detached - - adbe_pkcs7_sha1 - - etsi_cades_detached - - etsi_rfc3161 - - unsupported - bugs: - - https://bugzilla.mozilla.org/show_bug.cgi?id=1973573 - data_reviews: - - https://bugzilla.mozilla.org/show_bug.cgi?id=1973573#c1 - data_sensitivity: - - interaction - notification_emails: - - pdfjs-team@mozilla.com - expires: 147 - pdfjs.comment: edit: type: labeled_counter