Bug 768608 - test failure: dom/telephony/test/marionette/*.js | ScriptTimeoutException: timed out. r=philikon
authorHsin-Yi Tsai <htsai@mozilla.com>
Wed, 18 Jul 2012 13:52:59 +0800
changeset 99636 df99b539896a5539fb8e6f4201d957acc1a83d59
parent 99635 a2bb5b85778ad7a99155fb76ff2ca6e7b4298424
child 99637 75e0e7e61c9b607a2a8f0b6a06b9fc0c8871f1ce
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersphilikon
bugs768608
milestone17.0a1
Bug 768608 - test failure: dom/telephony/test/marionette/*.js | ScriptTimeoutException: timed out. r=philikon
dom/system/gonk/ril_worker.js
--- a/dom/system/gonk/ril_worker.js
+++ b/dom/system/gonk/ril_worker.js
@@ -2922,16 +2922,19 @@ RIL[REQUEST_SWITCH_HOLDING_AND_ACTIVE] =
 RIL[REQUEST_CONFERENCE] = null;
 RIL[REQUEST_UDUB] = null;
 RIL[REQUEST_LAST_CALL_FAIL_CAUSE] = function REQUEST_LAST_CALL_FAIL_CAUSE(length, options) {
   let num = 0;
   if (length) {
     num = Buf.readUint32();
   }
   if (!num) {
+    // No response of REQUEST_LAST_CALL_FAIL_CAUSE. Change the call state into
+    // 'disconnected' directly.
+    this._handleDisconnectedCall(options);
     return;
   }
 
   let failCause = Buf.readUint32();
   switch (failCause) {
     case CALL_FAIL_NORMAL:
       this._handleDisconnectedCall(options);
       break;