Closed Bug 1674374 Opened 5 years ago Closed 4 years ago

[API suggestion] Add tab parameter to messenger.cloudfile.onFile* events

Categories

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

enhancement

Tracking

(Not tracked)

RESOLVED FIXED
91 Branch

People

(Reporter: je, Assigned: john)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

From the messenger.cloudfile.onFile* event handlers the code has no way to address the message, the file was attached to. But that would be very useful, eg to add/remove information to/from the message.

I suggest to add a tab parameter as the last parameter to the
messenger.cloudFile.onFileUpload
messenger.cloudFile.onFileUploadAbort
messenger.cloudFile.onFileDeleted
events.

Like the tab paramter of events like messenger.compose.onAttachmentAdded it should contain the Tab object.

Status: UNCONFIRMED → NEW
Ever confirmed: true

This would also be useful to report errors to the user by the upcoming notification bar api (bug 1674002).

See Also: → 1681188
Assignee: nobody → john
Status: NEW → ASSIGNED

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/f2c485efef1d
Add tab parameter to cloudfile.onFile* events. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: