Open Bug 1671042 Opened 4 years ago Updated 1 year ago

Mail Extensions API: Enable offering undo actions

Categories

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

enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: mozilla.bugzilla.2012, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

Steps to reproduce:

Users would like to undo certain actions, e.g. moving a mail to a different folder. If such an action has been triggered by a WebExtension, there is currently no way to offer the user to undo this action.

This should be integrated with the existing undo features (Menu -> Edit -> Undo as well as existing keyboard shortcuts).

I'm aware that not every action by a WebExtension should be undoable (e.g. messages moved in the background). Therefore, I'd propose to add an optional boolean flag to certain methods called "undoable", defaulting to false (therefore preserving backwards compatibility).

Here's a list of methods which I suppose would benefit from this:

  • contacts
  • delete()
  • folders
  • create()
  • delete()
  • rename()
  • messages
  • update()
  • move()
  • copy()
  • delete()
  • archive()
Summary: Enable offering undo actions → Mail Extensions API: Enable offering undo actions
You need to log in before you can comment on or make changes to this bug.