diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /browser/components/downloads/content | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/downloads/content')
3 files changed, 13 insertions, 7 deletions
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); diff --git a/browser/components/downloads/content/contentAreaDownloadsView.js b/browser/components/downloads/content/contentAreaDownloadsView.js index 62c81fc147..3f9c4ad956 100644 --- a/browser/components/downloads/content/contentAreaDownloadsView.js +++ b/browser/components/downloads/content/contentAreaDownloadsView.js @@ -29,7 +29,7 @@ var ContentAreaDownloadsView = { { once: true } ); let view = new DownloadsPlacesView(box, true, suppressionFlag); - document.addEventListener("visibilitychange", aEvent => { + document.addEventListener("visibilitychange", () => { let indicator = DownloadsCommon.getIndicatorData(window); if (document.visibilityState === "visible") { indicator.attentionSuppressed |= suppressionFlag; diff --git a/browser/components/downloads/content/downloads.js b/browser/components/downloads/content/downloads.js index 778b995e93..b420d48db6 100644 --- a/browser/components/downloads/content/downloads.js +++ b/browser/components/downloads/content/downloads.js @@ -528,7 +528,10 @@ var DownloadsPanel = { }, _startWatchingForSpammyDownloadActivation() { - Services.els.addSystemEventListener(window, "keydown", this, true); + window.addEventListener("keydown", this, { + capture: true, + mozSystemGroup: true, + }); }, _lastBeepTime: 0, @@ -546,7 +549,10 @@ var DownloadsPanel = { }, _stopWatchingForSpammyDownloadActivation() { - Services.els.removeSystemEventListener(window, "keydown", this, true); + window.removeEventListener("keydown", this, { + capture: true, + mozSystemGroup: true, + }); }, /** @@ -1458,7 +1464,7 @@ var DownloadsSummary = { * @param aEvent * The click event being handled. */ - onClick(aEvent) { + onClick() { DownloadsPanel.showDownloadsHistory(); }, |