Closed Bug 1170764 Opened 9 years ago Closed 9 years ago

SIM PIN Dialog: OK and Cancel buttons do nothing

Categories

(Firefox OS Graveyard :: Gaia::System::System UI, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5+, b2g-v2.2 unaffected, b2g-master verified)

VERIFIED FIXED
blocking-b2g 2.5+
Tracking Status
b2g-v2.2 --- unaffected
b2g-master --- verified

People

(Reporter: mikehenrty, Unassigned)

References

Details

(Keywords: regression, Whiteboard: [systemsfe])

STR:

1.) Enable SIM PIN
2.) Reboot phone
3.) When SIM PIN dialog pops up, try to click Cancel or OK

Neither button works.
Can we get a regression window for this?
The issue does not occur on v2.2.
Mozilla Inbound Regression Window

First Working
Environmental Variables
Device: Flame 3.0
BuildID: 20150601113741
Gaia: 85e6fcef45c0cb2c017739df42b68b96cf5bb9c3
Gecko: cc758e8f18e3
Version: 41.0a1 (3.0)
Firmware Version: v18D-1
User Agent: Mozilla/5.0 (Mobile; rv:41.0) Gecko/41.0 Firefox/41.0

First Broken
Environmental Variables:
Device: Flame 3.0
BuildID: 20150601115340
Gaia: 85e6fcef45c0cb2c017739df42b68b96cf5bb9c3
Gecko: 4cb3a97de6ee
Version: 41.0a1 (3.0) 
Firmware Version: v18D-1
User Agent: Mozilla/5.0 (Mobile; rv:41.0) Gecko/41.0 Firefox/41.0

Last Working gaia / First Broken gecko - This issue occurs with broken Gecko.
Gaia: 85e6fcef45c0cb2c017739df42b68b96cf5bb9c3
Gecko: 4cb3a97de6ee

First Broken gaia / Last Working gecko - This issue does NOT occur with broken Gecko.
Gaia: 85e6fcef45c0cb2c017739df42b68b96cf5bb9c3
Gecko: cc758e8f18e3

Mozilla Inbound Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=cc758e8f18e3&tochange=4cb3a97de6ee

Issue appears to occur due to changes made in Bug 1153589
Blocks: 1153589
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Kartikaya, here is another bug that appears to be caused by the landing for bug 1153589.
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker) → needinfo?(bugmail.mozilla)
blocking-b2g: --- → 3.0+
Bug 1153589 got backed out.
Status: NEW → RESOLVED
Closed: 9 years ago
Keywords: verifyme
Resolution: --- → WORKSFORME
Flags: needinfo?(bugmail.mozilla)
(In reply to Michael Henretty [:mhenretty] from comment #0)
> 1.) Enable SIM PIN

Is there some way to test this without a SIM?
Flags: needinfo?(mhenretty)
Unfortunately, not without hacking the code :/
Flags: needinfo?(mhenretty)
I'm all about hacking the code. Do you have a patch or pointer to the code that needs changing?
Flags: needinfo?(mhenretty)
You'll need a way to call the SimLockSystemDialog.show method [1]. You'll probably have to do something like the following from the context of the system app:

`window.core.mobileConnectionCore.simLockManager.simLockSystemDialog.show()`

This will probably throw an error, but you should be able to see and test the Skip and Cancel buttons. If it works we are fine, if it doesn't work we'll need somebody with a SIM to actually verify.

1.) https://github.com/mozilla-b2g/gaia/blob/558d47a1d95f28ff9fbc2ccc12afaece067ea626/apps/system/js/sim_lock_system_dialog.js#L433
Flags: needinfo?(mhenretty)
Turns out that an old expired sim lets me do enough to recreate this bug.
Depends on: 1172310
This issue is verified fixed on the latest Aries 2.5, Flame 2.5 (nightly) build. The "Skip" and "Ok" buttons are functional and handle user input correctly.  The user can assign a SIM pin, reboot/power cycle the device, then successfully get passed the SIM pin dialogue box using the aforementioned buttons. 

Device: Aries 2.5 (Master)
Build ID: 20150812231434
Gaia: 52f3ea58df38e5427f6afeb636bc6ad01d24022f
Gecko: 7649ffe28b67aa2dad0f67ea01500c0ff91b2bac
Gonk: 2916e2368074b5383c80bf5a0fba3fc83ba310bd
Version: 43.0a1 (Master)
Firmware Version: D5803_23.1.A.1.28_NCB.ftf
User Agent: Mozilla/5.0 (Mobile; rv:43.0) Gecko/43.0 Firefox/43.0

Environmental Variables:
Device: Flame 2.5 (Master)
Build ID: 20150901030202
Gaia: c80e8ff25425b007181fd6e3de0500a0358fab37
Gecko: cafb1c90f794a73100a8f0afb9fe3301df0f2bde
Gonk: c4779d6da0f85894b1f78f0351b43f2949e8decd
Version: 43.0a1 (Master)
Firmware Version: v18D
User Agent: Mozilla/5.0 (Mobile; rv:43.0) Gecko/43.0 Firefox/43.0
Status: RESOLVED → VERIFIED
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage?]
Flags: needinfo?(jmercado)
Keywords: verifyme
QA Contact: ddixon
Resolution: WORKSFORME → FIXED
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmercado)
You need to log in before you can comment on or make changes to this bug.