Closed
Bug 855911
Opened 12 years ago
Closed 11 years ago
Handle favicon creation and scaling in browser.js, not in Java
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: wesj, Assigned: ckitching)
References
Details
Attachments
(1 file, 1 obsolete file)
16.94 KB,
patch
|
Details | Diff | Splinter Review |
Nvidia is sending us an ico file. Java grabs the last icon in the file (I think). We have no control over this AFAIK, but in Gecko we do. It might be better if we could do all our favicon resizing in Gecko regardless, where we have more control over the resample algorithms.
Reporter | ||
Comment 1•12 years ago
|
||
I want to clean this up and play with it a bit more, but getting there.
Reporter | ||
Comment 2•12 years ago
|
||
This moves our favicon creation and scaling to browser.js (we're caching these in Favicons.java, so for the most part any speed hit should be small?). It sends pass a data-uri with the favicon to Java now. If there is no icon, java would previously attempt to use favicon.ico. This has the Java frontend send a message to Gecko requesting the favicon.ico icon be loaded instead.
I also duplicated our scaling code here. If the icon is the same size or more than a minimum, we scale it up, otherwise we scale down. The big benefit here though is just that we can pick better icons from ico images than we could with Android's bitmap decoder.
Attachment #730985 -
Attachment is obsolete: true
Attachment #731277 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 4•11 years ago
|
||
Fixed by patch on Bug 748100.
https://www.dropbox.com/s/dd8aj12yektrah3/NvidiaFix.png
Assignee: nobody → ckitching
Depends on: ICODecoder
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Updated•11 years ago
|
Attachment #731277 -
Flags: review?(mark.finkle)
Comment 5•11 years ago
|
||
Fixed by Bug 748100.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 6•11 years ago
|
||
That hasn't landed yet, has it?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #6)
> That hasn't landed yet, has it?
Correct. This is fixed by the ICODecoder which is yet to land.
Feel free to steal that bug, anyone who is bored and has this mythical "Free time".
Comment 8•11 years ago
|
||
I think the correct resolution for this is "WONTFIX in favor of…" -- we can reopen it later if there's some pressing need to do the work in Gecko, but in the mean time the landed-and-forthcoming Java stuff will solve the issue.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
OS: Linux → Android
Hardware: x86 → All
Resolution: --- → WONTFIX
Summary: nvidia.com favicon is ugly → Handle favicon creation and scaling in browser.js, not in Java
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•