зеркало из https://github.com/mozilla/pjs.git
fix for bug #393887: Star icon shouldn't be set for items in RSS / Live Bookmarks.
r=dietrich
This commit is contained in:
Родитель
c37ade6d64
Коммит
f4d2606f2d
|
@ -1502,11 +1502,11 @@ var PlacesUtils = {
|
|||
var bmkIds = this.bookmarks.getBookmarkIdsForURI(aURI, {});
|
||||
for each (var bk in bmkIds) {
|
||||
// Find the first folder which isn't a tag container
|
||||
var folder = this.bookmarks.getFolderIdForItem(bk);
|
||||
if (folder == this.placesRootId)
|
||||
var parent = this.bookmarks.getFolderIdForItem(bk);
|
||||
if (parent == this.placesRootId)
|
||||
return bk;
|
||||
var parent = this.bookmarks.getFolderIdForItem(folder)
|
||||
if (parent != this.tagRootId &&
|
||||
var grandparent = this.bookmarks.getFolderIdForItem(parent);
|
||||
if (grandparent != this.tagRootId &&
|
||||
!this.annotations.itemHasAnnotation(parent, "livemark/feedURI"))
|
||||
return bk;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче