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 116415 70f6be1bebf580633bf3053803c96da898a31e60
parent 116414 f3d710952f62d5ab8d11c330364967756d81111e
child 116416 f744b51dcf2c10f8ac336e845b423f0f7a53c5fe
push id24049
push userryanvm@gmail.com
push dateWed, 19 Dec 2012 00:32:38 +0000
treeherdermozilla-central@287a7d7cf7f0 [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.