mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 423267 ? Library/Bookmark sidebar is blank/empty with new profile. (r=mano, a=mconnor-irc)
This commit is contained in:
parent
a7125be6fd
commit
e7e520df14
@ -632,7 +632,7 @@ BrowserGlue.prototype = {
|
||||
var defaultIndex = bmsvc.DEFAULT_INDEX;
|
||||
|
||||
// index = 0, make it the first folder
|
||||
var placesFolder = bmsvc.createFolder(toolbarFolder, smartBookmarksFolderTitle,
|
||||
var placesFolder = bmsvc.createFolder(bmsvc.toolbarFolder, smartBookmarksFolderTitle,
|
||||
0);
|
||||
|
||||
// XXX should this be a pref? see bug #399268
|
||||
|
@ -1142,8 +1142,7 @@ var PlacesUIUtils = {
|
||||
// XXX: Downloads
|
||||
|
||||
// Tags Query
|
||||
uri = self._uri("place:folder=TAGS");
|
||||
uri = PlacesUtils._uri("place:folder=" + PlacesUtils.tagsFolderId);
|
||||
uri = PlacesUtils._uri("place:folder=TAGS");
|
||||
itemId = PlacesUtils.bookmarks.insertBookmark(leftPaneRoot, uri, -1, null);
|
||||
PlacesUtils.annotations.setItemAnnotation(itemId, ORGANIZER_QUERY_ANNO,
|
||||
"Tags", 0, EXPIRE_NEVER);
|
||||
@ -1158,21 +1157,21 @@ var PlacesUIUtils = {
|
||||
self.leftPaneQueries["AllBookmarks"] = itemId;
|
||||
|
||||
// All Bookmarks->Bookmarks Toolbar Query
|
||||
uri = self._uri("place:folder=TOOLBAR");
|
||||
uri = PlacesUtils._uri("place:folder=TOOLBAR");
|
||||
itemId = PlacesUtils.bookmarks.insertBookmark(allBookmarksId, uri, -1, null);
|
||||
PlacesUtils.annotations.setItemAnnotation(itemId, ORGANIZER_QUERY_ANNO,
|
||||
"BookmarksToolbar", 0, EXPIRE_NEVER);
|
||||
self.leftPaneQueries["BookmarksToolbar"] = itemId;
|
||||
|
||||
// All Bookmarks->Bookmarks Menu Query
|
||||
uri = self._uri("place:folder=BOOKMARKS_MENU");
|
||||
uri = PlacesUtils._uri("place:folder=BOOKMARKS_MENU");
|
||||
itemId = PlacesUtils.bookmarks.insertBookmark(allBookmarksId, uri, -1, null);
|
||||
PlacesUtils.annotations.setItemAnnotation(itemId, ORGANIZER_QUERY_ANNO,
|
||||
"BookmarksMenu", 0, EXPIRE_NEVER);
|
||||
self.leftPaneQueries["BookmarksMenu"] = itemId;
|
||||
|
||||
// All Bookmarks->Unfiled bookmarks
|
||||
uri = self._uri("place:folder=UNFILED_BOOKMARKS");
|
||||
uri = PlacesUtils._uri("place:folder=UNFILED_BOOKMARKS");
|
||||
itemId = PlacesUtils.bookmarks.insertBookmark(allBookmarksId, uri, -1, null);
|
||||
PlacesUtils.annotations.setItemAnnotation(itemId, ORGANIZER_QUERY_ANNO,
|
||||
"UnfiledBookmarks", 0,
|
||||
|
Loading…
Reference in New Issue
Block a user