From 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:33 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- browser/components/downloads/content/allDownloadsView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'browser/components/downloads/content/allDownloadsView.js') diff --git a/browser/components/downloads/content/allDownloadsView.js b/browser/components/downloads/content/allDownloadsView.js index b42e4ec118..08f8bfcb5f 100644 --- a/browser/components/downloads/content/allDownloadsView.js +++ b/browser/components/downloads/content/allDownloadsView.js @@ -734,7 +734,7 @@ DownloadsPlacesView.prototype = { goUpdateCommand("downloadsCmd_clearDownloads"); }, - onContextMenu(aEvent) { + onContextMenu() { let element = this._richlistbox.selectedItem; if (!element || !element._shell) { return false; @@ -910,7 +910,7 @@ function goUpdateDownloadCommands() { document.addEventListener("DOMContentLoaded", function () { let richListBox = document.getElementById("downloadsListBox"); - richListBox.addEventListener("scroll", function (event) { + richListBox.addEventListener("scroll", function () { return this._placesView.onScroll(); }); richListBox.addEventListener("keypress", function (event) { @@ -938,7 +938,7 @@ document.addEventListener("DOMContentLoaded", function () { dropNode.addEventListener("drop", function (event) { richListBox._placesView.onDrop(event); }); - richListBox.addEventListener("select", function (event) { + richListBox.addEventListener("select", function () { this._placesView.onSelect(); }); richListBox.addEventListener("focus", goUpdateDownloadCommands); -- cgit v1.2.3