Closed Bug 1131970 Opened 10 years ago Closed 10 years ago

[Contacts] Highlight is broken after contact node structure changed for bidi

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect, P2)

x86_64
Linux
defect

Tracking

(b2g-v2.2 unaffected, b2g-master verified)

VERIFIED FIXED
2.2 S6 (20feb)
Tracking Status
b2g-v2.2 --- unaffected
b2g-master --- verified

People

(Reporter: hola, Assigned: hola)

References

Details

Attachments

(2 files)

Highlighting code is dependent on the structure of html tags in the contact text to support highlighting inside <strong> tags without breaking them. I realized that this structure has changed and now the whole contact text is enclosed in a <bdi> tag, which breaks highlighting when searching for any character of the tag <strong>. Steps to reproduce: 1. Get some contacts with name and surname. 2. Search for a substring of 'strong'. What happens: The contact text will be changed and highlighting won't work. What should happen: The contact text should stay the same and highlight has to be correctly applied on it.
Assignee: nobody → hola
Comment on attachment 8562726 [details] [review] [gaia] ADLR-es:highlight-broken > mozilla-b2g:master Patch submitted. I used it to change <span class="highlight"> by <mark> tags too, which are more semantic and since we don't need different highlight classes, we can do it this way now. The changes that fix the bug reported here are https://github.com/ADLR-es/gaia/compare/highlight-broken?expand=1#diff-139a10c960db3187930ef89ff828a686R181 and https://github.com/ADLR-es/gaia/compare/highlight-broken?expand=1#diff-32b69f9638ac9fcad175c776a92ecefaR27. If needed, I can split those two lines in a different bug. I don't know yet what broke this because tests related to highlighting were not working before this patch.
Attachment #8562726 - Flags: review?(jmcf)
Comment on attachment 8562726 [details] [review] [gaia] ADLR-es:highlight-broken > mozilla-b2g:master LGTM thanks Adrian
Attachment #8562726 - Flags: review?(jmcf) → review+
Keywords: checkin-needed
Keywords: checkin-needed
https://github.com/mozilla-b2g/gaia/pull/28143 Autolander could not land the pull request due to not having collaborator rights. This is possibly due to a tree closure. Please check the tree status and request checkin again once the tree is open.
Target Milestone: --- → 2.2 S6 (20feb)
Just adding that I am not able to reproduce the issue with the lastest in 2.2 branch, so it seems specific of master branch. Environmental Variables: Device: Flame 2.2 Build ID: 20150212055743 Gaia: 791e537 Gecko: 2a90b4d Version: 37.0a2
Priority: -- → P2
Keywords: checkin-needed
Keywords: checkin-needed
(In reply to Maria Angeles Oteo (:oteo) from comment #5) > Just adding that I am not able to reproduce the issue with the lastest in > 2.2 branch, so it seems specific of master branch. > > Environmental Variables: > Device: Flame 2.2 > Build ID: 20150212055743 > Gaia: 791e537 > Gecko: 2a90b4d > Version: 37.0a2 probably because the corresponding RTL patch that breaks this has not been uplifted yet to v2.2
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment on attachment 8562726 [details] [review] [gaia] ADLR-es:highlight-broken > mozilla-b2g:master [Approval Request Comment] [Bug caused by] (feature/regressing bug #): [User impact] if declined: high as search highlighting would not be available breaking the visual aspect. [Testing completed]: Yes, unit tests provided. [Risk to taking this patch] (and alternatives if risky): Low risk patch [String changes made]: None
Attachment #8562726 - Flags: approval-gaia-v2.2?
Attachment #8562726 - Flags: approval-gaia-v2.2? → approval-gaia-v2.2+
This issue has been verified successfully on Flame 3.0. See attachment: Verify1_1131970_video.MP4 Reproducing rate:0/10 Flame 3.0 build: Build ID 20150308160204 Gaia Revision fea83511df9ccba64259346bc02ebf2c417a12c2 Gaia Date 2015-03-08 06:36:28 Gecko Revision https://hg.mozilla.org/mozilla-central/rev/eab4a81e4457 Gecko Version 39.0a1 Device Name flame Firmware(Release) 4.4.2 Firmware(Incremental) eng.cltbld.20150308.192120 Firmware Date Sun Mar 8 19:21:31 EDT 2015 Bootloader L1TC000118D0
Status: RESOLVED → VERIFIED
Don't leave the v2.2 status set to unaffected if you're expecting a timely uplift. v2.2: https://github.com/mozilla-b2g/gaia/commit/15b6790f315e37f8c8638ad825972d60124b79d0
Jose, maybe you can help with the rebase?
Flags: needinfo?(jmcf)
Adrian will take care thanks
Flags: needinfo?(jmcf)
(In reply to Jose Manuel Cantera from comment #6) > probably because the corresponding RTL patch that breaks this has not been > uplifted yet to v2.2 Tested again in latest 2.2 branch and I am not able to reproduce this bug in that branch. Environmental Variables: Device: Flame 2.2 Build ID: 20150407063018 Gaia: 9a7cc87 Gecko: 6935610 Version: 37.0 After talking with Adrian, it seems that initially the issue reported in master was introduced by Bug 1058790 that was uplifted to 2.2 branch more than 2 months ago, so it seems that it was already fixed in other patch in 2.2 so it's not expected that can happen in that release. For that reason, setting status-b2g-v2.2 as unaffected.
Flags: needinfo?(hola)
Per comment 9 & comment 14, clear "verifyme" keyword.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: