Closed Bug 1011429 Opened 10 years ago Closed 10 years ago

[B2G][RIL] _updateActiveCall() isn't correct in cdma 3way call scenario

Categories

(Firefox OS Graveyard :: RIL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S2 (23may)

People

(Reporter: hsinyi, Assigned: hsinyi)

References

Details

(Whiteboard: [p=1])

Attachments

(1 file)

When I am working on bug 1010035 I notice this issue. Think about the case: 1) modem reports call (parentCall) disconnected [1] 2) then [2] have its childCall updated 3) now, [1] gets called again with aCall being the childCall 4) [3] tries to update childCall's property 'isActive' but something goes wrong because childCall.isConference hasn't been set to false yet that leads to unexpected result... The fix is simple, moving [3] to line#777 should be fine! [1] http://dxr.mozilla.org/mozilla-central/source/dom/telephony/gonk/TelephonyProvider.js?from=TelephonyProvider.js#735 [2] http://dxr.mozilla.org/mozilla-central/source/dom/telephony/gonk/TelephonyProvider.js?from=TelephonyProvider.js#758 [3] http://dxr.mozilla.org/mozilla-central/source/dom/telephony/gonk/TelephonyProvider.js?from=TelephonyProvider.js#751
Attached patch 1011429.patch (deleted) — Splinter Review
Thank you :)
Attachment #8423760 - Flags: review?(vyang)
Whiteboard: [p=1]
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #1) > Created attachment 8423760 [details] [diff] [review] > 1011429.patch > > Thank you :) You could verify the fix by attachment 8423779 [details] [diff] [review] [diff] [review].
Blocks: 1010035
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #0) > When I am working on bug 1010035 I notice this issue. > > Think about the case: > 1) modem reports call (parentCall) disconnected [1] > 2) then [2] have its childCall updated > 3) now, [1] gets called again with aCall being the childCall > 4) [3] tries to update childCall's property 'isActive' but something goes > wrong because childCall.isConference hasn't been set to false yet that leads > to unexpected result... > 5) [4] is called. And when [4] is called, parentCall.state is still CONNECTED that makes PHONE_STATE set to IN_CALL. We have no chance to set PHONE_STATE to NORMAL eventually that is another unexpected behaviour. > The fix is simple, moving [3] to line#777 should be fine! > > [1] > http://dxr.mozilla.org/mozilla-central/source/dom/telephony/gonk/ > TelephonyProvider.js?from=TelephonyProvider.js#735 > [2] > http://dxr.mozilla.org/mozilla-central/source/dom/telephony/gonk/ > TelephonyProvider.js?from=TelephonyProvider.js#758 > [3] > http://dxr.mozilla.org/mozilla-central/source/dom/telephony/gonk/ > TelephonyProvider.js?from=TelephonyProvider.js#751 [4] http://dxr.mozilla.org/mozilla-central/source/dom/telephony/gonk/TelephonyProvider.js?from=TelephonyProvider.js#773
Comment on attachment 8423760 [details] [diff] [review] 1011429.patch Review of attachment 8423760 [details] [diff] [review]: ----------------------------------------------------------------- Vicamo is taking 2-week PTO, deferring the review to Aknow. Hi Aknow, may I have your help?
Attachment #8423760 - Flags: review?(vyang) → review?(szchen)
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #2) > (In reply to Hsin-Yi Tsai [:hsinyi] from comment #1) > > Created attachment 8423760 [details] [diff] [review] > > 1011429.patch > > > > Thank you :) > > You could verify the fix by attachment 8423779 [details] [diff] [review] > [diff] [review]. Also apply the emulator patches: Bug 1009393 - [B2G][Emulator] support RIL_REQUEST_CDMA_FLASH
Comment on attachment 8423760 [details] [diff] [review] 1011429.patch Review of attachment 8423760 [details] [diff] [review]: ----------------------------------------------------------------- LGTM. Thank you.
Attachment #8423760 - Flags: review?(szchen) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S2 (23may)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: