I\'ve written some code to explore my Firefox bookmarks but I only get the first level of bookmarks (i.e. I don\'t get the links in the folders).
e.g.
Just to save time to anyone who want to get all the bookmarks, do not do
query.setFolders([
bookmarksService.bookmarksMenuFolder,
bookmarksService.toolbarFolder,
bookmarksService.unfiledBookmarksFolder
], 3);
as suggested by Wladimir since it WON'T bring you all of the bookmarks but instead do an intersect of the folders and only give u the bookmarks which are placed at all of those folders, as written at Mozilla doc's
You can set multiple folders and the result will be the intersection of all the folders.
( https://developer.mozilla.org/en/Querying_Places )