[Pale-Moon] Issue MoonchildProductions/UXP#21 - Remove telemetry from the front-end.

This commit is contained in:
Moonchild 2021-11-01 00:27:53 +00:00 • committed by roytam1
commit 054e286777
3 changed files with 0 additions and 24 deletions

View file

@ -210,9 +210,6 @@ var gPage = {
},
onPageFirstVisible: function() {
// Record another page impression.
Services.telemetry.getHistogramById("NEWTAB_PAGE_SHOWN").add(true);
for (let site of gGrid.sites) {
if (site) {
// The site may need to modify and/or re-render itself if

View file

@ -269,21 +269,6 @@ Site.prototype = {
} catch (e) {}
},
/**
* Record interaction with site using telemetry.
*/
_recordSiteClicked: function(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);
},
_toggleLegalText: function(buttonClass, explanationTextClass) {
let button = this._querySelector(buttonClass);
if (button.hasAttribute("active")) {
@ -308,7 +293,6 @@ Site.prototype = {
target.parentElement.classList.contains("newtab-link")) {
// Record for primary and middle clicks
if (button == 0 || button == 1) {
this._recordSiteClicked(tileIndex);
action = "click";
}
}