browser.compose.beginNew/Reply/Forward should return a handle/tabID for getComposeDetails
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(Not tracked)
People
(Reporter: buecher, Assigned: darktrojan)
Details
Attachments
(1 file)
|
4.72 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; rv:74.0) Gecko/20100101 Firefox/74.0
Steps to reproduce:
Especialy for a reply/Forward, I might want to change the content of the composeWindow after await beginReply.
We have the getComposeDetails/setComposeDetails, but they need a tabId which we don't know.
Maybe return a handle/tabId from the begin.. functions?
For attempts of several, also using the listener on browser.windows.onCreated, see https://thunderbird.topicbox.com/groups/addons/T70a8762a710b9b43/compose-api
workaround from topicbox:
if (window.type == "messageCompose") {
browser.tabs.query({windowId:window.id})
.then (details => {
console.log(details);
browser.compose.getComposeDetails(details[0].id)
.then(tabdetails => {
console.log(tabdetails);
});
});
}
probably works only if there is only 1 compose window open
| Assignee | ||
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Resetting severity to default of --.
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/756d8f7c9119
Return a tab object from compose.begin* functions. r=mkmelin
| Assignee | ||
Updated•6 years ago
|
Description
•