Tabs API: port sendMessage() function from Firefox
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(thunderbird_esr78 fixed, thunderbird81 wontfix)
People
(Reporter: tdulcet, Assigned: darktrojan)
Details
(Whiteboard: [TM:78.4.0])
Attachments
(3 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr78+
|
Details | Review |
8.14 KB,
patch
|
darktrojan
:
review+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
There is no currently way to send messages to the compose scripts, for example when the user updates the options, as Thunderbird does not have an equivalent API to Firefox's browser.tabs.sendMessage()
: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/sendMessage.
Assignee | ||
Comment 1•4 years ago
|
||
Hmm, we don't have that function at all. Nor do we have browser.tabs.connect, which is related. I'm not sure if either are feasible.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
We actually had these functions, but they were not listed in the schema. I've updated the implementation to match Firefox's while here.
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D88369
Assignee | ||
Updated•4 years ago
|
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/8fbda33ac0ae
Tabs API: port sendMessage() function from Firefox. r=mkmelin
https://hg.mozilla.org/comm-central/rev/ec6c806b95ca
Test content scripts on different types of tabs. r=mkmelin
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
|
||
Comment on attachment 9172311 [details]
Bug 1641576 - Tabs API: port sendMessage() function from Firefox. r?mkmelin
[Approval Request Comment]
User impact if declined: this is a core function of WX APIs that's been missing
Testing completed (on c-c, etc.): in beta 82
Risk to taking this patch (and alternatives if risky): low, it's just enabling stuff that already exists in firefox
Assignee | ||
Comment 6•4 years ago
|
||
Comment on attachment 9172312 [details]
Bug 1641576 - Test content scripts on different types of tabs. r?mkmelin
[Approval Request Comment]
Just tests for the other patch.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
|
||
ESR version of the first patch.
[Approval Request Comment]
User impact if declined: this is a core function of WX APIs that's been missing
Testing completed (on c-c, etc.): in beta 82
Risk to taking this patch (and alternatives if risky): low, it's just enabling stuff that already exists in Firefox
Assignee | ||
Updated•4 years ago
|
Comment 8•4 years ago
|
||
Comment on attachment 9179822 [details] [diff] [review]
1641576-pt1-esr.diff
[Triage Comment]
Approved for esr78
Comment 9•4 years ago
|
||
Comment on attachment 9172312 [details]
Bug 1641576 - Test content scripts on different types of tabs. r?mkmelin
[Triage Comment]
Approved for esr78
Comment 10•4 years ago
|
||
bugherder uplift |
Description
•