diff --git a/application/palemoon/app/nsBrowserApp.cpp b/application/palemoon/app/nsBrowserApp.cpp index bfe9a6f352..12db297f33 100644 --- a/application/palemoon/app/nsBrowserApp.cpp +++ b/application/palemoon/app/nsBrowserApp.cpp @@ -37,7 +37,6 @@ #include "nsXPCOMPrivate.h" // for MAXPATHLEN and XPCOM_DLL #include "mozilla/Sprintf.h" -#include "mozilla/Telemetry.h" #include "mozilla/WindowsDllBlocklist.h" #define MOZ_BROWSER_CAN_BE_CONTENTPROC @@ -110,7 +109,6 @@ static bool IsArg(const char* arg, const char* s) XRE_GetFileFromPathType XRE_GetFileFromPath; XRE_CreateAppDataType XRE_CreateAppData; XRE_FreeAppDataType XRE_FreeAppData; -XRE_TelemetryAccumulateType XRE_TelemetryAccumulate; XRE_StartupTimelineRecordType XRE_StartupTimelineRecord; XRE_mainType XRE_main; XRE_StopLateWriteChecksType XRE_StopLateWriteChecks; @@ -128,7 +126,6 @@ static const nsDynamicFunctionLoad kXULFuncs[] = { { "XRE_GetFileFromPath", (NSFuncPtr*) &XRE_GetFileFromPath }, { "XRE_CreateAppData", (NSFuncPtr*) &XRE_CreateAppData }, { "XRE_FreeAppData", (NSFuncPtr*) &XRE_FreeAppData }, - { "XRE_TelemetryAccumulate", (NSFuncPtr*) &XRE_TelemetryAccumulate }, { "XRE_StartupTimelineRecord", (NSFuncPtr*) &XRE_StartupTimelineRecord }, { "XRE_main", (NSFuncPtr*) &XRE_main }, { "XRE_StopLateWriteChecks", (NSFuncPtr*) &XRE_StopLateWriteChecks }, @@ -363,8 +360,6 @@ int main(int argc, char* argv[], char* envp[]) return 255; } - XRE_StartupTimelineRecord(mozilla::StartupTimeline::START, start); - #ifdef MOZ_BROWSER_CAN_BE_CONTENTPROC XRE_EnableSameExecutableForContentProc(); #endif diff --git a/application/palemoon/components/newtab/page.js b/application/palemoon/components/newtab/page.js index 9088c89f16..39a3b1c85c 100644 --- a/application/palemoon/components/newtab/page.js +++ b/application/palemoon/components/newtab/page.js @@ -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 diff --git a/application/palemoon/components/newtab/sites.js b/application/palemoon/components/newtab/sites.js index 1bba1649b4..5da301c0c5 100644 --- a/application/palemoon/components/newtab/sites.js +++ b/application/palemoon/components/newtab/sites.js @@ -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"; } }