Closed Bug 1859854 Opened 2 years ago Closed 2 years ago

Thunderbird 115.3.2 breaks getRaw method of the messages API

Categories

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

Thunderbird 115
defect

Tracking

(Not tracked)

RESOLVED MOVED

People

(Reporter: onfire4hire, Unassigned)

Details

Steps to reproduce:

const msg = await messenger.messages.getRaw(message.id)
console.log(msg)

Actual results:

A handle to a file{} gets returned

Expected results:

It should return a binary string.

Are you using manifest v3? We did introduce the simpler DOM File as the default return value for manifest v3.
https://searchfox.org/comm-esr115/rev/8c0636366d68bd854091e40b984e4b72c2dc1779/mail/components/extensions/parent/ext-messages.js#757-767

Since we do not yet officially support manifest v3, the patch was backported as a whole to allow using DOM File (optionally) in manifest v2 already as well.

Edit: The documentation still needs to be updated, expect that to happen within the next few days.

Updated the documentation:

Thunderbird 115 (stable) : https://webextension-api.thunderbird.net/en/stable/messages.html#getraw-messageid-options
Thunderbird Beta (latest) : https://webextension-api.thunderbird.net/en/latest/messages.html#getraw-messageid-options
Thunderbird Beta MV3 (latest_mv3): https://webextension-api.thunderbird.net/en/latest-mv3/messages.html#getraw-messageid-options

We do not have a documentation for Thunderbird 115 MV3, since we do not yet officially support it. Please note the banner on the index page of the MV3 documentation:

The Manifest v3 specification is not finalized yet and will continue to change. Feel free to test and explore the required changes for your extensions to run under Manifest v3, but do not release or distribute them yet.

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