From 901b064e8a459e3672ffe178dfb8b6e314e448a3 Mon Sep 17 00:00:00 2001 From: eyim Date: Tue, 31 May 2016 15:30:32 -0400 Subject: [PATCH] Bug 1276714 - Add about:crashes telemetry r=BenWa,bsmedberg MozReview-Commit-ID: 11GfIgkC5q6 --- toolkit/components/telemetry/Histograms.json | 8 ++++++++ toolkit/crashreporter/content/crashes.js | 3 +++ 2 files changed, 11 insertions(+) diff --git a/toolkit/components/telemetry/Histograms.json b/toolkit/components/telemetry/Histograms.json index 48870c5c6a2e..f21875db5977 100644 --- a/toolkit/components/telemetry/Histograms.json +++ b/toolkit/components/telemetry/Histograms.json @@ -10874,5 +10874,13 @@ "kind": "count", "releaseChannelCollection": "opt-out", "description": "Counts the number of times that about:tabcrashed was unloaded without submitting." + }, + "ABOUTCRASHES_OPENED_COUNT": { + "alert_emails": ["bgirard@mozilla.com"], + "expires_in_version": "55", + "kind": "count", + "bug_numbers": [1276714, 1276716], + "description": "Number of times about:crashes has been opened.", + "releaseChannelCollection": "opt-out" } } diff --git a/toolkit/crashreporter/content/crashes.js b/toolkit/crashreporter/content/crashes.js index 23ac32312dff..9020166e0a40 100644 --- a/toolkit/crashreporter/content/crashes.js +++ b/toolkit/crashreporter/content/crashes.js @@ -50,6 +50,9 @@ function submitPendingReport(event) { } function populateReportList() { + + Services.telemetry.getHistogramById("ABOUTCRASHES_OPENED_COUNT").add(1); + var prefService = Cc["@mozilla.org/preferences-service;1"]. getService(Ci.nsIPrefBranch);