Closed
Bug 329571
Opened 19 years ago
Closed 19 years ago
Error when setting composite calendar's default calendar with usePref==true
Categories
(Calendar :: Internal Components, defect)
Calendar
Internal Components
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jminta, Assigned: jminta)
Details
Attachments
(1 file)
1.35 KB,
patch
|
dmosedale
:
first-review+
|
Details | Diff | Splinter Review |
When setting the composite calendar's default calendar, it does not check first to ensure that mDefaultCalendar is non-null. This eventually throws an error in findCalendarID in calCalendarManager.js of "calendar has no properties".
It's difficult to reproduce this error in Thunderbird. I suspect it would only happen if someone used some trickery to get Lightning to open in 2 separate windows. Therefore, I'm not recommending this fix for 0.1.
Relevant line:
http://lxr.mozilla.org/mozilla/source/calendar/providers/composite/calCompositeCalendar.js#239
Assignee | ||
Comment 1•19 years ago
|
||
Patch moves the deletePref call into an if block, so it will only be called if the calendar exists.
Comment 2•19 years ago
|
||
(In reply to comment #0)
> It's difficult to reproduce this error in Thunderbird.
The exception in findCalendarID happens in Thunderbird 1.5 too. Just right click any mail folder and select 'open in new window'. Then switch to calendar view in both windows and start playing around.
Comment 3•19 years ago
|
||
Comment on attachment 214260 [details] [diff] [review]
check for null first
r=dmose. One thing that's not clear to me, though, is what the "default calendar" semantics of having two windows open is. My suspicion is that changing the default calendar in one window will forcibly change the default calendar in the other (as a side being effect of the same pref watched by both windows changing). This doesn't strike me as particularly intuitive behavior. Can you test this and see what the semantics are here, and file another bug to deal with clarifying them?
Attachment #214260 -
Flags: first-review?(dmose) → first-review+
Assignee | ||
Comment 4•19 years ago
|
||
Patch checked in and bug 332401 filed.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•