mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-29 18:47:31 +09:00
[Pale-Moon] Issue MoonchildProductions/UXP#21 - Remove telemetry from the front-end.
This commit is contained in:
parent
9f078ac580
commit
054e286777
3 changed files with 0 additions and 24 deletions
|
|
@ -37,7 +37,6 @@
|
||||||
#include "nsXPCOMPrivate.h" // for MAXPATHLEN and XPCOM_DLL
|
#include "nsXPCOMPrivate.h" // for MAXPATHLEN and XPCOM_DLL
|
||||||
|
|
||||||
#include "mozilla/Sprintf.h"
|
#include "mozilla/Sprintf.h"
|
||||||
#include "mozilla/Telemetry.h"
|
|
||||||
#include "mozilla/WindowsDllBlocklist.h"
|
#include "mozilla/WindowsDllBlocklist.h"
|
||||||
|
|
||||||
#define MOZ_BROWSER_CAN_BE_CONTENTPROC
|
#define MOZ_BROWSER_CAN_BE_CONTENTPROC
|
||||||
|
|
@ -110,7 +109,6 @@ static bool IsArg(const char* arg, const char* s)
|
||||||
XRE_GetFileFromPathType XRE_GetFileFromPath;
|
XRE_GetFileFromPathType XRE_GetFileFromPath;
|
||||||
XRE_CreateAppDataType XRE_CreateAppData;
|
XRE_CreateAppDataType XRE_CreateAppData;
|
||||||
XRE_FreeAppDataType XRE_FreeAppData;
|
XRE_FreeAppDataType XRE_FreeAppData;
|
||||||
XRE_TelemetryAccumulateType XRE_TelemetryAccumulate;
|
|
||||||
XRE_StartupTimelineRecordType XRE_StartupTimelineRecord;
|
XRE_StartupTimelineRecordType XRE_StartupTimelineRecord;
|
||||||
XRE_mainType XRE_main;
|
XRE_mainType XRE_main;
|
||||||
XRE_StopLateWriteChecksType XRE_StopLateWriteChecks;
|
XRE_StopLateWriteChecksType XRE_StopLateWriteChecks;
|
||||||
|
|
@ -128,7 +126,6 @@ static const nsDynamicFunctionLoad kXULFuncs[] = {
|
||||||
{ "XRE_GetFileFromPath", (NSFuncPtr*) &XRE_GetFileFromPath },
|
{ "XRE_GetFileFromPath", (NSFuncPtr*) &XRE_GetFileFromPath },
|
||||||
{ "XRE_CreateAppData", (NSFuncPtr*) &XRE_CreateAppData },
|
{ "XRE_CreateAppData", (NSFuncPtr*) &XRE_CreateAppData },
|
||||||
{ "XRE_FreeAppData", (NSFuncPtr*) &XRE_FreeAppData },
|
{ "XRE_FreeAppData", (NSFuncPtr*) &XRE_FreeAppData },
|
||||||
{ "XRE_TelemetryAccumulate", (NSFuncPtr*) &XRE_TelemetryAccumulate },
|
|
||||||
{ "XRE_StartupTimelineRecord", (NSFuncPtr*) &XRE_StartupTimelineRecord },
|
{ "XRE_StartupTimelineRecord", (NSFuncPtr*) &XRE_StartupTimelineRecord },
|
||||||
{ "XRE_main", (NSFuncPtr*) &XRE_main },
|
{ "XRE_main", (NSFuncPtr*) &XRE_main },
|
||||||
{ "XRE_StopLateWriteChecks", (NSFuncPtr*) &XRE_StopLateWriteChecks },
|
{ "XRE_StopLateWriteChecks", (NSFuncPtr*) &XRE_StopLateWriteChecks },
|
||||||
|
|
@ -363,8 +360,6 @@ int main(int argc, char* argv[], char* envp[])
|
||||||
return 255;
|
return 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
XRE_StartupTimelineRecord(mozilla::StartupTimeline::START, start);
|
|
||||||
|
|
||||||
#ifdef MOZ_BROWSER_CAN_BE_CONTENTPROC
|
#ifdef MOZ_BROWSER_CAN_BE_CONTENTPROC
|
||||||
XRE_EnableSameExecutableForContentProc();
|
XRE_EnableSameExecutableForContentProc();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -210,9 +210,6 @@ var gPage = {
|
||||||
},
|
},
|
||||||
|
|
||||||
onPageFirstVisible: function() {
|
onPageFirstVisible: function() {
|
||||||
// Record another page impression.
|
|
||||||
Services.telemetry.getHistogramById("NEWTAB_PAGE_SHOWN").add(true);
|
|
||||||
|
|
||||||
for (let site of gGrid.sites) {
|
for (let site of gGrid.sites) {
|
||||||
if (site) {
|
if (site) {
|
||||||
// The site may need to modify and/or re-render itself if
|
// The site may need to modify and/or re-render itself if
|
||||||
|
|
|
||||||
|
|
@ -269,21 +269,6 @@ Site.prototype = {
|
||||||
} catch (e) {}
|
} 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) {
|
_toggleLegalText: function(buttonClass, explanationTextClass) {
|
||||||
let button = this._querySelector(buttonClass);
|
let button = this._querySelector(buttonClass);
|
||||||
if (button.hasAttribute("active")) {
|
if (button.hasAttribute("active")) {
|
||||||
|
|
@ -308,7 +293,6 @@ Site.prototype = {
|
||||||
target.parentElement.classList.contains("newtab-link")) {
|
target.parentElement.classList.contains("newtab-link")) {
|
||||||
// Record for primary and middle clicks
|
// Record for primary and middle clicks
|
||||||
if (button == 0 || button == 1) {
|
if (button == 0 || button == 1) {
|
||||||
this._recordSiteClicked(tileIndex);
|
|
||||||
action = "click";
|
action = "click";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue