Bug 900595 - Once always send a report has been selected, selecting any other option is ignored with system crashes r=fabrice
authorsupadennis.lee <supadennis.lee@gmail.com>
Thu, 05 Sep 2013 18:41:31 -0700
changeset 158760 33d7577f289deb87a923cdddcd4e81b1d3bb5ee5
parent 158759 5190ed318e71f088593c6e6b6ab5c8a2c26f01a0
child 158761 63c37b807f21ed76f9302fb76e3ac7e02fc977c3
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs900595
milestone26.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 900595 - Once always send a report has been selected, selecting any other option is ignored with system crashes r=fabrice
b2g/chrome/content/settings.js
--- a/b2g/chrome/content/settings.js
+++ b/b2g/chrome/content/settings.js
@@ -423,16 +423,18 @@ SettingsListener.observe('privacy.donott
 SettingsListener.observe('app.reportCrashes', 'ask', function(value) {
   if (value == 'always') {
     Services.prefs.setBoolPref('app.reportCrashes', true);
   } else if (value == 'never') {
     Services.prefs.setBoolPref('app.reportCrashes', false);
   } else {
     Services.prefs.clearUserPref('app.reportCrashes');
   }
+  // This preference is consulted during startup.
+  Services.prefs.savePrefFile(null);
 });
 
 // ================ Updates ================
 SettingsListener.observe('app.update.interval', 86400, function(value) {
   Services.prefs.setIntPref('app.update.interval', value);
 });
 
 // ================ Debug ================