Closed Bug 1641576 Opened 4 years ago Closed 4 years ago

Tabs API: port sendMessage() function from Firefox

Categories

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

enhancement

Tracking

(thunderbird_esr78 fixed, thunderbird81 wontfix)

RESOLVED FIXED
82 Branch
Tracking Status
thunderbird_esr78 --- fixed
thunderbird81 --- wontfix

People

(Reporter: tdulcet, Assigned: darktrojan)

Details

(Whiteboard: [TM:78.4.0])

Attachments

(3 files)

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.

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.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → geoff
Status: NEW → ASSIGNED

We actually had these functions, but they were not listed in the schema. I've updated the implementation to match Firefox's while here.

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

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

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

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

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.

Attachment #9172312 - Flags: approval-comm-esr78?
Whiteboard: [TM:78.4.0]

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

Attachment #9179822 - Flags: review+
Attachment #9179822 - Flags: approval-comm-esr78?
Attachment #9172311 - Flags: approval-comm-esr78?

Comment on attachment 9179822 [details] [diff] [review]
1641576-pt1-esr.diff

[Triage Comment]
Approved for esr78

Attachment #9179822 - Flags: approval-comm-esr78? → approval-comm-esr78+

Comment on attachment 9172312 [details]
Bug 1641576 - Test content scripts on different types of tabs. r?mkmelin

[Triage Comment]
Approved for esr78

Attachment #9172312 - 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: