Closed Bug 1393654 Opened 7 years ago Closed 7 years ago

ability to get contents of "smart bookmarks" in webextensions

Categories

(WebExtensions :: Untriaged, defect, P5)

54 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1276821

People

(Reporter: testo.moz, Unassigned)

Details

(Whiteboard: [design-decision-needed])

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170612122018

Steps to reproduce:

If I in a webextension I do something like 

var gettingTree = browser.bookmarks.getTree();

Among the results I get bookmarks whose url property is "place:type=6&sort=14&maxResults=10" or "place:sort=8&maxResults=10".  This is fine, but there is no way to do anything with these.  I think there should be an extension to browser.bookmarks (or browser.history or even a new browser.places) that lets me access the results of these.



Expected results:

I should be able to do something like the following in my code:

browser.places.query("sort=8&maxResults=10")

or

browser.places.query({
"sort": 8,
"maxResults": 10
});

Another possibility would be to extend browser.bookmarks.search(); to support all the possibilities. But I don't think that is desirable.
Component: Untriaged → WebExtensions: Untriaged
Product: Firefox → Toolkit
Flags: needinfo?(amckay)
Priority: -- → P5
Whiteboard: [design-decision-needed]
I think that might be a livemark, which is documented here: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Using_the_Places_livemark_service.

If so it's a dupe of bug 1276821.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(amckay)
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.