Closed Bug 793423 Opened 12 years ago Closed 9 years ago

B2G RIL: Remove 'system-app-ready' mozContentEvent dependency

Categories

(Firefox OS Graveyard :: RIL, defect)

defect
Not set
normal

Tracking

(blocking-basecamp:-)

RESOLVED FIXED
blocking-basecamp -

People

(Reporter: timdream, Unassigned)

References

Details

(Whiteboard: dupme)

Bug 793082 introduced a generalized mozChromeEvent sender in place that will wait for System app to load. We can go ahead and remove the 'system-app-ready' mozContentEvent dependency introduced in bug 787172. 

philikon, can this be done by simply revert attachment 657004 [details] [diff] [review]? How do I verify the case you tried so solve in bug 787172 still works?

After this bug is fixed, 'system-app-ready' mozContentEvent in Gaia can be removed.
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) from comment #0)
> philikon, can this be done by simply revert attachment 657004 [details] [diff] [review]
> [diff] [review]?

It should be, yes.

> How do I verify the case you tried so solve in bug 787172 still works?

It's somewhat tricky since the whole point of this code is to prevent races. Basically you need to provoke a system message from the RIL before Gaia has booted up and then ensure that Gaia still gets the system message.

A system messages that gets sent very early on is "icc-stkcommand" (bug 787175), provided your SIM card has an STK menu installed. There's no guarantee that the radio and SIM card come online before Gaia, but you could easily verify that with debug statements (turn DEBUG_ALL = true in ril_consts.js and add some console.log() statements to Gaia's system app).
It seems like this was created with blocking-basecamp+ (by using clone bug on a blocker?) but we discussed it during triage and decided it wasn't actually a blocker.  Feel free to re-nom if you disagree.
blocking-basecamp: + → -
Component: DOM: Device Interfaces → RIL
Product: Core → Boot2Gecko
Version: Trunk → unspecified
http://dxr.mozilla.org/mozilla-central/search?q=system-app-ready&case=true

Since removed -- not sure when it happened.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: dupme
You need to log in before you can comment on or make changes to this bug.