Closed Bug 912849 Opened 11 years ago Closed 11 years ago

B2G RIL: notify conference call error

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(blocking-b2g:koi+, firefox26 wontfix, firefox27 wontfix, firefox28 fixed, b2g-v1.2 fixed)

RESOLVED FIXED
1.2 C4(Nov8)
blocking-b2g koi+
Tracking Status
firefox26 --- wontfix
firefox27 --- wontfix
firefox28 --- fixed
b2g-v1.2 --- fixed

People

(Reporter: hsinyi, Assigned: hsinyi)

References

Details

(Keywords: dev-doc-needed, Whiteboard: [FT:RIL])

Attachments

(6 files, 8 obsolete files)

2.27 KB, text/plain
Details
3.20 KB, text/plain
Details
8.89 KB, text/plain
Details
4.44 KB, text/plain
Details
2.86 KB, text/plain
Details
1.21 KB, text/plain
Details
Notify error when telephonyCallGroup.add() or .remove() fails.
blocking-b2g: --- → koi?
blocking-b2g: koi? → koi+
Ken

Please take a look at it since it seems to be a RIL issue.
Flags: needinfo?(kchang)
I can take it.
Flags: needinfo?(kchang)
Target Milestone: --- → 1.2 C3(Oct25)
Assignee: nobody → htsai
I am going to add 'error' event to TelephonyCallGroup. And the error message could be 'addError' or 'removeError.' 

How does that sound to dialer developers? Thank you.
Flags: needinfo?(etienne)
(In reply to Hsin-Yi Tsai  [:hsinyi] from comment #4)
> I am going to add 'error' event to TelephonyCallGroup. And the error message
> could be 'addError' or 'removeError.' 
> 
> How does that sound to dialer developers? Thank you.

Sounds good!
We'll probably show a banner like the one when somebody leaves the conference call.
Flags: needinfo?(etienne)
Whiteboard: [FT:RIL]
Attached patch 912849-1.patch - WebAPI (obsolete) — Splinter Review
Attached patch 912849-2.patch - internal API (obsolete) — Splinter Review
Attached patch 912849-3.patch - IPC and DOM (obsolete) — Splinter Review
Attached patch 912849-4.patch - gonk & RIL (obsolete) — Splinter Review
Attached patch 912849-5.patch - BT (obsolete) — Splinter Review
Target Milestone: 1.2 C3(Oct25) → 1.2 C4(Nov8)
Comment on attachment 823201 [details] [diff] [review]
912849-1.patch - WebAPI

|event.name| is the name of the error, while |event.message| provides detailed failure information/reason.
Attachment #823201 - Flags: superreview?(gene.lian)
Attachment #823201 - Flags: review?(khuey)
Attachment #823202 - Flags: review?(vyang)
Attachment #823203 - Flags: review?(khuey)
Attachment #823204 - Flags: review?(vyang)
Bug 814625 is refactoring test_conference.js. I am going to take advantage of that, so the test case will come later. :)
Attachment #823202 - Flags: review?(vyang) → review+
Attachment #823204 - Flags: review?(vyang) → review+
Comment on attachment 823201 [details] [diff] [review]
912849-1.patch - WebAPI

