Closed Bug 1096682 Opened 10 years ago Closed 10 years ago

Stub out the favicon service

Categories

(Firefox for iOS :: Favicons, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: wesj, Unassigned)

References

Details

Attachments

(1 file)

45 bytes, text/x-github-pull-request
bnicholson
: review+
Details | Review
Splitting up bug 1094940 into some micro bugs. This will handle just creating a stub service and using it everywhere. This can just hardcode a single icon for now. I just want to make sure all callers travel through this API.

Note: Even though this is a single local icon, we want this API to support asynchronously loading an image into a view (that may be recycled).
Group: mozilla-employee-confidential
Attached file Pull Request
This is a basic stubbed out version of this Adds a Favicons Protocol with a BasicFavicons implementation. Cursor protocol. ArrayCursor<T> implementation. And uses both on the tabs we have.

I'm still not sure how to pass something like a Cursor<T>. I have a feeling it can't be done....
Attachment #8520457 - Flags: review?(bnicholson)
Comment on attachment 8520457 [details] [review]
Pull Request

Looks fine for now -- we can tweak stuff as we move along.

(In reply to Wesley Johnston (:wesj) from comment #1)
> I'm still not sure how to pass something like a Cursor<T>. I have a feeling
> it can't be done....

So that's why getForUrls() uses ArrayCursor in the API rather than just Cursor? I agree that's something we should try to figure out, sooner than later, since it kind of kills the abstraction. Can you file a follow-up for this?
Attachment #8520457 - Flags: review?(bnicholson) → review+
Merged.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Group: mozilla-employee-confidential
Component: General → Favicons
Product: Firefox for Android → Firefox for iOS
Summary: (ios) Stub out the favicon service → Stub out the favicon service
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: