Bug 1276714 - Add about:crashes telemetry r?benwa
MozReview-Commit-ID: 11GfIgkC5q6
--- a/toolkit/components/telemetry/Histograms.json
+++ b/toolkit/components/telemetry/Histograms.json
@@ -10841,10 +10841,18 @@
},
"FX_CONTENT_CRASH_NOT_SUBMITTED": {
"alert_emails": ["wmccloskey@mozilla.com"],
"bug_numbers": [1269961],
"expires_in_version": "never",
"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"
}
}
--- a/toolkit/crashreporter/content/crashes.js
+++ b/toolkit/crashreporter/content/crashes.js
@@ -45,16 +45,19 @@ function submitPendingReport(event) {
event.initEvent("CrashSubmitFailed", true, false);
document.dispatchEvent(event);
});
event.preventDefault();
return false;
}
function populateReportList() {
+
+ Services.telemetry.getHistogramById("ABOUTCRASHES_OPENED_COUNT").add(1);
+
var prefService = Cc["@mozilla.org/preferences-service;1"].
getService(Ci.nsIPrefBranch);
try {
reportURL = prefService.getCharPref("breakpad.reportURL");
// Ignore any non http/https urls
if (!/^https?:/i.test(reportURL))
reportURL = null;