mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 412348 ? Titles are missing in smart Bookmarks and Addressbar for urls w/out www (for ondrej@allpeers.com, r=dietrich)
This commit is contained in:
parent
8922632b9a
commit
c00912bd81
@ -158,7 +158,12 @@ AddToHistoryCB(const nsCSubstring &aRowID,
|
||||
: (PRInt32) nsINavHistoryService::TRANSITION_LINK;
|
||||
nsNavHistory *history = data->history;
|
||||
|
||||
history->AddPageWithVisit(uri, nsDependentString(title, titleLength),
|
||||
nsAutoString titleStr;
|
||||
if (titleLength)
|
||||
titleStr = nsDependentString(title, titleLength);
|
||||
else
|
||||
titleStr.SetIsVoid(PR_TRUE);
|
||||
history->AddPageWithVisit(uri, titleStr,
|
||||
PR_FALSE, isTyped, count, transition, date);
|
||||
}
|
||||
return PL_DHASH_NEXT;
|
||||
|
Loading…
Reference in New Issue
Block a user