Closed Bug 825841 Opened 12 years ago Closed 12 years ago

B2G RIL: not sendSyncMessage("RIL:GetRilContext") in constructor

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: hsinyi, Assigned: hsinyi)

Details

Attachments

(1 file)

We now send an IPC message 'RIL:GetRilContext' in the constructor of RILContentHelper but we shouldn't do that (or need to improve it) for the following reasons IMO: 1) in RadioInterfaceLayer, 'RIL:GetRilContext' message should be sent from a content process with 'mobileconnection' permission, but we don't guarantee the privilege in RILContentHelper that might cause the content process without that permission being killed. 2) Content processes with various permissions may get service of RILContentHelper. It's not a good idea that we do something specific to a particular privilege in the constructor.
Attached patch PatchSplinter Review
Not sending RIL:GetRilContext message in RILContentHelper constructor, sending it when we first time require the info instead.
Assignee: nobody → htsai
Attachment #699031 - Flags: review?(vyang)
Comment on attachment 699031 [details] [diff] [review] Patch Review of attachment 699031 [details] [diff] [review]: ----------------------------------------------------------------- ;) Then we have to modify existing MultiSIM code as well though.
Attachment #699031 - Flags: review?(vyang) → review+
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #2) > Comment on attachment 699031 [details] [diff] [review] > Patch > > Review of attachment 699031 [details] [diff] [review]: > ----------------------------------------------------------------- > > ;) Then we have to modify existing MultiSIM code as well though. Definitely!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: