Closed Bug 1094896 Opened 10 years ago Closed 10 years ago

[Dialer] Hash key still highlighted after calling MMI Code *#06#

Categories

(Firefox OS Graveyard :: Gaia::Dialer, defect)

defect
Not set
normal

Tracking

(blocking-b2g:-, b2g-v2.1 wontfix, b2g-v2.2 verified)

VERIFIED FIXED
blocking-b2g -
Tracking Status
b2g-v2.1 --- wontfix
b2g-v2.2 --- verified

People

(Reporter: thills, Assigned: gsvelto)

References

Details

Attachments

(4 files, 1 obsolete file)

STR: 1. Enter *#06# 2. IMEI should show up. 3. Close and go back to dialer 4. Expected: hash key is not highlighted. Actual: hash key is highlighted.
It seems we're never receiving the touchend event for the hash key and since we're manually adding a CSS class to highlight it we don't remove it leaving the key highlighted. In my opinion we should switch this to using the CSS active property; this should also help in situations where the user is tapping quickly (we had a bug for that but I can't find it right now).
Hacked together a quick patch since I knew the code well already. This chops a significant portion of JS code in favor of a single-line change in the shared stylesheet. IMHO this is the way to go but this does change the highlight behavior a bit. With the previous code if the user tapped a key, kept it pressed and moved his finger out of it, the button would remain highlighted until the user raised his finger. With my change as soon as the user moves out of the key then the highlight goes away. I find this more consistent with how other UIs work. I've checked on both an Android and a Nokia S60 phone and on both the key highlight goes away as soon as the user drags his finger outside the key. I don't have an iOS device to test on though.
Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
Attachment #8524804 - Flags: review?(drs.bugzilla)
Comment on attachment 8524804 [details] [diff] [review] [PATCH] Use a CSS selector for keypad highlight instead of a custom class This patch breaks the fix added in bug 1037066. I think we should instead remove the `.active` class when displaying any results from USSD codes.
Attachment #8524804 - Flags: review?(drs.bugzilla)
Here's the updated patch. Still a one-liner but this time in the JS code. I've also updated the relevant unit-test to cover this particular issue.
Attachment #8524804 - Attachment is obsolete: true
Attachment #8525333 - Flags: review?(drs.bugzilla)
Comment on attachment 8524807 [details] [PULL REQUEST] Make sure we un-highlight the hash key when requesting the IMEI code(s) The PR was updated too.
Attachment #8524807 - Attachment description: [PULL REQUEST] Use a CSS selector for keypad highlight instead of a custom class → [PULL REQUEST] Make sure we un-highlight the hash key when requesting the IMEI code(s)
Comment on attachment 8525333 [details] [diff] [review] [PATCH v2] Make sure we un-highlight the hash key when requesting the IMEI code(s) Review of attachment 8525333 [details] [diff] [review]: ----------------------------------------------------------------- The test should be broken up into 2 tests.
Attachment #8525333 - Flags: review?(drs.bugzilla) → review+
I've split the tests, now waiting for try to become green before landing: https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=eecceb835a8d
I've re-run the tests and got a green run plus an intermittent which turned green after being re-triggered. https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=4b955a5780d7 Time to merge.
Pushed to gaia/master 9d2603f4b224237a365d89f44aa95f5a157b6db7 https://github.com/mozilla-b2g/gaia/commit/9d2603f4b224237a365d89f44aa95f5a157b6db7
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
This bug can be reproduced on Flame v2.1. Attchments:reproduced_V2.1.mp4 and logcat_1623.txt. Reproduce rate:5/8 Flame 2.1 Build: Gaia-Rev 97873dca486abf4162a3345e71b375806937bdec Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/9faa165ac85d Build-ID 20141211001204 Version 34.0 Device-Name flame FW-Release 4.4.2 FW-Incremental eng.cltbld.20141211.034507 FW-Date Thu Dec 11 03:45:22 EST 2014 Bootloader L1TC00011880
Flags: needinfo?(mlien)
Attached file logcat_1623.txt (deleted) —
Attached video reproduced_V2.1.MP4 (deleted) —
Add Flame 2.2 Build: Gaia-Rev 1a956437210d2b16988d2ddbf40c9a38d8474435 Gecko-Rev https://hg.mozilla.org/mozilla-central/rev/d92db71d4e67 Build-ID 20141211040208 Version 37.0a1 Device-Name flame FW-Release 4.4.2 FW-Incremental eng.cltbld.20141211.074025 FW-Date Thu Dec 11 07:40:36 EST 2014 Bootloader L1TC00011880
set blocking-b2g: v2.1? to see if this patch should be uplifted
blocking-b2g: --- → 2.1?
Flags: needinfo?(mlien)
NI to release management for triage. Not a big patch, but 2.1 is already CC.
Flags: needinfo?(bbajaj)
triage: non-blocking since it's not regression and not breaking functionality. (pressing the # button again will un-highlight it.
blocking-b2g: 2.1? → backlog
Flags: needinfo?(bbajaj)
minus, as it's already landed on master.
blocking-b2g: backlog → -
refer to comment 18 and comment 19, set status-b2g-v2.1: wontfix
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: