Bug 996912 - [B2G] Apps will close after the user initiates a BT transfer to another phone r=gene a=v1.3t+
authorFabrice Desré <fabrice@mozilla.com>
Thu, 17 Apr 2014 10:03:02 +0800
changeset 179414 39b6e5552082e6d9727c38fc77ef5ce6b5c915f0
parent 179413 50c42773c9231c16faa8645e539be9f4fa56c035
child 179415 7d8daeaabdb8a8ce38ecc2f757752d6f8da728b9
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersgene, v1
bugs996912
milestone31.0a1
Bug 996912 - [B2G] Apps will close after the user initiates a BT transfer to another phone r=gene a=v1.3t+
dom/apps/src/InterAppCommService.js
--- a/dom/apps/src/InterAppCommService.js
+++ b/dom/apps/src/InterAppCommService.js
@@ -814,16 +814,18 @@ InterAppCommService.prototype = {
   receiveMessage: function(aMessage) {
     if (DEBUG) debug("receiveMessage: name: " + aMessage.name);
     let message = aMessage.json;
     let target = aMessage.target;
 
     // To prevent the hacked child process from sending commands to parent
     // to do illegal connections, we need to check its manifest URL.
     if (aMessage.name !== "child-process-shutdown" &&
+        // TODO: fix bug 988142 to re-enable "InterAppMessagePort:Unregister".
+        aMessage.name !== "InterAppMessagePort:Unregister" &&
         kMessages.indexOf(aMessage.name) != -1) {
       if (!target.assertContainApp(message.manifestURL)) {
         if (DEBUG) {
           debug("Got message from a process carrying illegal manifest URL.");
         }
         return null;
       }
     }