Closed Bug 1901930 Opened 1 year ago Closed 1 year ago

Fix inconsistency regarding messageDisplay.getDisplayedMessages() and mailTabs.getSelectedMessages()

Categories

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

task

Tracking

(thunderbird128 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
thunderbird128 --- fixed

People

(Reporter: john, Assigned: john)

Details

Attachments

(1 file)

We introduced message lists in order to cope with large amount of returned messages. We should be consistent in its usage. The number of displayed messages can be as large as the number of selected messages, so both functions should behave the same.

We introduced message lists in order to cope with large amount of
returned messages. We should be consistent in its usage. The number of
displayed messages can be as large as the number of selected messages,
so both functions should behave the same.

The only other place where we still return messages as plain arrays is
in the compose API, when returning the saved/send messages, which is
limited to only a few messages. It is acceptable to keep returning these
in an array.

This change is only affecting Manifest V3.

Assignee: nobody → john
Status: NEW → ASSIGNED
Target Milestone: --- → 129 Branch

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/6928290ca41a
Fix inconsistency regarding messageDisplay.getDisplayedMessages() and mailTabs.getSelectedMessages() in Manifest V3. r=mkmelin

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

Comment on attachment 9406904 [details]
Bug 1901930 - Fix inconsistency regarding messageDisplay.getDisplayedMessages() and mailTabs.getSelectedMessages() in Manifest V3. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): -
User impact if declined: Inconsistent API behavior. ESR 128 is our launch for official Manifest V3 support and we worked hard to get it ready. This was not ready in time by a few days.
Testing completed (on c-c, etc.): none (besides automated tests)
Risk to taking this patch (and alternatives if risky): Low

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

Comment on attachment 9406904 [details]
Bug 1901930 - Fix inconsistency regarding messageDisplay.getDisplayedMessages() and mailTabs.getSelectedMessages() in Manifest V3. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

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

Attachment

General

Creator:
Created:
Updated:
Size: