From f96b522ec1bf7fb360e9a11ed434fa0ff61b6025 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 23 Dec 2008 00:16:34 +1100 Subject: [PATCH] Handle the silly exception thrown from options.resetPref. --- common/content/options.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/content/options.js b/common/content/options.js index 9128b492..1e7b215e 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -986,7 +986,14 @@ function Options() //{{{ resetPref: function (name) { - return service["pref"].clearUserPref(name); + try + { + return service["pref"].clearUserPref(name); + } + catch (e) + { + // ignore - thrown if not a user set value + } }, // this works only for booleans