Closed Bug 1907440 Opened 2 months ago Closed 2 months ago

Fix regression in compose API: Do not report fcc folder instead of throwing, if accountsRead permission is missing

Categories

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

defect

Tracking

(thunderbird_esr128 fixed, thunderbird129 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
thunderbird_esr128 --- fixed
thunderbird129 --- fixed

People

(Reporter: TbSync, Assigned: TbSync)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.
Blocks: tb128found

The folderManager property does not exist in the extension object,
unless the accountsRead permission is granted. We therefore need to
check the permission before using it. This was forgotten in two places
of the Compose API.

Assignee: nobody → john
Status: NEW → ASSIGNED

John Bieling, I'm following up your add-on comment pointing to this bug report. I don't understand what I would have to do. Could you please create a pull request to https://github.com/JohannesBuchner/thunderbird-ai-grammar-mailextension/ ?

Target Milestone: --- → 130 Branch

(In reply to Johannes Buchner from comment #2)

John Bieling, I'm following up your add-on comment pointing to this bug report. I don't understand what I would have to do. Could you please create a pull request to https://github.com/JohannesBuchner/thunderbird-ai-grammar-mailextension/ ?

Hi Johannes,

this bug prevents your add-on from functioning in Thunderbird 128.

The manifest.json file of your add-on has "strict_max_version": "115.*", which means you manually limited your add-on from being used in Thunderbird 128, so you do not have to do anything at the moment. But at some point you want to release your add-on for Thunderbird 128 of course. You have two options:

  1. Wait till this bug is fixed and the patch has made it into Thunderbird 128 (I will report that here)
  2. Add the "accountsRead" permission to your manifest and release an updated version now already. Once the bug is fixed, you can remove the permission again.

I filed a PR with the required changes for option #2.

Please note, that you are also affected by Bug 1906833 :-(
(To work around this bug, users have to add the encryption button back to the compose window.)

Pushed by daniel@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/93d332433a20
Fix regression in compose API: Do not report fcc folders instead of throwing, if accountsRead permission is missing. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED

Comment on attachment 9412360 [details]
Bug 1907440 - Fix regression in compose API: Do not report fcc folders instead of throwing, if accountsRead permission is missing. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): 1732669
User impact if declined: A standard API call causes the compose window to freeze
Testing completed (on c-c, etc.): one day, no negative impacts
Risk to taking this patch (and alternatives if risky): Low

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

Comment on attachment 9412360 [details]
Bug 1907440 - Fix regression in compose API: Do not report fcc folders instead of throwing, if accountsRead permission is missing. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): 1732669
User impact if declined: A standard API call causes the compose window to freeze
Testing completed (on c-c, etc.): one day, no negative impacts
Risk to taking this patch (and alternatives if risky): Low

Attachment #9412360 - Flags: approval-comm-release?

Comment on attachment 9412360 [details]
Bug 1907440 - Fix regression in compose API: Do not report fcc folders instead of throwing, if accountsRead permission is missing. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): 1732669
User impact if declined: A standard API call causes the compose window to freeze
Testing completed (on c-c, etc.): one day, no negative impacts
Risk to taking this patch (and alternatives if risky): Low

Attachment #9412360 - Flags: approval-comm-esr128?

Comment on attachment 9412360 [details]
Bug 1907440 - Fix regression in compose API: Do not report fcc folders instead of throwing, if accountsRead permission is missing. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta
Approved for esr128
APproved for release

Attachment #9412360 - Flags: approval-comm-release?
Attachment #9412360 - Flags: approval-comm-release+
Attachment #9412360 - Flags: approval-comm-esr128?
Attachment #9412360 - Flags: approval-comm-esr128+
Attachment #9412360 - Flags: approval-comm-beta?
Attachment #9412360 - Flags: approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: