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);