Bug 928782 - B2G RIL: 'Import SIM Contact failed' after when Contact is WebIDLized. r=vicamo
author"allstars.chh" <allstars.chh@gmail.com>
Tue, 22 Oct 2013 14:57:44 +0800
changeset 151997 eb3cc0b4cc43b3021d21933adb909aa58aa746ef
parent 151996 7e0a0d93050bbc4a6b02ca88498666d10cc599fb
child 151998 ce8bcbb31daf9e189301f853cab99d65d0cea06d
push id1841
push useryhuang@mozilla.com
push dateFri, 25 Oct 2013 10:30:05 +0000
treeherderb2g-inbound@eb3cc0b4cc43 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvicamo
bugs928782
milestone27.0a1
Bug 928782 - B2G RIL: 'Import SIM Contact failed' after when Contact is WebIDLized. r=vicamo
dom/system/gonk/RILContentHelper.js
--- a/dom/system/gonk/RILContentHelper.js
+++ b/dom/system/gonk/RILContentHelper.js
@@ -13,17 +13,16 @@
  * limitations under the License.
  */
 
 "use strict";
 
 const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
 
 Cu.import("resource://gre/modules/DOMRequestHelper.jsm");
-Cu.import("resource://gre/modules/ObjectWrapper.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
 var RIL = {};
 Cu.import("resource://gre/modules/ril_consts.js", RIL);
 
 const NS_XPCOM_SHUTDOWN_OBSERVER_ID = "xpcom-shutdown";
 
@@ -1763,18 +1762,17 @@ RILContentHelper.prototype = {
         prop.tel.push({value: c.anr[i]});
       }
 
       let contact = new window.mozContact(prop);
       contact.id = message.iccid + c.recordId;
       return contact;
     });
 
-    this.fireRequestSuccess(message.requestId,
-                            ObjectWrapper.wrap(result, window));
+    this.fireRequestSuccess(message.requestId, result);
   },
 
   handleVoicemailNotification: function handleVoicemailNotification(message) {
     let changed = false;
     if (!this.voicemailStatus) {
       this.voicemailStatus = new VoicemailStatus();
     }