Closed
Bug 827860
Opened 12 years ago
Closed 12 years ago
B2G STK: Ril throws and get stuck when default text is null
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: ochameau, Assigned: edgar)
References
Details
Attachments
(2 files, 1 obsolete file)
3.03 KB,
patch
|
vicamo
:
review+
overholt
:
approval-mozilla-b2g18+
|
Details | Diff | Splinter Review |
995 bytes,
patch
|
vicamo
:
review+
overholt
:
approval-mozilla-b2g18+
|
Details | Diff | Splinter Review |
While testing bug 827655, I hit that exception and ended with a locked STK menu when trying to enter "Recherche" > "2easy" menu of vivien's orange simcard.
http://mxr.mozilla.org/mozilla-central/source/dom/system/gonk/ril_worker.js#7396
Here, `ctlv.value` is undefined as ctlv looks like this:
{"tag":23,"length":0,"value":null,"cr":false,"hlen":2}
Reporter | ||
Comment 1•12 years ago
|
||
Reporter | ||
Updated•12 years ago
|
Attachment #699236 -
Flags: review?(vyang)
Reporter | ||
Comment 2•12 years ago
|
||
Nomitating as STK is heavily tested during certification and we may hit that exception.
blocking-basecamp: --- → ?
Comment 3•12 years ago
|
||
Comment on attachment 699236 [details] [diff] [review]
Bug 827860 - STK Ril throws and get stuck when default string is empty
Review of attachment 699236 [details] [diff] [review]:
-----------------------------------------------------------------
Edgar will help attaching a test case for this. :)
Attachment #699236 -
Flags: review?(vyang) → review+
Updated•12 years ago
|
Assignee: nobody → poirot.alex
OS: All → Gonk (Firefox OS)
Hardware: All → ARM
Updated•12 years ago
|
Summary: STK Ril throws and get stuck when default string is empty → B2G STK: Ril throws and get stuck when default string is empty
Blocks: b2g-stk
Comment 4•12 years ago
|
||
Not enough information here to make a blocking call here. I.e. what's the user impact, how likely will people run into this, etc. blocking- for now, but I'll approve the patch for uplift.
blocking-basecamp: ? → -
Comment 5•12 years ago
|
||
Comment on attachment 699236 [details] [diff] [review]
Bug 827860 - STK Ril throws and get stuck when default string is empty
[Triage Comment]
Attachment #699236 -
Flags: approval-mozilla-b2g18+
Reporter | ||
Comment 6•12 years ago
|
||
Apart from the risk of being rejected during certification,
the STK menu breaks when you are trying to display an input without any default value. So that the STK menu is stuck in the input field screen, back won't work.
You can only escape from this by killing setting app, but if you try to relaunch the STK, nothing will work, tapping on any item will silently fail.
Comment on attachment 699236 [details] [diff] [review]
Bug 827860 - STK Ril throws and get stuck when default string is empty
Review of attachment 699236 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/ril_worker.js
@@ +8244,2 @@
> input.defaultText = ctlv.value.textString;
> }
My second thought would be,
since now we got the TLV with defaultText,
we should also have defaultText property in input,
but its value is still null.
Alex and Vicamo, how do you think?
Summary: B2G STK: Ril throws and get stuck when default string is empty → B2G STK: Ril throws and get stuck when default text is null
Assignee | ||
Comment 8•12 years ago
|
||
(In reply to Yoshi Huang[:yoshi][:allstars.chh] from comment #7)
> Comment on attachment 699236 [details] [diff] [review]
> Bug 827860 - STK Ril throws and get stuck when default string is empty
>
> Review of attachment 699236 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: dom/system/gonk/ril_worker.js
> @@ +8244,2 @@
> > input.defaultText = ctlv.value.textString;
> > }
>
> My second thought would be,
> since now we got the TLV with defaultText,
> we should also have defaultText property in input,
> but its value is still null.
>
> Alex and Vicamo, how do you think?
I found testString has the same issue when I wrote xpcshell tests.
So I think it makes sense to keep property and the value is null. (Both for defaultText and textString)
I make a new patch for this. will upload later.
Thanks
I make a new patch for this.
Assignee | ||
Comment 9•12 years ago
|
||
xpcshell tests
Assignee | ||
Comment 10•12 years ago
|
||
address comment #8
Attachment #699236 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Assignee: poirot.alex → echen
Assignee | ||
Updated•12 years ago
|
Attachment #699646 -
Attachment description: xpcshell tests for STK_CMD_GET_INPUT, v1 → Part 2:xpcshell tests for STK_CMD_GET_INPUT, v1
Assignee | ||
Updated•12 years ago
|
Attachment #699648 -
Attachment description: STK get stuck when text string is null, v2 → Part 1: STK get stuck when text string is null, v2
Assignee | ||
Updated•12 years ago
|
Attachment #699646 -
Flags: review?(vyang)
Assignee | ||
Updated•12 years ago
|
Attachment #699648 -
Flags: review?(vyang)
Comment 11•12 years ago
|
||
Comment on attachment 699646 [details] [diff] [review]
Part 2:xpcshell tests for STK_CMD_GET_INPUT, v1
Review of attachment 699646 [details] [diff] [review]:
-----------------------------------------------------------------
approval-mozilla-b2g18 approved in comment #5
Attachment #699646 -
Flags: review?(vyang)
Attachment #699646 -
Flags: review+
Attachment #699646 -
Flags: approval-mozilla-b2g18?
Updated•12 years ago
|
Attachment #699648 -
Flags: review?(vyang)
Attachment #699648 -
Flags: review+
Attachment #699648 -
Flags: approval-mozilla-b2g18?
Comment 12•12 years ago
|
||
Updated•12 years ago
|
Attachment #699646 -
Flags: approval-mozilla-b2g18? → approval-mozilla-b2g18+
Updated•12 years ago
|
Attachment #699648 -
Flags: approval-mozilla-b2g18? → approval-mozilla-b2g18+
Comment 13•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/409dd3463c00
https://hg.mozilla.org/mozilla-central/rev/8e9f50b5c990
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Comment 14•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/6e63a760fb95
https://hg.mozilla.org/releases/mozilla-b2g18/rev/7fda5fc80110
status-b2g18:
--- → fixed
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•