Closed Bug 987018 Opened 10 years ago Closed 10 years ago

[DSDS] Keyboard isn't hidden when opening SIM picker

Categories

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

defect
Not set
normal

Tracking

(tracking-b2g:backlog, b2g-v1.4 fixed, b2g-v2.0 fixed)

RESOLVED FIXED
tracking-b2g backlog
Tracking Status
b2g-v1.4 --- fixed
b2g-v2.0 --- fixed

People

(Reporter: drs, Assigned: drs)

References

Details

(Keywords: regression)

Attachments

(2 files)

We broke something when fixing a test for the focus() event on the SIM picker. I believe it's here: https://github.com/mozilla-b2g/gaia/blob/master/shared/js/sim_picker.js#L55

The bug in the FIXME is for a tech debt issue as opposed to actual bustage, so it's different.
Blocks: b2g-dsds-1.4
blocking-b2g: --- → 1.4?
Assignee: nobody → drs+bugzilla
Yeah, I think you really need to call "focus" ;)

In the test, you can simply spy on this function to check it's called?
(In reply to Julien Wajsberg [:julienw] (away until March 24) from comment #1)
> Yeah, I think you really need to call "focus" ;)
> 
> In the test, you can simply spy on this function to check it's called?

That was what I did originally, but Anthony was opposed to it. His reasoning was that we're not testing whether the element is actually being focused on or not, only that the .focus() method is being called. We had trouble hooking the event that was sent through the DOM when calling .focus(), so we switched to this method.
Sometimes we need compromises though.
(In reply to Julien Wajsberg [:julienw] (away until March 24) from comment #3)
> Sometimes we need compromises though.

Yep! It turns out that even if the target element has no tabIndex or otherwise can't be focused on, it still receives the CustomEvent('focus'), so we're basically no better off by using that method instead of the focus() method.
Attachment #8395757 - Flags: review?(felash)
Doug - Two questions:

1. Can you provide a screenshot of the bug?
2. Is bug 987044 a dupe of this bug?
Flags: needinfo?(drs+bugzilla)
Attached image 2014-03-25 13.38.19.jpg (deleted) —
(In reply to Jason Smith [:jsmith] from comment #5)
> Doug - Two questions:
> 
> 1. Can you provide a screenshot of the bug?
> 2. Is bug 987044 a dupe of this bug?

1. Here you go.
2. No, that's a different issue.
Flags: needinfo?(drs+bugzilla)
So the impact of the bug is the fact that the keyboard persists if the SIM picker dialog is open. That's certainly a bug, but I don't think I'd block on it mainly because the only impact is the fact that there's irrelevant UI present here. We should get a fix here though for 1.4, so I'd highly suggest asking for 1.4 approval when this patch gets a r+.
blocking-b2g: 1.4? → backlog
Keywords: regression
Comment on attachment 8395757 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/17534

looks goo

r=me granted that you tested the patch on a real device (I didn't).

Please request approval to land this on v1.4.
Attachment #8395757 - Flags: review?(felash) → review+
https://github.com/mozilla-b2g/gaia/commit/47f22769144b52a2c27090900a120db029c771de
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment on attachment 8395757 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/17534

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): bug 947140
[User impact] if declined: Keyboard will not be hidden when opening DSDS SIM picker in the SMS app.
[Testing completed]: Ran on Fugu device and verified the fix myself.
[Risk to taking this patch] (and alternatives if risky): Low.
[String changes made]: None.
Attachment #8395757 - Flags: approval-gaia-v1.4?(release-mgmt)
Comment on attachment 8395757 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/17534

Low risk change which avoids irrelevant UI. Thanks for the tests!
Attachment #8395757 - Flags: approval-gaia-v1.4?(release-mgmt) → approval-gaia-v1.4+
blocking-b2g: backlog → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: