Bug 761252 - Set devtools.debugger.remote-enabled from Marionette, a=test-only, DONTBUILD because NPOTB FIREFOX_AURORA_15_BASE
authorJonathan Griffin <jgriffin@mozilla.com>
Mon, 04 Jun 2012 11:45:33 -0700
changeset 95760 26dcd1b1a20893ad99341c61c6b1239ff1523858
parent 95759 c8550894c4999f5936a2490f2a22cccc11c110ae
child 95761 946579ceaeb856b87f31c80013822724c1f5e907
push id22845
push userjgriffin@mozilla.com
push dateMon, 04 Jun 2012 18:45:54 +0000
treeherdermozilla-central@26dcd1b1a208 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only, DONTBUILD
bugs761252
milestone15.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 761252 - Set devtools.debugger.remote-enabled from Marionette, a=test-only, DONTBUILD because NPOTB
testing/marionette/components/marionettecomponent.js
--- a/testing/marionette/components/marionettecomponent.js
+++ b/testing/marionette/components/marionettecomponent.js
@@ -65,16 +65,19 @@ 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');
+        // 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);
       }
       catch(e) {
         this.logger.error('exception: ' + e.name + ', ' + e.message);
       }
     }