Closed
Bug 1005340
Opened 11 years ago
Closed 11 years ago
[Home2] Offline Icon Handling
Categories
(Firefox OS Graveyard :: Gaia::Homescreen, defect)
Tracking
(feature-b2g:2.0, b2g-v2.0 fixed)
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | fixed |
People
(Reporter: kgrandon, Assigned: crdlc)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file)
We should make sure that we support all offline handling cases for icons. Currently we just display icons based on the http url that we can receive from the manifest or bookmark.
Reporter | ||
Comment 1•11 years ago
|
||
Hi Cristian -
Just wondering if you could chime in with your expertise here. Right now we are just displaying a link to the image for icons, but I assume that we need to perform some downloading/saving of the image. Do you think it is necessary to process and save the image in IndexedDB for example?
Flags: needinfo?(crdlc)
Assignee | ||
Comment 2•11 years ago
|
||
Hi Kevin,
The current implementation is based on a library called IconRetriever which deals with downloads (e.g. it retries when a timeout happens, waiting for downloading images when the device is offline, etc..). IMHO I think that once the icon is obtained you could save the image in IndexedDB in order to be faster rendering next time and also you do not need to consume more data getting remote images next times. I think that is the correct to way to proceed but it is just my opinion. Maybe I can be wrong.
Cheers
https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/js/icon_retriever.js
Flags: needinfo?(crdlc)
Assignee | ||
Comment 3•11 years ago
|
||
I will try to do the first approach in order to help you in your awesome work in home2
Assignee: nobody → crdlc
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8417416 -
Flags: review?(kgrandon)
Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 8417416 [details]
Patch v1
Hey Cristian, this is awesome! I made one nit on github which may result in some nicer syntax. If you can address that and fix the jshint issues on travis (just need some /* global ____ */ tags, I think we should be good to land.
Thanks so much for knocking this out :)
Attachment #8417416 -
Flags: review?(kgrandon) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Thanks a lot Kevin, I gonna fix it immediately
Assignee | ||
Comment 7•11 years ago
|
||
Merged in master:
https://github.com/mozilla-b2g/gaia/commit/cfc40f41bf417c2d242033fefd53b7aa3f3bf71c
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Whiteboard: [systemsfe]
Target Milestone: --- → 2.0 S1 (9may)
Updated•11 years ago
|
feature-b2g: --- → 2.0
Reporter | ||
Comment 8•11 years ago
|
||
Mass modify - set status-b2g-v2.0 fixed for fixed bugs under vertical homescreen dependency tree.
status-b2g-v2.0:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•