Bug 822692 - Downloads titles are often empty in the Library view.
authorMarco Bonardo <mbonardo@mozilla.com>
Tue, 18 Dec 2012 18:02:05 +0100
changeset 125517 70f6be1bebf580633bf3053803c96da898a31e60
parent 125516 f3d710952f62d5ab8d11c330364967756d81111e
child 125518 f744b51dcf2c10f8ac336e845b423f0f7a53c5fe
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs822692
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 822692 - Downloads titles are often empty in the Library view. r=mconley
browser/components/places/content/downloadsView.js
--- a/browser/components/places/content/downloadsView.js
+++ b/browser/components/places/content/downloadsView.js
@@ -158,17 +158,17 @@ DownloadElementShell.prototype = {
   },
 
   // The label for the download
   get _displayName() {
     if (this._dataItem)
       return this._dataItem.target;
 
     try {
-      return this._getAnnotation(DESTINATION_FILE_NAME_ANNO, "");
+      return this._getAnnotation(DESTINATION_FILE_NAME_ANNO);
     }
     catch(ex) { }
 
     // Fallback to the places title, or, at last, to the download uri.
     return this._placesNode.title || this.downloadURI;
   },
 
   // If there's a target file for the download, this is its nsIFile object.