navigator.mozApps.mgmt.getIcon() returns wrong size

UNCONFIRMED
Unassigned

Status

Firefox OS
General
UNCONFIRMED
2 years ago
2 years ago

People

(Reporter: Adrian Crespo, Unassigned, NeedInfo)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20160115030235

Steps to reproduce:

There is an app with multiple sizes for the icon:
https://github.com/CodingFree/MD5-Webapp/tree/master/icons

The icon defined for 60x60 pixels seems to have the right size:
http://imgur.com/mlfLPDU.png

This homescreen is using the following function to retrieve the icons:
navigator.mozApps.mgmt.getIcon(icon, 60);

Source:
https://github.com/novia713/smokingtedscreen/blob/fcab061ca4109e4213891a5d9fc98651008662a2/js/apps.js#L158


Actual results:

The icon has not the right size:
http://imgur.com/ip2uKk7.png


Expected results:

The icon should be like this:
http://imgur.com/GLtDCbq.png
(Reporter)

Updated

2 years ago
Flags: needinfo?(ted.clancy)

Comment 1

2 years ago
yes, i'm doing navigator.mozApps.mgmt.getIcon(icon, 30) and getting a 84x84 icon :(
is this method documented anywhere?
You need to log in before you can comment on or make changes to this bug.