зеркало из 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, {});
|
var bmkIds = this.bookmarks.getBookmarkIdsForURI(aURI, {});
|
||||||
for each (var bk in bmkIds) {
|
for each (var bk in bmkIds) {
|
||||||
// Find the first folder which isn't a tag container
|
// Find the first folder which isn't a tag container
|
||||||
var folder = this.bookmarks.getFolderIdForItem(bk);
|
var parent = this.bookmarks.getFolderIdForItem(bk);
|
||||||
if (folder == this.placesRootId)
|
if (parent == this.placesRootId)
|
||||||
return bk;
|
return bk;
|
||||||
var parent = this.bookmarks.getFolderIdForItem(folder)
|
var grandparent = this.bookmarks.getFolderIdForItem(parent);
|
||||||
if (parent != this.tagRootId &&
|
if (grandparent != this.tagRootId &&
|
||||||
!this.annotations.itemHasAnnotation(parent, "livemark/feedURI"))
|
!this.annotations.itemHasAnnotation(parent, "livemark/feedURI"))
|
||||||
return bk;
|
return bk;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче