From 59203c63bb777a3bacec32fb8830fba33540e809 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:29 +0200 Subject: Adding upstream version 127.0. Signed-off-by: Daniel Baumann --- browser/components/downloads/content/allDownloadsView.js | 2 +- browser/components/downloads/content/downloads.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'browser/components/downloads') diff --git a/browser/components/downloads/content/allDownloadsView.js b/browser/components/downloads/content/allDownloadsView.js index 08f8bfcb5f..f880f602aa 100644 --- a/browser/components/downloads/content/allDownloadsView.js +++ b/browser/components/downloads/content/allDownloadsView.js @@ -141,7 +141,7 @@ HistoryDownloadElementShell.prototype = { // be opened. let browserWin = BrowserWindowTracker.getTopWindow(); let openWhere = browserWin - ? browserWin.whereToOpenLink(event, false, true) + ? BrowserUtils.whereToOpenLink(event, false, true) : "window"; if (["window", "tabshifted", "tab"].includes(openWhere)) { command += ":" + openWhere; diff --git a/browser/components/downloads/content/downloads.js b/browser/components/downloads/content/downloads.js index b420d48db6..cab8b65aab 100644 --- a/browser/components/downloads/content/downloads.js +++ b/browser/components/downloads/content/downloads.js @@ -97,8 +97,6 @@ var DownloadsPanel = { window.addEventListener("unload", this.onWindowUnload); - window.ensureCustomElements("moz-button-group"); - // Load and resume active downloads if required. If there are downloads to // be shown in the panel, they will be loaded asynchronously. DownloadsCommon.initializeAllDataLinks(); @@ -327,7 +325,7 @@ var DownloadsPanel = { // to the browser window when the panel closes automatically. this.hidePanel(); - BrowserDownloadsUI(); + BrowserCommands.downloadsUI(); }, // Internal functions @@ -868,7 +866,7 @@ var DownloadsView = { } else if (aEvent.shiftKey || aEvent.ctrlKey || aEvent.metaKey) { // We adjust the command for supported modifiers to suggest where the download // may be opened - let openWhere = target.ownerGlobal.whereToOpenLink(aEvent, false, true); + let openWhere = BrowserUtils.whereToOpenLink(aEvent, false, true); if (["tab", "window", "tabshifted"].includes(openWhere)) { command += ":" + openWhere; } -- cgit v1.2.3