Closed Bug 1681023 Opened 5 years ago Closed 5 years ago

setComposeDetails and begin* functions of compose API should use body and plainTextBody as compose mode selectors

Categories

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

defect

Tracking

(thunderbird_esr78 fixed)

RESOLVED FIXED
85 Branch
Tracking Status
thunderbird_esr78 --- fixed

People

(Reporter: TbSync, Assigned: TbSync)

Details

Attachments

(1 file, 2 obsolete files)

The default compose mode should not have an effect on the compose type of the begin* functions of the compose API. The outcome of

beginNew(
  messagId,
  {
   body:"Something"
  }
);

should always create an HTML email.

Summary: compose API begin* functions should use body/plainTextBody as compose mode selector → setComposeDetails and begin* functions of compose API should use body and plainTextBody as compose mode selectors

Fixed spelling error in error msg.

Attachment #9191630 - Attachment is obsolete: true
Attachment #9191630 - Flags: review?(geoff)
Attachment #9191633 - Flags: review?(geoff)
Comment on attachment 9191633 [details] [diff] [review] bug1681023_use_body_and_plainTextBody_as_compose_mode_selectors.patch Review of attachment 9191633 [details] [diff] [review]: ----------------------------------------------------------------- We should document that overriding the user's format preferences is a really good way to annoy users.
Attachment #9191633 - Flags: review?(geoff) → review+

Added description to schema to document behavior.

Attachment #9191633 - Attachment is obsolete: true
Attachment #9191848 - Flags: review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/a1ba1e7f0485
use body and plainTextBody in setComposeDetails and begin* functions of compose API as compose mode selectors. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch

Comment on attachment 9191848 [details] [diff] [review]
bug1681023_use_body_and_plainTextBody_as_compose_mode_selectors_v2.patch

[Approval Request Comment]
User impact if declined:
Add-on developers can not use the latest fixes and improvements of our WebExtension API.

Testing completed (on c-c, etc.):
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=3cdff293d5d1bd77777f5da371caaa02c4b05de3

Risk to taking this patch (and alternatives if risky):
I hope none

Remark:
The provided try run includes all bugs I want to uplift for TB 78.7 and shows a working patch order.
The first one, which does not have a bug number in the commit messages is Bug 1680653.
This bug is the 8th one.

Attachment #9191848 - Flags: approval-comm-esr78?

Comment on attachment 9191848 [details] [diff] [review]
bug1681023_use_body_and_plainTextBody_as_compose_mode_selectors_v2.patch

[Triage Comment]
Approved for esr78

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

Attachment

General

Created:
Updated:
Size: