additional permission popup not showing specified extension icon
Categories
(WebExtensions :: Untriaged, defect, P3)
Tracking
(firefox113 fixed)
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: u.g.harinaaraayanan, Assigned: willdurand)
References
Details
(Whiteboard: [addons-jira])
Attachments
(5 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Steps to reproduce:
I am building an extension where i have added optional permission for "topsites". I have specified required extension icons in manifest ,it is showing properly in toolbar and in other places like extension page, but in additional permission popup it is not showing my extension icon, but it is showing default icon.
icons are specified in manifest as below ,
{
"icons" : {
"16": "icon-16.png",
"32": "icon-32.png",
"64": "icon-64.png"
},
"optional_permissions" : ["topsites"],
"browser_action": {
"default_icon": {
"16": "icon-16,png",
"32": "icon-32.png",
"64": "icon-64.png"
}
}
}
Actual results:
In additional permission popup it is showing default extension icon.
Expected results:
In additional permission popup extension icon which i specified has to be shown when its prompted to user.
Reporter | ||
Comment 1•2 years ago
|
||
Comment 2•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Can you please attach the addon used in order to try to reproduce the issue on our side?
Thanks,
Victor
Hello,
Thanks for the attachment.
I was able to reproduce the described issue so I am marking it as NEW for more investigations.
Thank you ,
Victor
Assignee | ||
Comment 6•2 years ago
•
|
||
Looks like this never worked? I can also reproduce. The code looks a bit odd, it seems we call context.extension.iconURL
, which is not a thing.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 7•2 years ago
|
||
It looks like extension.iconURL
never worked. I added a getPreferredIcon()
that relies on IconDetails.getPreferredIcon()
under the hood in order to
easily get icon URLs from an instance of an Extension
. I updated a few places
where using this new method is a bit better.
Updated•2 years ago
|
Comment 9•2 years ago
|
||
bugherder |
Comment 10•2 years ago
|
||
Verified as fixed in latest FF 113.
Please see attached screenshots.
Comment 11•2 years ago
|
||
Reporter | ||
Comment 12•2 years ago
|
||
Thanks for the fix, I will verify it.
Description
•