Closed Bug 1435466 Opened 7 years ago Closed 7 years ago

Make bookmark keywords accessible to webextensions

Categories

(WebExtensions :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1276817

People

(Reporter: cmcaine, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0 Build ID: 20180130084414 Steps to reproduce: Bookmark keywords are a useful Firefox feature. My add-on, Tridactyl, and other add-ons that replace the functionality of the location bar would benefit from being able to search bookmarks by keyword. My add-on and other add-ons that allow the user to make bookmarks will want to permit the user to make new keyword bookmarks. Neither of those things are supported by the current bookmarks API. I suggest a `keyword` property be added to BookmarkTreeNode and the objects accepted by create() and update() and that a new function getKeywords() be added that returns a list of all bookmarks where the keyword property is not null*. * Maybe better would be a map (Map or object) of keyword to list of bookmarks with that keyword (I think multiple bookmarks can have the same keyword. I don't know what's supposed to happen when they do).
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.