[Pale-Moon] Issue #21 - Remove leftover telemetry code for the app menu's opening time

The actual calls to telemetry were removed, but the checks for the app menu's
opening time wasn't removed. Effectively, this reverts Mozilla bug 723515 which
implemented this check.
This commit is contained in:
FranklinDM 2022-07-06 00:26:54 +08:00 committed by roytam1
commit 0f67602bf1

View file

@ -1267,24 +1267,6 @@ var gBrowserInit = {
}
#endif
let appMenuButton = document.getElementById("appmenu-button");
let appMenuPopup = document.getElementById("appmenu-popup");
if (appMenuButton && appMenuPopup) {
let appMenuOpening = null;
appMenuButton.addEventListener("mousedown", function(event) {
if (event.button == 0) {
appMenuOpening = new Date();
}
}, false);
appMenuPopup.addEventListener("popupshown", function(event) {
if (event.target != appMenuPopup || !appMenuOpening) {
return;
}
let duration = new Date() - appMenuOpening;
appMenuOpening = null;
}, false);
}
window.addEventListener("mousemove", MousePosTracker, false);
window.addEventListener("dragover", MousePosTracker, false);