diff options
Diffstat (limited to 'components/search/content/searchReset.js')
-rw-r--r-- | components/search/content/searchReset.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/components/search/content/searchReset.js b/components/search/content/searchReset.js index b541d41..bb01233 100644 --- a/components/search/content/searchReset.js +++ b/components/search/content/searchReset.js @@ -8,14 +8,6 @@ var {classes: Cc, interfaces: Ci, utils: Cu} = Components; Cu.import("resource://gre/modules/Services.jsm"); -const TELEMETRY_RESULT_ENUM = { - RESTORED_DEFAULT: 0, - KEPT_CURRENT: 1, - CHANGED_ENGINE: 2, - CLOSED_PAGE: 3, - OPENED_SETTINGS: 4 -}; - window.onload = function() { let defaultEngine = document.getElementById("defaultEngine"); let originalDefault = Services.search.originalDefaultEngine; @@ -24,9 +16,6 @@ window.onload = function() { 'url("' + originalDefault.iconURI.spec + '")'; document.getElementById("searchResetChangeEngine").focus(); - window.addEventListener("unload", recordPageClosed); - document.getElementById("linkSettingsPage") - .addEventListener("click", openingSettings); }; function doSearch() { @@ -46,8 +35,6 @@ function doSearch() { let engine = Services.search.currentEngine; let submission = engine.getSubmission(queryString, null, purpose); - window.removeEventListener("unload", recordPageClosed); - let win = window.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIWebNavigation) .QueryInterface(Ci.nsIDocShellTreeItem) @@ -58,8 +45,6 @@ function doSearch() { } function openingSettings() { - record(TELEMETRY_RESULT_ENUM.OPENED_SETTINGS); - window.removeEventListener("unload", recordPageClosed); } function record(result) { @@ -70,7 +55,6 @@ function keepCurrentEngine() { // Calling the currentEngine setter will force a correct loadPathHash to be // written for this engine, so that we don't prompt the user again. Services.search.currentEngine = Services.search.currentEngine; - record(TELEMETRY_RESULT_ENUM.KEPT_CURRENT); doSearch(); } @@ -80,11 +64,5 @@ function changeSearchEngine() { engine.hidden = false; Services.search.currentEngine = engine; - record(TELEMETRY_RESULT_ENUM.RESTORED_DEFAULT); - doSearch(); } - -function recordPageClosed() { - record(TELEMETRY_RESULT_ENUM.CLOSED_PAGE); -} |