Bug 761252 - Set devtools.debugger.remote-enabled from Marionette, a=test-only, DONTBUILD because NPOTB

This commit is contained in:
Jonathan Griffin 2012-06-04 11:45:33 -07:00
parent 64609e2437
commit adf8c51c90

View File

@ -70,6 +70,9 @@ MarionetteComponent.prototype = {
try {
Cu.import('resource:///modules/devtools/dbg-server.jsm');
DebuggerServer.addActors('chrome://marionette/content/marionette-actors.js');
// This pref is required for the remote debugger to open a socket,
// so force it to true. See bug 761252.
Services.prefs.setBoolPref('devtools.debugger.remote-enabled', true);
// Always allow remote connections.
DebuggerServer.initTransport(function () { return true; });
DebuggerServer.openListener(port, true);