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?
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.
Sounds great, as long as the path is webextension accessible. Should I file a seperate bug for the colours mentioned in comment 2?
Yes, please. About the path, we can maybe move the image to a resource:// URL. this should be accessible to addons.