Menu Api and Click on Tab Title in Window

Hi, i’ve a probleme with menu api, in fact when the user right click on the title of a tab in the window but without opening it (just right click on title) and the menu is displayed, how to update a menu item and get the id of the tab where
the menu is displayed before the menu is opened ?

When the menu is on the page, i update the menu when the tab is activated with onActivated but when the click is on the title of the tab only it don’t work:

Thanks.

Recently a currently undocumented onShown or similar event was introduced for contextMenus that gives you context on what the menu is being opened on, so you can modify items.

Ok, thanks, maybe i’ll wait until there’s more information.

The bug for the new APIs is here: https://bugzilla.mozilla.org/show_bug.cgi?id=1215376 - this will be updated when the docs are written.