Closed Bug 1651308 Opened 4 years ago Closed 4 years ago

browser.folders.delete does not work with IMAP

Categories

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

defect

Tracking

(thunderbird_esr78+ fixed)

RESOLVED FIXED
81 Branch
Tracking Status
thunderbird_esr78 + fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

(Whiteboard: [TM:78.3.0])

Attachments

(1 file)

Calling browser.folders.delete on an IMAP folder throws NS_ERROR_ILLEGAL_VALUE from the call to nsIMsgFolder.deleteSubFolders.

nsImapMailFolder::DeleteSubFolders insists on having a msgWindow argument so that it can pop up a confirmation prompt. nsMsgDBFolder::DeleteSubFolders does not. Without a msgWindow, it just moves the folder directly to the trash, or if it's already there, deletes it permanently.

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Target Milestone: --- → 81 Branch

Actually, let's not. There's dependencies that aren't done yet.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/c01f0d70a895
Fix browser.folders.delete on IMAP accounts r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Uplift to 78?

Whiteboard: [TM:78.3.0]

Comment on attachment 9168351 [details]
Bug 1651308 - Fix browser.folders.delete on IMAP accounts

[Approval Request Comment]
Regression caused by (bug #): Never worked.
User impact if declined: This will continue to not work for extensions. Apparently it's hardly ever used but it might as well work.
Testing completed (on c-c, etc.): On beta for all of 81 cycle.
Risk to taking this patch (and alternatives if risky): "Meh."

Attachment #9168351 - Flags: approval-comm-esr78?

Comment on attachment 9168351 [details]
Bug 1651308 - Fix browser.folders.delete on IMAP accounts

[Triage Comment]
Approved for esr78

Attachment #9168351 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: