Web extension mailTabs API is missing the getCurrent function
Categories
(Thunderbird :: Add-Ons: Extensions API, defect)
Tracking
(Not tracked)
People
(Reporter: software, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
Steps to reproduce:
open a console/debug window
run the code: await mesenger.mailTabs.getCurrent()
Actual results:
got an error:
TypeError: messenger.mailTabs.getCurrent is not a function
Expected results:
It should return a mailTab object
Updated•10 months ago
|
Comment 1•10 months ago
•
|
||
It has been removed in Manifest V3. The function mailTabs.getCurrent()
shows a different behavior compared to tabs.getCurrent()
and confused developers. You can use
const [mailTab] = await browser.mailTabs.query({
active:true,
currentWindow:true
})
Documentation has not yet been updated. This is scheduled for next week, when we officially announce Manifest V3 support. Until now, Manifest V3 is defined as unstable and not officially supported.
Comment 2•10 months ago
|
||
More information on this topic:
https://thunderbird.topicbox.com/groups/addons/Tfbaad81fb46889a8/note-manifest-v3-is-not-yet-stable
Updated•10 months ago
|
Description
•