Bug 786018 - Hook up dom.mozApps.dev_mode pref to the debug.dev-mode setting. [r=vingtetun]
authorFabrice Desré <fabrice@mozilla.com>
Wed, 29 Aug 2012 05:29:15 -0700
changeset 105799 b0a07b59d5d250c507b1c34e7101b6ed65e39f66
parent 105798 dd12dcbb264b3598f1e3673394e054882b08785b
child 105800 2f69a9df19a3bef53d24b54ea9b0ef8b9674b058
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersvingtetun
bugs786018
milestone18.0a1
Bug 786018 - Hook up dom.mozApps.dev_mode pref to the debug.dev-mode setting. [r=vingtetun]
b2g/chrome/content/settings.js
--- a/b2g/chrome/content/settings.js
+++ b/b2g/chrome/content/settings.js
@@ -98,8 +98,11 @@ SettingsListener.observe('devtools.debug
 SettingsListener.observe('devtools.debugger.force-local', true, function(value) {
   Services.prefs.setBoolPref('devtools.debugger.force-local', value);
 });
 
 SettingsListener.observe('debug.log-animations.enabled', false, function(value) {
   Services.prefs.setBoolPref('layers.offmainthreadcomposition.log-animations', value);
 });
 
+SettingsListener.observe('debug.dev-mode', false, function(value) {
+  Services.prefs.setBoolPref('dom.mozApps.dev_mode', value);
+});