Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Not possible to use the contextualIdentity API icon




WebExtensions: Frontend
5 months ago
3 months ago


(Reporter: andym, Unassigned)


(Blocks: 1 bug)


Firefox Tracking Flags

(firefox54 affected)


(Whiteboard: [contextualIdentities], triaged)



5 months ago
The contextualIdentity API returns an icon in the format: 

icon: "fingerprint"

That's not an image I can use anywhere in my WebExtension, because I can't access the Chrome. Would it be possible to expose it to an extension?
We can add an extra field in the ContextualIdentity with the image path. How does it sound?
Flags: needinfo?(amckay)
As Andy pointed out I don't think these paths are extension accessible. I have a feeling <img can be used but backgrounds can't (haven't tested recently).

The other issue not mentioned here but should be is the colours used by the browser don't match the keyword we return. For example pink and blue look very different from the colours used. We however use two slightly different colours for text and icon because the contrast doesn't work correctly on the colours. This likely will be an issue in exposing the colour values.

Comment 3

5 months ago
Sounds great, as long as the path is webextension accessible. 

Should I file a seperate bug for the colours mentioned in comment 2?
Flags: needinfo?(amckay)
Yes, please.

About the path, we can maybe move the image to a resource:// URL. this should be accessible to addons.


5 months ago
Whiteboard: [contextualIdentities]


5 months ago
Priority: -- → P5
Whiteboard: [contextualIdentities] → [contextualIdentities], triaged
Blocks: 1191418
You need to log in before you can comment on or make changes to this bug.