Bug 1589023 - Backport bug 1610832 to ESR to prevent failing midnight UI updates. r+a=pmorris
authorGeoff Lankow <geoff@darktrojan.net>
Fri, 26 Jun 2020 20:42:50 +1200
changeset 36199 b9ce60200cb6805b35d74d4c1878a9c69235d95a
parent 36198 30fb7f8ebf429d63de451d8131bd18972e083a8c
child 36200 d3b622342af68ebe1c390f67e1a369bd19a33a3f
push id112
push userthunderbird@calypsoblue.org
push dateMon, 29 Jun 2020 23:55:13 +0000
treeherdercomm-esr68@6a7c26eb22bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1589023, 1610832
Bug 1589023 - Backport bug 1610832 to ESR to prevent failing midnight UI updates. r+a=pmorris
calendar/base/content/calendar-month-base-view.js
--- a/calendar/base/content/calendar-month-base-view.js
+++ b/calendar/base/content/calendar-month-base-view.js
@@ -248,19 +248,18 @@ var { cal } = ChromeUtils.import("resour
 
     centerSelectedItems() {}
 
     showDate(date) {
       if (date) {
         this.setDateRange(date.startOfMonth, date.endOfMonth);
         this.selectedDay = date;
       } else {
+        // Refresh the selected day if it doesn't appear in the view.
         this.refresh();
-        // Refresh the selected day if it doesn't appear in the view.
-        this.selectedDay = this.selectedDay;
       }
     }
 
     setDateRange(startDate, endDate) {
       this.rangeStartDate = startDate;
       this.rangeEndDate = endDate;
 
       const viewStart = cal