Bug 758696 - Add a dialog to the debugger to deny or allow incoming server connections (Part 4: Marionette); r=jgriffin
authorPanos Astithas <past@mozilla.com>
Fri, 01 Jun 2012 18:28:31 +0300
changeset 97741 3f0594ee130da2a94ea9a6674d8f777bc109b61d
parent 97740 3cbd3908f497c7942534b1cebe286ac07d35e2a3
child 97742 1bc2c4e1493b3db5f2e260d01acfc64f0ee90d8a
push id1439
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 20:19:22 +0000
treeherdermozilla-aurora@ea74834dccd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgriffin
bugs758696
milestone15.0a1
Bug 758696 - Add a dialog to the debugger to deny or allow incoming server connections (Part 4: Marionette); r=jgriffin
testing/marionette/components/marionettecomponent.js
--- a/testing/marionette/components/marionettecomponent.js
+++ b/testing/marionette/components/marionettecomponent.js
@@ -65,17 +65,18 @@ MarionetteComponent.prototype = {
         port = Services.prefs.getIntPref('marionette.defaultPrefs.port');
       }
       catch(e) {
         port = 2828;
       }
       try {
         Cu.import('resource:///modules/devtools/dbg-server.jsm');
         DebuggerServer.addActors('chrome://marionette/content/marionette-actors.js');
-        DebuggerServer.initTransport();
+        // Always allow remote connections.
+        DebuggerServer.initTransport(function () { return true; });
         DebuggerServer.openListener(port, true);
       }
       catch(e) {
         this.logger.error('exception: ' + e.name + ', ' + e.message);
       }
     }
   },