Creates a bookmark or folder as a child of the BookmarkTreeNode
with the specified parentId
. To create a folder, omit or leave empty the CreateDetails.url
parameter.
Warning: If your extension tries to create a new bookmark in the bookmark tree's root node, it raises an error: "The bookmark root cannot be modified" and the bookmark won't be created.
This is an asynchronous function that returns a Promise
.