summaryrefslogtreecommitdiff
path: root/base/content/newtab/sites.js
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2022-05-08 16:42:41 -0400
committerGaming4JC <g4jc@hyperbola.info>2022-05-08 16:42:41 -0400
commit34964f0ea6b83234e47396441ca3b8334dbf0daa (patch)
tree570f0d78d7c2c8b38343a21cfb2e9e3d351f34e5 /base/content/newtab/sites.js
parent0e6fd39de109fa1020848fecddb5821501661ca7 (diff)
downloadiceweasel-uxp-34964f0ea6b83234e47396441ca3b8334dbf0daa.tar.gz
Remove telemetry more telemetry references
Diffstat (limited to 'base/content/newtab/sites.js')
-rw-r--r--base/content/newtab/sites.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/base/content/newtab/sites.js b/base/content/newtab/sites.js
index 1ede993..a3d0160 100644
--- a/base/content/newtab/sites.js
+++ b/base/content/newtab/sites.js
@@ -281,21 +281,6 @@ Site.prototype = {
},
/**
- * Record interaction with site using telemetry.
- */
- _recordSiteClicked: function Site_recordSiteClicked(aIndex) {
- if (Services.prefs.prefHasUserValue("browser.newtabpage.rows") ||
- Services.prefs.prefHasUserValue("browser.newtabpage.columns") ||
- aIndex > 8) {
- // We only want to get indices for the default configuration, everything
- // else goes in the same bucket.
- aIndex = 9;
- }
- Services.telemetry.getHistogramById("NEWTAB_PAGE_SITE_CLICKED")
- .add(aIndex);
- },
-
- /**
* Handles site click events.
*/
onClick: function Site_onClick(aEvent) {
@@ -306,10 +291,6 @@ Site.prototype = {
// Handle tile/thumbnail link click
if (target.classList.contains("newtab-link") ||
target.parentElement.classList.contains("newtab-link")) {
- // Record for primary and middle clicks
- if (button == 0 || button == 1) {
- this._recordSiteClicked(tileIndex);
- }
}
// Only handle primary clicks for the remaining targets
else if (button == 0) {