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 197481 39b6e5552082e6d9727c38fc77ef5ce6b5c915f0
parent 197480 50c42773c9231c16faa8645e539be9f4fa56c035
child 197482 7d8daeaabdb8a8ce38ecc2f757752d6f8da728b9
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgene, v1
bugs996912
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;
       }
     }