Bug 1364686 - Use about:downloads to show downloads also in a not-private window r=mak draft
authorMichael Kohler <me@michaelkohler.info>
Fri, 13 Apr 2018 01:51:32 +0200
changeset 781503 b00d0b0cb5dbd9ae5aac4fe606978f10950f93a5
parent 781409 325ef357e5b73d63794e47c02c7f8e7cf58ccb48
push id106315
push userbmo:me@michaelkohler.info
push dateThu, 12 Apr 2018 23:53:11 +0000
reviewersmak
bugs1364686
milestone61.0a1
Bug 1364686 - Use about:downloads to show downloads also in a not-private window r=mak MozReview-Commit-ID: L8PbFefQ1uz
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -4220,21 +4220,17 @@ function addToUrlbarHistory(aUrlToAdd) {
   if (!PrivateBrowsingUtils.isWindowPrivate(window) &&
       aUrlToAdd &&
       !aUrlToAdd.includes(" ") &&
       !/[\x00-\x1F]/.test(aUrlToAdd)) // eslint-disable-line no-control-regex
     PlacesUIUtils.markPageAsTyped(aUrlToAdd);
 }
 
 function BrowserDownloadsUI() {
-  if (PrivateBrowsingUtils.isWindowPrivate(window)) {
-    openTrustedLinkIn("about:downloads", "tab");
-  } else {
-    PlacesCommandHook.showPlacesOrganizer("Downloads");
-  }
+  openTrustedLinkIn("about:downloads", "tab");
 }
 
 function toOpenWindowByType(inType, uri, features) {
   var topWindow = Services.wm.getMostRecentWindow(inType);
 
   if (topWindow)
     topWindow.focus();
   else if (features)