diff --git a/browser/components/downloads/content/allDownloadsViewOverlay.js b/browser/components/downloads/content/allDownloadsViewOverlay.js index 99b57da6efe..33a8658a9a5 100644 --- a/browser/components/downloads/content/allDownloadsViewOverlay.js +++ b/browser/components/downloads/content/allDownloadsViewOverlay.js @@ -996,6 +996,10 @@ DownloadsPlacesView.prototype = { this._richlistbox.selectedItems[0] == aElement) { this._richlistbox.selectItem(aElement.nextSibling); } + + if (this._lastSessionDownloadElement == aElement) + this._lastSessionDownloadElement = aElement.previousSibling; + this._richlistbox.removeChild(aElement); this._ensureVisibleElementsAreActive(); goUpdateCommand("downloadsCmd_clearDownloads");