summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPale Moon <git-repo@palemoon.org>2016-10-09 23:17:56 +0200
committerPale Moon <git-repo@palemoon.org>2016-10-09 23:17:56 +0200
commit48cd306f44c353324fd6be8962c2a7fd9d0cd97e (patch)
treec4c67aadefb5b84fd5ac2d54b7dfc88fa3415078
parenta7bf59564b8d7dedbcbfff6934e40347853397cb (diff)
downloadpalemoon-gre-48cd306f44c353324fd6be8962c2a7fd9d0cd97e.tar.gz
Stop using nsIDownloadManagerUI service in BrowserDownloadsUI() call.
Either open in a tab or in library view directly.
-rw-r--r--browser/base/content/browser.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
index 8d932ffb7..322d8073e 100644
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -3132,8 +3132,11 @@ function toJavaScriptConsole()
function BrowserDownloadsUI()
{
- Cc["@mozilla.org/download-manager-ui;1"].
- getService(Ci.nsIDownloadManagerUI).show(window);
+ if (PrivateBrowsingUtils.isWindowPrivate(window)) {
+ openUILinkIn("about:downloads", "tab");
+ } else {
+ PlacesCommandHook.showPlacesOrganizer("Downloads");
+ }
}
function toOpenWindowByType(inType, uri, features)