зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2d28986f21
Коммит
8e6c603637
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче