Closed Bug 1617514 Opened 4 years ago Closed 4 years ago

Action events should give whole tab objects, not just tab IDs

Categories

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

defect
Not set
normal

Tracking

(thunderbird74 fixed)

RESOLVED FIXED
Thunderbird 75.0
Tracking Status
thunderbird74 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1615934 +++

Ugh, I've done this all wrong. :-(

According to MDN, the WebExtensions browserCompose onclicked event has always had a tab object argument and recently gained an OnClickData argument. Ours has neither.

Worse, our very similar messageDisplayAction has just an integer tab id (not the full object) and composeAction just gained the same. I think we should just fix them all, and compose.onBeforeSend. Only messageDisplayAction has this on 68, and AFAICT the usage is minimal to none.

Attachment #9128433 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9128433 [details] [diff] [review]
1617514-tab-info-not-tab-id-1.diff

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

Seems useful. r=mkmelin
Attachment #9128433 - Flags: review?(mkmelin+mozilla) → review+
Comment on attachment 9128433 [details] [diff] [review]
1617514-tab-info-not-tab-id-1.diff

We should probably put this on beta to avoid another round of churn. Bug 1615934 is new there for the upcoming beta2.
Attachment #9128433 - Flags: approval-comm-beta?

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/a144a25e5191
Give tab info and click info to *Action API events. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 75.0
Attachment #9128433 - Flags: approval-comm-beta? → approval-comm-beta+
See Also: → 1627570
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: