diff options
author | Pale Moon <git-repo@palemoon.org> | 2016-10-09 23:17:56 +0200 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2016-10-09 23:17:56 +0200 |
commit | 48cd306f44c353324fd6be8962c2a7fd9d0cd97e (patch) | |
tree | c4c67aadefb5b84fd5ac2d54b7dfc88fa3415078 | |
parent | a7bf59564b8d7dedbcbfff6934e40347853397cb (diff) | |
download | palemoon-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.js | 7 |
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) |