Closed Bug 1208790 Opened 9 years ago Closed 9 years ago

Magnifying glass icon displayed twice in search hint (French only)

Categories

(Firefox for Android Graveyard :: Settings and Preferences, defect)

defect
Not set
normal

Tracking

(firefox41 unaffected, firefox42 affected, firefox43 affected, firefox44 verified)

VERIFIED FIXED
Firefox 44
Tracking Status
firefox41 --- unaffected
firefox42 --- affected
firefox43 --- affected
firefox44 --- verified

People

(Reporter: theo, Assigned: mcomella)

References

Details

(Keywords: regression)

Attachments

(4 files)

In the hint about adding search engines, the magnifying glass icon is duplicated in French only (see attached screenshot).

Tried with other locales (it, de, es-ES, pt-BR…), couldn't reproduce. It's a regression from Firefox 41, it does not seem related to the French translation:

><!ENTITY pref_search_hint "ASTUCE : Ajoutez n\u0027importe quel site à votre liste de moteurs de recherche en effectuant un appui long sur leur champ de recherche puis en appuyant sur l\u0027icône &formatI;.">

I see nothing suspicious and this translation hasn't changed recently.

I can reproduce with Nightly 44 and Beta 42.0b1, but *can't* reproduce with latest release, 41. Something got broken in 42, it seems.

STR are simple:

1. Switch to French locale
2. Go to Settings (Paramètres)
3. Go to Customization (Personnalisation)
4. Go to Search (Recherche)
The only thing I can find related to that file is this changeset (on all branches but release)
http://hg.mozilla.org/mozilla-central/rev/7635a2e4fa64

It comes from bug 1175354. But I really don't understand enough Android code to know if there's any relation.
My best guess is that Android is doing some funky text wrapping – the icon can't fit in entirety so it duplicates it on the next line (which would explain why other locales do not hit this).

This changeset may be related in that it probably is responsible for reflowing the text.

Note that I cannot reproduce on my N4 or my GS5 w/ recent Nightly builds, which backs up the text wrapping theory because I wouldn't have the same screen size and thus line length.

Théo, which device are you using? Can you reproduce on any other devices?
Flags: needinfo?(tchevalier)
(In reply to Michael Comella (:mcomella) from comment #2)
> My best guess is that Android is doing some funky text wrapping – the icon
> can't fit in entirety so it duplicates it on the next line (which would
> explain why other locales do not hit this).
> 
> This changeset may be related in that it probably is responsible for
> reflowing the text.
> 
> Note that I cannot reproduce on my N4 or my GS5 w/ recent Nightly builds,
> which backs up the text wrapping theory because I wouldn't have the same
> screen size and thus line length.
> 
> Théo, which device are you using? Can you reproduce on any other devices?

Hi Michael,

I'm reproducing on a Samsung Galaxy SII with Cyanogen 12.1 Nightly (Android 5.1.1).
Unfortunately (well, that's not really unfortunate), all my other devices are Firefox OS devices.
Flags: needinfo?(tchevalier)
Kevin, do you have an GS2? Can you repro?
Flags: needinfo?(kbrosnan)
Théo, can you repro in landscape mode?
Flags: needinfo?(tchevalier)
Issue disappear when I switch to landscape mode (and comes back in portrait).
Flags: needinfo?(tchevalier)
The quick & easy solution is to back this out – bug 1175354 was a micro-optimization spurred by the linter anyway.

Unfortunately, I can't build multi-locale builds (without putting in more effort, which it's probably not worth atm) so I can't actually create a build to test this. Since it's a straight backout, we'll test on nightly.
Assignee: nobody → michael.l.comella
Flags: needinfo?(kbrosnan)
Bug 1208790 - Add lint ignore for compound drawables in search preference. r=me

The regression is fixed by the backout of bug 1175354 and this
should ensure it doesn't happen again.
Théo, this should be in the 10/7 Nightly – can you verify it's fixed there?
Flags: needinfo?(tchevalier)
https://hg.mozilla.org/mozilla-central/rev/09584f83e610
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Thanks Michael, it's fixed in today's Nightly (2015-10-07)
Status: RESOLVED → VERIFIED
Flags: needinfo?(tchevalier)
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: