Bug 424213 - URLs without corresponding title are displayed with a blank title (which isn't full-height). r=gavin, ui-r=beltzner, a1.9=beltzner. Fixes Bug 421773 - autocomplete (awesome bar) shows a non-integer number of items (half height entries) if some pages lack titles

This commit is contained in:
edward.lee@engineering.uiuc.edu 2008-04-01 23:01:08 -07:00
parent 7d5f859f79
commit 04880403c2

View File

@ -1363,6 +1363,10 @@
this._typeImage.className = "ac-type-icon" +
(type ? " ac-result-type-" + type : "");
// Show the url as the title if we don't have a title
if (title == "")
title = url;
// Emphasize the matching search terms for the description
this._setUpDescription(this._title, title);
this._setUpDescription(this._url, url);