Bug 1276714 - Add about:crashes telemetry r=BenWa,bsmedberg
authoreyim <eyim@mozilla.com>
Tue, 31 May 2016 15:30:32 -0400
changeset 341490 50792e13354b2407e37daa679c2cc8cccead1b4e
parent 341489 13bcb1c7d3b3595f855609536e91040f97bded2c
child 341491 25abbc9e62370b99ff495fee44c6145c38ae4656
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBenWa, bsmedberg
bugs1276714
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1276714 - Add about:crashes telemetry r=BenWa,bsmedberg MozReview-Commit-ID: 11GfIgkC5q6
toolkit/components/telemetry/Histograms.json
toolkit/crashreporter/content/crashes.js
--- a/toolkit/components/telemetry/Histograms.json
+++ b/toolkit/components/telemetry/Histograms.json
@@ -10869,10 +10869,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;