Closed
Bug 1245311
Opened 8 years ago
Closed 8 years ago
Investigate simplifying LoadFaviconTask
Categories
(Firefox for Android Graveyard :: Favicon Handling, defect)
Firefox for Android Graveyard
Favicon Handling
Tracking
(firefox47 affected)
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
firefox47 | --- | affected |
People
(Reporter: ahunt, Unassigned)
References
Details
LoadFaviconTask is difficult to understand, which has caused issues when implementing apple-touch-icon support (which reuses the Favicon infrastructure for downloading touch-icons). It would be nice to simplify what we're doing here, see the following comment from Bug 1238656 : (Michael Comella (:mcomella) from comment #12) > I think it's unfortunate `LoadFaviconTask` is so inherently tied to the > cache – it both makes this code hard to understand and (obviously) modify to > not use the cache. I think a better architecture might be: > > `DownloadFaviconTask` – only downloads Favicons > `LoadFaviconTask extends DownloadFaviconTask` – checks in cache for Favicon > cache and if it's not there, downloads the Favicon > `LoadAndCacheFaviconTask extends LoadFaviconTask` – gets the favicon above > and then caches the result We need to keep in mind that homescreen shortcut creation should try the following: 1) download apple-touch-icon, avoiding the cache (since the cache scales icons down to ~32px) 2) fallback to downloading the favicon, also avoiding the cache We could then maybe add a fallback to the normal favicon cache here.
Reporter | ||
Comment 1•8 years ago
|
||
Closing this since Sebastian's Favicon rewrite has addressed this.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Updated•3 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
•