Closed Bug 1902141 Opened 10 months ago Closed 10 months ago

Web extension mailTabs API is missing the getCurrent function

Categories

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

Thunderbird 128
defect

Tracking

(Not tracked)

RESOLVED INVALID

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

Component: Untriaged → Add-Ons: Extensions API

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.

Status: UNCONFIRMED → RESOLVED
Closed: 10 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.