Closed Bug 1411120 Opened 3 years ago Closed 3 years ago

Bookmarks BookmarkTreeNode API should expose favicon URL


(WebExtensions :: General, enhancement, P5)

57 Branch


(Not tracked)



(Reporter: mock.brian, Unassigned)



(Whiteboard: [bookmarks][design-decision-approved])

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36

Steps to reproduce:

I used the WebExtensions bookmarks API to make a new tab page extension but was unable to find a way to obtain favicons for bookmarks.

Actual results:

BookmarkTreeNode does not expose the favicon for a bookmark.

Expected results:

There should be a new optional property called `faviconUrl` which is a URL pointing to the favicon for the website. Ideally this URL would point at the browser's cached version to avoid network requests.
Component: Untriaged → WebExtensions: General
Product: Firefox → Toolkit
Ever confirmed: true
Priority: -- → P5
Whiteboard: [bookmarks][design-decision-needed]
Related: Give extensions access to cached favicon URLs -
Severity: normal → enhancement
From a standpoint of an addon developer, it would be better to expose the favicon as base64 to avoid having to do a lot of requests to multiple favicon URLs.
Indeed, as add-on developers, what we need is a data: URI as faviconUrl, to directly display as an <img>.

This also has the additional benefit of avoiding cases where the destination URL is asking for credentials (user/pwd) to retrieve the contents.
Hi mock-brian, this has been added to the agenda for the WebExtensions APIs triage on March 13, 2018. Would you be able to join us? 

* We normally spend 5 minutes per bug
* The more information in the bug, the better
* The goal of the triage is to give a general thumbs up or thumbs down on a proposal; we won't be going deep into implementation details

Relevant Links: 

* Wiki for the meeting:
* Meeting agenda:
* Vision doc for WebExtensions:
Hi Caitlin, I've put it on my calendar and should be able to attend. Thanks for the invite.

- Brian
I'd like to see favicon data exposed for history (as well)

Should I file a separate issue or is this close enough to tack on here?
This was approved in the design-decision meeting, but we're going to dupe this into the more general bug 1315616, which has been approved.
Closed: 3 years ago
Resolution: --- → DUPLICATE
See Also: → 1315616
Whiteboard: [bookmarks][design-decision-needed] → [bookmarks][design-decision-approved]
Duplicate of bug: 1315616
Did that approval include exposing favicons on history items as well, Caitlin?
Brett: I believe the resolution from the meeting was close this in favor of which is a more general solution that would solve both of our use cases and also address some security concerns around the API.
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.