Bug 758696 - Add a dialog to the debugger to deny or allow incoming server connections (Part 4: Marionette); r=jgriffin
--- 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);
}
}
},