Provide WebExtension Thumbnail API



3 years ago
a month ago


(Reporter: blask, Unassigned)


(Blocks: 2 bugs)

44 Branch
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [tabs][design-decision-approved] triaged)



3 years ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20160125133541

Comment 1

3 years ago
I've got an extension: (and there are several others) that generate thumbnails. I know there is a service today that does it, but it won't be accessible from WebExtensions. It would be great if there would be a WebExtension API that I can call with a URL and that generates a thumbnail and returns a URL to it. Ideally there would be a way to modify the CSS for it (this is how I do it now: /

Alternatively, there could be streamlined version of what I do today: open a tab, hide it, apply style and capture it. What would be missing is hiding a tab (this is what I do today: (collapsed + disabled)) and capturing any tab(not just the currently visible one) to allow for background generation.
Component: Untriaged → Webapp Runtime
Component: Webapp Runtime → Untriaged


3 years ago
Severity: normal → enhancement
Component: Untriaged → WebExtensions
Product: Firefox → Toolkit
Whiteboard: [tabs][berlin]
Whiteboard: [tabs][berlin] → [tabs][berlin][good first bug]
Ever confirmed: true
Whiteboard: [tabs][berlin][good first bug] → [tabs]
Is this covered by chrome.tabs.captureVisibleTab() ?

Comment 3

3 years ago
No, because any tab should be capturable, not just the currently visible one.


3 years ago
Whiteboard: [tabs] → [tabs][design decision needed] triaged
Duplicate of this bug: 1272906
Duplicate of this bug: 1272906
Duplicate of this bug: 1272906

Comment 7

2 years ago
This seems like a good idea, we haven't talked about it much because the whiteboard tag was wrong, but I can't imagine this being that controversial and I don't think there's anything that does this already. As a minor point I'm commenting on this bug using VerticalTabs which is showing a thumbnail of the window in the tab...
Component: WebExtensions: Untriaged → WebExtensions: Frontend
Priority: -- → P3
Whiteboard: [tabs][design decision needed] triaged → [tabs][design-decision-approved] triaged
Blocks: 1311472

Comment 8

2 years ago
looking at this sample-code from there is an api in chrome to get the thumbnail.

  "permissions": [

[2] = 'url(chrome://favicon/' +
      data[rand].url + ')';


Comment 9

2 years ago
(In reply to matthias koplenig from comment #8)

A favicon is not the same as a thumbnail...


a year ago
Blocks: 1232178


7 months ago
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.