diff options
Diffstat (limited to 'browser/components/downloads')
-rw-r--r-- | browser/components/downloads/content/allDownloadsView.js | 2 | ||||
-rw-r--r-- | browser/components/downloads/content/downloads.js | 6 |
2 files changed, 3 insertions, 5 deletions
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; } |