Closed Bug 1689775 Opened 3 years ago Closed 3 years ago

[Tb 86.0b1 regression] "Start the week on" (first day of week) pref is no longer honored at startup in mini-month

Categories

(Calendar :: Calendar Frontend, defect, P1)

Thunderbird 86

Tracking

(thunderbird_esr78 unaffected, thunderbird86 verified)

VERIFIED FIXED
87 Branch
Tracking Status
thunderbird_esr78 --- unaffected
thunderbird86 --- verified

People

(Reporter: ronan.jouchet, Assigned: darktrojan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce

  • In Preferences / Calendar, set Start the week on to Monday
  • Restart Thunderbird
  • Look at the Mini-Month

Expected behavior

Mini-Month first day of the week should be Monday, as requested

Actual behavior

  • Mini-Month first day of the week is Sunday
  • If flipping the pref to anything then back to Monday, then Mini-Month temporarily renders correctly with Monday as first day...
    • ... but then behaves incorrectly again after a restart.

Information

  • 86.0b1-20210128005905
    • Bug is a regression, pref used to be honored in 85.0b3
  • Linux x86_64
  • Available for more debug info, feel free to ask

Confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Priority: -- → P1

Confirming bug remains reproducible in 86.0beta2.

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Regressed by: 1660692

This bug was caused by the observer notification happening before the lazy preference getter's cached value updated.

Instead of having a static lazy preference getter I've decided to have one per instance which does the updating of the instance itself.
The cost is minimal plus I'm removing the cost of the preference service observer.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/31651ff1ee5e
Stop using preferences service observers to update mini-month display. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

Comment on attachment 9201985 [details]
Bug 1689775 - Stop using preferences service observers to update mini-month display. r?mkmelin

[Approval Request Comment]
Regression caused by (bug #): bug 1660692
User impact if declined: today pane calendar starts on the wrong day of the week
Testing completed (on c-c, etc.): landed 2 days ago
Risk to taking this patch (and alternatives if risky): no

Attachment #9201985 - Flags: approval-comm-beta?

Comment on attachment 9201985 [details]
Bug 1689775 - Stop using preferences service observers to update mini-month display. r?mkmelin

[Triage Comment]
Approved for beta

Attachment #9201985 - Flags: approval-comm-beta? → approval-comm-beta+

TB 86.0b3 on Windows 10

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: