Bug 1383935 - Use sticky_prefs for remote debugging;r=Gijs draft
authorBrian Grinstead <bgrinstead@mozilla.com>
Mon, 24 Jul 2017 16:13:22 -0700
changeset 614772 221a045f752cbc7df47037c4d74bd5d8dc60e65b
parent 614544 462d7561089c98e33382384896434861ad7bc491
child 638954 53536a101640e1f338af0993a16ef311b5a35c01
push id70112
push userbgrinstead@mozilla.com
push dateMon, 24 Jul 2017 23:13:36 +0000
reviewersGijs
bugs1383935
milestone56.0a1
Bug 1383935 - Use sticky_prefs for remote debugging;r=Gijs This prevents accidental resetting when opening the same profile in Nightly and local builds MozReview-Commit-ID: L6oPfsDlUmf
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -1022,30 +1022,30 @@ pref("toolkit.asyncshutdown.crash_timeou
 // Extra logging for AsyncShutdown barriers and phases
 pref("toolkit.asyncshutdown.log", false);
 
 // Enable deprecation warnings.
 pref("devtools.errorconsole.deprecation_warnings", true);
 
 #ifdef NIGHTLY_BUILD
 // Don't show the Browser Toolbox prompt on local builds / nightly
-pref("devtools.debugger.prompt-connection", false);
+sticky_pref("devtools.debugger.prompt-connection", false);
 #else
-pref("devtools.debugger.prompt-connection", true);
+sticky_pref("devtools.debugger.prompt-connection", true);
 #endif
 
 #ifdef MOZILLA_OFFICIAL
 // Disable debugging chrome
-pref("devtools.chrome.enabled", false);
+sticky_pref("devtools.chrome.enabled", false);
 // Disable remote debugging connections
-pref("devtools.debugger.remote-enabled", false);
+sticky_pref("devtools.debugger.remote-enabled", false);
 #else
 // In local builds, enable the browser toolbox by default
-pref("devtools.chrome.enabled", true);
-pref("devtools.debugger.remote-enabled", true);
+sticky_pref("devtools.chrome.enabled", true);
+sticky_pref("devtools.debugger.remote-enabled", true);
 #endif
 
 
 // Disable remote debugging protocol logging
 pref("devtools.debugger.log", false);
 pref("devtools.debugger.log.verbose", false);
 
 pref("devtools.debugger.remote-port", 6000);