Closed Bug 1843704 Opened 1 year ago Closed 1 year ago

Sessions should remain when Add-on is updated / reinstalled

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

Thunderbird 115
x86_64
Windows 10
defect

Tracking

(thunderbird_esr115 fixed, thunderbird116 affected)

RESOLVED FIXED
117 Branch
Tracking Status
thunderbird_esr115 --- fixed
thunderbird116 --- affected

People

(Reporter: axel.grude, Assigned: TbSync)

Details

Attachments

(1 file)

I am using sessions.setTabValue to store the currently selected Categories for my Add-on QuickFolders. This works well for a restart of THunderbird, so that I can restore this tab specific data.

However: I install a newer version (or the Add-on is updated or temporarily disabled during the session) - this data is purged and my Add-on cannot recover. THis is not useful and unexpected. Instead Thunderbird should tidy up this data when it shuts down:

  • if the Add-on is uninstalled or disabled, Thunderbird can delete the data on shutdown. It should however be persistent during the session so that the Add-on can restart / updated / be disabled / enabled without any missing persisted data. Otherwise the Add-on is forced to implement it's own Tab Monitor / Model to store this elsewhere - which defeats the purpose of a "Sessions" API.
Assignee: nobody → john
Status: NEW → ASSIGNED

Pushed by micah@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/45727bef2adf
Clear session data only on uninstall. r=elizabeth

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

Comment on attachment 9344643 [details]
Bug 1843704 - Clear session data only on uninstall. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
The Session API will not retain data on disable/enable or updates

Testing completed (on c-c, etc.): A few days on daily
Risk to taking this patch (and alternatives if risky):
Low. We moved the cleanup from shutdown to uninstall.

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

Comment on attachment 9344643 [details]
Bug 1843704 - Clear session data only on uninstall. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

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

Comment on attachment 9344643 [details]
Bug 1843704 - Clear session data only on uninstall. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
The Session API will not retain data on disable/enable or updates

Testing completed (on c-c, etc.): A few days on beta
Risk to taking this patch (and alternatives if risky):
Low. We moved the cleanup from shutdown to uninstall.

Attachment #9344643 - Flags: approval-comm-esr115?

Comment on attachment 9344643 [details]
Bug 1843704 - Clear session data only on uninstall. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr115

This didn't make the beta, so it will appear in 117 beta. It's only narrowing the scope, so approving for 115.

Attachment #9344643 - Flags: approval-comm-esr115?
Attachment #9344643 - Flags: approval-comm-esr115+
Attachment #9344643 - Flags: approval-comm-beta+
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: