Open Bug 1665619 Opened 4 years ago

explore using fetch() to handle certificate overrides in mailnews

Categories

(Thunderbird :: General, task)

Tracking

(Not tracked)

People

(Reporter: mkmelin, Unassigned)

References

Details

See bug 1590473 comment 74 and bug 1590473 comment 79. It should be possible to use fetch() on mailnews urls instead of adding certificates info onto the url like that bug did.

<quote>
Does anyone realize fetch() can be used with a mailnews url? If the purpose is to simply test cert/ssl status of a server, all that's needed is to strip credentials (I believe only imap urls have them) from the url. Testing response from fetch() seems extremely more hardened and future proof than this, which doesn't seem to include nntp/smtp urls.

I specifically said "test cert/ssl status of a server", ie this bug. You have to start somewhere to gain the knowledge of how to do it in a future proof way. Adding stuff to channels and so forth is a hackathon, especially brittle given constant bustage from upstream changes, that should be transitioned away from whenever possible.

The first strategic thing you should consider is removing credentials from imap urls. Then it becomes trivially easy: https://searchfox.org/comm-central/rev/3364959dce12ac17554902d70e7e2bdcef2a27a4/mail/base/content/msgHdrView.js#2160.
</quote>

You need to log in before you can comment on or make changes to this bug.