diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /browser/base/content/browser-commands.js | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/base/content/browser-commands.js')
-rw-r--r-- | browser/base/content/browser-commands.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/browser/base/content/browser-commands.js b/browser/base/content/browser-commands.js index 40eb4d5baa..d80f9588cd 100644 --- a/browser/base/content/browser-commands.js +++ b/browser/base/content/browser-commands.js @@ -295,7 +295,7 @@ var BrowserCommands = { let where = "tab"; if (event) { - where = whereToOpenLink(event, false, true); + where = BrowserUtils.whereToOpenLink(event, false, true); switch (where) { case "tab": @@ -573,4 +573,19 @@ var BrowserCommands = { fullScreen() { window.fullScreen = !window.fullScreen || BrowserHandler.kiosk; }, + + downloadsUI() { + if (PrivateBrowsingUtils.isWindowPrivate(window)) { + openTrustedLinkIn("about:downloads", "tab"); + } else { + PlacesCommandHook.showPlacesOrganizer("Downloads"); + } + }, + + forceEncodingDetection() { + gBrowser.selectedBrowser.forceEncodingDetection(); + BrowserCommands.reloadWithFlags( + Ci.nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE + ); + }, }; |