I try to build an AddOn with the Info at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/bookmarks/onCreated
When i use the following function in my AddOn and i add a bookmark for example in a folder “Testfolder”, i always get as bookmarkInfo.parentId “unfiled_____”. Why cant i get the correct folder id?
function handleCreated(id, bookmarkInfo) {
console.log(`New bookmark ID: ${id}`);
console.log(`New bookmark URL: ${bookmarkInfo.parentId}`);
}
browser.bookmarks.onCreated.addListener(handleCreated);