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)
Firefox for Android Graveyard
Settings and Preferences
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)
Comment 1•9 years ago
|
||
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.
Assignee | ||
Comment 2•9 years ago
|
||
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)
Assignee | ||
Comment 3•9 years ago
|
||
btw, here is the code that inserts the image via spans (which I have not audited): https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/preferences/ModifiableHintPreference.java#48
Reporter | ||
Comment 4•9 years ago
|
||
(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.
Reporter | ||
Updated•9 years ago
|
Flags: needinfo?(tchevalier)
Assignee | ||
Comment 5•9 years ago
|
||
Kevin, do you have an GS2? Can you repro?
Flags: needinfo?(kbrosnan)
Reporter | ||
Comment 7•9 years ago
|
||
Issue disappear when I switch to landscape mode (and comes back in portrait).
Flags: needinfo?(tchevalier)
Assignee | ||
Comment 8•9 years ago
|
||
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)
Assignee | ||
Comment 9•9 years ago
|
||
Backout changeset 7635a2e4fa64 for regressions in bug 1208790.
Assignee | ||
Comment 10•9 years ago
|
||
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.
Assignee | ||
Comment 11•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/5dcd78e425fd5708da09853b4f6dbe4ad1424360 Backout changeset 7635a2e4fa64 for regressions in bug 1208790. https://hg.mozilla.org/integration/fx-team/rev/09584f83e610683714e8eae857733b9c32e13be5 Bug 1208790 - Add lint ignore for compound drawables in search preference. r=me
Assignee | ||
Comment 12•9 years ago
|
||
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
Reporter | ||
Comment 14•9 years ago
|
||
Thanks Michael, it's fixed in today's Nightly (2015-10-07)
Updated•9 years ago
|
Keywords: regressionwindow-wanted
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•