Review of attachment 823201 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/webidl/CallGroupErrorEvent.webidl
@@ +3,5 @@
> + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
> + * You can obtain one at http://mozilla.org/MPL/2.0/.
> + */
> +
> +[Constructor(DOMString type, optional CallGroupErrorEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]

nit: please line up these three entries.
Attachment #823201 - Flags: superreview?(gene.lian) → superreview+
Addressed comment #13 & using WebIDL event generator so that nsIDOMCallGroupErrorEvent.idl isn't needed
Comment on attachment 823846 [details] [diff] [review]
912849-6.patch - using WebIDL event generator

Review of attachment 823846 [details] [diff] [review]:
-----------------------------------------------------------------

Hi Kyle,

I just learned that WebIDL event generator is supported so we don't need to have nsIDOMCallGroupErrorEvent.idl. The patch cleans unnecessary things. Could you please help review again? Thank you.
Attachment #823846 - Flags: review?(khuey)
Comment on attachment 823205 [details] [diff] [review]
912849-5.patch - BT

Review of attachment 823205 [details] [diff] [review]:
-----------------------------------------------------------------

Hi Gina,

One more function in nsITelephonyListener ... So, could you please help review BT part? Thank you.
Attachment #823205 - Flags: review?(gyeh)
Comment on attachment 823205 [details] [diff] [review]
912849-5.patch - BT

Review of attachment 823205 [details] [diff] [review]:
-----------------------------------------------------------------

Please check my comment below. Thanks.

::: dom/bluetooth/BluetoothRilListener.cpp
@@ +213,5 @@
>  
>  NS_IMETHODIMP
> +TelephonyListener::NotifyConferenceError(const nsAString& aName,
> +                                         const nsAString& aMessage)
> +{

It would be great if we can add a warning here.

BT_WARNING(NS_ConvertUTF16toUTF8(aMessage).get());
Attachment #823205 - Flags: review?(gyeh) → review+
(In reply to Gina Yeh [:gyeh] [:ginayeh] from comment #17)
> Comment on attachment 823205 [details] [diff] [review]
> 912849-5.patch - BT
> 
> Review of attachment 823205 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Please check my comment below. Thanks.
> 
> ::: dom/bluetooth/BluetoothRilListener.cpp
> @@ +213,5 @@
> >  
> >  NS_IMETHODIMP
> > +TelephonyListener::NotifyConferenceError(const nsAString& aName,
> > +                                         const nsAString& aMessage)
> > +{
> 
> It would be great if we can add a warning here.
> 
> BT_WARNING(NS_ConvertUTF16toUTF8(aMessage).get());

Gina, thanks for the review.

Quick confirmation: 
Should I add BT_WARNING for both aName and aMessage?
That would be great :)
Keywords: dev-doc-needed
Attached patch 912849-7.patch - test cases (obsolete) — Splinter Review
Attachment #824093 - Flags: review?(khuey)
Comment on attachment 823846 [details] [diff] [review]
912849-6.patch - using WebIDL event generator

Review of attachment 823846 [details] [diff] [review]:
-----------------------------------------------------------------

Even better!

I was wondering if the IDL file was necessary but I didn't want to block you from landing.  Please squash this commit with the one that added nsIDOMCallGroupErrorEvent.idl.
Attachment #823846 - Flags: review?(khuey) → review+
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #22)
> Comment on attachment 823846 [details] [diff] [review]
> 912849-6.patch - using WebIDL event generator
> 
> Review of attachment 823846 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Even better!
> 
> I was wondering if the IDL file was necessary but I didn't want to block you
> from landing.  Please squash this commit with the one that added
> nsIDOMCallGroupErrorEvent.idl.

That's what I was planning to do when landing. Thank you!
Comment on attachment 824093 [details] [diff] [review]
912849-7.patch - test cases

Review of attachment 824093 [details] [diff] [review]:
-----------------------------------------------------------------

r=me
Attachment #824093 - Flags: review?(khuey) → review+
Attachment #823201 - Attachment is obsolete: true
Attachment #823202 - Attachment is obsolete: true
Attachment #823203 - Attachment is obsolete: true
rebase only
Comment on attachment 825899 [details]
part2 v2 - internal api. r=vicamo

rebase only
Comment on attachment 825900 [details]
part3 v2 - dom & ipc. r=khuey

rebase only
Attached file part5 v2 - BT. r=gyeh (obsolete) —
comment addressed
Attachment #823204 - Attachment is obsolete: true
Attachment #823205 - Attachment is obsolete: true
rebase only
Attachment #823846 - Attachment is obsolete: true
Attachment #824093 - Attachment is obsolete: true
Attached file part5 v2 - BT. r=gyeh
This is the right file...
Attachment #825902 - Attachment is obsolete: true
Blocks: 938099
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: