Closed Bug 792751 Opened 12 years ago Closed 12 years ago

B2G RIL: SIM Toolkit - Cache main menu

Categories

(Core :: DOM: Device Interfaces, defect)

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: frsela, Unassigned)

References

Details

Add a net method to nsIDOMIccManager to recover the SIM Toolkit main menu at any time.

With the current implementation, the main menu is recovered through onstkcommand event whe it's sent by the ICC.

The ICC sent this menu at start and the 3 or 4 times after with about 3-4 minutes between then.

The effect of this is that when the user opens the STK UI needs to wait to this data and if he opens the app to late, probably he'll wait forever.

Since this data is sent at start, the ICC Component should cache it to respond immediately when the client ask for it.

----

09-20 08:26:29.938 I/Gecko   (  105): -*- RILContentHelper: Received message 'RIL:StkCommand': {"commandNumber":1,"typeOfCommand":37,"commandQualifier":0,"rilMessageType":"stkcomma
09-20 08:29:19.574 I/Gecko   (  105): -*- RILContentHelper: Received message 'RIL:StkCommand': {"commandNumber":1,"typeOfCommand":37,"commandQualifier":0,"rilMessageType":"stkcommand","options":{"title":"Movistar","items":[{"identifier":3,"text":"Chat movistar"},{"identifier":4,"text":"Correo movil"}],"presentationType":0}}
09-20 08:32:21.591 I/Gecko   (  105): -*- RILContentHelper: Received message 'RIL:StkCommand': {"commandNumber":1,"typeOfCommand":37,"commandQualifier":0,"rilMessageType":"stkcommand","options":{"title":"Movistar","items":[{"identifier":3,"text":"Chat movistar"},{"identifier":4,"text":"Correo movil"}],"presentationType":0}}
(In reply to Fernando R. Sela from comment #0)
> The ICC sent this menu at start and the 3 or 4 times after with about 3-4
> minutes between then.
> 
> The effect of this is that when the user opens the STK UI needs to wait to
> this data and if he opens the app to late, probably he'll wait forever.
> 
> Since this data is sent at start, the ICC Component should cache it to
> respond immediately when the client ask for it.
> 
Hi Fernando,

No, gaia should and can read this SET_UP_MENU command,
there's already a system message for STK in Bug 787175.
(In reply to Yoshi Huang[:yoshi][:allstars.chh] from comment #1)
> Hi Fernando,
> 
> No, gaia should and can read this SET_UP_MENU command,
> there's already a system message for STK in Bug 787175.

Didn't know ;)

I'll check it. Thanks
We could cache the menu in the DOM, or we could just have Gaia do it. I'm don't feel strongly either way, except that doing things in Gaia land is often more flexible and introduces less engineering debt for the future. So my *preference* would be to have Gaia cache it (in a system message handler).
(If you all agree, then let's RESO/WONTFIX this bug.)
Will be developed in Gaia
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.