Closed Bug 938646 Opened 12 years ago Closed 12 years ago

[B2G][Dialer] Contact picture on call waiting persists on the ongoing call screen of another contact after ignoring call

Categories

(Firefox OS Graveyard :: Gaia::Dialer, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.3+, b2g18 affected, b2g-v1.2 affected, b2g-v1.3 fixed)

RESOLVED FIXED
blocking-b2g 1.3+
Tracking Status
b2g18 --- affected
b2g-v1.2 --- affected
b2g-v1.3 --- fixed

People

(Reporter: abhinav.srivstva, Assigned: rexboy)

Details

(Whiteboard: burirun4)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36 Steps to reproduce: Was on a call with gf, A (with no picture) Actual results: Got a call waiting from another girl, B (with picture) I obviously ignored the call waiting but i found that the picture of girl B has taken over the screen of my ongoing call with A Expected results: The picture of A should have been there on the ongoing call screen instead of B's Bit scary :)
build prerelease 1.2.0.0
Confirmed... this bug does reproduce on the 11/18/13 1.2 build with COM RIL. Description: The contact image of a caller on call waiting will persist on the screen even after ignoring their call. This will occur if the user pressing the "Ignore Call" button or lets the call go to voice mail. Additionally, this will occur if one contact has an image or if both contacts have an image. Prerequisites: 1) Have call waiting enabled on test phone (A) 2) Have to other phones (B & C) available Repro Steps: 1) Update Buri to v1.2 COM RIL BuildID: 20131118004001 2) Create two contacts in A for B & C; give each B and C a contact image 3) Call A using C and answer the call 4) While on the line with C, call A using B 5) When call waiting is triggered, select "Ignore Call" Actual: The contact image for B remains on the screen while C is on the line. Expected: The contact image for B is not displayed after ignoring the call and the image for C is displayed. Environmental Variables: Device: Buri v1.2 COM RIL BuildID: 20131118004001 Gaia: 7a23f8c53ba97da9c63a7275b36d155b4526a639 Gecko: 3e8b854a992e Version: 26.0 Firmware Version: 20131115 RIL Version: 01.02.00.019.102 Notes: Repro frequency: 3/3 See attached: ContactImagePersist.3gp
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: All → Gonk (Firefox OS)
Hardware: All → ARM
Whiteboard: burirun4
This issue does reproduce on the 11/19/13 1.1 build with COM RIL. Environmental Variables: Device: Leo v1.1 COM RIL BuildID: 20131119041201 Gaia: b585b32441fafa67f2b4582db23be5f3a2afab21 Gecko: 7c3cfc0936ca Version: 18.0 RIL Version: 01.01.00.019.281
Summary: Contact picture of a user on call waiting gets fixed on my ongoing call screen → [B2G][Dialer] Contact picture on call waiting persists on the ongoing call screen of another contact after ignoring call
Assignee: nobody → rexboy
as mentioned in bug 946072.. there's no event coming to active call when ignoring. I wonder if we have to do the switch back in CallHandler.ignore().
nominating 1.3? for wrong behavior.
blocking-b2g: --- → 1.3?
WIP: https://github.com/rexboy7/gaia/commit/c408e33c3bf01e54cd07bf455d97a66db2c1fbd1 This works but I would like to try whether I can dispatch events on call to update images..
WIP 2: https://github.com/rexboy7/gaia/commit/3358d41c3b4be371aebe945c6725712e46a9b931 Also works and more clear. I'm preferring this one...but not sure if using CustomEvent on call/ConferenceCall object is appropriate. Will ask owner of telephony later. (Unit test not completed yet)
Attached file patch
I tried to uses CustomEvent to solve the problem (so that changing image can be kept inside wrapper classes). Confirmed with Hsinyi that this is allowed, but not sure if it's a good idea. Etienne may you give some comments on this propose? I'll finish unit tests once confirming solution. (for reference, The WIP 1 above is the solution without using customEvent)
Attachment #8342898 - Flags: review?(etienne)
Comment on attachment 8342898 [details] patch Since this is not a completed patch yet I think using feedback may be more appropriate.
Attachment #8342898 - Flags: review?(etienne) → feedback?(etienne)
blocking-b2g: 1.3? → 1.3+
Comment on attachment 8342898 [details] patch I think we could do something simpler: * In CallScreen.hideIncoming - we check CallsHandler.activeCall + if we have one, we call this.setCallerContactImage(handledCall.photo) + if not (in the conference call case for example), we setCallerContactImage(null) It should do the trick. Also, nice catch in conference_group_handler.js, let's keep this change in the patch :)
Attachment #8342898 - Flags: feedback?(etienne)
Comment on attachment 8342898 [details] patch Oh, much simpler! Thanks for the suggestion. Just completed the unit tests with suggestions in comment 12. Ended up with much more test codes than main app codes :-O And if this patch landed, we can close bug 946072 also.
Attachment #8342898 - Flags: review?(etienne)
sorry again, it's bug 940672.
(In reply to KM Lee [:rexboy] from comment #13) > Ended up with much more test codes than main app codes :-O Just like I like it :) Seriously, I'm grateful for the added coverage in call_screen_test.js
Comment on attachment 8342898 [details] patch Good to go, awesome work!
Attachment #8342898 - Flags: review?(etienne) → review+
Thanks for the reviewing!! :) Just rebased and squashed withe a green travis. Closing this bug. master: https://github.com/mozilla-b2g/gaia/commit/a3e8ed494afd7ec3ba8181c3549e4a7d780d13d8
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Uplifted a3e8ed494afd7ec3ba8181c3549e4a7d780d13d8 to: v1.3 already had this commit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: