Closed Bug 1616142 Opened 4 months ago Closed 3 months ago

browser.compose.begin* functions should wait for the compose window to exist before returning

Categories

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

enhancement
Not set
normal

Tracking

(thunderbird74 fixed)

RESOLVED FIXED
Thunderbird 75.0
Tracking Status
thunderbird74 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

Attachments

(1 file)

It'd be useful, especially for tests, if we knew that a compose window existed before doing the next thing. Currently we just call OpenComposeWindow/OpenComposeWindowWithParams and return immediately. We should wait.

Attachment #9127196 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9127196 [details] [diff] [review]
1616142-compose-window-wait-1.diff

Review of attachment 9127196 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM! r=mkmelin
Attachment #9127196 - Flags: review?(mkmelin+mozilla) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/f7de7594255d
Wait for compose window to open before returning from compose API functions. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 75.0
You need to log in before you can comment on or make changes to this bug.