Closed Bug 893297 Opened 11 years ago Closed 11 years ago

Icon problem when installing an app from within another app (yo dawg)

Categories

(Firefox Graveyard :: Webapp Runtime, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 25

People

(Reporter: marco, Assigned: marco)

References

()

Details

Attachments

(1 file, 1 obsolete file)

webapprt/WebappsHandler.jsm allows apps installation from within an app. The installation works fine if a custom icon is specified in the manifest file, but when an icon is not specified the installer code tries to use chrome://browser/skin/webapps-64.png, that isn't present for the webrt.

We could:
A) Move the icon to chrome://global
B) (hacky) Modify the manifest on-the-fly adding the icon as chrome://webapprt/something

I don't know how this kind of URLs works, so probably there are other solutions.
We could also copy the icon to webapprt/, but I'd rather share the resource between Firefox and the runtime by putting it in Toolkit.  We already do that for some images used by both the classic and the Metro versions of Firefox (f.e. chrome://global/skin/icons/warning-16.png).

mossop: does that seem reasonable to you?
Flags: needinfo?(dtownsend+bugmail)
(In reply to Myk Melez [:myk] [@mykmelez] from comment #1)
> We could also copy the icon to webapprt/, but I'd rather share the resource
> between Firefox and the runtime by putting it in Toolkit.  We already do
> that for some images used by both the classic and the Metro versions of
> Firefox (f.e. chrome://global/skin/icons/warning-16.png).
> 
> mossop: does that seem reasonable to you?

Sounds fine to me
Flags: needinfo?(dtownsend+bugmail)
Attached patch move_webapps_icon (obsolete) — Splinter Review
Assignee: nobody → mcastelluccio
Status: NEW → ASSIGNED
Attachment #779414 - Flags: review?(dtownsend+bugmail)
Attachment #779414 - Flags: review?(dtownsend+bugmail) → review+
Keywords: checkin-needed
Needs rebasing.
Keywords: checkin-needed
Rebased, carrying r+.
Attachment #779414 - Attachment is obsolete: true
Attachment #782005 - Flags: review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/00c1c1de3e0f
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 25
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: