Closed Bug 1845724 Opened 2 years ago Closed 2 years ago

Event display that remains blocked (calendar hidden but events still there)

Categories

(Calendar :: Calendar Frontend, defect)

Thunderbird 115
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1827100

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:

  1. Create around twenty all day events
  2. 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.

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

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

Right, this is bug 1827100

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1827100
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.