Bug 812368 follow-up: fix system message broadcast. r=fabrice
authorPhilipp von Weitershausen <philipp@weitershausen.de>
Wed, 28 Nov 2012 11:23:56 -0800
changeset 114361 58a4e9501f7ef86bc62bc12145408c0618c20352
parent 114360 4ae0c97ce84314f0794fdced6cbfb81097f815ed
child 114362 c63d5cff18bac0fd5a1749677488b14a143e7005
push id23915
push userpweitershausen@mozilla.com
push dateWed, 28 Nov 2012 19:24:22 +0000
treeherdermozilla-central@58a4e9501f7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs812368
milestone20.0a1
first release with
nightly linux32
58a4e9501f7e / 20.0a1 / 20121129030820 / files
nightly linux64
58a4e9501f7e / 20.0a1 / 20121129030820 / files
nightly mac
58a4e9501f7e / 20.0a1 / 20121129030820 / files
nightly win32
58a4e9501f7e / 20.0a1 / 20121129030820 / files
nightly win64
58a4e9501f7e / 20.0a1 / 20121129030820 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 812368 follow-up: fix system message broadcast. r=fabrice
dom/system/gonk/RadioInterfaceLayer.js
--- a/dom/system/gonk/RadioInterfaceLayer.js
+++ b/dom/system/gonk/RadioInterfaceLayer.js
@@ -1142,29 +1142,29 @@ RadioInterfaceLayer.prototype = {
 
   /**
    * Handle an incoming call.
    *
    * Not much is known about this call at this point, but it's enough
    * to start bringing up the Phone app already.
    */
   handleCallRing: function handleCallRing() {
-    gSystemMessenger.broadcastMessage("telephony-new-call");
+    gSystemMessenger.broadcastMessage("telephony-new-call", {});
   },
 
   /**
    * Handle call state changes by updating our current state and the audio
    * system.
    */
   handleCallStateChange: function handleCallStateChange(call) {
     debug("handleCallStateChange: " + JSON.stringify(call));
     call.state = convertRILCallState(call.state);
 
     if (call.state == nsIRadioInterfaceLayer.CALL_STATE_DIALING) {
-      gSystemMessenger.broadcastMessage("telephony-new-call");
+      gSystemMessenger.broadcastMessage("telephony-new-call", {});
     }
 
     if (call.isActive) {
       this._activeCall = call;
     } else if (this._activeCall &&
                this._activeCall.callIndex == call.callIndex) {
       // Previously active call is not active now.
       this._activeCall = null;