Bug 1375280 - Force remote debugging prefs off if jsdebugger isn't requested for marionette-test;r=chmanchester
Since the remote debugging pref defaults will be set to true in local builds,
force them off for tests unless --jsdebugger is passed, to limit differences
locally and in automation.
MozReview-Commit-ID: 3isiIAvAGfk
--- a/testing/marionette/client/marionette_driver/geckoinstance.py
+++ b/testing/marionette/client/marionette_driver/geckoinstance.py
@@ -173,16 +173,22 @@ class GeckoInstance(object):
if "-jsdebugger" in self.app_args:
profile_args["preferences"].update({
"devtools.browsertoolbox.panel": "jsdebugger",
"devtools.debugger.remote-enabled": True,
"devtools.chrome.enabled": True,
"devtools.debugger.prompt-connection": False,
"marionette.debugging.clicktostart": True,
})
+ else:
+ profile_args["preferences"].update({
+ "devtools.debugger.remote-enabled": False,
+ "devtools.chrome.enabled": False,
+ "devtools.debugger.prompt-connection": True,
+ })
if self.addons:
profile_args["addons"] = self.addons
if hasattr(self, "profile_path") and self.profile is None:
if not self.profile_path:
if self.workspace:
profile_args["profile"] = tempfile.mkdtemp(
suffix=".mozrunner-{:.0f}".format(time.time()),