Fix bug # 20238: when bookmarking a URL, if it doesn't have a title specified, fallback to using the URL as the title.
This commit is contained in:
Родитель
2ba249643b
Коммит
3e542a8aeb
|
@ -946,6 +946,10 @@ function OpenSearch(tabName, searchStr)
|
|||
{
|
||||
var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();
|
||||
bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);
|
||||
if ((title == null) || (title == ""))
|
||||
{
|
||||
title = url;
|
||||
}
|
||||
bmks.AddBookmark(url, title);
|
||||
}
|
||||
|
||||
|
|
|
@ -946,6 +946,10 @@ function OpenSearch(tabName, searchStr)
|
|||
{
|
||||
var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();
|
||||
bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);
|
||||
if ((title == null) || (title == ""))
|
||||
{
|
||||
title = url;
|
||||
}
|
||||
bmks.AddBookmark(url, title);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче