summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorGaming4JC <g4jc@bulletmail.org>2018-08-15 17:59:12 -0400
committerGaming4JC <g4jc@bulletmail.org>2018-08-15 17:59:12 -0400
commit9acca3b80775d5f441359f3ccbcb19c360a0f7c8 (patch)
treedace16f89d79602cc0bdc56124edeb611cefbf83 /base
parentc3d0b9d89caf27ff0011ecc40d810ea6d920e7d2 (diff)
downloadiceweasel-uxp-9acca3b80775d5f441359f3ccbcb19c360a0f7c8.tar.gz
Remove BrowserUsageTelemetry
Diffstat (limited to 'base')
-rwxr-xr-xbase/content/browser.js53
-rw-r--r--base/content/urlbarBindings.xml1
2 files changed, 0 insertions, 54 deletions
diff --git a/base/content/browser.js b/base/content/browser.js
index 6469ab0..035cf2c 100755
--- a/base/content/browser.js
+++ b/base/content/browser.js
@@ -16,7 +16,6 @@ Cu.import("resource://gre/modules/NotificationDB.jsm");
["AboutHome", "resource:///modules/AboutHome.jsm"],
["AddonWatcher", "resource://gre/modules/AddonWatcher.jsm"],
["AppConstants", "resource://gre/modules/AppConstants.jsm"],
- ["BrowserUsageTelemetry", "resource:///modules/BrowserUsageTelemetry.jsm"],
["BrowserUtils", "resource://gre/modules/BrowserUtils.jsm"],
["CastingApps", "resource:///modules/CastingApps.jsm"],
["CharsetMenu", "resource://gre/modules/CharsetMenu.jsm"],
@@ -3652,9 +3651,6 @@ const BrowserSearch = {
*/
loadSearchFromContext: function (terms) {
let engine = BrowserSearch._loadSearch(terms, true, "contextmenu");
- if (engine) {
- BrowserSearch.recordSearchInTelemetry(engine, "contextmenu");
- }
},
pasteAndSearch: function (event) {
@@ -3678,55 +3674,6 @@ const BrowserSearch = {
var newWindowPref = gPrefService.getIntPref("browser.link.open_newwindow");
var where = newWindowPref == 3 ? "tab" : "window";
openUILinkIn(this.searchEnginesURL, where);
- },
-
- /**
- * Helper to record a search with Telemetry.
- *
- * Telemetry records only search counts and nothing pertaining to the search itself.
- *
- * @param engine
- * (nsISearchEngine) The engine handling the search.
- * @param source
- * (string) Where the search originated from. See BrowserUsageTelemetry for
- * allowed values.
- * @param details [optional]
- * An optional parameter passed to |BrowserUsageTelemetry.recordSearch|.
- * See its documentation for allowed options.
- * Additionally, if the search was a suggested search, |details.selection|
- * indicates where the item was in the suggestion list and how the user
- * selected it: {selection: {index: The selected index, kind: "key" or "mouse"}}
- */
- recordSearchInTelemetry: function (engine, source, details={}) {
- try {
- BrowserUsageTelemetry.recordSearch(engine, source, details);
- } catch (ex) {
- Cu.reportError(ex);
- }
- },
-
- /**
- * Helper to record a one-off search with Telemetry.
- *
- * Telemetry records only search counts and nothing pertaining to the search itself.
- *
- * @param engine
- * (nsISearchEngine) The engine handling the search.
- * @param source
- * (string) Where the search originated from. See BrowserUsageTelemetry for
- * allowed values.
- * @param type
- * (string) Indicates how the user selected the search item.
- * @param where
- * (string) Where was the search link opened (e.g. new tab, current tab, ..).
- */
- recordOneoffSearchInTelemetry: function (engine, source, type, where) {
- try {
- const details = {type, isOneOff: true};
- BrowserUsageTelemetry.recordSearch(engine, source, details);
- } catch (ex) {
- Cu.reportError(ex);
- }
}
};
diff --git a/base/content/urlbarBindings.xml b/base/content/urlbarBindings.xml
index eb31505..79b09d3 100644
--- a/base/content/urlbarBindings.xml
+++ b/base/content/urlbarBindings.xml
@@ -626,7 +626,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
details.isOneOff = isOneOff;
details.type = eventType;
- BrowserSearch.recordSearchInTelemetry(engine, "urlbar", details);
let submission = engine.getSubmission(query, null, "keyword");
return [submission.uri.spec, submission.postData];
]]></body>