Open Bug 1955042 Opened 10 months ago Updated 9 months ago

Combine the content-type handlers for OpenPGP and S/MIME into a single one

Categories

(MailNews Core :: Security: OpenPGP, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: KaiE, Unassigned)

References

Details

This an architectural enhancement suggestion.

For historical reasons, the handling code for the multipart/signed content-type is split into two separate pieces of code, a C++ portion that handles S/MIME, and a JavaScript portion that handles the OpenPGP code.

If the currently registered handler is the wrong one for the message being processed, a hack is used to dynamically change the registered handler. That's inefficient, because it requires that the message is loaded again, and it also leads to wrong functionality, for example as seen in bug 1946168.

We should have only one handler, and avoid reloading and re-registering.
Instead, the one handler should simply forward to the correct piece of code for data processing.

(This would also prepare for a future in which we might have to handle additional protocols.)

See Also: → 1946168

This would be great!

See Also: → 1867271
You need to log in before you can comment on or make changes to this bug.