Closed Bug 1865525 Opened 1 year ago Closed 11 days ago

OpenPGP code adds listeners for (un)load-enigmail which never gets triggerd

Categories

(MailNews Core :: Security: OpenPGP, defect)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: standard8, Unassigned)

References

Details

(Whiteboard: [tech-debt])

See here:

https://searchfox.org/comm-central/search?q=load-enigmail&path=&case=false&regexp=false

These listeners are never triggered.

It appears loading has been re-implemented here: https://searchfox.org/comm-central/rev/633ee6c78a827657a30a670a78d350ea7e381274/mail/base/content/aboutMessage.js#93-94

It is unclear if unloading is properly re-implemented or still needed.

For example onUnloadEnigmail is no longer called: https://searchfox.org/comm-central/rev/633ee6c78a827657a30a670a78d350ea7e381274/mail/extensions/openpgp/content/ui/enigmailMessengerOverlay.js#2642-2679

Although messageClose is: https://hg.mozilla.org/comm-central/log/tip/mail/extensions/openpgp/content/ui/enigmailMessengerOverlay.js

This is probably a regression from bug 1799764 which implemented the handling in the new layout, but didn't clean up the existing parts.

Either way, it is tech debt as it is confusing how the Enigmail module is actually getting initialised.

They were unused before I went near it. Here's the same query in esr91. (Agree though, this is untidy.)

Keywords: regression
No longer regressed by: 1799764

This has been cleaned out.

Status: NEW → RESOLVED
Closed: 11 days ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.