Bug 1400359 - Follow-up: Don't try to report NS_BINDING_ABORTED. r=me
authorJorg K <jorgk@jorgk.com>
Tue, 19 Sep 2017 01:22:09 +0200
changeset 29745 b182a7a28b128b34bcbf96fb1a2a5116b323c0e3
parent 29744 d0f95b20e4c1273cb848c638eb1ab3e081dfff6f
child 29746 5a2d4268fbd557403d9274ac041bf24cb7da7c0f
push id378
push userclokep@gmail.com
push dateMon, 13 Nov 2017 18:45:35 +0000
reviewersme
bugs1400359
Bug 1400359 - Follow-up: Don't try to report NS_BINDING_ABORTED. r=me
mailnews/local/src/nsPop3Protocol.cpp
--- a/mailnews/local/src/nsPop3Protocol.cpp
+++ b/mailnews/local/src/nsPop3Protocol.cpp
@@ -977,17 +977,17 @@ NS_IMETHODIMP nsPop3Protocol::OnStopRequ
     // which notifies the URLListeners, but we need to do a bit of cleanup
     // before running the url again.
     CloseSocket();
     if (m_loadGroup)
       m_loadGroup->RemoveRequest(static_cast<nsIRequest *>(this), nullptr, aStatus);
     m_pop3ConData->next_state = POP3_ERROR_DONE;
     ProcessProtocolState(nullptr, nullptr, 0, 0);
 
-    if (NS_FAILED(aStatus))
+    if (NS_FAILED(aStatus) && aStatus != NS_BINDING_ABORTED)
       nsMsgProtocol::ShowAlertMessage(msgUrl, aStatus);
 
     return NS_OK;
   }
   nsresult rv = nsMsgProtocol::OnStopRequest(aRequest, aContext, aStatus);
 
   // turn off the server busy flag on stop request - we know we're done, right?
   nsCOMPtr<nsIMsgIncomingServer> server = do_QueryInterface(m_pop3Server);