Merge pull request #3939 from Snuffleupagus/followup-3850

Fix error in 'PdfStreamConverter.js' that prevents the user from setting a boolean preference to false
This commit is contained in:
Brendan Dahl 2013-11-18 16:53:27 -08:00
commit 48e0deab7b

View File

@ -452,7 +452,7 @@ ChromeActions.prototype = {
defaultValue = DEFAULT_PREFERENCES[key];
prefName = (PREF_PREFIX + '.' + key);
if (!prefValue || prefValue === defaultValue) {
if (prefValue === undefined || prefValue === defaultValue) {
Services.prefs.clearUserPref(prefName);
} else {
prefType = typeof prefValue;