Bug 1383935 - Use sticky_prefs for remote debugging;r=Gijs
authorBrian Grinstead <bgrinstead@mozilla.com>
Mon, 24 Jul 2017 16:13:22 -0700
changeset 422072 ffda123f367942f0e15a4ebe1728bcccb57539e1
parent 422071 0f58f3281582763f475cb45fb5d3604debdf5731
child 422073 296d24a175b6abfd094e1ebfb1e6b2033908c3fa
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1383935
milestone56.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 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
@@ -1026,30 +1026,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);