Readonly
tagsThe item ID of the top-level folder that contain the tag "folders".
Readonly
totalThe total number of Sync changes (inserts, updates, deletes, merges, and uploads) recorded since Places startup for all bookmarks.
Note that this is not the number of bookmark syncs. It's a monotonically
increasing counter incremented for every change that affects a bookmark's
syncChangeCounter
.
The counter can be used to avoid keeping an exclusive transaction open for time-consuming work. One way to do that is to store the current value of the counter, do the work, start a transaction, check the current value again, and compare it to the stored value to determine if the database changed during the work.
The bookmarks mirror does this to check for changes between building and applying a merged tree. This avoids blocking the main Places connection during the merge, and ensures that the new tree still applies cleanly.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Creates a new child folder and inserts it under the given parent.
The ID of the newly-inserted folder.
if aGuid is malformed.
The id of the parent folder
Inserts a child bookmark into the given folder.
The ID of the newly-created bookmark.
aTitle will be truncated to TITLE_LENGTH_MAX and aURI will be truncated to URI_LENGTH_MAX.
if aGuid is malformed.
The id of the parent folder
The URI to insert
The index to insert at, or DEFAULT_INDEX to append
The title for the new bookmark
Set the last modified time for an item.
This is the only method that will send an itemChanged notification for the property. lastModified will still be updated in any other method that changes an item property, but we will send the corresponding itemChanged notification instead.
the id of the item whose last modified time should be updated.
the new last modified value in microseconds. Note that it is rounded down to milliseconds precision.
Generated using TypeDoc
The BookmarksService interface provides methods for managing bookmarked history items. Bookmarks consist of a set of user-customizable folders. A URI in history can be contained in one or more such folders.