Closed Bug 812426 Opened 13 years ago Closed 13 years ago

[Keyboard][Sim Lock] Keyboard will prompt up and gone when the "enter sim pin" page is launched

Categories

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

x86_64
Windows 7
defect

Tracking

(blocking-basecamp:+)

RESOLVED FIXED
B2G C2 (20nov-10dec)
blocking-basecamp +

People

(Reporter: johnshih.bugs, Assigned: ochameau)

References

Details

Attachments

(1 file)

## Environment : Otoro phone, build 2012-11-16 Build info: * gaia master: revision= 9e5fb101b199a3c93870cda24e497b83599b5efc * gecko aurora revision= ea8661c0067f ## Repro : 1. Enter settings app 2. Enable the sim lock 3. reboot the phone 4. after unlock, press "x" to close the "enter sim pin" page 5. in the homescreen, launch the dialer app ## Expected: * The "enter sim pin" page is launched with keyboard shows up (or not shows up) ## Actual: * The "enter sim pin" page is launched with keyboard just shows up in the short time and then gone
blocking-basecamp: --- → ?
Component: General → Gaia
blocking-basecamp: ? → +
Priority: -- → P2
Component: Gaia → Gaia::System::Keyboard
Marking for C2, given this meets the criteria of known P1/P2 blocking-basecamp+ bugs at the end of C1.
Target Milestone: --- → B2G C2 (20nov-10dec)
Assignee: ttaubert → poirot.alex
Depends on: 804966
Attached file Pull request 6651 —
The keyboard focus ends up being stolen by the app launched behind the pin dialog. I tried various more or less hacky way to hide/disable the app by using setVisible or css on the app iframe, without success. So I ended up preventing app launch during 'appwillopen' event, so that we disable dialer/sms app launch if the phone is still lock, and eventually launch them again when the user enter a valid pin code, otherwise, we just go back to homescreen. Please consider taking a look at bug 812428, as its patch is being based on this one.
Attachment #685656 - Flags: review?(alive)
(In reply to Alexandre Poirot (:ochameau) from comment #2) > Created attachment 685656 [details] > Pull request 6651 > > The keyboard focus ends up being stolen by the app launched behind the pin > dialog. I don't have a phone handy now(I am at home and I forgot to bring to phone home today.) so I cannot test your code manually. But as you said, the focus is stolen by opened app is because https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/window_manager.js#L386 And the appopen event is fired at https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/window_manager.js#L402 If you get the appopen event and then display the sim PIN dialog and focus the input field in a correct order, this bug should not happen. Another thing, as you said in 812428's patch comment, I don't see the UX said that if the user clicks cancel button on SIM PIN Dialog, they NEED to be put back to the homescreen. Where is this behavior being defined? I will investigate more once I get my phone.
Actually, the focus isn't stolen by some system app code but dialer app code (don't know exactly which one)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: