Bug 235942 When viewing a mail on an IMAP server, the attachment is always downloaded

r=bienvenu sr=bienvenu
This commit is contained in:
timeless%mozdev.org 2005-12-27 01:35:17 +00:00
parent 68de9cc18c
commit 6592c068e7

View File

@ -794,7 +794,7 @@ nsresult nsImapProtocol::SetupWithUrl(nsIURI * aURL, nsISupports* aConsumer)
*socketHost, socketPort, proxyInfo,
getter_AddRefs(m_transport));
}
if (m_transport)
if (m_transport && m_mockChannel)
{
// Ensure that the socket can get the notification callbacks
SetSecurityCallbacksFromChannel(m_transport, m_mockChannel);