Closed Bug 1941332 Opened 1 year ago Closed 1 year ago

Remove nsIMsgWindow.openFolder

Categories

(MailNews Core :: Backend, task)

task

Tracking

(thunderbird_esr128 wontfix, thunderbird135 wontfix)

RESOLVED FIXED
136 Branch
Tracking Status
thunderbird_esr128 --- wontfix
thunderbird135 --- wontfix

People

(Reporter: mkmelin, Assigned: mkmelin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Remove nsIMsgWindow.openFolder. Paves the way for eventually dropping nsIMsgWindow altogether.

Status: NEW → ASSIGNED
Blocks: 1942177
Attachment #9459462 - Attachment description: Bug 1941332 - Remove nsIMsgWindow.openFolder. r=#thunderbird-back-end-reviewers → Bug 1941332 - Remove nsIMsgWindow.openFolder. r=BenC

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/9ba85c3b7905
Remove nsIMsgWindow.openFolder. r=BenC

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Blocks: 1837562
Regressions: 1947554

Some post-landing questions:

Why was imapFolder->UpdateFolderWithListener(nullptr, this); added here: https://hg.mozilla.org/comm-central/rev/9ba85c3b7905#l7.76 ?

https://searchfox.org/comm-central/rev/dccc40bbd446fc898f120e6da9986755617899dc/mail/modules/MailUtils.sys.mjs#774 was added in bug 1787609 calling closeDBIfFolderNotOpen(true); to force-close a folder if not open in a window during a search which potentially opens many folders.

What is implemented now force-closes the DB even if its folder is open in the window. Does findMsgIdInFolder() still work, or IOW, are there any consequences when that function force-closes the DB of the current folder?

Flags: needinfo?(mkmelin+mozilla)

My recall of the details is somewhat blurry, but IIRC it was needed as I had to re-wire the delete/detach attachment logic a bit to use normal urllistener logic and not swap around which listener it used. https://hg.mozilla.org/comm-central/rev/9ba85c3b7905#l19.211

findMsgIdInFolder() still works fine AFAICT. Certainly possible there could be some side-effects, but haven't seen any.

Flags: needinfo?(mkmelin+mozilla)
Regressions: 1950021
See Also: → 1953623
Regressions: 1973165
Regressions: 1990129
No longer regressions: 1990129
See Also: → 1990129
Regressions: 1953623
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: