michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm"); michael@0: michael@0: let ContentAreaDownloadsView = { michael@0: init: function CADV_init() { michael@0: let view = new DownloadsPlacesView(document.getElementById("downloadsRichListBox")); michael@0: // Do not display the Places downloads in private windows michael@0: if (!PrivateBrowsingUtils.isWindowPrivate(window)) { michael@0: view.place = "place:transition=7&sort=4"; michael@0: } michael@0: } michael@0: };