Add accounts.getDefault and accounts.getDefaultIdentity to accounts API
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(thunderbird_esr78 fixed)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | fixed |
People
(Reporter: TbSync, Assigned: TbSync)
References
Details
Attachments
(1 file, 2 obsolete files)
8.51 KB,
patch
|
TbSync
:
review+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
With bug 1681023 the default compose mode of the used/default identity is mostly ignored so that add-on code has a consistent behavior. This bug adds the accounts.getDefault()
and accounts.getDefaultIdentity(accountId)
methods to be able to access the default compose mode of the default identity.
Assignee | ||
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Also made convertMailIdentity return null if no identity given.
Assignee | ||
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Comment on attachment 9191843 [details] [diff] [review]
bug1681141_add_getDefault_and_getDefaultIdentity_v2.patch
I think convertMailIdentity should return null if account is null too, on the off-chance we give it an identity but not an account.
Assignee | ||
Comment 5•5 years ago
|
||
Also check for !account in convertMailIdentity().
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/6e53e1c7831a
Add accounts.getDefault and accounts.getDefaultIdentity to accounts API. r=darktrojan
Assignee | ||
Comment 7•5 years ago
|
||
Comment on attachment 9192132 [details] [diff] [review]
bug1681141_add_getDefault_and_getDefaultIdentity_v3.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 10th one.
Comment 8•5 years ago
|
||
Comment on attachment 9192132 [details] [diff] [review]
bug1681141_add_getDefault_and_getDefaultIdentity_v3.patch
[Triage Comment]
Approved for esr78
Comment 10•5 years ago
|
||
bugherder uplift |
Thunderbird 78.7.0:
https://hg.mozilla.org/releases/comm-esr78/rev/d6f7627e8ca9
Description
•