Closed Bug 1546011 Opened 6 years ago Closed 6 years ago

Bookmarks API Bookmark​Tree​Node doesn't include favicons

Categories

(WebExtensions :: Untriaged, enhancement)

67 Branch
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1315616

People

(Reporter: juhyt80, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0

Steps to reproduce:

I am trying to use bookmark api and make good bookmark manager using Jailese extension framework (under dev by me)

Actual results:

Standard bookmark's pop-up include favicons, but bookmarks​.Bookmark​Tree​Node object doesn't include path for cached favicons. So I can't show icon to the user.

Expected results:

bookmarks​.Bookmark​Tree​Node object need to include cached favicon's url

Type: defect → enhancement
Component: Untriaged → Bookmarks & History
OS: Unspecified → All
Hardware: Unspecified → All

Hi juhyt80, thanks for reporting! You might be able to use a page-icon: URL, with the origin of the bookmark URL (e.g., for http://example.com/path/to/something, use page-icon:http://example.com), but I'm not sure if that's exposed to WebExtensions. Either way, it'd be handy if you could get the favicon URL for a Bookmark​Tree​Node.

Component: Bookmarks & History → Untriaged
Product: Firefox → WebExtensions

Ok, but page-icon:http://example.com or something else doesn't work. page-icon: returns the sample icon, but it can't get any type of URL. Is there any documentation? Thank you

Flags: needinfo?(lina)

There isn't. 🙁 It was added in bug 1283825, but, reading through bug 1354248 (and bug 1315616, and bug 1411120), it sounds like it's not possible to use from an extension yet, sorry.

Looks like bug 1315616 is the tracking bug, so I'll dupe this bug to that. Unfortunately, I don't know the timeline for adding it.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(lina)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.