Closed
Bug 1106637
Opened 10 years ago
Closed 10 years ago
Check that the call node is still present before removing it
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Tracking
(blocking-b2g:2.2+, b2g-v2.1 unaffected, b2g-v2.2 fixed, b2g-master fixed)
Tracking | Status | |
---|---|---|
b2g-v2.1 | --- | unaffected |
b2g-v2.2 | --- | fixed |
b2g-master | --- | fixed |
People
(Reporter: anshulj, Assigned: gtorodelvalle)
References
Details
(Keywords: regression, Whiteboard: [caf priority: p2][CR 786378][planned-sprint c=3])
Attachments
(1 file)
46 bytes,
text/x-github-pull-request
|
gsvelto
:
review+
anshulj
:
feedback+
bajaj
:
approval-gaia-v2.2+
|
Details | Review |
STR
1. Place an outgoing call and accept the call on the other end
2. Place an incoming call
3. Answer the incoming call. The previous call is now held and the incoming (call waiting) call is now connected
4. Merge the calls in a conference.
5. End the conference call.
Observed: After step 5 I see the following exception in the logs
JavascriptException: JavascriptException: TypeError: node.parentNode is null at: app://callscreen.gaiamobile.org/gaia_build_defer_index.js line: 180. The exception is coming from removeCall function in call_screen.js
This exception causes all our unit test scripts that deal with conference calling to fail.
Comment 2•10 years ago
|
||
Let me NI drs from gaia dialer, to get started here.
Flags: needinfo?(drs.bugzilla)
Updated•10 years ago
|
Keywords: regression
Comment 3•10 years ago
|
||
The issue is not present in today's 2.1:
Gaia-Rev 38e17b0219cbc50a4ad6f51101898f89e513a552
Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/8b92c4b8f59a
Build-ID 20141205001201
Version 34.0
Device-Name flame
FW-Release 4.4.2
FW-Incremental 39
FW-Date Thu Oct 16 18:19:14 CST 2014
Bootloader L1TC00011880
status-b2g-v2.1:
--- → unaffected
Updated•10 years ago
|
Assignee: nobody → gtorodelvalle
Flags: needinfo?(drs.bugzilla)
Whiteboard: [planned-sprint c=3]
Target Milestone: --- → 2.2 S2 (19dec)
Updated•10 years ago
|
Target Milestone: 2.2 S2 (19dec) → 2.2 S3 (9jan)
Updated•10 years ago
|
Target Milestone: 2.2 S3 (9jan) → 2.2 S4 (23jan)
Updated•10 years ago
|
Assignee: gtorodelvalle → thills
Updated•10 years ago
|
Assignee: thills → gtorodelvalle
Assignee | ||
Comment 7•10 years ago
|
||
Hi! After considering other much more complex alternatives consisting on getting the removeCall() function called just once, I opted for the simplest and in my opinion also legit solution based on checking if |node.parentNode| is null before removing the node from it.
The reason to discard these other solutions is that they would force us to keep additional status information about the calls making things error prone without a real need for it. For example, right now and considering the workflow of events being notified (callschanged and statechange) there is no certain way to know if a call participating in a conference has been hang up because the conference was finished or because this precise call was finished, without this additional status information, of course.
Attachment #8549551 -
Flags: review?(gsvelto)
Comment 8•10 years ago
|
||
Comment on attachment 8549551 [details] [review]
Pull request 27411
This LGTM though the reason we need it is pretty clunky; it would be a lot better if we could unify the UI code so we're not trying to remove the same node from two different places. Also please change the patch title before landing to describe what we're doing here such as "before removing a call from the UI verify that the corresponding node is still present", or something along the lines.
Attachment #8549551 -
Flags: review?(gsvelto) → review+
Assignee | ||
Updated•10 years ago
|
Summary: TypeError: node.parentNode is null → Check that the call node is still present before removing it
Comment on attachment 8549551 [details] [review]
Pull request 27411
This patch fixes the issue.
Attachment #8549551 -
Flags: feedback+
Updated•10 years ago
|
Whiteboard: [planned-sprint c=3] → [CR 786378][planned-sprint c=3]
Updated•10 years ago
|
Whiteboard: [CR 786378][planned-sprint c=3] → [caf priority: p2][CR 786378][planned-sprint c=3]
Updated•10 years ago
|
Target Milestone: 2.2 S4 (23jan) → 2.2 S5 (6feb)
Comment 10•10 years ago
|
||
Comment 11•10 years ago
|
||
Comment on attachment 8549551 [details] [review]
Pull request 27411
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): Unknown.
[User impact] if declined: Errors in tests.
[Testing completed]: Gabriele and Germán tested it.
[Risk to taking this patch] (and alternatives if risky): Low.
[String changes made]: None.
Attachment #8549551 -
Flags: approval-gaia-v2.2?(release-mgmt)
Updated•10 years ago
|
Attachment #8549551 -
Flags: approval-gaia-v2.2?(release-mgmt) → approval-gaia-v2.2?(bbajaj)
Comment 12•10 years ago
|
||
(In reply to Doug Sherk (:drs) (use needinfo?) from comment #11)
> Comment on attachment 8549551 [details] [review]
> Pull request 27411
>
> [Approval Request Comment]
> [Bug caused by] (feature/regressing bug #): Unknown.
> [User impact] if declined: Errors in tests.
> [Testing completed]: Gabriele and Germán tested it.
> [Risk to taking this patch] (and alternatives if risky): Low.
> [String changes made]: None.
gtoro/drs , can we add unit and integration tests around this ?
Flags: needinfo?(gtorodelvalle)
Assignee | ||
Comment 13•10 years ago
|
||
Redirecting the question to Gabrielle since I am not currently aware of any support to make or to simulate conference calls in integration tests which is the scenario where this patch applies. I mean regarding the UI of conference calls. Thanks!
Flags: needinfo?(gtorodelvalle) → needinfo?(gsvelto)
Comment 14•10 years ago
|
||
Unfortunately it's impossible right now. When we'll get proper integration with the emulator we might be able to.
Flags: needinfo?(gsvelto)
Updated•10 years ago
|
Attachment #8549551 -
Flags: approval-gaia-v2.2?(bbajaj) → approval-gaia-v2.2+
Comment 15•10 years ago
|
||
Blocks: CAF-v3.0-FL-metabug
No longer blocks: CAF-v3.0-FL-metabug
You need to log in
before you can comment on or make changes to this bug.
Description
•