Closed
Bug 507170
Opened 16 years ago
Closed 16 years ago
Removing calendar breaks unifinder [Error: "filter is not defined" in calendar-unifinder.js]
Categories
(Calendar :: General, defect)
Calendar
General
Tracking
(Not tracked)
VERIFIED
FIXED
1.0b1
People
(Reporter: ssitter, Assigned: Fallen)
References
Details
(Keywords: regression)
Attachments
(1 file)
|
775 bytes,
patch
|
ssitter
:
review+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2pre) Gecko/20090729 Calendar/1.0pre (BuildID: 20090729050908)
Steps to Reproduce:
===================
1. Start with new profile
2. Create a second calendar
3. Create events in both calendars and check their display in the unifinder
4. Delete one of the calendars
Actual Results:
===============
Unifinder still shows the events from both calendars.
Expected Results:
=================
Unifinder shows only the events from the remaining calendar.
Additional Information:
=======================
Another regression from Bug 500718. Error Console shows:
Error: [Exception... "'[JavaScript Error: "filter is not defined" {file: "chrome://calendar/content/calendar-unifinder.js" line: 955}]' when calling method: [calICompositeObserver::onCalendarRemoved]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: file:///E:/sunbird/calendar-js/calUtils.js :: notifyFunc :: line 1221" data: yes]
STACK:
1: [file:///E:/sunbird/calendar-js/calUtils.js:1224] notifyFunc
2: [file:///E:/sunbird/calendar-js/calUtils.js:1227] calListenerBag_notify
3: [file:///E:/sunbird/components/calCompositeCalendar.js:227] cCC_removeCalendar
4: [null:0] null
5: [chrome://calendar/content/widgets/calendar-list-tree.xml:538] removeCalendar
6: [chrome://calendar/content/widgets/calendar-list-tree.xml:114] cMO_onCalendarUnregistering
7: [null:0] null
8: [file:///E:/sunbird/calendar-js/calUtils.js:1221] notifyFunc
9: [file:///E:/sunbird/calendar-js/calUtils.js:1227] calListenerBag_notify
10: [file:///E:/sunbird/calendar-js/calCalendarManager.js:598] anonymous
Source File: file:///E:/sunbird/calendar-js/calUtils.js Line: 1224
Updated•16 years ago
|
Flags: blocking-calendar1.0+
| Assignee | ||
Comment 1•16 years ago
|
||
Taking, I have a patch for this i will upload later on.
Assignee: nobody → philipp
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•16 years ago
|
||
Attachment #391836 -
Flags: review?(ssitter)
| Reporter | ||
Updated•16 years ago
|
Attachment #391836 -
Flags: review?(ssitter) → review+
| Reporter | ||
Comment 3•16 years ago
|
||
Comment on attachment 391836 [details] [diff] [review]
Fix - v1
r=ssitter
Note: during testing I sometimes noticed the following in console when removing the calendar:
###!!! ASSERTION: row count did not change by the amount suggested, check caller: 'rowCount == mRowCount', file e:/dev/comm-central/src/mozilla/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp, line 1917
WARNING: row count changed unexpectedly: 'mRowCount == rowCount', file e:/dev/comm-central/src/mozilla/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp, line 2871
Maybe someone knows what to do with this ...
| Assignee | ||
Comment 4•16 years ago
|
||
Sounds to me like we are passing the wrong numbers when calling the onRowCountChanged() function in the calendar tree. I've filed bug 508041 to investigate.
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/34c24722b6d1>
-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
OS: Windows XP → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → 1.0
Comment 5•15 years ago
|
||
verified with
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9pre) Gecko/20100313 Calendar/1.0b2pre
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 6•14 years ago
|
||
These bugs are likely targeted at Lightning 1.0b1, not Lightning 1.0. If this change was done in error, please adjust the target milestone to its correct value. To filter on this bugspam, you can use "lightning-10-target-move".
Target Milestone: 1.0 → 1.0b1
You need to log in
before you can comment on or make changes to this bug.
Description
•