Closed Bug 1822306 Opened 2 years ago Closed 2 years ago

additional permission popup not showing specified extension icon

Categories

(WebExtensions :: Untriaged, defect, P3)

Firefox 110
defect

Tracking

(firefox113 fixed)

VERIFIED FIXED
113 Branch
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.

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.

Product: Firefox → WebExtensions

Can you please attach the addon used in order to try to reproduce the issue on our side?

Thanks,
Victor

Flags: needinfo?(u.g.harinaaraayanan)
Attached file permissions-addon.zip

extension file attached

Flags: needinfo?(u.g.harinaaraayanan)

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

Status: UNCONFIRMED → NEW
Ever confirmed: true

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.

Severity: -- → S3
Priority: -- → P3
Whiteboard: [addons-jira]

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.

Assignee: nobody → wdurand
Status: NEW → ASSIGNED
Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/47ac8fb37606 Add `Extension.getPreferredIcon()` method and use it. r=zombie
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch

Verified as fixed in latest FF 113.
Please see attached screenshots.

Status: RESOLVED → VERIFIED
Attached image Postfix screenshot

Thanks for the fix, I will verify it.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: