[Pkg-mozext-commits] [perspectives-extension] 10/44: Pers_pref - Add error checking for security level

David Prévot taffit at moszumanska.debian.org
Sun Jun 26 04:59:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository perspectives-extension.

commit 9bf69005da1ab67df9ddd3941036ed9f3b54370e
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Sun Jun 5 21:40:21 2016 -0700

    Pers_pref - Add error checking for security level
---
 plugin/chrome/content/preferences_dialog.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/plugin/chrome/content/preferences_dialog.js b/plugin/chrome/content/preferences_dialog.js
index d747549..a10b1c6 100644
--- a/plugin/chrome/content/preferences_dialog.js
+++ b/plugin/chrome/content/preferences_dialog.js
@@ -53,6 +53,12 @@ var Pers_pref = {
 		case -1:
 			Pers_pref.disable_quorum_text(false);
 			break;
+		default:
+			// user may have manually set this preference;
+			// get it back into a good state
+			this.root_prefs.setIntPref("extensions.perspectives.security_settings", 1);
+			Pers_pref.menuset(75, 0);
+			break;
 		}
 
 	},

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git



More information about the Pkg-mozext-commits mailing list