Closed Bug 1158282 Opened 9 years ago Closed 9 years ago

Custom search engine favicons are displayed inconsistently in BrowserSearch screen

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
Firefox 41
Tracking Status
firefox41 --- fixed

People

(Reporter: mcomella, Assigned: mcomella)

References

Details

Attachments

(4 files, 2 obsolete files)

Follow-up to bug 1137483.

Custom search engines seem to be a bit wonky - let's fix it!
This is the only bug (besides regressions) that antlam said this needs to ship. If this doesn't hit 40, we need to add a build flag or backout bug 1137483 from 40.
See title. There doesn't seem to be any obvious reason for when the partial globe or nothing is shown.

The list of search engines also seems to sometimes show a globe and sometimes drop the favicon for custom search engines too, which means there may be two issues here:
  * Showing the entire globe in the search engine bar
  * Always showing a globe if no favicon is present

Anthony, are you okay with a globe if there's no favicon? Or is there another placeholder icon you'd like to use?
Flags: needinfo?(alam)
Summary: Make custom search engines work properly in quick search bar → Custom search engines with no favicon sometimes show partial globe, sometimes nothing, in search engine bar
Assignee: nobody → michael.l.comella
I'm moving the search engine icon update to bug 1166868 and this bug will handle the existing issue (it's in the original BrowserSearch list) of the inconsistent display of custom search engine icons.

I've noticed that the custom search engine icons will change when scrolling up and down so I imagine this is a Loader and/or Adapter issue. This includes custom search engines with non-default favicons - sometimes they will go default.
Flags: needinfo?(alam)
Summary: Custom search engines with no favicon sometimes show partial globe, sometimes nothing, in search engine bar → Custom search engine favicons are displayed inconsistently in BrowserSearch screen
This occurred after scrolling up and down a bit. The icon always updates when it's row is off-screen.
Does bug 1156917 help with this? Since we are providing the assets ourselves for the defaults in that bug (OK'd with our default providers).
(In reply to Anthony Lam (:antlam) from comment #7)
> Does bug 1156917 help with this? Since we are providing the assets ourselves
> for the defaults in that bug (OK'd with our default providers).

No, this is a pre-existing bug in the current code that got uncovered from the addition of the search engine bar.
/r/9211 - Bug 1158282 - Handle the default favicon as any other favicon. r=margaret
/r/9213 - Bug 1158282 - Clarify existing comment in FaviconView.formatImage. r=margaret

Pull down these commits:

hg pull -r 11af2c5e798866eb31072a3f52d07392b2d15ba1 https://reviewboard-hg.mozilla.org/gecko/
Attachment #8608998 - Flags: review?(margaret.leibovic)
https://reviewboard.mozilla.org/r/9211/#review7889

::: mobile/android/base/widget/FaviconView.java:226
(Diff revision 1)
> +        updateAndScaleImage(defaultFaviconBitmap, DEFAULT_FAVICON_KEY);

It feels strange to be manually scaling this image, but I agree it's good to avoid custom logic paths.

And if this fixes the view re-use issue, works for me!
Comment on attachment 8608998 [details]
MozReview Request: bz://1158282/mcomella

https://reviewboard.mozilla.org/r/9209/#review7891

Ship It!
Attachment #8608998 - Flags: review?(margaret.leibovic) → review+
Attachment #8608998 - Attachment is obsolete: true
Attachment #8620156 - Flags: review+
Attachment #8620157 - Flags: review+
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: