mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
[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:
parent
05389eb41f
commit
0f67602bf1
1 changed files with 0 additions and 18 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue