Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:184.108.40.206pre) Gecko/20070415 Calendar/0.5pre Steps: * Set a color for a category * Create an event with this category. * Remove the color from the category. Result: * The colored border stays, even if the view is refreshed.
Created attachment 261664 [details] [diff] [review] Fix getPrefSafe I have tracked down the Problem. * getPrefSafe throws NS_ERROR_UNEXPECTED in , the rule is never deleted. * nsIPrefBranch::clearUserPref()  says it will delete the preference if there is no default value, but it doesn't until you restart the application. The preference stays with a null default value, which throws the above NS_ERROR. * The issue is fixed on trunk in bug 193332. This means we need to work around it. * The attached patch should function as a workaround.  http://mxr.mozilla.org/mozilla1.8/source/calendar/base/content/calendar-views.js#316  http://mxr.mozilla.org/mozilla1.8/source/modules/libpref/public/nsIPrefBranch.idl#209
Comment on attachment 261664 [details] [diff] [review] Fix getPrefSafe See also bug 340229.
This bug is rather visible and the patch is quite harmless. Therefore, I'm requesting blocking.
The fix in this patch is the same as in Bug 372626.
This can be checked in, as per the conference call.
Checked in on MOZILLA_1_8_BRANCH and HEAD. -> FIXED
verified on Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:220.127.116.11pre) Gecko/20070426 Calendar/0.5pre
Litmus testcase 2625 created