Bug 832104 - Don't report CSS errors in production builds r=cjones
authorFabrice Desré <fabrice@mozilla.com>
Thu, 17 Jan 2013 18:08:26 -0800
changeset 119225 6c9d47ecf49c21815748d636b804d9bdbc7e9ddf
parent 119224 4e7658d7727cd57f6cce532d420d2cdb4a92d14d
child 119226 75d9c44ed26750c62aec5d68656077458d60bac1
push id24195
push userMs2ger@gmail.com
push dateSat, 19 Jan 2013 16:10:11 +0000
treeherdermozilla-central@02e12a80aef9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones
bugs832104
milestone21.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 832104 - Don't report CSS errors in production builds r=cjones
b2g/chrome/content/settings.js
--- a/b2g/chrome/content/settings.js
+++ b/b2g/chrome/content/settings.js
@@ -91,16 +91,17 @@ for each (let [setting, maxValue, stream
     });
   })(setting, maxValue, streamTypes);
 }
 
 // =================== Console ======================
 
 SettingsListener.observe('debug.console.enabled', true, function(value) {
   Services.prefs.setBoolPref('consoleservice.enabled', value);
+  Services.prefs.setBoolPref('layout.css.report_errors', value);
 });
 
 // =================== Languages ====================
 SettingsListener.observe('language.current', 'en-US', function(value) {
   Services.prefs.setCharPref('general.useragent.locale', value);
 
   let prefName = 'intl.accept_languages';
   if (Services.prefs.prefHasUserValue(prefName)) {