Event display that remains blocked (calendar hidden but events still there)
Categories
(Calendar :: Calendar Frontend, defect)
Tracking
(Not tracked)
People
(Reporter: adrien.rybarczyk, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Steps to reproduce:
- Create around twenty all day events
- Quickly click several times on the show/hide calendar button
Actual results:
This problem also exists in 102
Events can remain displayed even if the calendar is hidden.
There are console errors:
Uncaught TypeError: current.parentNode is null
deleteEvent chrome://calendar/content/calendar-multiday-view.js:1526
NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "current.parentNode is null" {file: "chrome://calendar/content/calendar-multiday-view.js" line: 1526}]'[JavaScript Error: "current.parentNode is null" {file: "chrome://calendar/content/calendar-multiday-view.js" line: 1526}]' when calling method: [calIObserver::onPropertyChanged]
Expected results:
The only way to correct the display is to restart Thunderbird.
| Reporter | ||
Comment 1•2 years ago
|
||
The same thing can happen when the calendar is displayed.
With an error that causes the event never to be displayed:
Uncaught (in promise) TypeError: wrapper.firstChild is null
addEvent chrome://calendar/content/calendar-multiday-view.js:1497
| Reporter | ||
Comment 2•2 years ago
|
||
For deleteEvent:
simply add null check for current.parentNode
if(current.parentNode) {
current.parentNode.remove();
}
For addEvent:
simply add null check for wrapper.firstChild
wrapper => wrapper.firstChild && wrapper.firstChild.occurrence
Comment 3•2 years ago
|
||
Right, this is bug 1827100
Description
•