mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 16:22:53 +00:00
Bug 743692. (Fv2-FF) nsBrowserGlue.js: fix 2 nits. r=mak77 a=(desktop-only).
This commit is contained in:
parent
63ad3ffb37
commit
da7aade5f2
@ -1413,7 +1413,7 @@ BrowserGlue.prototype = {
|
||||
parent: PlacesUtils.bookmarksMenuFolderId,
|
||||
position: menuIndex++,
|
||||
newInVersion: 1
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
// Set current itemId, parent and position if Smart Bookmark exists,
|
||||
@ -1424,9 +1424,9 @@ BrowserGlue.prototype = {
|
||||
let queryId = PlacesUtils.annotations.getItemAnnotation(itemId, SMART_BOOKMARKS_ANNO);
|
||||
if (queryId in smartBookmarks) {
|
||||
let smartBookmark = smartBookmarks[queryId];
|
||||
smartBookmarks[queryId].itemId = itemId;
|
||||
smartBookmarks[queryId].parent = PlacesUtils.bookmarks.getFolderIdForItem(itemId);
|
||||
smartBookmarks[queryId].position = PlacesUtils.bookmarks.getItemIndex(itemId);
|
||||
smartBookmark.itemId = itemId;
|
||||
smartBookmark.parent = PlacesUtils.bookmarks.getFolderIdForItem(itemId);
|
||||
smartBookmark.position = PlacesUtils.bookmarks.getItemIndex(itemId);
|
||||
}
|
||||
else {
|
||||
// We don't remove old Smart Bookmarks because user could still
|
||||
|
Loading…
x
Reference in New Issue
Block a user