Bug 1071120 - "Telemetry for searching from error pages" [r=mark.finkle]
authorwesj <wjohnston@mozilla.com>
Thu, 25 Sep 2014 00:22:00 -0700
changeset 208631 b34aa5d30c65c0a68320d81d0573a9897b1bae58
parent 208630 4b7e1497fbcb1ec4e195893242d8588dab695c40
child 208632 d353e7dd0ae877012abcaf74ade041bf1b1d7c9c
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmark.finkle
bugs1071120
milestone35.0a1
Bug 1071120 - "Telemetry for searching from error pages" [r=mark.finkle]
mobile/android/modules/NetErrorHelper.jsm
--- a/mobile/android/modules/NetErrorHelper.jsm
+++ b/mobile/android/modules/NetErrorHelper.jsm
@@ -89,16 +89,17 @@ handlers.searchbutton = {
   },
 
   handleClick: function(event) {
     let value = event.target.previousElementSibling.value;
     this.doSearch(value);
   },
 
   doSearch: function(value) {
+    UITelemetry.addEvent("neterror.1", "button", null, "search");
     let engine = Services.search.defaultEngine;
     let uri = engine.getSubmission(value).uri;
 
     let browserWin = Services.wm.getMostRecentWindow("navigator:browser");
     // Reset the user search to whatever the new search term was
     browserWin.BrowserApp.loadURI(uri.spec, undefined, { isSearch: true, userRequested: value });
   }
 };