From 568e333f09f6d6e733599336394d5b3beadc8bb5 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Tue, 7 Jun 2005 16:22:08 +0000 Subject: [PATCH] fix 295743, add clearPref to mcd, r/sr=mscott, a=chofmann --- extensions/pref/autoconfig/src/prefcalls.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/extensions/pref/autoconfig/src/prefcalls.js b/extensions/pref/autoconfig/src/prefcalls.js index 8a3859d48c2..86a5db8a681 100644 --- a/extensions/pref/autoconfig/src/prefcalls.js +++ b/extensions/pref/autoconfig/src/prefcalls.js @@ -150,6 +150,16 @@ function getPref(prefName) { } } +function clearPref(prefName) { + + try { + var prefBranch = getPrefBranch(); + prefBranch.clearUserPref(prefName); + } + catch(e) { + } + +} function setLDAPVersion(version) { gVersion = version;