Closed Bug 1147175 Opened 10 years ago Closed 10 years ago

Use SDWebImage for thumbnail

Categories

(Firefox for iOS :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: wesj, Unassigned)

Details

Attachments

(1 file)

47 bytes, text/x-github-pull-request
bnicholson
: review+
Details | Review
I've wanted to use sdwebimage for this so that we don't wind up writing more disk and memory cache code (i.e. I'd rather have one set of code for it, and I'd rather not have to maintain it ourselves if we can).
Attached file Pull request
This uses a "namespaced" SDWebImageCache object for storing these. That should allow us to delete them exclusively (we should also use this to keep favicons per-profile, I'll file a bug for that...)
Attachment #8582727 - Flags: review?(bnicholson)
I updated this to address some questions. Using our own cache for it actually causes some problems. Namley, imageView.sd_loadFromUrl(...) won't look there! There's no good fix I could find, so I actually just forked the method into a new: imageView.moz_loadFromCache(url, cache, completion) method. Its drastically simplified, but works well for this simpler use case.
Comment on attachment 8582727 [details] [review] Pull request Mostly looks OK to me, with some questions about the keys we're using.
Attachment #8582727 - Flags: review?(bnicholson) → review+
I see the pull request already merged into master branch and hence this bug might be no more valid now.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: