Bug 1529792 - make nsNntpMockChannel pass loadInfo on to nsNNTPProtocol to fix crash. r+a=jorgk
authorBen Campbell <benc@thunderbird.net>
Mon, 25 Feb 2019 13:26:18 +1300
changeset 33961 26606ff7a3f6089c08f88cc6a4527dddf89cb1a3
parent 33960 8a987f6e635068665ccbc5726d8c09ede587e70c
child 33962 6360477e63b526c0babdf30bda7f4ddfc54e6748
push id2393
push usermozilla@jorgk.com
push dateMon, 25 Mar 2019 10:52:11 +0000
treeherdercomm-beta@009e7920f860 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1529792
Bug 1529792 - make nsNntpMockChannel pass loadInfo on to nsNNTPProtocol to fix crash. r+a=jorgk
mailnews/news/src/nsNntpMockChannel.cpp
--- a/mailnews/news/src/nsNntpMockChannel.cpp
+++ b/mailnews/news/src/nsNntpMockChannel.cpp
@@ -312,16 +312,17 @@ nsNntpMockChannel::AttachNNTPConnection(
   // We're going to active the protocol now. Note that if the user has
   // interacted with us through the nsIChannel API, we need to pass it to the
   // protocol instance. We also need to initialize it. For best results, we're
   // going to initialize the code and then set the values.
   nsresult rv = protocol.Initialize(m_url, m_msgWindow);
   NS_ENSURE_SUCCESS(rv, rv);
 
   // Variable fun
+  protocol.SetLoadInfo(m_loadInfo);
   protocol.SetLoadGroup(m_loadGroup);
   protocol.SetLoadFlags(m_loadFlags);
   protocol.SetOwner(m_owner);
   protocol.SetNotificationCallbacks(m_notificationCallbacks);
   protocol.SetContentType(m_contentType);
 
   // Now that we've set up the protocol, attach it to ourselves so that we can
   // forward all future calls to the protocol instance. We do not refcount this