Not possible to use the contextualIdentity API icon

NEW
Unassigned

Status

()

Toolkit
WebExtensions: Frontend
P5
normal
2 months ago
5 days ago

People

(Reporter: andym, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
Points:
---

Firefox Tracking Flags

(firefox54 affected)

Details

(Whiteboard: [contextualIdentities], triaged)

(Reporter)

Description

2 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.
(Reporter)

Comment 3

2 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.
(Reporter)

Updated

2 months ago
Whiteboard: [contextualIdentities]

Updated

2 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.