diff --git a/browser/components/nsBrowserGlue.js b/browser/components/nsBrowserGlue.js index b60341c35ad6..e6b325212317 100644 --- a/browser/components/nsBrowserGlue.js +++ b/browser/components/nsBrowserGlue.js @@ -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