Bug 1115758 - Part 1: Add USSDSession.cancel (webidl). r=hsinyi
authorSzu-Yu Chen [:aknow] <szchen@mozilla.com>
Wed, 07 Jan 2015 15:28:43 +0800
changeset 235515 a0068ce0aa5541fd5ce91e6e4331e430177bbe81
parent 235514 8f90e66c80e2bff7803f5c172b6b79048b049821
child 235516 19941167e2f344cd52d6ed7b9e5d18c049bb92be
push id366
push usercmanchester@mozilla.com
push dateThu, 08 Jan 2015 16:40:24 +0000
reviewershsinyi
bugs1115758
milestone37.0a1
Bug 1115758 - Part 1: Add USSDSession.cancel (webidl). r=hsinyi
dom/webidl/USSDSession.webidl
--- a/dom/webidl/USSDSession.webidl
+++ b/dom/webidl/USSDSession.webidl
@@ -4,11 +4,14 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 [Pref="dom.telephony.enabled",
  CheckPermissions="telephony",
  AvailableIn="CertifiedApps",
  Constructor(unsigned long serviceId)]
 interface USSDSession {
-  [Throws]
+  [NewObject, Throws]
   Promise<void> send(DOMString ussd);
+
+  [NewObject, Throws]
+  Promise<void> cancel();
 };