Closed Bug 1644487 Opened 4 years ago Closed 4 years ago

browser.menus.onClicked - tab is not defined in callback when click occurs on a message out of the messageWindow

Categories

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

defect

Tracking

(thunderbird78 fixed)

RESOLVED FIXED
Thunderbird 79.0
Tracking Status
thunderbird78 --- fixed

People

(Reporter: emmanuel.sellier, Assigned: darktrojan)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Steps to reproduce:

1/ create a context menu, with permissions including "menus"
2/ listen for clicks
3/ run and open a message in a new window
4/ right-click inside the message

Actual results:

The click handler is called with first argument for Info, but the second argument (tab) is undefined.
The click on the same menu (and same handler) will receive both arguments : info and tab.

Expected results:

The click handler should receive both arguments : info and tab
tab is useful if you need to have the tab.id and open the messageDisplayAction (for instance) popup for the specific tab.id

Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #9158080 - Flags: review?(mkmelin+mozilla)
Attachment #9158080 - Flags: review?(mkmelin+mozilla) → review+
Target Milestone: --- → Thunderbird 79.0

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/18ac9cf0ff4b
Fix tab argument of menu API when in a message display window. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Comment on attachment 9158080 [details] [diff] [review]
1644487-message-window-menu-1.diff

Just a WebExtensions edge case, not a risk.
Attachment #9158080 - Flags: approval-comm-beta?
Comment on attachment 9158080 [details] [diff] [review]
1644487-message-window-menu-1.diff

Approved for beta
Attachment #9158080 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: