Closed
Bug 1070831
Opened 10 years ago
Closed 10 years ago
Deprecate MozMobileConnection.sendMMI, cancelMMI
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.2 S3 (9jan)
People
(Reporter: aknow, Assigned: bhsu)
References
Details
(Keywords: dev-doc-needed)
Attachments
(8 files, 27 obsolete files)
4.34 KB,
patch
|
bhsu
:
review+
|
Details | Diff | Splinter Review |
13.48 KB,
patch
|
bhsu
:
review+
|
Details | Diff | Splinter Review |
14.00 KB,
patch
|
bhsu
:
review+
|
Details | Diff | Splinter Review |
11.91 KB,
patch
|
bhsu
:
review+
|
Details | Diff | Splinter Review |
22.82 KB,
patch
|
bhsu
:
review+
|
Details | Diff | Splinter Review |
1.69 KB,
patch
|
bhsu
:
review+
|
Details | Diff | Splinter Review |
15.28 KB,
patch
|
bhsu
:
review+
|
Details | Diff | Splinter Review |
5.57 KB,
patch
|
bhsu
:
review+
|
Details | Diff | Splinter Review |
Once we finish Bug 1058398 and all the gaia related changes, the following interface should be deprecated.
- MozMobileConnection.sendMMI
- MozMobileConnection.cancelMMI
- MozMobileConnection.onussdreceived
- USSDReceivedEvent.sessionEnded
Assignee | ||
Updated•10 years ago
|
Assignee: szchen → bhsu
Updated•10 years ago
|
Blocks: b2g-ril-interface
Reporter | ||
Comment 1•10 years ago
|
||
We also need to...
1. Move notifyUssdReceived from MobileConnectionService.js to TelephonyService.js. Remember to handle the interface as well.
2. Move gMobileConnectionMessenger.notifyUssdReceived from nsIMobileConnectionMessenger to nsITelephonyMessenger.
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8536485 -
Flags: review?(szchen)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8536486 -
Flags: review?(szchen)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8536489 -
Flags: review?(szchen)
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8536491 -
Flags: review?(szchen)
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8536493 -
Flags: review?(szchen)
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8536494 -
Flags: review?(szchen)
Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8536495 -
Flags: review?(szchen)
Reporter | ||
Comment 9•10 years ago
|
||
Comment on attachment 8536485 [details] [diff] [review]
Part 1-1: Remove sendMMI() and cancelMMI() (WebIDL)
Review of attachment 8536485 [details] [diff] [review]:
-----------------------------------------------------------------
looks good.
r? hsinyi for the formal review
Attachment #8536485 -
Flags: review?(szchen) → review?(htsai)
Reporter | ||
Updated•10 years ago
|
Attachment #8536495 -
Flags: review?(szchen) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8536494 -
Flags: review?(szchen) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8536489 -
Flags: review?(szchen) → review+
Comment 10•10 years ago
|
||
Comment on attachment 8536485 [details] [diff] [review]
Part 1-1: Remove sendMMI() and cancelMMI() (WebIDL)
Review of attachment 8536485 [details] [diff] [review]:
-----------------------------------------------------------------
According to comment 0, I would expect to see mobileConnection.onussdreceived and USSDReceivedEvent.sessionEnded being removed, too.
Attachment #8536485 -
Flags: review?(htsai)
Comment 11•10 years ago
|
||
Comment on attachment 8536485 [details] [diff] [review]
Part 1-1: Remove sendMMI() and cancelMMI() (WebIDL)
Review of attachment 8536485 [details] [diff] [review]:
-----------------------------------------------------------------
According to comment 0, I would expect to see mobileConnection.onussdreceived and USSDReceivedEvent.sessionEnded being removed, too.
r=me with following parts for onussdreceived and sessionEnded :)
Attachment #8536485 -
Flags: review+
Assignee | ||
Comment 12•10 years ago
|
||
Attachment #8537007 -
Flags: review?(htsai)
Assignee | ||
Comment 13•10 years ago
|
||
Attachment #8537008 -
Flags: review?(szchen)
Assignee | ||
Comment 14•10 years ago
|
||
Attachment #8537009 -
Flags: review?(szchen)
Assignee | ||
Comment 15•10 years ago
|
||
Attachment #8537013 -
Flags: review?(szchen)
Comment 16•10 years ago
|
||
Comment on attachment 8537007 [details] [diff] [review]
Part 2-1: Migrate onussdreceived (WebIDL)
Review of attachment 8537007 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/webidl/Telephony.webidl
@@ +57,5 @@
> + /**
> + * The 'ussdreceived' event is notified whenever a new USSD message is
> + * received.
> + */
> + attribute EventHandler onussdreceived;
Per bug 1058397 comment 15, we are fine without telephony.onussdreceived. Let's just ignore it for now, thank you.
Attachment #8537007 -
Flags: review?(htsai)
Assignee | ||
Comment 17•10 years ago
|
||
Attachment #8537014 -
Flags: review?(szchen)
Assignee | ||
Updated•10 years ago
|
Attachment #8537008 -
Flags: review?(szchen)
Assignee | ||
Updated•10 years ago
|
Attachment #8537009 -
Flags: review?(szchen)
Assignee | ||
Updated•10 years ago
|
Attachment #8537013 -
Flags: review?(szchen)
Assignee | ||
Updated•10 years ago
|
Attachment #8537014 -
Flags: review?(szchen)
Assignee | ||
Comment 18•10 years ago
|
||
Attachment #8537007 -
Attachment is obsolete: true
Attachment #8537073 -
Flags: review?(htsai)
Assignee | ||
Updated•10 years ago
|
Attachment #8537073 -
Attachment description: Remove onussdreceived (WebIDL) → Part 2-1: Remove onussdreceived (WebIDL)
Assignee | ||
Comment 19•10 years ago
|
||
Attachment #8537008 -
Attachment is obsolete: true
Attachment #8537078 -
Flags: review?(szchen)
Assignee | ||
Comment 20•10 years ago
|
||
Attachment #8537009 -
Attachment is obsolete: true
Attachment #8537081 -
Flags: review?(szchen)
Assignee | ||
Comment 21•10 years ago
|
||
Attachment #8537013 -
Attachment is obsolete: true
Attachment #8537083 -
Flags: review?(szchen)
Assignee | ||
Comment 22•10 years ago
|
||
Attachment #8537014 -
Attachment is obsolete: true
Attachment #8537086 -
Flags: review?(szchen)
Assignee | ||
Comment 23•10 years ago
|
||
Attachment #8537090 -
Flags: review?(szchen)
Assignee | ||
Comment 24•10 years ago
|
||
Reporter | ||
Comment 25•10 years ago
|
||
Comment on attachment 8537081 [details] [diff] [review]
Part 2-3: Remove onussdreceived (IDL)
Review of attachment 8537081 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/telephony/nsITelephonyMessenger.idl
@@ +44,5 @@
> + * @param message
> + * The ussd request in string format.
> + * @param sessionEnded
> + * Indicates whether the session is ended.
> + */
1. Comment is not correct. You miss one parameter and the description for message is not appropriate. Please refer to the original comment written in nsIMobileConnectionMessenger.idl.
2. You should use "aServiceId" instead of "clientId". Follow the style as notifyCallEnded and make sure the consistency of serviceId
3. Follow the coding style. Use "aXXXX" for the name of parameters
Attachment #8537081 -
Flags: review?(szchen)
Comment 26•10 years ago
|
||
Comment on attachment 8537073 [details] [diff] [review]
Part 2-1: Remove onussdreceived (WebIDL)
Review of attachment 8537073 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you.
Attachment #8537073 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 27•10 years ago
|
||
Attachment #8537081 -
Attachment is obsolete: true
Attachment #8537614 -
Flags: review?(szchen)
Assignee | ||
Comment 28•10 years ago
|
||
Attachment #8537760 -
Flags: review?(htsai)
Assignee | ||
Comment 29•10 years ago
|
||
Attachment #8537762 -
Flags: review?(szchen)
Assignee | ||
Comment 30•10 years ago
|
||
Attachment #8536491 -
Attachment is obsolete: true
Attachment #8536491 -
Flags: review?(szchen)
Attachment #8537769 -
Flags: review?(szchen)
Assignee | ||
Comment 31•10 years ago
|
||
Attachment #8537774 -
Flags: review?(szchen)
Comment 32•10 years ago
|
||
Comment on attachment 8537760 [details] [diff] [review]
Part 3-1: Remove sessionEnded (WebIDL)
Review of attachment 8537760 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me, thank you.
Attachment #8537760 -
Flags: review?(htsai) → review+
Reporter | ||
Comment 33•10 years ago
|
||
Comment on attachment 8537614 [details] [diff] [review]
Part 2-3: Remove onussdreceived (IDL) (V2)
Review of attachment 8537614 [details] [diff] [review]:
-----------------------------------------------------------------
Good. Thank you.
Attachment #8537614 -
Flags: review?(szchen) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8536486 -
Flags: review?(szchen) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8537769 -
Flags: review?(szchen) → review+
Reporter | ||
Comment 34•10 years ago
|
||
Comment on attachment 8536489 [details] [diff] [review]
Part 1-3: Remove sendMMI() and cancelMMI() (IDL)
Review of attachment 8536489 [details] [diff] [review]:
-----------------------------------------------------------------
You'll need to remove dialMMI from nsIGonkTelephonyService.idl
Attachment #8536489 -
Flags: review+
Reporter | ||
Updated•10 years ago
|
Attachment #8537774 -
Flags: review?(szchen) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8536493 -
Flags: review?(szchen) → review+
Assignee | ||
Comment 35•10 years ago
|
||
Attachment #8536489 -
Attachment is obsolete: true
Attachment #8538221 -
Flags: review?(szchen)
Reporter | ||
Updated•10 years ago
|
Attachment #8538221 -
Flags: review?(szchen) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8537762 -
Flags: review?(szchen) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8537078 -
Flags: review?(szchen) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8537083 -
Flags: review?(szchen) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8537086 -
Flags: review?(szchen) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8537090 -
Flags: review?(szchen) → review+
Reporter | ||
Comment 36•10 years ago
|
||
Hi Ben,
For bluetooth, remember that there are two folders. You'll need to modify the file under dom/bluetooth2 as well. Then, you can use "git blame" or "hg annotate" to find the original author (I guess it's Ben[:btian])of that piece of code and request the person for review.
Ex: http://hg.mozilla.org/mozilla-central/annotate/0e441ff66c5e/dom/bluetooth/BluetoothRilListener.cpp
I appreciate you separating the patches into several small chunks. It's really easy for me to review them and I like it. However, for the final version of patches, maybe you could merge several patches into one and organized them by file or by functionality. I don't know the exact rule or preference for formating the patches. It's just my personal feeling because the number of patches you have now looks scary.
Assignee | ||
Comment 37•10 years ago
|
||
Hi Aknow,
Thanks for your advice, and I totally agree with you that the number of the patches is scary. I'll organize those patches right after the the patch for bluetooth is review granted.
Assignee | ||
Comment 38•10 years ago
|
||
Hi, Ben
Since the internal interface of mobileConnection has been redesigned, we have to remove some code from BluetoothRilListener.cpp. Can you review this patch?
Attachment #8537098 -
Attachment is obsolete: true
Attachment #8538944 -
Flags: review?(btian)
Comment 39•10 years ago
|
||
Comment on attachment 8538944 [details] [diff] [review]
Part 2-7: Remove onussdreceived (BluetoothRilListener) (V2)
Review of attachment 8538944 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM.
Attachment #8538944 -
Flags: review?(btian) → review+
Assignee | ||
Comment 40•10 years ago
|
||
Keywords: checkin-needed
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 41•10 years ago
|
||
Attachment #8536485 -
Attachment is obsolete: true
Attachment #8537073 -
Attachment is obsolete: true
Attachment #8537760 -
Attachment is obsolete: true
Attachment #8539868 -
Flags: review+
Assignee | ||
Comment 42•10 years ago
|
||
Attachment #8536486 -
Attachment is obsolete: true
Attachment #8537078 -
Attachment is obsolete: true
Attachment #8539869 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Attachment #8539869 -
Attachment description: Part 2: Part 2: Clean up the DOM implementation → Part 2: Clean up the DOM implementation
Assignee | ||
Comment 43•10 years ago
|
||
Attachment #8537614 -
Attachment is obsolete: true
Attachment #8538221 -
Attachment is obsolete: true
Attachment #8539870 -
Flags: review+
Assignee | ||
Comment 44•10 years ago
|
||
Attachment #8537083 -
Attachment is obsolete: true
Attachment #8537090 -
Attachment is obsolete: true
Attachment #8537762 -
Attachment is obsolete: true
Attachment #8537769 -
Attachment is obsolete: true
Attachment #8537774 -
Attachment is obsolete: true
Attachment #8539872 -
Flags: review+
Assignee | ||
Comment 45•10 years ago
|
||
Attachment #8536493 -
Attachment is obsolete: true
Attachment #8537086 -
Attachment is obsolete: true
Attachment #8539873 -
Flags: review+
Assignee | ||
Comment 46•10 years ago
|
||
Attachment #8538944 -
Attachment is obsolete: true
Attachment #8539874 -
Flags: review+
Assignee | ||
Comment 47•10 years ago
|
||
Attachment #8536494 -
Attachment is obsolete: true
Attachment #8536495 -
Attachment is obsolete: true
Attachment #8539875 -
Flags: review+
Assignee | ||
Comment 48•10 years ago
|
||
Keywords: checkin-needed
Comment 50•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/f66cc942116f
https://hg.mozilla.org/integration/b2g-inbound/rev/ad85e32377a8
https://hg.mozilla.org/integration/b2g-inbound/rev/56f1f17e9ed4
https://hg.mozilla.org/integration/b2g-inbound/rev/9dab3d696c4f
https://hg.mozilla.org/integration/b2g-inbound/rev/f8ba9bea2731
https://hg.mozilla.org/integration/b2g-inbound/rev/56a25a9b0aba
https://hg.mozilla.org/integration/b2g-inbound/rev/82155015764e
Keywords: checkin-needed
Comment 51•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f66cc942116f
https://hg.mozilla.org/mozilla-central/rev/ad85e32377a8
https://hg.mozilla.org/mozilla-central/rev/56f1f17e9ed4
https://hg.mozilla.org/mozilla-central/rev/9dab3d696c4f
https://hg.mozilla.org/mozilla-central/rev/f8ba9bea2731
https://hg.mozilla.org/mozilla-central/rev/56a25a9b0aba
https://hg.mozilla.org/mozilla-central/rev/82155015764e
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S3 (9jan)
Assignee | ||
Comment 52•10 years ago
|
||
Thanks to edgar for reminding me that I've made a mistake when merging those patches, so there is still one testcase should be removed.
Attachment #8541093 -
Flags: review?(szchen)
Reporter | ||
Comment 53•10 years ago
|
||
Comment on attachment 8541093 [details] [diff] [review]
Part 7: Update related testcases (Follow)
Review of attachment 8541093 [details] [diff] [review]:
-----------------------------------------------------------------
Please also remove the sendMMI() in mobileconnection head.js
r=me with comment addressed.
Attachment #8541093 -
Flags: review?(szchen) → review+
Assignee | ||
Comment 54•10 years ago
|
||
Attachment #8541214 -
Flags: review+
Assignee | ||
Comment 55•10 years ago
|
||
Keywords: checkin-needed
Updated•10 years ago
|
Attachment #8541093 -
Attachment is obsolete: true
Comment 56•10 years ago
|
||
Keywords: checkin-needed
Comment 57•10 years ago
|
||
Updated•10 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•