rem: IO.newURI("place:folder=" + tagRoot + 
add: IO.newURI("place:folder=" + tagRoot + 
context:     runBatched: function() {      var placesFolderTitle =        PlacesUtils.getString("placesFolderTitle");      var recentlyCreatedBookmarksTitle =        PlacesUtils.getString("recentlyCreatedBookmarksTitle");      var recentlyVisitedBookmarksTitle =        PlacesUtils.getString("recentlyVisitedBookmarksTitle");      var mostVisitedBookmarksTitle =        PlacesUtils.getString("mostVisitedBookmarksTitle");      var recentlyUsedTagsTitle =        PlacesUtils.getString("recentlyUsedTagsTitle");      var mostUsedTagsTitle =        PlacesUtils.getString("mostUsedTagsTitle");      var mostVisitedSitesTitle =        PlacesUtils.getString("mostVisitedSitesTitle");      var bookmarksRoot = PlacesUtils.bookmarksRootId;      var unfiledRoot = PlacesUtils.unfiledRootId;      var tagRoot = PlacesUtils.tagRootId;      var defaultIndex = bmsvc.DEFAULT_INDEX;      // index = 0, make it the first folder      var placesFolder = bmsvc.createFolder(bmsvc.toolbarFolder,                                            placesFolderTitle,                                            0);      // XXX should this be a pref?  see bug #399268      var maxResults = 10;      // exclude queries so that user created "saved searches"       // and these queries (added automatically) are excluded      var recentlyCreatedBookmarksItem = bmsvc.insertBookmark(placesFolder,        IO.newURI("place:folder=" + bookmarksRoot + "&folder=" + unfiledRoot +            "&queryType=" + Ci.nsINavHistoryQueryOptions.QUERY_TYPE_BOOKMARKS +            "&sort=" +             Ci.nsINavHistoryQueryOptions.SORT_BY_DATEADDED_DESCENDING +            "&excludeItemIfParentHasAnnotation=livemark%2FfeedURI" +            "&maxResults=" + maxResults +            "&excludeQueries=1"),            defaultIndex, recentlyCreatedBookmarksTitle);      var recentlyVisitedBookmarksItem = bmsvc.insertBookmark(placesFolder,        IO.newURI("place:folder=" + bookmarksRoot + "&folder=" + unfiledRoot +            "&queryType=" + Ci.nsINavHistoryQueryOptions.QUERY_TYPE_BOOKMARKS +            "&sort=" + Ci.nsINavHistoryQueryOptions.SORT_BY_DATE_DESCENDING +             "&minVisits=1&maxResults=" + maxResults),            defaultIndex, recentlyVisitedBookmarksTitle);      var mostVisitedBookmarksItem = bmsvc.insertBookmark(placesFolder,        IO.newURI("place:folder=" + bookmarksRoot + "&folder=" + unfiledRoot +            "&queryType=" + Ci.nsINavHistoryQueryOptions.QUERY_TYPE_BOOKMARKS +            "&sort=" +             Ci.nsINavHistoryQueryOptions.SORT_BY_VISITCOUNT_DESCENDING +             "&minVisits=1&maxResults=" + maxResults),            defaultIndex, mostVisitedBookmarksTitle);      var recentlyUsedTagsItem = bmsvc.insertBookmark(placesFolder,        IO.newURI("place:folder=" + tagRoot +            "&group=" + Ci.nsINavHistoryQueryOptions.GROUP_BY_FOLDER +            "&queryType=" + Ci.nsINavHistoryQueryOptions.QUERY_TYPE_BOOKMARKS +            "&applyOptionsToContainers=1" +              "&sort=" +             Ci.nsINavHistoryQueryOptions.SORT_BY_DATEADDED_DESCENDING +             "&resolveNullBookmarkTitles=1" +            "&maxResults=" + maxResults),            defaultIndex, recentlyUsedTagsTitle);      var mostUsedTagsItem = bmsvc.insertBookmark(placesFolder,        IO.newURI("place:folder=" + tagRoot +             "&group=" + Ci.nsINavHistoryQueryOptions.GROUP_BY_FOLDER +            "&queryType=" + Ci.nsINavHistoryQueryOptions.QUERY_TYPE_BOOKMARKS +            "&applyOptionsToContainers=1" +            "&sort=" + Ci.nsINavHistoryQueryOptions.SORT_BY_COUNT_DESCENDING +             "&resolveNullBookmarkTitles=1" +            "&maxResults=" + maxResults),            defaultIndex, mostUsedTagsTitle);      var mostVisitedSitesItem = bmsvc.insertBookmark(placesFolder,        IO.newURI("place:queryType=" +             Ci.nsINavHistoryQueryOptions.QUERY_TYPE_HISTORY +            "&sort=" +             Ci.nsINavHistoryQueryOptions.SORT_BY_VISITCOUNT_DESCENDING +             "&maxResults=" + maxResults),            defaultIndex, mostVisitedSitesTitle);    }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/19fbbbf99dde26c232190ddec49cb7a351439580/browser.js/buggy/browser/base/content/browser.js